@newfold/huapi-js 2.1251.0 → 2.1261.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 +98 -4
- package/src/index.js +71 -1
- package/src/index.msw.d.ts +7 -1
- package/src/index.msw.js +38 -2
- package/src/index.schemas.d.ts +174 -108
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 { 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, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, 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, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, 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, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, HostingAccount200, HostingAddons200, HostingAddonsParams, 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, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, 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, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { 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, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, 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, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, 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, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, HostingAccount200, HostingAddons200, HostingAddonsParams, 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, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, 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
|
/**
|
|
@@ -2968,6 +2968,100 @@ export declare const useHostingFtp: <TError = AxiosError<unknown, any>, TContext
|
|
|
2968
2968
|
hostingId: number;
|
|
2969
2969
|
data: HostingFtpBody;
|
|
2970
2970
|
}, TContext>;
|
|
2971
|
+
/**
|
|
2972
|
+
* Hotlink configuration details
|
|
2973
|
+
* @summary Hotlink configuration details
|
|
2974
|
+
*/
|
|
2975
|
+
export declare const hotlinkconfigDetails: (hostingId: string, params: HotlinkconfigDetailsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HotlinkconfigDetails200>>;
|
|
2976
|
+
export declare const getHotlinkconfigDetailsQueryKey: (hostingId: string, params: HotlinkconfigDetailsParams) => readonly [`/v1/hosting/${string}/hotlinkconfig`, ...HotlinkconfigDetailsParams[]];
|
|
2977
|
+
export declare const getHotlinkconfigDetailsQueryOptions: <TData = AxiosResponse<HotlinkconfigDetails200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params: HotlinkconfigDetailsParams, options?: {
|
|
2978
|
+
query?: Partial<UseQueryOptions<AxiosResponse<HotlinkconfigDetails200, any>, TError, TData, QueryKey>> | undefined;
|
|
2979
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2980
|
+
} | undefined) => UseQueryOptions<AxiosResponse<HotlinkconfigDetails200, any>, TError, TData, QueryKey> & {
|
|
2981
|
+
queryKey: QueryKey;
|
|
2982
|
+
};
|
|
2983
|
+
export declare type HotlinkconfigDetailsQueryResult = NonNullable<Awaited<ReturnType<typeof hotlinkconfigDetails>>>;
|
|
2984
|
+
export declare type HotlinkconfigDetailsQueryError = AxiosError<unknown>;
|
|
2985
|
+
export declare function useHotlinkconfigDetails<TData = Awaited<ReturnType<typeof hotlinkconfigDetails>>, TError = AxiosError<unknown>>(hostingId: string, params: HotlinkconfigDetailsParams, options: {
|
|
2986
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hotlinkconfigDetails>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hotlinkconfigDetails>>, TError, TData>, 'initialData'>;
|
|
2987
|
+
axios?: AxiosRequestConfig;
|
|
2988
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
2989
|
+
queryKey: QueryKey;
|
|
2990
|
+
};
|
|
2991
|
+
export declare function useHotlinkconfigDetails<TData = Awaited<ReturnType<typeof hotlinkconfigDetails>>, TError = AxiosError<unknown>>(hostingId: string, params: HotlinkconfigDetailsParams, options?: {
|
|
2992
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hotlinkconfigDetails>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hotlinkconfigDetails>>, TError, TData>, 'initialData'>;
|
|
2993
|
+
axios?: AxiosRequestConfig;
|
|
2994
|
+
}): UseQueryResult<TData, TError> & {
|
|
2995
|
+
queryKey: QueryKey;
|
|
2996
|
+
};
|
|
2997
|
+
export declare function useHotlinkconfigDetails<TData = Awaited<ReturnType<typeof hotlinkconfigDetails>>, TError = AxiosError<unknown>>(hostingId: string, params: HotlinkconfigDetailsParams, options?: {
|
|
2998
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hotlinkconfigDetails>>, TError, TData>>;
|
|
2999
|
+
axios?: AxiosRequestConfig;
|
|
3000
|
+
}): UseQueryResult<TData, TError> & {
|
|
3001
|
+
queryKey: QueryKey;
|
|
3002
|
+
};
|
|
3003
|
+
/**
|
|
3004
|
+
* Add/Update hotlink configuration
|
|
3005
|
+
* @summary Add/Update hotlink configuration
|
|
3006
|
+
*/
|
|
3007
|
+
export declare const hotlinkconfigAdd: (hostingId: string, hotlinkconfigAddBody: HotlinkconfigAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HotlinkconfigAdd200>>;
|
|
3008
|
+
export declare const getHotlinkconfigAddMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3009
|
+
mutation?: UseMutationOptions<AxiosResponse<HotlinkconfigAdd200, any>, TError, {
|
|
3010
|
+
hostingId: string;
|
|
3011
|
+
data: HotlinkconfigAddBody;
|
|
3012
|
+
}, TContext> | undefined;
|
|
3013
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3014
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HotlinkconfigAdd200, any>, TError, {
|
|
3015
|
+
hostingId: string;
|
|
3016
|
+
data: HotlinkconfigAddBody;
|
|
3017
|
+
}, TContext>;
|
|
3018
|
+
export declare type HotlinkconfigAddMutationResult = NonNullable<Awaited<ReturnType<typeof hotlinkconfigAdd>>>;
|
|
3019
|
+
export declare type HotlinkconfigAddMutationBody = HotlinkconfigAddBody;
|
|
3020
|
+
export declare type HotlinkconfigAddMutationError = AxiosError<unknown>;
|
|
3021
|
+
/**
|
|
3022
|
+
* @summary Add/Update hotlink configuration
|
|
3023
|
+
*/
|
|
3024
|
+
export declare const useHotlinkconfigAdd: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3025
|
+
mutation?: UseMutationOptions<AxiosResponse<HotlinkconfigAdd200, any>, TError, {
|
|
3026
|
+
hostingId: string;
|
|
3027
|
+
data: HotlinkconfigAddBody;
|
|
3028
|
+
}, TContext> | undefined;
|
|
3029
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3030
|
+
} | undefined) => UseMutationResult<AxiosResponse<HotlinkconfigAdd200, any>, TError, {
|
|
3031
|
+
hostingId: string;
|
|
3032
|
+
data: HotlinkconfigAddBody;
|
|
3033
|
+
}, TContext>;
|
|
3034
|
+
/**
|
|
3035
|
+
* Delete hotlink configuration
|
|
3036
|
+
* @summary Delete hotlink configuration
|
|
3037
|
+
*/
|
|
3038
|
+
export declare const hotlinkconfigDelete: (hostingId: string, hotlinkconfigDeleteBody: HotlinkconfigDeleteBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HotlinkconfigDelete200>>;
|
|
3039
|
+
export declare const getHotlinkconfigDeleteMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3040
|
+
mutation?: UseMutationOptions<AxiosResponse<HotlinkconfigDelete200, any>, TError, {
|
|
3041
|
+
hostingId: string;
|
|
3042
|
+
data: HotlinkconfigDeleteBody;
|
|
3043
|
+
}, TContext> | undefined;
|
|
3044
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3045
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HotlinkconfigDelete200, any>, TError, {
|
|
3046
|
+
hostingId: string;
|
|
3047
|
+
data: HotlinkconfigDeleteBody;
|
|
3048
|
+
}, TContext>;
|
|
3049
|
+
export declare type HotlinkconfigDeleteMutationResult = NonNullable<Awaited<ReturnType<typeof hotlinkconfigDelete>>>;
|
|
3050
|
+
export declare type HotlinkconfigDeleteMutationBody = HotlinkconfigDeleteBody;
|
|
3051
|
+
export declare type HotlinkconfigDeleteMutationError = AxiosError<unknown>;
|
|
3052
|
+
/**
|
|
3053
|
+
* @summary Delete hotlink configuration
|
|
3054
|
+
*/
|
|
3055
|
+
export declare const useHotlinkconfigDelete: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3056
|
+
mutation?: UseMutationOptions<AxiosResponse<HotlinkconfigDelete200, any>, TError, {
|
|
3057
|
+
hostingId: string;
|
|
3058
|
+
data: HotlinkconfigDeleteBody;
|
|
3059
|
+
}, TContext> | undefined;
|
|
3060
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3061
|
+
} | undefined) => UseMutationResult<AxiosResponse<HotlinkconfigDelete200, any>, TError, {
|
|
3062
|
+
hostingId: string;
|
|
3063
|
+
data: HotlinkconfigDeleteBody;
|
|
3064
|
+
}, TContext>;
|
|
2971
3065
|
/**
|
|
2972
3066
|
* List indexed files/folders
|
|
2973
3067
|
* @summary List indexed files/folders
|
|
@@ -5925,7 +6019,7 @@ export declare function useSitesSso<TData = Awaited<ReturnType<typeof sitesSso>>
|
|
|
5925
6019
|
* @summary Staging site promotion
|
|
5926
6020
|
*/
|
|
5927
6021
|
export declare const stagingSitePromote: (siteId: number, stagingSitePromoteBody: StagingSitePromoteBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<StagingSitePromote200>>;
|
|
5928
|
-
export declare const getStagingSitePromoteMutationOptions: <TError = AxiosError<
|
|
6022
|
+
export declare const getStagingSitePromoteMutationOptions: <TError = AxiosError<StagingSitePromote409, any>, TContext = unknown>(options?: {
|
|
5929
6023
|
mutation?: UseMutationOptions<AxiosResponse<StagingSitePromote200, any>, TError, {
|
|
5930
6024
|
siteId: number;
|
|
5931
6025
|
data: StagingSitePromoteBody;
|
|
@@ -5937,11 +6031,11 @@ export declare const getStagingSitePromoteMutationOptions: <TError = AxiosError<
|
|
|
5937
6031
|
}, TContext>;
|
|
5938
6032
|
export declare type StagingSitePromoteMutationResult = NonNullable<Awaited<ReturnType<typeof stagingSitePromote>>>;
|
|
5939
6033
|
export declare type StagingSitePromoteMutationBody = StagingSitePromoteBody;
|
|
5940
|
-
export declare type StagingSitePromoteMutationError = AxiosError<
|
|
6034
|
+
export declare type StagingSitePromoteMutationError = AxiosError<StagingSitePromote409>;
|
|
5941
6035
|
/**
|
|
5942
6036
|
* @summary Staging site promotion
|
|
5943
6037
|
*/
|
|
5944
|
-
export declare const useStagingSitePromote: <TError = AxiosError<
|
|
6038
|
+
export declare const useStagingSitePromote: <TError = AxiosError<StagingSitePromote409, any>, TContext = unknown>(options?: {
|
|
5945
6039
|
mutation?: UseMutationOptions<AxiosResponse<StagingSitePromote200, any>, TError, {
|
|
5946
6040
|
siteId: number;
|
|
5947
6041
|
data: StagingSitePromoteBody;
|
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.1261.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -2283,6 +2283,76 @@ export const useHostingFtp = (options) => {
|
|
|
2283
2283
|
const mutationOptions = getHostingFtpMutationOptions(options);
|
|
2284
2284
|
return useMutation(mutationOptions);
|
|
2285
2285
|
};
|
|
2286
|
+
/**
|
|
2287
|
+
* Hotlink configuration details
|
|
2288
|
+
* @summary Hotlink configuration details
|
|
2289
|
+
*/
|
|
2290
|
+
export const hotlinkconfigDetails = (hostingId, params, options) => {
|
|
2291
|
+
return axios.get(`/v1/hosting/${hostingId}/hotlinkconfig`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
2292
|
+
};
|
|
2293
|
+
export const getHotlinkconfigDetailsQueryKey = (hostingId, params) => {
|
|
2294
|
+
return [`/v1/hosting/${hostingId}/hotlinkconfig`, ...(params ? [params] : [])];
|
|
2295
|
+
};
|
|
2296
|
+
export const getHotlinkconfigDetailsQueryOptions = (hostingId, params, options) => {
|
|
2297
|
+
var _a;
|
|
2298
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2299
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHotlinkconfigDetailsQueryKey(hostingId, params);
|
|
2300
|
+
const queryFn = ({ signal }) => hotlinkconfigDetails(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
2301
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
2302
|
+
};
|
|
2303
|
+
/**
|
|
2304
|
+
* @summary Hotlink configuration details
|
|
2305
|
+
*/
|
|
2306
|
+
export function useHotlinkconfigDetails(hostingId, params, options) {
|
|
2307
|
+
const queryOptions = getHotlinkconfigDetailsQueryOptions(hostingId, params, options);
|
|
2308
|
+
const query = useQuery(queryOptions);
|
|
2309
|
+
query.queryKey = queryOptions.queryKey;
|
|
2310
|
+
return query;
|
|
2311
|
+
}
|
|
2312
|
+
/**
|
|
2313
|
+
* Add/Update hotlink configuration
|
|
2314
|
+
* @summary Add/Update hotlink configuration
|
|
2315
|
+
*/
|
|
2316
|
+
export const hotlinkconfigAdd = (hostingId, hotlinkconfigAddBody, options) => {
|
|
2317
|
+
return axios.post(`/v1/hosting/${hostingId}/hotlinkconfig`, hotlinkconfigAddBody, options);
|
|
2318
|
+
};
|
|
2319
|
+
export const getHotlinkconfigAddMutationOptions = (options) => {
|
|
2320
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2321
|
+
const mutationFn = (props) => {
|
|
2322
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
2323
|
+
return hotlinkconfigAdd(hostingId, data, axiosOptions);
|
|
2324
|
+
};
|
|
2325
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
2326
|
+
};
|
|
2327
|
+
/**
|
|
2328
|
+
* @summary Add/Update hotlink configuration
|
|
2329
|
+
*/
|
|
2330
|
+
export const useHotlinkconfigAdd = (options) => {
|
|
2331
|
+
const mutationOptions = getHotlinkconfigAddMutationOptions(options);
|
|
2332
|
+
return useMutation(mutationOptions);
|
|
2333
|
+
};
|
|
2334
|
+
/**
|
|
2335
|
+
* Delete hotlink configuration
|
|
2336
|
+
* @summary Delete hotlink configuration
|
|
2337
|
+
*/
|
|
2338
|
+
export const hotlinkconfigDelete = (hostingId, hotlinkconfigDeleteBody, options) => {
|
|
2339
|
+
return axios.delete(`/v1/hosting/${hostingId}/hotlinkconfig`, Object.assign({ data: hotlinkconfigDeleteBody }, options));
|
|
2340
|
+
};
|
|
2341
|
+
export const getHotlinkconfigDeleteMutationOptions = (options) => {
|
|
2342
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2343
|
+
const mutationFn = (props) => {
|
|
2344
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
2345
|
+
return hotlinkconfigDelete(hostingId, data, axiosOptions);
|
|
2346
|
+
};
|
|
2347
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
2348
|
+
};
|
|
2349
|
+
/**
|
|
2350
|
+
* @summary Delete hotlink configuration
|
|
2351
|
+
*/
|
|
2352
|
+
export const useHotlinkconfigDelete = (options) => {
|
|
2353
|
+
const mutationOptions = getHotlinkconfigDeleteMutationOptions(options);
|
|
2354
|
+
return useMutation(mutationOptions);
|
|
2355
|
+
};
|
|
2286
2356
|
/**
|
|
2287
2357
|
* List indexed files/folders
|
|
2288
2358
|
* @summary List indexed files/folders
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, Db200, DbAdd200, DbCheckDatabase200, DbList200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, HostingAccount200, HostingAddons200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsCheck200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesV2200, ListIndex200, Privacy200, PrivacyUser200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SitesAccessLogs200, 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';
|
|
2
|
+
import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, Db200, DbAdd200, DbCheckDatabase200, DbList200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, HostingAccount200, HostingAddons200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsCheck200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesV2200, ListIndex200, Privacy200, PrivacyUser200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SitesAccessLogs200, 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;
|
|
@@ -95,6 +95,9 @@ export declare const getHostingFtpListResponseMock: (overrideResponse?: Partial<
|
|
|
95
95
|
export declare const getHostingFtpAddResponseMock: (overrideResponse?: Partial<HostingFtpAdd200>) => HostingFtpAdd200;
|
|
96
96
|
export declare const getHostingFtpUpdateResponseMock: (overrideResponse?: Partial<HostingFtpUpdate200>) => HostingFtpUpdate200;
|
|
97
97
|
export declare const getHostingFtpResponseMock: (overrideResponse?: Partial<HostingFtp200>) => HostingFtp200;
|
|
98
|
+
export declare const getHotlinkconfigDetailsResponseMock: (overrideResponse?: Partial<HotlinkconfigDetails200>) => HotlinkconfigDetails200;
|
|
99
|
+
export declare const getHotlinkconfigAddResponseMock: (overrideResponse?: Partial<HotlinkconfigAdd200>) => HotlinkconfigAdd200;
|
|
100
|
+
export declare const getHotlinkconfigDeleteResponseMock: (overrideResponse?: Partial<HotlinkconfigDelete200>) => HotlinkconfigDelete200;
|
|
98
101
|
export declare const getListIndexResponseMock: (overrideResponse?: Partial<ListIndex200>) => ListIndex200;
|
|
99
102
|
export declare const getAddIndexResponseMock: (overrideResponse?: Partial<AddIndex200>) => AddIndex200;
|
|
100
103
|
export declare const getIndexResponseMock: (overrideResponse?: Partial<Index200>) => Index200;
|
|
@@ -310,6 +313,9 @@ export declare const getHostingFtpListMockHandler: (overrideResponse?: HostingFt
|
|
|
310
313
|
export declare const getHostingFtpAddMockHandler: (overrideResponse?: HostingFtpAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingFtpAdd200> | HostingFtpAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
311
314
|
export declare const getHostingFtpUpdateMockHandler: (overrideResponse?: HostingFtpUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingFtpUpdate200> | HostingFtpUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
312
315
|
export declare const getHostingFtpMockHandler: (overrideResponse?: HostingFtp200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingFtp200> | HostingFtp200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
316
|
+
export declare const getHotlinkconfigDetailsMockHandler: (overrideResponse?: HotlinkconfigDetails200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HotlinkconfigDetails200> | HotlinkconfigDetails200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
317
|
+
export declare const getHotlinkconfigAddMockHandler: (overrideResponse?: HotlinkconfigAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HotlinkconfigAdd200> | HotlinkconfigAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
318
|
+
export declare const getHotlinkconfigDeleteMockHandler: (overrideResponse?: HotlinkconfigDelete200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HotlinkconfigDelete200> | HotlinkconfigDelete200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
313
319
|
export declare const getListIndexMockHandler: (overrideResponse?: ListIndex200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ListIndex200> | ListIndex200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
314
320
|
export declare const getAddIndexMockHandler: (overrideResponse?: AddIndex200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddIndex200> | AddIndex200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
315
321
|
export declare const getIndexMockHandler: (overrideResponse?: Index200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<Index200> | Index200) | 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.1261.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -94,7 +94,7 @@ export const getEditPrivacyResponseMock = (overrideResponse = {}) => (Object.ass
|
|
|
94
94
|
export const getPrivacyUserResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
95
95
|
export const getHostingDomainAssignResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
96
96
|
export const getHostingDomainAvailabilityResponseMock = (overrideResponse = {}) => (Object.assign({ assignable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), assigned: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), assigned_to_this_product: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), can_assign: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), registered: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
97
|
-
export const getDomainsResponseMock = (overrideResponse = {}) => (Object.assign({ domains: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ date_ssl_exp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.word.sample(), domain: faker.word.sample(), id: faker.number.int({ min: undefined, max: undefined }), ssl_issuer: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.word.sample() })) }, overrideResponse));
|
|
97
|
+
export const getDomainsResponseMock = (overrideResponse = {}) => (Object.assign({ domains: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ autogen_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_ssl_exp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.word.sample(), domain: faker.word.sample(), id: faker.number.int({ min: undefined, max: undefined }), ssl_issuer: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.word.sample() })) }, overrideResponse));
|
|
98
98
|
export const getDomainDnsExportResponseMock = (overrideResponse = {}) => (Object.assign({ content: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
99
99
|
export const getDomainDnsImportResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
100
100
|
export const getHostingDomainsUnassignResponseMock = (overrideResponse = {}) => (Object.assign({ queued: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
@@ -105,6 +105,9 @@ export const getHostingFtpListResponseMock = (overrideResponse = {}) => (Object.
|
|
|
105
105
|
export const getHostingFtpAddResponseMock = (overrideResponse = {}) => (Object.assign({ pass: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
106
106
|
export const getHostingFtpUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
107
107
|
export const getHostingFtpResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
108
|
+
export const getHotlinkconfigDetailsResponseMock = (overrideResponse = {}) => (Object.assign({ direct_request: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), file_types: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), protocol_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), redirect_url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
109
|
+
export const getHotlinkconfigAddResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
110
|
+
export const getHotlinkconfigDeleteResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
108
111
|
export const getListIndexResponseMock = (overrideResponse = {}) => (Object.assign({ indexes: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ index_options: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
109
112
|
export const getAddIndexResponseMock = (overrideResponse = {}) => (Object.assign({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
110
113
|
export const getIndexResponseMock = (overrideResponse = {}) => (Object.assign({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
@@ -1195,6 +1198,36 @@ export const getHostingFtpMockHandler = (overrideResponse) => {
|
|
|
1195
1198
|
});
|
|
1196
1199
|
}));
|
|
1197
1200
|
};
|
|
1201
|
+
export const getHotlinkconfigDetailsMockHandler = (overrideResponse) => {
|
|
1202
|
+
return http.get('*/v1/hosting/:hostingId/hotlinkconfig', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1203
|
+
yield delay(1000);
|
|
1204
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1205
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1206
|
+
: getHotlinkconfigDetailsResponseMock()), { status: 200,
|
|
1207
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1208
|
+
});
|
|
1209
|
+
}));
|
|
1210
|
+
};
|
|
1211
|
+
export const getHotlinkconfigAddMockHandler = (overrideResponse) => {
|
|
1212
|
+
return http.post('*/v1/hosting/:hostingId/hotlinkconfig', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1213
|
+
yield delay(1000);
|
|
1214
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1215
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1216
|
+
: getHotlinkconfigAddResponseMock()), { status: 200,
|
|
1217
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1218
|
+
});
|
|
1219
|
+
}));
|
|
1220
|
+
};
|
|
1221
|
+
export const getHotlinkconfigDeleteMockHandler = (overrideResponse) => {
|
|
1222
|
+
return http.delete('*/v1/hosting/:hostingId/hotlinkconfig', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1223
|
+
yield delay(1000);
|
|
1224
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1225
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1226
|
+
: getHotlinkconfigDeleteResponseMock()), { status: 200,
|
|
1227
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1228
|
+
});
|
|
1229
|
+
}));
|
|
1230
|
+
};
|
|
1198
1231
|
export const getListIndexMockHandler = (overrideResponse) => {
|
|
1199
1232
|
return http.get('*/v1/hosting/:hostingId/index', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1200
1233
|
yield delay(1000);
|
|
@@ -2511,6 +2544,9 @@ export const getHostingUAPIMock = () => [
|
|
|
2511
2544
|
getHostingFtpAddMockHandler(),
|
|
2512
2545
|
getHostingFtpUpdateMockHandler(),
|
|
2513
2546
|
getHostingFtpMockHandler(),
|
|
2547
|
+
getHotlinkconfigDetailsMockHandler(),
|
|
2548
|
+
getHotlinkconfigAddMockHandler(),
|
|
2549
|
+
getHotlinkconfigDeleteMockHandler(),
|
|
2514
2550
|
getListIndexMockHandler(),
|
|
2515
2551
|
getAddIndexMockHandler(),
|
|
2516
2552
|
getIndexMockHandler(),
|
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.1261.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -230,63 +230,6 @@ export declare type SitesListV2200ItemsItemStaging = {
|
|
|
230
230
|
/** A list of staging sites of the current site */
|
|
231
231
|
sites?: number[];
|
|
232
232
|
} | null;
|
|
233
|
-
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
234
|
-
/** @nullable */
|
|
235
|
-
available?: number | null;
|
|
236
|
-
/** @nullable */
|
|
237
|
-
total?: number | null;
|
|
238
|
-
unit?: string;
|
|
239
|
-
/** @nullable */
|
|
240
|
-
used?: number | null;
|
|
241
|
-
};
|
|
242
|
-
export declare type SitesListV2200ItemsItemResources = {
|
|
243
|
-
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
244
|
-
/** @nullable */
|
|
245
|
-
workers?: number | null;
|
|
246
|
-
};
|
|
247
|
-
/**
|
|
248
|
-
* @nullable
|
|
249
|
-
*/
|
|
250
|
-
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
251
|
-
/**
|
|
252
|
-
* The root domain name
|
|
253
|
-
* @nullable
|
|
254
|
-
*/
|
|
255
|
-
base_domain?: string | null;
|
|
256
|
-
/**
|
|
257
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
258
|
-
* @nullable
|
|
259
|
-
*/
|
|
260
|
-
domain?: string | null;
|
|
261
|
-
/**
|
|
262
|
-
* The current pending_url's HAL Domain ID
|
|
263
|
-
* @nullable
|
|
264
|
-
*/
|
|
265
|
-
domain_id?: number | null;
|
|
266
|
-
/** @nullable */
|
|
267
|
-
error?: string | null;
|
|
268
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
269
|
-
is_temp?: boolean;
|
|
270
|
-
/**
|
|
271
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
272
|
-
* @nullable
|
|
273
|
-
*/
|
|
274
|
-
job_failed?: boolean | null;
|
|
275
|
-
/** @nullable */
|
|
276
|
-
stage?: string | null;
|
|
277
|
-
/**
|
|
278
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
279
|
-
* @nullable
|
|
280
|
-
*/
|
|
281
|
-
wp_session?: string | null;
|
|
282
|
-
} | null;
|
|
283
|
-
/**
|
|
284
|
-
* Job ids for the site
|
|
285
|
-
* @nullable
|
|
286
|
-
*/
|
|
287
|
-
export declare type SitesListV2200ItemsItemJobs = {
|
|
288
|
-
[key: string]: unknown;
|
|
289
|
-
} | null;
|
|
290
233
|
export declare type SitesListV2200ItemsItem = {
|
|
291
234
|
/** @nullable */
|
|
292
235
|
account_back_ref?: string | null;
|
|
@@ -369,6 +312,63 @@ export declare type SitesListV2200 = {
|
|
|
369
312
|
/** total number of sites returned */
|
|
370
313
|
total?: number;
|
|
371
314
|
};
|
|
315
|
+
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
316
|
+
/** @nullable */
|
|
317
|
+
available?: number | null;
|
|
318
|
+
/** @nullable */
|
|
319
|
+
total?: number | null;
|
|
320
|
+
unit?: string;
|
|
321
|
+
/** @nullable */
|
|
322
|
+
used?: number | null;
|
|
323
|
+
};
|
|
324
|
+
export declare type SitesListV2200ItemsItemResources = {
|
|
325
|
+
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
326
|
+
/** @nullable */
|
|
327
|
+
workers?: number | null;
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* @nullable
|
|
331
|
+
*/
|
|
332
|
+
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
333
|
+
/**
|
|
334
|
+
* The root domain name
|
|
335
|
+
* @nullable
|
|
336
|
+
*/
|
|
337
|
+
base_domain?: string | null;
|
|
338
|
+
/**
|
|
339
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
340
|
+
* @nullable
|
|
341
|
+
*/
|
|
342
|
+
domain?: string | null;
|
|
343
|
+
/**
|
|
344
|
+
* The current pending_url's HAL Domain ID
|
|
345
|
+
* @nullable
|
|
346
|
+
*/
|
|
347
|
+
domain_id?: number | null;
|
|
348
|
+
/** @nullable */
|
|
349
|
+
error?: string | null;
|
|
350
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
351
|
+
is_temp?: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
354
|
+
* @nullable
|
|
355
|
+
*/
|
|
356
|
+
job_failed?: boolean | null;
|
|
357
|
+
/** @nullable */
|
|
358
|
+
stage?: string | null;
|
|
359
|
+
/**
|
|
360
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
361
|
+
* @nullable
|
|
362
|
+
*/
|
|
363
|
+
wp_session?: string | null;
|
|
364
|
+
} | null;
|
|
365
|
+
/**
|
|
366
|
+
* Job ids for the site
|
|
367
|
+
* @nullable
|
|
368
|
+
*/
|
|
369
|
+
export declare type SitesListV2200ItemsItemJobs = {
|
|
370
|
+
[key: string]: unknown;
|
|
371
|
+
} | null;
|
|
372
372
|
export declare type SshKeyV2200 = {
|
|
373
373
|
deleted?: number;
|
|
374
374
|
key_name?: string;
|
|
@@ -459,29 +459,6 @@ export declare type HostingSiteAddV2Body = {
|
|
|
459
459
|
/** Number of PHP workers */
|
|
460
460
|
workers?: number;
|
|
461
461
|
};
|
|
462
|
-
export declare type HostingSitesV2200 = {
|
|
463
|
-
/**
|
|
464
|
-
* Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
|
|
465
|
-
* @nullable
|
|
466
|
-
*/
|
|
467
|
-
available_sites?: number | null;
|
|
468
|
-
items?: HostingSitesV2200ItemsItem[];
|
|
469
|
-
/** page size */
|
|
470
|
-
limit?: number;
|
|
471
|
-
/**
|
|
472
|
-
* Maximum number of sites the customer can have. Null means 'unlimited'.
|
|
473
|
-
* @nullable
|
|
474
|
-
*/
|
|
475
|
-
max_sites?: number | null;
|
|
476
|
-
/** current page number */
|
|
477
|
-
page?: number;
|
|
478
|
-
/** total number of pages */
|
|
479
|
-
pages?: number;
|
|
480
|
-
/** total number of sites returned */
|
|
481
|
-
total?: number;
|
|
482
|
-
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
483
|
-
used_sites?: number;
|
|
484
|
-
};
|
|
485
462
|
/**
|
|
486
463
|
* @nullable
|
|
487
464
|
*/
|
|
@@ -637,6 +614,29 @@ export declare type HostingSitesV2200ItemsItem = {
|
|
|
637
614
|
*/
|
|
638
615
|
version_ptr?: string | null;
|
|
639
616
|
};
|
|
617
|
+
export declare type HostingSitesV2200 = {
|
|
618
|
+
/**
|
|
619
|
+
* Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
|
|
620
|
+
* @nullable
|
|
621
|
+
*/
|
|
622
|
+
available_sites?: number | null;
|
|
623
|
+
items?: HostingSitesV2200ItemsItem[];
|
|
624
|
+
/** page size */
|
|
625
|
+
limit?: number;
|
|
626
|
+
/**
|
|
627
|
+
* Maximum number of sites the customer can have. Null means 'unlimited'.
|
|
628
|
+
* @nullable
|
|
629
|
+
*/
|
|
630
|
+
max_sites?: number | null;
|
|
631
|
+
/** current page number */
|
|
632
|
+
page?: number;
|
|
633
|
+
/** total number of pages */
|
|
634
|
+
pages?: number;
|
|
635
|
+
/** total number of sites returned */
|
|
636
|
+
total?: number;
|
|
637
|
+
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
638
|
+
used_sites?: number;
|
|
639
|
+
};
|
|
640
640
|
export declare type HostingSitesV2Params = {
|
|
641
641
|
limit?: number;
|
|
642
642
|
page?: number;
|
|
@@ -794,6 +794,45 @@ export declare type SiteStatus200 = {
|
|
|
794
794
|
pending_url?: string;
|
|
795
795
|
url?: string;
|
|
796
796
|
};
|
|
797
|
+
export declare type StagingSitePromote409DetailsLimitsItem = {
|
|
798
|
+
/**
|
|
799
|
+
* Respective limit that exceeded.
|
|
800
|
+
* @nullable
|
|
801
|
+
*/
|
|
802
|
+
limit?: string | null;
|
|
803
|
+
/**
|
|
804
|
+
* maximum limit allowed.
|
|
805
|
+
* @nullable
|
|
806
|
+
*/
|
|
807
|
+
max?: string | null;
|
|
808
|
+
/**
|
|
809
|
+
* site Id where the respective limit is exceeded.
|
|
810
|
+
* @nullable
|
|
811
|
+
*/
|
|
812
|
+
site_id?: string | null;
|
|
813
|
+
/**
|
|
814
|
+
* Type of limit exceeded.
|
|
815
|
+
* @nullable
|
|
816
|
+
*/
|
|
817
|
+
type?: string | null;
|
|
818
|
+
/**
|
|
819
|
+
* current usage.
|
|
820
|
+
* @nullable
|
|
821
|
+
*/
|
|
822
|
+
used?: number | null;
|
|
823
|
+
};
|
|
824
|
+
/**
|
|
825
|
+
* @nullable
|
|
826
|
+
*/
|
|
827
|
+
export declare type StagingSitePromote409Details = {
|
|
828
|
+
limits?: StagingSitePromote409DetailsLimitsItem[];
|
|
829
|
+
} | null;
|
|
830
|
+
export declare type StagingSitePromote409 = {
|
|
831
|
+
/** @nullable */
|
|
832
|
+
details?: StagingSitePromote409Details;
|
|
833
|
+
/** @nullable */
|
|
834
|
+
error?: string | null;
|
|
835
|
+
};
|
|
797
836
|
export declare type StagingSitePromote200 = {
|
|
798
837
|
/** @nullable */
|
|
799
838
|
job_id?: number | null;
|
|
@@ -1183,25 +1222,6 @@ export declare type SitesPerformanceCachepurgeBody = {
|
|
|
1183
1222
|
export declare type SitePendingDomainDelete200 = {
|
|
1184
1223
|
[key: string]: unknown;
|
|
1185
1224
|
};
|
|
1186
|
-
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
|
|
1187
|
-
[key: string]: number;
|
|
1188
|
-
};
|
|
1189
|
-
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
|
|
1190
|
-
dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
|
|
1191
|
-
timestamp?: number;
|
|
1192
|
-
};
|
|
1193
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
1194
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1195
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1196
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1197
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1198
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1199
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1200
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1201
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1202
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1203
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1204
|
-
};
|
|
1205
1225
|
export declare type SitesMetricDimensions200 = {
|
|
1206
1226
|
date_end?: string;
|
|
1207
1227
|
date_start?: string;
|
|
@@ -1209,6 +1229,13 @@ export declare type SitesMetricDimensions200 = {
|
|
|
1209
1229
|
elapsed?: number;
|
|
1210
1230
|
metric?: string;
|
|
1211
1231
|
};
|
|
1232
|
+
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
|
|
1233
|
+
[key: string]: number;
|
|
1234
|
+
};
|
|
1235
|
+
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
|
|
1236
|
+
dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
|
|
1237
|
+
timestamp?: number;
|
|
1238
|
+
};
|
|
1212
1239
|
export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
|
|
1213
1240
|
[key: string]: number;
|
|
1214
1241
|
};
|
|
@@ -1230,6 +1257,18 @@ export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
|
|
|
1230
1257
|
dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
|
|
1231
1258
|
timestamp?: number;
|
|
1232
1259
|
};
|
|
1260
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
1261
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1262
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1263
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1264
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1265
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1266
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1267
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1268
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1269
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1270
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1271
|
+
};
|
|
1233
1272
|
export declare type SitesMetricDimensions200DimensionsPageRendererItemDimension = {
|
|
1234
1273
|
[key: string]: number;
|
|
1235
1274
|
};
|
|
@@ -2326,6 +2365,31 @@ export declare type ListIndex200 = {
|
|
|
2326
2365
|
export declare type ListIndexParams = {
|
|
2327
2366
|
path?: string;
|
|
2328
2367
|
};
|
|
2368
|
+
export declare type HotlinkconfigDelete200 = {
|
|
2369
|
+
[key: string]: unknown;
|
|
2370
|
+
};
|
|
2371
|
+
export declare type HotlinkconfigDeleteBody = {
|
|
2372
|
+
docpath: string;
|
|
2373
|
+
};
|
|
2374
|
+
export declare type HotlinkconfigAdd200 = {
|
|
2375
|
+
[key: string]: unknown;
|
|
2376
|
+
};
|
|
2377
|
+
export declare type HotlinkconfigAddBody = {
|
|
2378
|
+
direct_request: number;
|
|
2379
|
+
docpath: string;
|
|
2380
|
+
file_types: string[];
|
|
2381
|
+
protocol_type: string;
|
|
2382
|
+
redirect_url?: string;
|
|
2383
|
+
};
|
|
2384
|
+
export declare type HotlinkconfigDetails200 = {
|
|
2385
|
+
direct_request?: number;
|
|
2386
|
+
file_types?: string[];
|
|
2387
|
+
protocol_type?: string;
|
|
2388
|
+
redirect_url?: string;
|
|
2389
|
+
};
|
|
2390
|
+
export declare type HotlinkconfigDetailsParams = {
|
|
2391
|
+
docpath: string;
|
|
2392
|
+
};
|
|
2329
2393
|
export declare type HostingFtp200 = {
|
|
2330
2394
|
status?: number;
|
|
2331
2395
|
/** Username */
|
|
@@ -2458,6 +2522,8 @@ export declare type DomainDnsExportParams = {
|
|
|
2458
2522
|
domain: string;
|
|
2459
2523
|
};
|
|
2460
2524
|
export declare type Domains200DomainsItem = {
|
|
2525
|
+
/** @nullable */
|
|
2526
|
+
autogen_id?: string | null;
|
|
2461
2527
|
/**
|
|
2462
2528
|
* ssl exipry date
|
|
2463
2529
|
* @nullable
|
|
@@ -3084,14 +3150,6 @@ export declare type HostingAccount200ResourcesStorage = {
|
|
|
3084
3150
|
/** @nullable */
|
|
3085
3151
|
used?: number | null;
|
|
3086
3152
|
};
|
|
3087
|
-
/**
|
|
3088
|
-
* @nullable
|
|
3089
|
-
*/
|
|
3090
|
-
export declare type HostingAccount200Resources = {
|
|
3091
|
-
staging?: HostingAccount200ResourcesStaging;
|
|
3092
|
-
storage?: HostingAccount200ResourcesStorage;
|
|
3093
|
-
workers?: HostingAccount200ResourcesWorkers;
|
|
3094
|
-
} | null;
|
|
3095
3153
|
export declare type HostingAccount200ResourcesStagingWorkers = {
|
|
3096
3154
|
/** @nullable */
|
|
3097
3155
|
available?: number | null;
|
|
@@ -3113,6 +3171,14 @@ export declare type HostingAccount200ResourcesStaging = {
|
|
|
3113
3171
|
storage?: HostingAccount200ResourcesStagingStorage;
|
|
3114
3172
|
workers?: HostingAccount200ResourcesStagingWorkers;
|
|
3115
3173
|
};
|
|
3174
|
+
/**
|
|
3175
|
+
* @nullable
|
|
3176
|
+
*/
|
|
3177
|
+
export declare type HostingAccount200Resources = {
|
|
3178
|
+
staging?: HostingAccount200ResourcesStaging;
|
|
3179
|
+
storage?: HostingAccount200ResourcesStorage;
|
|
3180
|
+
workers?: HostingAccount200ResourcesWorkers;
|
|
3181
|
+
} | null;
|
|
3116
3182
|
export declare type HostingAccount200Billing = {
|
|
3117
3183
|
prod_code?: string;
|
|
3118
3184
|
product_name?: string;
|