@newfold/huapi-js 2.1441.0 → 2.1451.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 +25 -25
- package/src/index.js +20 -20
- package/src/index.msw.d.ts +3 -3
- package/src/index.msw.js +7 -7
- package/src/index.schemas.d.ts +162 -137
- package/src/index.schemas.js +5 -4
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, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwarderDelete200, HostingEmailForwarderDelete400, HostingEmailForwarderDeleteParams, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -789,9 +789,9 @@ export declare function useBackupList<TData = Awaited<ReturnType<typeof backupLi
|
|
|
789
789
|
* Backup meta
|
|
790
790
|
* @summary Backup meta
|
|
791
791
|
*/
|
|
792
|
-
export declare const backupMeta: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<BackupMeta200>>;
|
|
793
|
-
export declare const getBackupMetaQueryKey: (addonId: number) => readonly [`/v1/addons/${number}/backup/meta
|
|
794
|
-
export declare const getBackupMetaQueryOptions: <TData = AxiosResponse<BackupMeta200, any>, TError = AxiosError<unknown, any>>(addonId: number, options?: {
|
|
792
|
+
export declare const backupMeta: (addonId: number, params?: BackupMetaParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<BackupMeta200>>;
|
|
793
|
+
export declare const getBackupMetaQueryKey: (addonId: number, params?: BackupMetaParams) => readonly [`/v1/addons/${number}/backup/meta`, ...BackupMetaParams[]];
|
|
794
|
+
export declare const getBackupMetaQueryOptions: <TData = AxiosResponse<BackupMeta200, any>, TError = AxiosError<unknown, any>>(addonId: number, params?: BackupMetaParams, options?: {
|
|
795
795
|
query?: Partial<UseQueryOptions<AxiosResponse<BackupMeta200, any>, TError, TData, QueryKey>> | undefined;
|
|
796
796
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
797
797
|
} | undefined) => UseQueryOptions<AxiosResponse<BackupMeta200, any>, TError, TData, QueryKey> & {
|
|
@@ -799,19 +799,19 @@ export declare const getBackupMetaQueryOptions: <TData = AxiosResponse<BackupMet
|
|
|
799
799
|
};
|
|
800
800
|
export declare type BackupMetaQueryResult = NonNullable<Awaited<ReturnType<typeof backupMeta>>>;
|
|
801
801
|
export declare type BackupMetaQueryError = AxiosError<unknown>;
|
|
802
|
-
export declare function useBackupMeta<TData = Awaited<ReturnType<typeof backupMeta>>, TError = AxiosError<unknown>>(addonId: number, options: {
|
|
802
|
+
export declare function useBackupMeta<TData = Awaited<ReturnType<typeof backupMeta>>, TError = AxiosError<unknown>>(addonId: number, params: undefined | BackupMetaParams, options: {
|
|
803
803
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof backupMeta>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof backupMeta>>, TError, TData>, 'initialData'>;
|
|
804
804
|
axios?: AxiosRequestConfig;
|
|
805
805
|
}): DefinedUseQueryResult<TData, TError> & {
|
|
806
806
|
queryKey: QueryKey;
|
|
807
807
|
};
|
|
808
|
-
export declare function useBackupMeta<TData = Awaited<ReturnType<typeof backupMeta>>, TError = AxiosError<unknown>>(addonId: number, options?: {
|
|
808
|
+
export declare function useBackupMeta<TData = Awaited<ReturnType<typeof backupMeta>>, TError = AxiosError<unknown>>(addonId: number, params?: BackupMetaParams, options?: {
|
|
809
809
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof backupMeta>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof backupMeta>>, TError, TData>, 'initialData'>;
|
|
810
810
|
axios?: AxiosRequestConfig;
|
|
811
811
|
}): UseQueryResult<TData, TError> & {
|
|
812
812
|
queryKey: QueryKey;
|
|
813
813
|
};
|
|
814
|
-
export declare function useBackupMeta<TData = Awaited<ReturnType<typeof backupMeta>>, TError = AxiosError<unknown>>(addonId: number, options?: {
|
|
814
|
+
export declare function useBackupMeta<TData = Awaited<ReturnType<typeof backupMeta>>, TError = AxiosError<unknown>>(addonId: number, params?: BackupMetaParams, options?: {
|
|
815
815
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof backupMeta>>, TError, TData>>;
|
|
816
816
|
axios?: AxiosRequestConfig;
|
|
817
817
|
}): UseQueryResult<TData, TError> & {
|
|
@@ -3158,8 +3158,8 @@ export declare function useHostingEmailForwardersList<TData = Awaited<ReturnType
|
|
|
3158
3158
|
queryKey: QueryKey;
|
|
3159
3159
|
};
|
|
3160
3160
|
/**
|
|
3161
|
-
*
|
|
3162
|
-
* @summary
|
|
3161
|
+
* Email forwarding is a feature that automatically redirects incoming emails sent to one email address to another specified email address
|
|
3162
|
+
* @summary email forwarder add
|
|
3163
3163
|
*/
|
|
3164
3164
|
export declare const hostingEmailForwarderAdd: (hostingId: string, hostingEmailForwarderAddBody: HostingEmailForwarderAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailForwarderAdd200>>;
|
|
3165
3165
|
export declare const getHostingEmailForwarderAddMutationOptions: <TError = AxiosError<HostingEmailForwarderAdd512 | HostingEmailForwarderAdd409 | HostingEmailForwarderAdd403 | HostingEmailForwarderAdd400, any>, TContext = unknown>(options?: {
|
|
@@ -3176,7 +3176,7 @@ export declare type HostingEmailForwarderAddMutationResult = NonNullable<Awaited
|
|
|
3176
3176
|
export declare type HostingEmailForwarderAddMutationBody = HostingEmailForwarderAddBody;
|
|
3177
3177
|
export declare type HostingEmailForwarderAddMutationError = AxiosError<HostingEmailForwarderAdd400 | HostingEmailForwarderAdd403 | HostingEmailForwarderAdd409 | HostingEmailForwarderAdd512>;
|
|
3178
3178
|
/**
|
|
3179
|
-
* @summary
|
|
3179
|
+
* @summary email forwarder add
|
|
3180
3180
|
*/
|
|
3181
3181
|
export declare const useHostingEmailForwarderAdd: <TError = AxiosError<HostingEmailForwarderAdd512 | HostingEmailForwarderAdd409 | HostingEmailForwarderAdd403 | HostingEmailForwarderAdd400, any>, TContext = unknown>(options?: {
|
|
3182
3182
|
mutation?: UseMutationOptions<AxiosResponse<HostingEmailForwarderAdd200, any>, TError, {
|
|
@@ -3190,33 +3190,33 @@ export declare const useHostingEmailForwarderAdd: <TError = AxiosError<HostingEm
|
|
|
3190
3190
|
}, TContext>;
|
|
3191
3191
|
/**
|
|
3192
3192
|
* Delete email forwarder
|
|
3193
|
-
* @summary
|
|
3193
|
+
* @summary email forwarder delete
|
|
3194
3194
|
*/
|
|
3195
|
-
export declare const
|
|
3196
|
-
export declare const
|
|
3197
|
-
mutation?: UseMutationOptions<AxiosResponse<
|
|
3195
|
+
export declare const hostingEmailForwardDelete: (hostingId: string, params: HostingEmailForwardDeleteParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailForwardDelete200>>;
|
|
3196
|
+
export declare const getHostingEmailForwardDeleteMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3197
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailForwardDelete200, any>, TError, {
|
|
3198
3198
|
hostingId: string;
|
|
3199
|
-
params:
|
|
3199
|
+
params: HostingEmailForwardDeleteParams;
|
|
3200
3200
|
}, TContext> | undefined;
|
|
3201
3201
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
3202
|
-
} | undefined) => UseMutationOptions<AxiosResponse<
|
|
3202
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HostingEmailForwardDelete200, any>, TError, {
|
|
3203
3203
|
hostingId: string;
|
|
3204
|
-
params:
|
|
3204
|
+
params: HostingEmailForwardDeleteParams;
|
|
3205
3205
|
}, TContext>;
|
|
3206
|
-
export declare type
|
|
3207
|
-
export declare type
|
|
3206
|
+
export declare type HostingEmailForwardDeleteMutationResult = NonNullable<Awaited<ReturnType<typeof hostingEmailForwardDelete>>>;
|
|
3207
|
+
export declare type HostingEmailForwardDeleteMutationError = AxiosError<unknown>;
|
|
3208
3208
|
/**
|
|
3209
|
-
* @summary
|
|
3209
|
+
* @summary email forwarder delete
|
|
3210
3210
|
*/
|
|
3211
|
-
export declare const
|
|
3212
|
-
mutation?: UseMutationOptions<AxiosResponse<
|
|
3211
|
+
export declare const useHostingEmailForwardDelete: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3212
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailForwardDelete200, any>, TError, {
|
|
3213
3213
|
hostingId: string;
|
|
3214
|
-
params:
|
|
3214
|
+
params: HostingEmailForwardDeleteParams;
|
|
3215
3215
|
}, TContext> | undefined;
|
|
3216
3216
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
3217
|
-
} | undefined) => UseMutationResult<AxiosResponse<
|
|
3217
|
+
} | undefined) => UseMutationResult<AxiosResponse<HostingEmailForwardDelete200, any>, TError, {
|
|
3218
3218
|
hostingId: string;
|
|
3219
|
-
params:
|
|
3219
|
+
params: HostingEmailForwardDeleteParams;
|
|
3220
3220
|
}, TContext>;
|
|
3221
3221
|
/**
|
|
3222
3222
|
* Update an email address's settings, depending on address type
|
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.1451.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -619,24 +619,24 @@ export function useBackupList(addonId, params, options) {
|
|
|
619
619
|
* Backup meta
|
|
620
620
|
* @summary Backup meta
|
|
621
621
|
*/
|
|
622
|
-
export const backupMeta = (addonId, options) => {
|
|
623
|
-
return axios.get(`/v1/addons/${addonId}/backup/meta`, options);
|
|
622
|
+
export const backupMeta = (addonId, params, options) => {
|
|
623
|
+
return axios.get(`/v1/addons/${addonId}/backup/meta`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
624
624
|
};
|
|
625
|
-
export const getBackupMetaQueryKey = (addonId) => {
|
|
626
|
-
return [`/v1/addons/${addonId}/backup/meta
|
|
625
|
+
export const getBackupMetaQueryKey = (addonId, params) => {
|
|
626
|
+
return [`/v1/addons/${addonId}/backup/meta`, ...(params ? [params] : [])];
|
|
627
627
|
};
|
|
628
|
-
export const getBackupMetaQueryOptions = (addonId, options) => {
|
|
628
|
+
export const getBackupMetaQueryOptions = (addonId, params, options) => {
|
|
629
629
|
var _a;
|
|
630
630
|
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
631
|
-
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getBackupMetaQueryKey(addonId);
|
|
632
|
-
const queryFn = ({ signal }) => backupMeta(addonId, Object.assign({ signal }, axiosOptions));
|
|
631
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getBackupMetaQueryKey(addonId, params);
|
|
632
|
+
const queryFn = ({ signal }) => backupMeta(addonId, params, Object.assign({ signal }, axiosOptions));
|
|
633
633
|
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
634
634
|
};
|
|
635
635
|
/**
|
|
636
636
|
* @summary Backup meta
|
|
637
637
|
*/
|
|
638
|
-
export function useBackupMeta(addonId, options) {
|
|
639
|
-
const queryOptions = getBackupMetaQueryOptions(addonId, options);
|
|
638
|
+
export function useBackupMeta(addonId, params, options) {
|
|
639
|
+
const queryOptions = getBackupMetaQueryOptions(addonId, params, options);
|
|
640
640
|
const query = useQuery(queryOptions);
|
|
641
641
|
query.queryKey = queryOptions.queryKey;
|
|
642
642
|
return query;
|
|
@@ -2426,8 +2426,8 @@ export function useHostingEmailForwardersList(hostingId, params, options) {
|
|
|
2426
2426
|
return query;
|
|
2427
2427
|
}
|
|
2428
2428
|
/**
|
|
2429
|
-
*
|
|
2430
|
-
* @summary
|
|
2429
|
+
* Email forwarding is a feature that automatically redirects incoming emails sent to one email address to another specified email address
|
|
2430
|
+
* @summary email forwarder add
|
|
2431
2431
|
*/
|
|
2432
2432
|
export const hostingEmailForwarderAdd = (hostingId, hostingEmailForwarderAddBody, options) => {
|
|
2433
2433
|
return axios.post(`/v1/hosting/${hostingId}/emails/forwarders`, hostingEmailForwarderAddBody, options);
|
|
@@ -2441,7 +2441,7 @@ export const getHostingEmailForwarderAddMutationOptions = (options) => {
|
|
|
2441
2441
|
return Object.assign({ mutationFn }, mutationOptions);
|
|
2442
2442
|
};
|
|
2443
2443
|
/**
|
|
2444
|
-
* @summary
|
|
2444
|
+
* @summary email forwarder add
|
|
2445
2445
|
*/
|
|
2446
2446
|
export const useHostingEmailForwarderAdd = (options) => {
|
|
2447
2447
|
const mutationOptions = getHostingEmailForwarderAddMutationOptions(options);
|
|
@@ -2449,24 +2449,24 @@ export const useHostingEmailForwarderAdd = (options) => {
|
|
|
2449
2449
|
};
|
|
2450
2450
|
/**
|
|
2451
2451
|
* Delete email forwarder
|
|
2452
|
-
* @summary
|
|
2452
|
+
* @summary email forwarder delete
|
|
2453
2453
|
*/
|
|
2454
|
-
export const
|
|
2454
|
+
export const hostingEmailForwardDelete = (hostingId, params, options) => {
|
|
2455
2455
|
return axios.delete(`/v1/hosting/${hostingId}/emails/forwarders`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
2456
2456
|
};
|
|
2457
|
-
export const
|
|
2457
|
+
export const getHostingEmailForwardDeleteMutationOptions = (options) => {
|
|
2458
2458
|
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2459
2459
|
const mutationFn = (props) => {
|
|
2460
2460
|
const { hostingId, params } = props !== null && props !== void 0 ? props : {};
|
|
2461
|
-
return
|
|
2461
|
+
return hostingEmailForwardDelete(hostingId, params, axiosOptions);
|
|
2462
2462
|
};
|
|
2463
2463
|
return Object.assign({ mutationFn }, mutationOptions);
|
|
2464
2464
|
};
|
|
2465
2465
|
/**
|
|
2466
|
-
* @summary
|
|
2466
|
+
* @summary email forwarder delete
|
|
2467
2467
|
*/
|
|
2468
|
-
export const
|
|
2469
|
-
const mutationOptions =
|
|
2468
|
+
export const useHostingEmailForwardDelete = (options) => {
|
|
2469
|
+
const mutationOptions = getHostingEmailForwardDeleteMutationOptions(options);
|
|
2470
2470
|
return useMutation(mutationOptions);
|
|
2471
2471
|
};
|
|
2472
2472
|
/**
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailDelete200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200,
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailDelete200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailList200, HostingEmailSettings200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
5
5
|
export declare const getAccountPublicKeysResponseMock: (overrideResponse?: Partial<AccountPublicKeys200>) => AccountPublicKeys200;
|
|
@@ -102,7 +102,7 @@ export declare const getHostingEmailFiltersUpdateResponseMock: (overrideResponse
|
|
|
102
102
|
export declare const getHostingEmailFiltersDeleteResponseMock: (overrideResponse?: Partial<HostingEmailFiltersDelete200>) => HostingEmailFiltersDelete200;
|
|
103
103
|
export declare const getHostingEmailForwardersListResponseMock: (overrideResponse?: Partial<HostingEmailForwardersList200>) => HostingEmailForwardersList200;
|
|
104
104
|
export declare const getHostingEmailForwarderAddResponseMock: (overrideResponse?: Partial<HostingEmailForwarderAdd200>) => HostingEmailForwarderAdd200;
|
|
105
|
-
export declare const
|
|
105
|
+
export declare const getHostingEmailForwardDeleteResponseMock: (overrideResponse?: Partial<HostingEmailForwardDelete200>) => HostingEmailForwardDelete200;
|
|
106
106
|
export declare const getHostingEmailSettingsResponseMock: (overrideResponse?: Partial<HostingEmailSettings200>) => HostingEmailSettings200;
|
|
107
107
|
export declare const getEmailSsoResponseMock: (overrideResponse?: Partial<EmailSso200>) => EmailSso200;
|
|
108
108
|
export declare const getHostingEmailFolderListResponseMock: (overrideResponse?: Partial<HostingEmailFolderList200>) => HostingEmailFolderList200;
|
|
@@ -352,7 +352,7 @@ export declare const getHostingEmailFiltersUpdateMockHandler: (overrideResponse?
|
|
|
352
352
|
export declare const getHostingEmailFiltersDeleteMockHandler: (overrideResponse?: HostingEmailFiltersDelete200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingEmailFiltersDelete200> | HostingEmailFiltersDelete200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
353
353
|
export declare const getHostingEmailForwardersListMockHandler: (overrideResponse?: HostingEmailForwardersList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailForwardersList200> | HostingEmailForwardersList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
354
354
|
export declare const getHostingEmailForwarderAddMockHandler: (overrideResponse?: HostingEmailForwarderAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingEmailForwarderAdd200> | HostingEmailForwarderAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
355
|
-
export declare const
|
|
355
|
+
export declare const getHostingEmailForwardDeleteMockHandler: (overrideResponse?: HostingEmailForwardDelete200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingEmailForwardDelete200> | HostingEmailForwardDelete200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
356
356
|
export declare const getHostingEmailSettingsMockHandler: (overrideResponse?: HostingEmailSettings200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingEmailSettings200> | HostingEmailSettings200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
357
357
|
export declare const getEmailSsoMockHandler: (overrideResponse?: EmailSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EmailSso200> | EmailSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
358
358
|
export declare const getHostingEmailFolderListMockHandler: (overrideResponse?: HostingEmailFolderList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailFolderList200> | HostingEmailFolderList200) | 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.1451.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -33,7 +33,7 @@ export const getAddonsSitelockSsoResponseMock = (overrideResponse = {}) => (Obje
|
|
|
33
33
|
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));
|
|
34
34
|
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));
|
|
35
35
|
export const getBackupListResponseMock = (overrideResponse = {}) => (Object.assign({ home: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ backup_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), backup_status: faker.helpers.arrayElement([{ download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]), time_created: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
36
|
-
export const getBackupMetaResponseMock = (overrideResponse = {}) => (Object.assign({ cbs_downloadables: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), time_req_completed: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), cbs_event_processing: faker.helpers.arrayElement([{ action: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), client_tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), cbs_last_restore_timestamp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
36
|
+
export const getBackupMetaResponseMock = (overrideResponse = {}) => (Object.assign({ account: faker.helpers.arrayElement([{ cbs_downloadables: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), time_req_completed: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), cbs_event_processing: faker.helpers.arrayElement([{ action: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), client_tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), cbs_last_restore_timestamp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), site: faker.helpers.arrayElement([{ cbs_downloadables: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ snapshot_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), time_req_completed: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, undefined]) }, overrideResponse));
|
|
37
37
|
export const getAddonsCloudflareResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
38
38
|
export const getAddonsInfoResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
39
39
|
export const getAddonsJetpackValidateResponseMock = (overrideResponse = {}) => (Object.assign({ is_connected: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
@@ -112,7 +112,7 @@ export const getHostingEmailFiltersUpdateResponseMock = (overrideResponse = {})
|
|
|
112
112
|
export const getHostingEmailFiltersDeleteResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
113
113
|
export const getHostingEmailForwardersListResponseMock = (overrideResponse = {}) => (Object.assign({ forwarders: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ destination: faker.helpers.arrayElement([faker.word.sample(), undefined]), source: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
114
114
|
export const getHostingEmailForwarderAddResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
115
|
-
export const
|
|
115
|
+
export const getHostingEmailForwardDeleteResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
116
116
|
export const getHostingEmailSettingsResponseMock = (overrideResponse = {}) => (Object.assign({ account_incoming: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_login: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_outgoing: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), address: faker.helpers.arrayElement([faker.word.sample(), undefined]), autofolders: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), utf8_folders: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
117
117
|
export const getEmailSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
|
|
118
118
|
export const getHostingEmailFolderListResponseMock = (overrideResponse = {}) => (Object.assign({ count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), folders: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ children: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ children: faker.helpers.arrayElement([[], undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
@@ -145,7 +145,7 @@ export const getHostingOnboardingDataUpdateResponseMock = (overrideResponse = {}
|
|
|
145
145
|
export const getPasswordGenerateResponseMock = (overrideResponse = {}) => (Object.assign({ password: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
146
146
|
export const getPasswordScoreResponseMock = (overrideResponse = {}) => (Object.assign({ score: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
147
147
|
export const getPhpErrorsResponseMock = (overrideResponse = {}) => (Object.assign({ content: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
148
|
-
export const getProductLicenseDetailsResponseMock = (overrideResponse = {}) => (Object.assign({ wpsolution: faker.helpers.arrayElement([{ commerce: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ expirationDate: faker.helpers.arrayElement([faker.word.sample(), undefined]), prodInstId: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), creator: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ expirationDate: faker.helpers.arrayElement([faker.word.sample(), undefined]), prodInstId: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, undefined]) }, overrideResponse));
|
|
148
|
+
export const getProductLicenseDetailsResponseMock = (overrideResponse = {}) => (Object.assign({ wpsolution: faker.helpers.arrayElement([{ commerce: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ expirationDate: faker.helpers.arrayElement([faker.word.sample(), undefined]), prodInstId: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), creator: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ expirationDate: faker.helpers.arrayElement([faker.word.sample(), undefined]), prodInstId: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]) }, overrideResponse));
|
|
149
149
|
export const getHostingRedirectsResponseMock = () => (Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ docroot: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), http_status_code: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), redirect_www: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), src: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]), wildcard: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) })));
|
|
150
150
|
export const getHostingRedirectResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
151
151
|
export const getAddHostingRedirectsResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
@@ -1302,12 +1302,12 @@ export const getHostingEmailForwarderAddMockHandler = (overrideResponse) => {
|
|
|
1302
1302
|
});
|
|
1303
1303
|
}));
|
|
1304
1304
|
};
|
|
1305
|
-
export const
|
|
1305
|
+
export const getHostingEmailForwardDeleteMockHandler = (overrideResponse) => {
|
|
1306
1306
|
return http.delete('*/v1/hosting/:hostingId/emails/forwarders', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1307
1307
|
yield delay(0);
|
|
1308
1308
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1309
1309
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1310
|
-
:
|
|
1310
|
+
: getHostingEmailForwardDeleteResponseMock()), { status: 200,
|
|
1311
1311
|
headers: { 'Content-Type': 'application/json' }
|
|
1312
1312
|
});
|
|
1313
1313
|
}));
|
|
@@ -2905,7 +2905,7 @@ export const getHostingUAPIMock = () => [
|
|
|
2905
2905
|
getHostingEmailFiltersDeleteMockHandler(),
|
|
2906
2906
|
getHostingEmailForwardersListMockHandler(),
|
|
2907
2907
|
getHostingEmailForwarderAddMockHandler(),
|
|
2908
|
-
|
|
2908
|
+
getHostingEmailForwardDeleteMockHandler(),
|
|
2909
2909
|
getHostingEmailSettingsMockHandler(),
|
|
2910
2910
|
getEmailSsoMockHandler(),
|
|
2911
2911
|
getHostingEmailFolderListMockHandler(),
|
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.1451.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -267,17 +267,6 @@ export declare type SitesDomainsV2200 = {
|
|
|
267
267
|
export declare type SitesDomainsV2Params = {
|
|
268
268
|
scan?: boolean;
|
|
269
269
|
};
|
|
270
|
-
export declare type SitesListV2200 = {
|
|
271
|
-
items?: SitesListV2200ItemsItem[];
|
|
272
|
-
/** page size */
|
|
273
|
-
limit?: number;
|
|
274
|
-
/** current page number */
|
|
275
|
-
page?: number;
|
|
276
|
-
/** total number of pages */
|
|
277
|
-
pages?: number;
|
|
278
|
-
/** total number of sites returned */
|
|
279
|
-
total?: number;
|
|
280
|
-
};
|
|
281
270
|
/**
|
|
282
271
|
* @nullable
|
|
283
272
|
*/
|
|
@@ -305,63 +294,6 @@ export declare type SitesListV2200ItemsItemStaging = {
|
|
|
305
294
|
/** A list of staging sites of the current site */
|
|
306
295
|
sites?: number[];
|
|
307
296
|
} | null;
|
|
308
|
-
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
309
|
-
/** @nullable */
|
|
310
|
-
available?: number | null;
|
|
311
|
-
/** @nullable */
|
|
312
|
-
total?: number | null;
|
|
313
|
-
unit?: string;
|
|
314
|
-
/** @nullable */
|
|
315
|
-
used?: number | null;
|
|
316
|
-
};
|
|
317
|
-
export declare type SitesListV2200ItemsItemResources = {
|
|
318
|
-
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
319
|
-
/** @nullable */
|
|
320
|
-
workers?: number | null;
|
|
321
|
-
};
|
|
322
|
-
/**
|
|
323
|
-
* @nullable
|
|
324
|
-
*/
|
|
325
|
-
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
326
|
-
/**
|
|
327
|
-
* The root domain name
|
|
328
|
-
* @nullable
|
|
329
|
-
*/
|
|
330
|
-
base_domain?: string | null;
|
|
331
|
-
/**
|
|
332
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
333
|
-
* @nullable
|
|
334
|
-
*/
|
|
335
|
-
domain?: string | null;
|
|
336
|
-
/**
|
|
337
|
-
* The current pending_url's HAL Domain ID
|
|
338
|
-
* @nullable
|
|
339
|
-
*/
|
|
340
|
-
domain_id?: number | null;
|
|
341
|
-
/** @nullable */
|
|
342
|
-
error?: string | null;
|
|
343
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
344
|
-
is_temp?: boolean;
|
|
345
|
-
/**
|
|
346
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
347
|
-
* @nullable
|
|
348
|
-
*/
|
|
349
|
-
job_failed?: boolean | null;
|
|
350
|
-
/** @nullable */
|
|
351
|
-
stage?: string | null;
|
|
352
|
-
/**
|
|
353
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
354
|
-
* @nullable
|
|
355
|
-
*/
|
|
356
|
-
wp_session?: string | null;
|
|
357
|
-
} | null;
|
|
358
|
-
/**
|
|
359
|
-
* Job ids for the site
|
|
360
|
-
* @nullable
|
|
361
|
-
*/
|
|
362
|
-
export declare type SitesListV2200ItemsItemJobs = {
|
|
363
|
-
[key: string]: unknown;
|
|
364
|
-
} | null;
|
|
365
297
|
export declare type SitesListV2200ItemsItem = {
|
|
366
298
|
/** @nullable */
|
|
367
299
|
account_back_ref?: string | null;
|
|
@@ -440,6 +372,74 @@ export declare type SitesListV2200ItemsItem = {
|
|
|
440
372
|
*/
|
|
441
373
|
version_ptr?: string | null;
|
|
442
374
|
};
|
|
375
|
+
export declare type SitesListV2200 = {
|
|
376
|
+
items?: SitesListV2200ItemsItem[];
|
|
377
|
+
/** page size */
|
|
378
|
+
limit?: number;
|
|
379
|
+
/** current page number */
|
|
380
|
+
page?: number;
|
|
381
|
+
/** total number of pages */
|
|
382
|
+
pages?: number;
|
|
383
|
+
/** total number of sites returned */
|
|
384
|
+
total?: number;
|
|
385
|
+
};
|
|
386
|
+
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
387
|
+
/** @nullable */
|
|
388
|
+
available?: number | null;
|
|
389
|
+
/** @nullable */
|
|
390
|
+
total?: number | null;
|
|
391
|
+
unit?: string;
|
|
392
|
+
/** @nullable */
|
|
393
|
+
used?: number | null;
|
|
394
|
+
};
|
|
395
|
+
export declare type SitesListV2200ItemsItemResources = {
|
|
396
|
+
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
397
|
+
/** @nullable */
|
|
398
|
+
workers?: number | null;
|
|
399
|
+
};
|
|
400
|
+
/**
|
|
401
|
+
* @nullable
|
|
402
|
+
*/
|
|
403
|
+
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
404
|
+
/**
|
|
405
|
+
* The root domain name
|
|
406
|
+
* @nullable
|
|
407
|
+
*/
|
|
408
|
+
base_domain?: string | null;
|
|
409
|
+
/**
|
|
410
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
411
|
+
* @nullable
|
|
412
|
+
*/
|
|
413
|
+
domain?: string | null;
|
|
414
|
+
/**
|
|
415
|
+
* The current pending_url's HAL Domain ID
|
|
416
|
+
* @nullable
|
|
417
|
+
*/
|
|
418
|
+
domain_id?: number | null;
|
|
419
|
+
/** @nullable */
|
|
420
|
+
error?: string | null;
|
|
421
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
422
|
+
is_temp?: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
425
|
+
* @nullable
|
|
426
|
+
*/
|
|
427
|
+
job_failed?: boolean | null;
|
|
428
|
+
/** @nullable */
|
|
429
|
+
stage?: string | null;
|
|
430
|
+
/**
|
|
431
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
432
|
+
* @nullable
|
|
433
|
+
*/
|
|
434
|
+
wp_session?: string | null;
|
|
435
|
+
} | null;
|
|
436
|
+
/**
|
|
437
|
+
* Job ids for the site
|
|
438
|
+
* @nullable
|
|
439
|
+
*/
|
|
440
|
+
export declare type SitesListV2200ItemsItemJobs = {
|
|
441
|
+
[key: string]: unknown;
|
|
442
|
+
} | null;
|
|
443
443
|
export declare type SshKeyV2200 = {
|
|
444
444
|
deleted?: number;
|
|
445
445
|
key_name?: string;
|
|
@@ -814,6 +814,8 @@ export declare type BackupRestoreV2Body = {
|
|
|
814
814
|
restore_type?: string;
|
|
815
815
|
/** Site id */
|
|
816
816
|
site_id?: number;
|
|
817
|
+
/** Snapshot date */
|
|
818
|
+
snapshot_date?: number;
|
|
817
819
|
};
|
|
818
820
|
export declare type BackupListV2200BackupsItem = {
|
|
819
821
|
backup_creation_time?: string;
|
|
@@ -837,6 +839,8 @@ export declare type BackupDownloadV2Body = {
|
|
|
837
839
|
dbs?: string[];
|
|
838
840
|
/** Site id */
|
|
839
841
|
site_id?: number;
|
|
842
|
+
/** Snapshot date */
|
|
843
|
+
snapshot_date?: number;
|
|
840
844
|
};
|
|
841
845
|
export declare type BackupCreateV2200 = {
|
|
842
846
|
message?: string;
|
|
@@ -1384,6 +1388,18 @@ export declare type SitesMetricDimensions200DimensionsPageIsCachedItem = {
|
|
|
1384
1388
|
dimension?: SitesMetricDimensions200DimensionsPageIsCachedItemDimension;
|
|
1385
1389
|
timestamp?: number;
|
|
1386
1390
|
};
|
|
1391
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
1392
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1393
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1394
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1395
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1396
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1397
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1398
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1399
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1400
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1401
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1402
|
+
};
|
|
1387
1403
|
export declare type SitesMetricDimensions200DimensionsHttpVersionItemDimension = {
|
|
1388
1404
|
[key: string]: number;
|
|
1389
1405
|
};
|
|
@@ -1412,18 +1428,6 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
|
|
|
1412
1428
|
dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
|
|
1413
1429
|
timestamp?: number;
|
|
1414
1430
|
};
|
|
1415
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
1416
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1417
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1418
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1419
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1420
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1421
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1422
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1423
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1424
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1425
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1426
|
-
};
|
|
1427
1431
|
export declare type SitesMetricDimensionsParams = {
|
|
1428
1432
|
start?: string;
|
|
1429
1433
|
end?: string;
|
|
@@ -1832,15 +1836,10 @@ export declare type SitesAtomicMetrics200 = {
|
|
|
1832
1836
|
raw?: SitesAtomicMetrics200Raw;
|
|
1833
1837
|
views?: SitesAtomicMetrics200Views;
|
|
1834
1838
|
};
|
|
1835
|
-
export declare type SitesAtomicMetrics200RawPeriodsItemDimension = {
|
|
1836
|
-
[key: string]: string | number | number;
|
|
1837
|
-
};
|
|
1838
1839
|
export declare type SitesAtomicMetrics200RawPeriodsItem = {
|
|
1839
1840
|
dimension: SitesAtomicMetrics200RawPeriodsItemDimension;
|
|
1840
1841
|
timestamp: number;
|
|
1841
1842
|
};
|
|
1842
|
-
export declare type SitesAtomicMetrics200RawMetric = string | string[];
|
|
1843
|
-
export declare type SitesAtomicMetrics200RawDimension = string | string[];
|
|
1844
1843
|
export declare type SitesAtomicMetrics200Raw = {
|
|
1845
1844
|
date_end?: string;
|
|
1846
1845
|
date_start?: string;
|
|
@@ -1849,6 +1848,11 @@ export declare type SitesAtomicMetrics200Raw = {
|
|
|
1849
1848
|
periods?: SitesAtomicMetrics200RawPeriodsItem[];
|
|
1850
1849
|
resolution?: number;
|
|
1851
1850
|
};
|
|
1851
|
+
export declare type SitesAtomicMetrics200RawPeriodsItemDimension = {
|
|
1852
|
+
[key: string]: string | number | number;
|
|
1853
|
+
};
|
|
1854
|
+
export declare type SitesAtomicMetrics200RawMetric = string | string[];
|
|
1855
|
+
export declare type SitesAtomicMetrics200RawDimension = string | string[];
|
|
1852
1856
|
export declare type SitesAtomicMetricsParams = {
|
|
1853
1857
|
metric?: string[];
|
|
1854
1858
|
dimension?: string[];
|
|
@@ -2410,9 +2414,6 @@ export declare type HostingRedirects200Item = {
|
|
|
2410
2414
|
url?: string;
|
|
2411
2415
|
wildcard?: boolean;
|
|
2412
2416
|
};
|
|
2413
|
-
export declare type ProductLicenseDetails200 = {
|
|
2414
|
-
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
2415
|
-
};
|
|
2416
2417
|
export declare type ProductLicenseDetails200WpsolutionCreatorItem = {
|
|
2417
2418
|
expirationDate?: string;
|
|
2418
2419
|
prodInstId?: string;
|
|
@@ -2424,6 +2425,10 @@ export declare type ProductLicenseDetails200WpsolutionCommerceItem = {
|
|
|
2424
2425
|
export declare type ProductLicenseDetails200Wpsolution = {
|
|
2425
2426
|
commerce?: ProductLicenseDetails200WpsolutionCommerceItem[];
|
|
2426
2427
|
creator?: ProductLicenseDetails200WpsolutionCreatorItem[];
|
|
2428
|
+
total?: number;
|
|
2429
|
+
};
|
|
2430
|
+
export declare type ProductLicenseDetails200 = {
|
|
2431
|
+
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
2427
2432
|
};
|
|
2428
2433
|
export declare type ProductLicenseDetailsProductName = typeof ProductLicenseDetailsProductName[keyof typeof ProductLicenseDetailsProductName];
|
|
2429
2434
|
export declare const ProductLicenseDetailsProductName: {
|
|
@@ -2522,6 +2527,10 @@ export declare type HostingMigrationStatus200 = {
|
|
|
2522
2527
|
export declare type HostingLead400 = {
|
|
2523
2528
|
[key: string]: unknown;
|
|
2524
2529
|
};
|
|
2530
|
+
export declare type HostingLead200ResponseItemData = {
|
|
2531
|
+
leadId?: string;
|
|
2532
|
+
message?: string;
|
|
2533
|
+
};
|
|
2525
2534
|
export declare type HostingLead200ResponseItem = {
|
|
2526
2535
|
clientRequestId?: string;
|
|
2527
2536
|
data?: HostingLead200ResponseItemData;
|
|
@@ -2536,10 +2545,6 @@ export declare type HostingLead200ResponseItem = {
|
|
|
2536
2545
|
export declare type HostingLead200 = {
|
|
2537
2546
|
response?: HostingLead200ResponseItem[];
|
|
2538
2547
|
} | null;
|
|
2539
|
-
export declare type HostingLead200ResponseItemData = {
|
|
2540
|
-
leadId?: string;
|
|
2541
|
-
message?: string;
|
|
2542
|
-
};
|
|
2543
2548
|
export declare type HostingLeadParams = {
|
|
2544
2549
|
phone?: string;
|
|
2545
2550
|
};
|
|
@@ -2910,14 +2915,10 @@ export declare type HostingEmailSettingsBody = {
|
|
|
2910
2915
|
/** Whether to toggle utf8 folder usage on or off - SYSTEM ONLY */
|
|
2911
2916
|
utf8_folders?: HostingEmailSettingsBodyUtf8Folders;
|
|
2912
2917
|
};
|
|
2913
|
-
export declare type
|
|
2914
|
-
/** Customer error code */
|
|
2915
|
-
error?: string;
|
|
2916
|
-
};
|
|
2917
|
-
export declare type HostingEmailForwarderDelete200 = {
|
|
2918
|
+
export declare type HostingEmailForwardDelete200 = {
|
|
2918
2919
|
[key: string]: unknown;
|
|
2919
2920
|
};
|
|
2920
|
-
export declare type
|
|
2921
|
+
export declare type HostingEmailForwardDeleteParams = {
|
|
2921
2922
|
/**
|
|
2922
2923
|
* The source address or domain of the forwarder to be deleted
|
|
2923
2924
|
*/
|
|
@@ -2955,21 +2956,22 @@ export declare const HostingEmailForwarderAddBodyType: {
|
|
|
2955
2956
|
readonly domain: "domain";
|
|
2956
2957
|
};
|
|
2957
2958
|
/**
|
|
2958
|
-
* The type of forwarder destination (defaults to '
|
|
2959
|
+
* The type of forwarder destination (defaults to 'forward')
|
|
2959
2960
|
*/
|
|
2960
2961
|
export declare type HostingEmailForwarderAddBodyDestinationType = typeof HostingEmailForwarderAddBodyDestinationType[keyof typeof HostingEmailForwarderAddBodyDestinationType];
|
|
2961
2962
|
export declare const HostingEmailForwarderAddBodyDestinationType: {
|
|
2962
|
-
readonly
|
|
2963
|
+
readonly domainalias: "domainalias";
|
|
2964
|
+
readonly alias: "alias";
|
|
2965
|
+
readonly alias_unknown: "alias_unknown";
|
|
2963
2966
|
readonly discard: "discard";
|
|
2964
|
-
readonly
|
|
2965
|
-
readonly email: "email";
|
|
2967
|
+
readonly forward: "forward";
|
|
2966
2968
|
readonly pipe: "pipe";
|
|
2967
|
-
readonly
|
|
2969
|
+
readonly system_forward: "system_forward";
|
|
2968
2970
|
};
|
|
2969
2971
|
export declare type HostingEmailForwarderAddBody = {
|
|
2970
|
-
/** The
|
|
2971
|
-
destination
|
|
2972
|
-
/** The type of forwarder destination (defaults to '
|
|
2972
|
+
/** The destination email address where emails should be forwarded to */
|
|
2973
|
+
destination: string;
|
|
2974
|
+
/** The type of forwarder destination (defaults to 'forward') */
|
|
2973
2975
|
destination_type: HostingEmailForwarderAddBodyDestinationType;
|
|
2974
2976
|
/** The source (email address or domain) of the forwarder being added */
|
|
2975
2977
|
source: string;
|
|
@@ -3939,31 +3941,6 @@ export declare type ActivityLog200 = {
|
|
|
3939
3941
|
export declare type ActivityLogParams = {
|
|
3940
3942
|
days?: number;
|
|
3941
3943
|
};
|
|
3942
|
-
export declare type HostingAccount200ResourcesWorkers = {
|
|
3943
|
-
/** @nullable */
|
|
3944
|
-
available?: number | null;
|
|
3945
|
-
/** @nullable */
|
|
3946
|
-
total?: number | null;
|
|
3947
|
-
/** @nullable */
|
|
3948
|
-
used?: number | null;
|
|
3949
|
-
};
|
|
3950
|
-
export declare type HostingAccount200ResourcesStorage = {
|
|
3951
|
-
/** @nullable */
|
|
3952
|
-
available?: number | null;
|
|
3953
|
-
/** @nullable */
|
|
3954
|
-
total?: number | null;
|
|
3955
|
-
unit?: string;
|
|
3956
|
-
/** @nullable */
|
|
3957
|
-
used?: number | null;
|
|
3958
|
-
};
|
|
3959
|
-
/**
|
|
3960
|
-
* @nullable
|
|
3961
|
-
*/
|
|
3962
|
-
export declare type HostingAccount200Resources = {
|
|
3963
|
-
staging?: HostingAccount200ResourcesStaging;
|
|
3964
|
-
storage?: HostingAccount200ResourcesStorage;
|
|
3965
|
-
workers?: HostingAccount200ResourcesWorkers;
|
|
3966
|
-
} | null;
|
|
3967
3944
|
export declare type HostingAccount200 = {
|
|
3968
3945
|
account_id?: string;
|
|
3969
3946
|
advanced?: boolean;
|
|
@@ -3981,6 +3958,23 @@ export declare type HostingAccount200 = {
|
|
|
3981
3958
|
type?: string;
|
|
3982
3959
|
username?: string;
|
|
3983
3960
|
};
|
|
3961
|
+
export declare type HostingAccount200ResourcesWorkers = {
|
|
3962
|
+
/** @nullable */
|
|
3963
|
+
available?: number | null;
|
|
3964
|
+
/** @nullable */
|
|
3965
|
+
total?: number | null;
|
|
3966
|
+
/** @nullable */
|
|
3967
|
+
used?: number | null;
|
|
3968
|
+
};
|
|
3969
|
+
export declare type HostingAccount200ResourcesStorage = {
|
|
3970
|
+
/** @nullable */
|
|
3971
|
+
available?: number | null;
|
|
3972
|
+
/** @nullable */
|
|
3973
|
+
total?: number | null;
|
|
3974
|
+
unit?: string;
|
|
3975
|
+
/** @nullable */
|
|
3976
|
+
used?: number | null;
|
|
3977
|
+
};
|
|
3984
3978
|
export declare type HostingAccount200ResourcesStagingWorkers = {
|
|
3985
3979
|
/** @nullable */
|
|
3986
3980
|
available?: number | null;
|
|
@@ -4002,6 +3996,14 @@ export declare type HostingAccount200ResourcesStaging = {
|
|
|
4002
3996
|
storage?: HostingAccount200ResourcesStagingStorage;
|
|
4003
3997
|
workers?: HostingAccount200ResourcesStagingWorkers;
|
|
4004
3998
|
};
|
|
3999
|
+
/**
|
|
4000
|
+
* @nullable
|
|
4001
|
+
*/
|
|
4002
|
+
export declare type HostingAccount200Resources = {
|
|
4003
|
+
staging?: HostingAccount200ResourcesStaging;
|
|
4004
|
+
storage?: HostingAccount200ResourcesStorage;
|
|
4005
|
+
workers?: HostingAccount200ResourcesWorkers;
|
|
4006
|
+
} | null;
|
|
4005
4007
|
export declare type HostingAccount200Billing = {
|
|
4006
4008
|
prod_code?: string;
|
|
4007
4009
|
product_name?: string;
|
|
@@ -4358,10 +4360,26 @@ export declare type AddonsInfo200 = {
|
|
|
4358
4360
|
export declare type AddonsCloudflare200 = {
|
|
4359
4361
|
status?: string;
|
|
4360
4362
|
};
|
|
4363
|
+
export declare type BackupMeta200SiteCbsDownloadablesItem = {
|
|
4364
|
+
/** @nullable */
|
|
4365
|
+
snapshot_date?: number | null;
|
|
4366
|
+
/** @nullable */
|
|
4367
|
+
time_req_completed?: number | null;
|
|
4368
|
+
/** @nullable */
|
|
4369
|
+
tracking_id?: number | null;
|
|
4370
|
+
/** @nullable */
|
|
4371
|
+
type?: string | null;
|
|
4372
|
+
/** @nullable */
|
|
4373
|
+
url?: string | null;
|
|
4374
|
+
};
|
|
4375
|
+
export declare type BackupMeta200Site = {
|
|
4376
|
+
/** @nullable */
|
|
4377
|
+
cbs_downloadables?: BackupMeta200SiteCbsDownloadablesItem[] | null;
|
|
4378
|
+
};
|
|
4361
4379
|
/**
|
|
4362
4380
|
* @nullable
|
|
4363
4381
|
*/
|
|
4364
|
-
export declare type
|
|
4382
|
+
export declare type BackupMeta200AccountCbsEventProcessing = {
|
|
4365
4383
|
/** @nullable */
|
|
4366
4384
|
action?: string | null;
|
|
4367
4385
|
/** @nullable */
|
|
@@ -4369,7 +4387,7 @@ export declare type BackupMeta200CbsEventProcessing = {
|
|
|
4369
4387
|
/** @nullable */
|
|
4370
4388
|
type?: string | null;
|
|
4371
4389
|
} | null;
|
|
4372
|
-
export declare type
|
|
4390
|
+
export declare type BackupMeta200AccountCbsDownloadablesItem = {
|
|
4373
4391
|
/** @nullable */
|
|
4374
4392
|
id?: string | null;
|
|
4375
4393
|
/** @nullable */
|
|
@@ -4379,14 +4397,21 @@ export declare type BackupMeta200CbsDownloadablesItem = {
|
|
|
4379
4397
|
/** @nullable */
|
|
4380
4398
|
url?: string | null;
|
|
4381
4399
|
};
|
|
4382
|
-
export declare type
|
|
4400
|
+
export declare type BackupMeta200Account = {
|
|
4383
4401
|
/** @nullable */
|
|
4384
|
-
cbs_downloadables?:
|
|
4402
|
+
cbs_downloadables?: BackupMeta200AccountCbsDownloadablesItem[] | null;
|
|
4385
4403
|
/** @nullable */
|
|
4386
|
-
cbs_event_processing?:
|
|
4404
|
+
cbs_event_processing?: BackupMeta200AccountCbsEventProcessing;
|
|
4387
4405
|
/** @nullable */
|
|
4388
4406
|
cbs_last_restore_timestamp?: string | null;
|
|
4389
4407
|
};
|
|
4408
|
+
export declare type BackupMeta200 = {
|
|
4409
|
+
account?: BackupMeta200Account;
|
|
4410
|
+
site?: BackupMeta200Site;
|
|
4411
|
+
};
|
|
4412
|
+
export declare type BackupMetaParams = {
|
|
4413
|
+
site_id?: number;
|
|
4414
|
+
};
|
|
4390
4415
|
export declare type BackupList200HomeItemBackupStatus = {
|
|
4391
4416
|
/** @nullable */
|
|
4392
4417
|
download_url?: string | null;
|
package/src/index.schemas.js
CHANGED
|
@@ -211,12 +211,13 @@ export const HostingEmailForwarderAddBodyType = {
|
|
|
211
211
|
};
|
|
212
212
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
213
213
|
export const HostingEmailForwarderAddBodyDestinationType = {
|
|
214
|
-
|
|
214
|
+
domainalias: 'domainalias',
|
|
215
|
+
alias: 'alias',
|
|
216
|
+
alias_unknown: 'alias_unknown',
|
|
215
217
|
discard: 'discard',
|
|
216
|
-
|
|
217
|
-
email: 'email',
|
|
218
|
+
forward: 'forward',
|
|
218
219
|
pipe: 'pipe',
|
|
219
|
-
|
|
220
|
+
system_forward: 'system_forward',
|
|
220
221
|
};
|
|
221
222
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
222
223
|
export const HostingEmailForwardersListType = {
|