@newfold/huapi-js 0.1.0-beta.100
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/README.md +83 -0
- package/package.json +15 -0
- package/src/handlers.d.ts +2 -0
- package/src/handlers.js +7 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +5 -0
- package/src/lib/handlers/index.d.ts +5 -0
- package/src/lib/handlers/index.js +8 -0
- package/src/lib/handlers/sites/data/sites.d.ts +19 -0
- package/src/lib/handlers/sites/data/sites.js +178 -0
- package/src/lib/handlers/sites/getHostingSitesHandler.d.ts +9 -0
- package/src/lib/handlers/sites/getHostingSitesHandler.js +17 -0
- package/src/orval-generated/index.d.ts +515 -0
- package/src/orval-generated/index.js +613 -0
- package/src/orval-generated/index.msw.d.ts +182 -0
- package/src/orval-generated/index.msw.js +148 -0
- package/src/orval-generated/models/addonsCodeguardBackupCreate200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardBackupCreate200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupCreateBody.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardBackupCreateBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupDownload200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardBackupDownload200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupDownloadBody.d.ts +15 -0
- package/src/orval-generated/models/addonsCodeguardBackupDownloadBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupRestore200.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardBackupRestore200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupRestoreBody.d.ts +17 -0
- package/src/orval-generated/models/addonsCodeguardBackupRestoreBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackups200.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardBackups200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardBackups200BackupsItem.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardBackups200BackupsItem.js +2 -0
- package/src/orval-generated/models/addonsCodeguardBackups200BackupsItemDatabaseBackupsItem.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardBackups200BackupsItemDatabaseBackupsItem.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupsParams.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardBackupsParams.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupCreate200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupCreate200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupCreateBody.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupCreateBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupList200.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupList200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupList200BackupsItem.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupList200BackupsItem.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupListParams.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupListParams.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupRestore200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupRestore200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupRestoreBody.d.ts +15 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupRestoreBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200.d.ts +12 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200DatabasesItem.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200DatabasesItem.js +2 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200DatabasesItemDatabaseBackup.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200DatabasesItemDatabaseBackup.js +9 -0
- package/src/orval-generated/models/addonsCodeguardLoginLinkGenerate200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardLoginLinkGenerate200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardPlanInfo200.d.ts +17 -0
- package/src/orval-generated/models/addonsCodeguardPlanInfo200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardPlanInfo200SeatsItem.d.ts +12 -0
- package/src/orval-generated/models/addonsCodeguardPlanInfo200SeatsItem.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupCreate200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupCreate200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupCreateBody.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupCreateBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupList200.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupList200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupList200BackupsItem.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupList200BackupsItem.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupListParams.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupListParams.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore400.d.ts +12 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore400.js +2 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore400Error.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore400Error.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestoreBody.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestoreBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200WebsiteListItem.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200WebsiteListItem.js +2 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200WebsiteListItemWebsite.d.ts +12 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200WebsiteListItemWebsite.js +9 -0
- package/src/orval-generated/models/addonsInfo200.d.ts +10 -0
- package/src/orval-generated/models/addonsInfo200.js +9 -0
- package/src/orval-generated/models/addonsSitelockSso200.d.ts +12 -0
- package/src/orval-generated/models/addonsSitelockSso200.js +9 -0
- package/src/orval-generated/models/hostingAddons200.d.ts +11 -0
- package/src/orval-generated/models/hostingAddons200.js +2 -0
- package/src/orval-generated/models/hostingAddons200RowsItem.d.ts +13 -0
- package/src/orval-generated/models/hostingAddons200RowsItem.js +9 -0
- package/src/orval-generated/models/hostingAddonsParams.d.ts +12 -0
- package/src/orval-generated/models/hostingAddonsParams.js +9 -0
- package/src/orval-generated/models/hostingFtpList200.d.ts +11 -0
- package/src/orval-generated/models/hostingFtpList200.js +2 -0
- package/src/orval-generated/models/hostingFtpList200FtpAccountItem.d.ts +11 -0
- package/src/orval-generated/models/hostingFtpList200FtpAccountItem.js +9 -0
- package/src/orval-generated/models/hostingInfo200.d.ts +10 -0
- package/src/orval-generated/models/hostingInfo200.js +9 -0
- package/src/orval-generated/models/hostingSites200.d.ts +11 -0
- package/src/orval-generated/models/hostingSites200.js +2 -0
- package/src/orval-generated/models/hostingSites200RowsItem.d.ts +12 -0
- package/src/orval-generated/models/hostingSites200RowsItem.js +9 -0
- package/src/orval-generated/models/index.d.ts +64 -0
- package/src/orval-generated/models/index.js +67 -0
- package/src/orval-generated/models/sitePlugins200.d.ts +11 -0
- package/src/orval-generated/models/sitePlugins200.js +2 -0
- package/src/orval-generated/models/sitePlugins200PluginsItem.d.ts +14 -0
- package/src/orval-generated/models/sitePlugins200PluginsItem.js +9 -0
- package/src/orval-generated/models/sitePluginsAutoupdate200.d.ts +10 -0
- package/src/orval-generated/models/sitePluginsAutoupdate200.js +9 -0
- package/src/orval-generated/models/sitePluginsAutoupdateBody.d.ts +10 -0
- package/src/orval-generated/models/sitePluginsAutoupdateBody.js +9 -0
- package/src/orval-generated/models/sitePluginsToggle200.d.ts +10 -0
- package/src/orval-generated/models/sitePluginsToggle200.js +9 -0
- package/src/orval-generated/models/sitePluginsToggleBody.d.ts +13 -0
- package/src/orval-generated/models/sitePluginsToggleBody.js +9 -0
- package/src/orval-generated/models/sitesInfo200.d.ts +20 -0
- package/src/orval-generated/models/sitesInfo200.js +9 -0
- package/src/orval-generated/models/sitesSecurityCheckCore200.d.ts +11 -0
- package/src/orval-generated/models/sitesSecurityCheckCore200.js +9 -0
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSsl200.d.ts +12 -0
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSsl200.js +9 -0
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSslBody.d.ts +11 -0
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSslBody.js +9 -0
- package/src/orval-generated/models/sitesSecurityHttpsRedirectionStatus200.d.ts +12 -0
- package/src/orval-generated/models/sitesSecurityHttpsRedirectionStatus200.js +9 -0
- package/src/orval-generated/models/sitesSecurityResetCoreFiles200.d.ts +11 -0
- package/src/orval-generated/models/sitesSecurityResetCoreFiles200.js +9 -0
- package/src/orval-generated/models/sitesSecuritySitelock200.d.ts +12 -0
- package/src/orval-generated/models/sitesSecuritySitelock200.js +9 -0
- package/src/orval-generated/models/sitesSecuritySslAcme200.d.ts +11 -0
- package/src/orval-generated/models/sitesSecuritySslAcme200.js +9 -0
- package/src/orval-generated/models/sitesSecuritySslStatus200.d.ts +11 -0
- package/src/orval-generated/models/sitesSecuritySslStatus200.js +9 -0
- package/src/orval-generated/models/sitesSso200.d.ts +10 -0
- package/src/orval-generated/models/sitesSso200.js +9 -0
- package/src/orval-generated/models/sso200.d.ts +10 -0
- package/src/orval-generated/models/sso200.js +9 -0
- package/src/orval-generated/models/ssoApp.d.ts +16 -0
- package/src/orval-generated/models/ssoApp.js +19 -0
- package/src/orval-generated/models/ssoParams.d.ts +11 -0
- package/src/orval-generated/models/ssoParams.js +2 -0
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.8.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Hosting UAPI
|
|
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: 0.1.0-beta.100
|
|
7
|
+
*/
|
|
8
|
+
import * as axios from 'axios';
|
|
9
|
+
import type { AxiosResponse, AxiosError } from 'axios';
|
|
10
|
+
import { UseQueryOptions, UseMutationOptions, UseQueryResult, QueryKey } from 'react-query';
|
|
11
|
+
import type { AddonsInfo200, AddonsCodeguardPlanInfo200, AddonsCodeguardWebsiteList200, AddonsCodeguardBackups200, AddonsCodeguardBackupsParams, AddonsCodeguardLoginLinkGenerate200, AddonsCodeguardDatabaseBackupCreate200, AddonsCodeguardDatabaseBackupCreateBody, AddonsCodeguardWebsiteBackupCreate200, AddonsCodeguardWebsiteBackupCreateBody, AddonsCodeguardBackupCreate200, AddonsCodeguardBackupCreateBody, AddonsCodeguardBackupDownload200, AddonsCodeguardBackupDownloadBody, AddonsCodeguardDatabaseList200, AddonsCodeguardWebsiteBackupList200, AddonsCodeguardWebsiteBackupListParams, AddonsCodeguardDatabaseBackupList200, AddonsCodeguardDatabaseBackupListParams, AddonsCodeguardBackupRestore200, AddonsCodeguardBackupRestoreBody, AddonsCodeguardWebsiteBackupRestore200, AddonsCodeguardWebsiteBackupRestore400, AddonsCodeguardWebsiteBackupRestoreBody, AddonsCodeguardDatabaseBackupRestore200, AddonsCodeguardDatabaseBackupRestoreBody, AddonsSitelockSso200, HostingInfo200, HostingAddons200, HostingAddonsParams, HostingFtpList200, Sso200, SsoParams, SitesSso200, SitesInfo200, HostingSites200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsToggle200, SitePluginsToggleBody, SitesSecurityCheckCore200, SitesSecurityResetCoreFiles200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecuritySitelock200, SitesSecuritySslStatus200, SitesSecuritySslAcme200 } from './models';
|
|
12
|
+
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
13
|
+
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
14
|
+
/**
|
|
15
|
+
* Return information about a particular addon.
|
|
16
|
+
* @summary addons info
|
|
17
|
+
*/
|
|
18
|
+
export declare const addonsInfo: (addonId: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsInfo200>>;
|
|
19
|
+
export declare const getAddonsInfoQueryKey: (addonId: string) => string[];
|
|
20
|
+
export declare type AddonsInfoQueryResult = NonNullable<Awaited<ReturnType<typeof addonsInfo>>>;
|
|
21
|
+
export declare type AddonsInfoQueryError = AxiosError<unknown>;
|
|
22
|
+
export declare const useAddonsInfo: <TData = axios.AxiosResponse<AddonsInfo200, any>, TError = axios.AxiosError<unknown, any>>(addonId: string, options?: {
|
|
23
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
24
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
25
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
26
|
+
queryKey: QueryKey;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Provides the subscribed plan_info, and usage information
|
|
30
|
+
* @summary addons codeguard plan info
|
|
31
|
+
*/
|
|
32
|
+
export declare const addonsCodeguardPlanInfo: (addonId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardPlanInfo200>>;
|
|
33
|
+
export declare const getAddonsCodeguardPlanInfoQueryKey: (addonId: number) => string[];
|
|
34
|
+
export declare type AddonsCodeguardPlanInfoQueryResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardPlanInfo>>>;
|
|
35
|
+
export declare type AddonsCodeguardPlanInfoQueryError = AxiosError<unknown>;
|
|
36
|
+
export declare const useAddonsCodeguardPlanInfo: <TData = axios.AxiosResponse<AddonsCodeguardPlanInfo200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
37
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsCodeguardPlanInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
38
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
39
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
40
|
+
queryKey: QueryKey;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Return all website records CodeGuard maintains for this user's account.
|
|
44
|
+
* @summary addons codeguard website_list
|
|
45
|
+
*/
|
|
46
|
+
export declare const addonsCodeguardWebsiteList: (addonId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardWebsiteList200>>;
|
|
47
|
+
export declare const getAddonsCodeguardWebsiteListQueryKey: (addonId: number) => string[];
|
|
48
|
+
export declare type AddonsCodeguardWebsiteListQueryResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardWebsiteList>>>;
|
|
49
|
+
export declare type AddonsCodeguardWebsiteListQueryError = AxiosError<unknown>;
|
|
50
|
+
export declare const useAddonsCodeguardWebsiteList: <TData = axios.AxiosResponse<AddonsCodeguardWebsiteList200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
51
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsCodeguardWebsiteList200, any>, TError, TData, QueryKey> | undefined;
|
|
52
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
53
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
54
|
+
queryKey: QueryKey;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Returns a combined backup list with website commit ids and corresponding database commits
|
|
58
|
+
* @summary addons codeguard backups
|
|
59
|
+
*/
|
|
60
|
+
export declare const addonsCodeguardBackups: (addonId: number, params?: AddonsCodeguardBackupsParams | undefined, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardBackups200>>;
|
|
61
|
+
export declare const getAddonsCodeguardBackupsQueryKey: (addonId: number, params?: AddonsCodeguardBackupsParams | undefined) => (string | AddonsCodeguardBackupsParams)[];
|
|
62
|
+
export declare type AddonsCodeguardBackupsQueryResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardBackups>>>;
|
|
63
|
+
export declare type AddonsCodeguardBackupsQueryError = AxiosError<unknown>;
|
|
64
|
+
export declare const useAddonsCodeguardBackups: <TData = axios.AxiosResponse<AddonsCodeguardBackups200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, params?: AddonsCodeguardBackupsParams | undefined, options?: {
|
|
65
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsCodeguardBackups200, any>, TError, TData, QueryKey> | undefined;
|
|
66
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
67
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
68
|
+
queryKey: QueryKey;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Returns an oauth login URL that can be used to access CodeGuard dashboard for a user.
|
|
72
|
+
* @summary addons codeguard login_link_generate
|
|
73
|
+
*/
|
|
74
|
+
export declare const addonsCodeguardLoginLinkGenerate: (addonId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardLoginLinkGenerate200>>;
|
|
75
|
+
export declare const getAddonsCodeguardLoginLinkGenerateQueryKey: (addonId: number) => string[];
|
|
76
|
+
export declare type AddonsCodeguardLoginLinkGenerateQueryResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardLoginLinkGenerate>>>;
|
|
77
|
+
export declare type AddonsCodeguardLoginLinkGenerateQueryError = AxiosError<unknown>;
|
|
78
|
+
export declare const useAddonsCodeguardLoginLinkGenerate: <TData = axios.AxiosResponse<AddonsCodeguardLoginLinkGenerate200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
79
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsCodeguardLoginLinkGenerate200, any>, TError, TData, QueryKey> | undefined;
|
|
80
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
81
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
82
|
+
queryKey: QueryKey;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Queue the creation of a database backup.
|
|
86
|
+
* @summary addons codeguard database_backup_create
|
|
87
|
+
*/
|
|
88
|
+
export declare const addonsCodeguardDatabaseBackupCreate: (addonId: number, addonsCodeguardDatabaseBackupCreateBody: AddonsCodeguardDatabaseBackupCreateBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardDatabaseBackupCreate200>>;
|
|
89
|
+
export declare type AddonsCodeguardDatabaseBackupCreateMutationResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardDatabaseBackupCreate>>>;
|
|
90
|
+
export declare type AddonsCodeguardDatabaseBackupCreateMutationBody = AddonsCodeguardDatabaseBackupCreateBody;
|
|
91
|
+
export declare type AddonsCodeguardDatabaseBackupCreateMutationError = AxiosError<unknown>;
|
|
92
|
+
export declare const useAddonsCodeguardDatabaseBackupCreate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
93
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<AddonsCodeguardDatabaseBackupCreate200, any>, TError, {
|
|
94
|
+
addonId: number;
|
|
95
|
+
data: AddonsCodeguardDatabaseBackupCreateBody;
|
|
96
|
+
}, TContext> | undefined;
|
|
97
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
98
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<AddonsCodeguardDatabaseBackupCreate200, any>, TError, {
|
|
99
|
+
addonId: number;
|
|
100
|
+
data: AddonsCodeguardDatabaseBackupCreateBody;
|
|
101
|
+
}, TContext>;
|
|
102
|
+
/**
|
|
103
|
+
* Initiate the creation of a new backup for a given website
|
|
104
|
+
* @summary addons codeguard website_backup_create
|
|
105
|
+
*/
|
|
106
|
+
export declare const addonsCodeguardWebsiteBackupCreate: (addonId: number, addonsCodeguardWebsiteBackupCreateBody: AddonsCodeguardWebsiteBackupCreateBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardWebsiteBackupCreate200>>;
|
|
107
|
+
export declare type AddonsCodeguardWebsiteBackupCreateMutationResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardWebsiteBackupCreate>>>;
|
|
108
|
+
export declare type AddonsCodeguardWebsiteBackupCreateMutationBody = AddonsCodeguardWebsiteBackupCreateBody;
|
|
109
|
+
export declare type AddonsCodeguardWebsiteBackupCreateMutationError = AxiosError<unknown>;
|
|
110
|
+
export declare const useAddonsCodeguardWebsiteBackupCreate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
111
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<AddonsCodeguardWebsiteBackupCreate200, any>, TError, {
|
|
112
|
+
addonId: number;
|
|
113
|
+
data: AddonsCodeguardWebsiteBackupCreateBody;
|
|
114
|
+
}, TContext> | undefined;
|
|
115
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
116
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<AddonsCodeguardWebsiteBackupCreate200, any>, TError, {
|
|
117
|
+
addonId: number;
|
|
118
|
+
data: AddonsCodeguardWebsiteBackupCreateBody;
|
|
119
|
+
}, TContext>;
|
|
120
|
+
/**
|
|
121
|
+
* create the website backup
|
|
122
|
+
* @summary addons codeguard website backup create
|
|
123
|
+
*/
|
|
124
|
+
export declare const addonsCodeguardBackupCreate: (addonId: number, addonsCodeguardBackupCreateBody: AddonsCodeguardBackupCreateBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardBackupCreate200>>;
|
|
125
|
+
export declare type AddonsCodeguardBackupCreateMutationResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardBackupCreate>>>;
|
|
126
|
+
export declare type AddonsCodeguardBackupCreateMutationBody = AddonsCodeguardBackupCreateBody;
|
|
127
|
+
export declare type AddonsCodeguardBackupCreateMutationError = AxiosError<unknown>;
|
|
128
|
+
export declare const useAddonsCodeguardBackupCreate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
129
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<AddonsCodeguardBackupCreate200, any>, TError, {
|
|
130
|
+
addonId: number;
|
|
131
|
+
data: AddonsCodeguardBackupCreateBody;
|
|
132
|
+
}, TContext> | undefined;
|
|
133
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
134
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<AddonsCodeguardBackupCreate200, any>, TError, {
|
|
135
|
+
addonId: number;
|
|
136
|
+
data: AddonsCodeguardBackupCreateBody;
|
|
137
|
+
}, TContext>;
|
|
138
|
+
/**
|
|
139
|
+
* Queue the backup download.
|
|
140
|
+
* @summary addons codeguard backup_download
|
|
141
|
+
*/
|
|
142
|
+
export declare const addonsCodeguardBackupDownload: (addonId: number, addonsCodeguardBackupDownloadBody: AddonsCodeguardBackupDownloadBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardBackupDownload200>>;
|
|
143
|
+
export declare type AddonsCodeguardBackupDownloadMutationResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardBackupDownload>>>;
|
|
144
|
+
export declare type AddonsCodeguardBackupDownloadMutationBody = AddonsCodeguardBackupDownloadBody;
|
|
145
|
+
export declare type AddonsCodeguardBackupDownloadMutationError = AxiosError<unknown>;
|
|
146
|
+
export declare const useAddonsCodeguardBackupDownload: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
147
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<AddonsCodeguardBackupDownload200, any>, TError, {
|
|
148
|
+
addonId: number;
|
|
149
|
+
data: AddonsCodeguardBackupDownloadBody;
|
|
150
|
+
}, TContext> | undefined;
|
|
151
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
152
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<AddonsCodeguardBackupDownload200, any>, TError, {
|
|
153
|
+
addonId: number;
|
|
154
|
+
data: AddonsCodeguardBackupDownloadBody;
|
|
155
|
+
}, TContext>;
|
|
156
|
+
/**
|
|
157
|
+
* Return all database records CodeGuard maintains for this user's account.
|
|
158
|
+
* @summary addons codeguard database_list
|
|
159
|
+
*/
|
|
160
|
+
export declare const addonsCodeguardDatabaseList: (addonId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardDatabaseList200>>;
|
|
161
|
+
export declare const getAddonsCodeguardDatabaseListQueryKey: (addonId: number) => string[];
|
|
162
|
+
export declare type AddonsCodeguardDatabaseListQueryResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardDatabaseList>>>;
|
|
163
|
+
export declare type AddonsCodeguardDatabaseListQueryError = AxiosError<unknown>;
|
|
164
|
+
export declare const useAddonsCodeguardDatabaseList: <TData = axios.AxiosResponse<AddonsCodeguardDatabaseList200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
165
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsCodeguardDatabaseList200, any>, TError, TData, QueryKey> | undefined;
|
|
166
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
167
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
168
|
+
queryKey: QueryKey;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Return all website backup records CodeGuard maintains for this user's account.
|
|
172
|
+
* @summary addons codeguard website backup list
|
|
173
|
+
*/
|
|
174
|
+
export declare const addonsCodeguardWebsiteBackupList: (addonId: number, params?: AddonsCodeguardWebsiteBackupListParams | undefined, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardWebsiteBackupList200>>;
|
|
175
|
+
export declare const getAddonsCodeguardWebsiteBackupListQueryKey: (addonId: number, params?: AddonsCodeguardWebsiteBackupListParams | undefined) => (string | AddonsCodeguardWebsiteBackupListParams)[];
|
|
176
|
+
export declare type AddonsCodeguardWebsiteBackupListQueryResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardWebsiteBackupList>>>;
|
|
177
|
+
export declare type AddonsCodeguardWebsiteBackupListQueryError = AxiosError<unknown>;
|
|
178
|
+
export declare const useAddonsCodeguardWebsiteBackupList: <TData = axios.AxiosResponse<AddonsCodeguardWebsiteBackupList200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, params?: AddonsCodeguardWebsiteBackupListParams | undefined, options?: {
|
|
179
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsCodeguardWebsiteBackupList200, any>, TError, TData, QueryKey> | undefined;
|
|
180
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
181
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
182
|
+
queryKey: QueryKey;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Return all database backup records CodeGuard maintains for this user's account.
|
|
186
|
+
* @summary addons codeguard database backup list
|
|
187
|
+
*/
|
|
188
|
+
export declare const addonsCodeguardDatabaseBackupList: (addonId: number, params?: AddonsCodeguardDatabaseBackupListParams | undefined, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardDatabaseBackupList200>>;
|
|
189
|
+
export declare const getAddonsCodeguardDatabaseBackupListQueryKey: (addonId: number, params?: AddonsCodeguardDatabaseBackupListParams | undefined) => (string | AddonsCodeguardDatabaseBackupListParams)[];
|
|
190
|
+
export declare type AddonsCodeguardDatabaseBackupListQueryResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardDatabaseBackupList>>>;
|
|
191
|
+
export declare type AddonsCodeguardDatabaseBackupListQueryError = AxiosError<unknown>;
|
|
192
|
+
export declare const useAddonsCodeguardDatabaseBackupList: <TData = axios.AxiosResponse<AddonsCodeguardDatabaseBackupList200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, params?: AddonsCodeguardDatabaseBackupListParams | undefined, options?: {
|
|
193
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsCodeguardDatabaseBackupList200, any>, TError, TData, QueryKey> | undefined;
|
|
194
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
195
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
196
|
+
queryKey: QueryKey;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Restores the website backup
|
|
200
|
+
* @summary addons codeguard website backup restore
|
|
201
|
+
*/
|
|
202
|
+
export declare const addonsCodeguardBackupRestore: (addonId: number, addonsCodeguardBackupRestoreBody: AddonsCodeguardBackupRestoreBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardBackupRestore200>>;
|
|
203
|
+
export declare type AddonsCodeguardBackupRestoreMutationResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardBackupRestore>>>;
|
|
204
|
+
export declare type AddonsCodeguardBackupRestoreMutationBody = AddonsCodeguardBackupRestoreBody;
|
|
205
|
+
export declare type AddonsCodeguardBackupRestoreMutationError = AxiosError<unknown>;
|
|
206
|
+
export declare const useAddonsCodeguardBackupRestore: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
207
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<AddonsCodeguardBackupRestore200, any>, TError, {
|
|
208
|
+
addonId: number;
|
|
209
|
+
data: AddonsCodeguardBackupRestoreBody;
|
|
210
|
+
}, TContext> | undefined;
|
|
211
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
212
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<AddonsCodeguardBackupRestore200, any>, TError, {
|
|
213
|
+
addonId: number;
|
|
214
|
+
data: AddonsCodeguardBackupRestoreBody;
|
|
215
|
+
}, TContext>;
|
|
216
|
+
/**
|
|
217
|
+
* Restores the website backup
|
|
218
|
+
* @summary addons codeguard website backup restore
|
|
219
|
+
*/
|
|
220
|
+
export declare const addonsCodeguardWebsiteBackupRestore: (addonId: number, addonsCodeguardWebsiteBackupRestoreBody: AddonsCodeguardWebsiteBackupRestoreBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardWebsiteBackupRestore200>>;
|
|
221
|
+
export declare type AddonsCodeguardWebsiteBackupRestoreMutationResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardWebsiteBackupRestore>>>;
|
|
222
|
+
export declare type AddonsCodeguardWebsiteBackupRestoreMutationBody = AddonsCodeguardWebsiteBackupRestoreBody;
|
|
223
|
+
export declare type AddonsCodeguardWebsiteBackupRestoreMutationError = AxiosError<AddonsCodeguardWebsiteBackupRestore400>;
|
|
224
|
+
export declare const useAddonsCodeguardWebsiteBackupRestore: <TError = axios.AxiosError<AddonsCodeguardWebsiteBackupRestore400, any>, TContext = unknown>(options?: {
|
|
225
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<AddonsCodeguardWebsiteBackupRestore200, any>, TError, {
|
|
226
|
+
addonId: number;
|
|
227
|
+
data: AddonsCodeguardWebsiteBackupRestoreBody;
|
|
228
|
+
}, TContext> | undefined;
|
|
229
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
230
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<AddonsCodeguardWebsiteBackupRestore200, any>, TError, {
|
|
231
|
+
addonId: number;
|
|
232
|
+
data: AddonsCodeguardWebsiteBackupRestoreBody;
|
|
233
|
+
}, TContext>;
|
|
234
|
+
/**
|
|
235
|
+
* Restores the database backup
|
|
236
|
+
* @summary addons codeguard database backup restore
|
|
237
|
+
*/
|
|
238
|
+
export declare const addonsCodeguardDatabaseBackupRestore: (addonId: number, addonsCodeguardDatabaseBackupRestoreBody: AddonsCodeguardDatabaseBackupRestoreBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsCodeguardDatabaseBackupRestore200>>;
|
|
239
|
+
export declare type AddonsCodeguardDatabaseBackupRestoreMutationResult = NonNullable<Awaited<ReturnType<typeof addonsCodeguardDatabaseBackupRestore>>>;
|
|
240
|
+
export declare type AddonsCodeguardDatabaseBackupRestoreMutationBody = AddonsCodeguardDatabaseBackupRestoreBody;
|
|
241
|
+
export declare type AddonsCodeguardDatabaseBackupRestoreMutationError = AxiosError<unknown>;
|
|
242
|
+
export declare const useAddonsCodeguardDatabaseBackupRestore: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
243
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<AddonsCodeguardDatabaseBackupRestore200, any>, TError, {
|
|
244
|
+
addonId: number;
|
|
245
|
+
data: AddonsCodeguardDatabaseBackupRestoreBody;
|
|
246
|
+
}, TContext> | undefined;
|
|
247
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
248
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<AddonsCodeguardDatabaseBackupRestore200, any>, TError, {
|
|
249
|
+
addonId: number;
|
|
250
|
+
data: AddonsCodeguardDatabaseBackupRestoreBody;
|
|
251
|
+
}, TContext>;
|
|
252
|
+
/**
|
|
253
|
+
* Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
|
|
254
|
+
* @summary SSO Link for SiteLock
|
|
255
|
+
*/
|
|
256
|
+
export declare const addonsSitelockSso: (addonId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsSitelockSso200>>;
|
|
257
|
+
export declare const getAddonsSitelockSsoQueryKey: (addonId: number) => string[];
|
|
258
|
+
export declare type AddonsSitelockSsoQueryResult = NonNullable<Awaited<ReturnType<typeof addonsSitelockSso>>>;
|
|
259
|
+
export declare type AddonsSitelockSsoQueryError = AxiosError<unknown>;
|
|
260
|
+
export declare const useAddonsSitelockSso: <TData = axios.AxiosResponse<AddonsSitelockSso200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
261
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsSitelockSso200, any>, TError, TData, QueryKey> | undefined;
|
|
262
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
263
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
264
|
+
queryKey: QueryKey;
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* Return info about a specific account
|
|
268
|
+
* @summary hosting info
|
|
269
|
+
*/
|
|
270
|
+
export declare const hostingInfo: (hostingId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<HostingInfo200>>;
|
|
271
|
+
export declare const getHostingInfoQueryKey: (hostingId: number) => string[];
|
|
272
|
+
export declare type HostingInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingInfo>>>;
|
|
273
|
+
export declare type HostingInfoQueryError = AxiosError<unknown>;
|
|
274
|
+
export declare const useHostingInfo: <TData = axios.AxiosResponse<HostingInfo200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
275
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
276
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
277
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
278
|
+
queryKey: QueryKey;
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* Obtain a list of addons.
|
|
282
|
+
* @summary hosting addons
|
|
283
|
+
*/
|
|
284
|
+
export declare const hostingAddons: (hostingId: number, params?: HostingAddonsParams | undefined, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<HostingAddons200>>;
|
|
285
|
+
export declare const getHostingAddonsQueryKey: (hostingId: number, params?: HostingAddonsParams | undefined) => (string | HostingAddonsParams)[];
|
|
286
|
+
export declare type HostingAddonsQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAddons>>>;
|
|
287
|
+
export declare type HostingAddonsQueryError = AxiosError<unknown>;
|
|
288
|
+
export declare const useHostingAddons: <TData = axios.AxiosResponse<HostingAddons200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, params?: HostingAddonsParams | undefined, options?: {
|
|
289
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingAddons200, any>, TError, TData, QueryKey> | undefined;
|
|
290
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
291
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
292
|
+
queryKey: QueryKey;
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* List FTP accounts.
|
|
296
|
+
* @summary hosting ftp list
|
|
297
|
+
*/
|
|
298
|
+
export declare const hostingFtpList: (hostingId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<HostingFtpList200>>;
|
|
299
|
+
export declare const getHostingFtpListQueryKey: (hostingId: number) => string[];
|
|
300
|
+
export declare type HostingFtpListQueryResult = NonNullable<Awaited<ReturnType<typeof hostingFtpList>>>;
|
|
301
|
+
export declare type HostingFtpListQueryError = AxiosError<unknown>;
|
|
302
|
+
export declare const useHostingFtpList: <TData = axios.AxiosResponse<HostingFtpList200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
303
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingFtpList200, any>, TError, TData, QueryKey> | undefined;
|
|
304
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
305
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
306
|
+
queryKey: QueryKey;
|
|
307
|
+
};
|
|
308
|
+
/**
|
|
309
|
+
* Return a SSO login token for a hosting account by default, or directly to various apps within the hosting account by using the optional query parameter.
|
|
310
|
+
* @summary sso
|
|
311
|
+
*/
|
|
312
|
+
export declare const sso: (hostingId: number, params?: SsoParams | undefined, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<Sso200>>;
|
|
313
|
+
export declare const getSsoQueryKey: (hostingId: number, params?: SsoParams | undefined) => (string | SsoParams)[];
|
|
314
|
+
export declare type SsoQueryResult = NonNullable<Awaited<ReturnType<typeof sso>>>;
|
|
315
|
+
export declare type SsoQueryError = AxiosError<unknown>;
|
|
316
|
+
export declare const useSso: <TData = axios.AxiosResponse<Sso200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, params?: SsoParams | undefined, options?: {
|
|
317
|
+
query?: UseQueryOptions<axios.AxiosResponse<Sso200, any>, TError, TData, QueryKey> | undefined;
|
|
318
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
319
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
320
|
+
queryKey: QueryKey;
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Return an SSO token or login URL for this site (if supported).
|
|
324
|
+
* @summary sites sso
|
|
325
|
+
*/
|
|
326
|
+
export declare const sitesSso: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSso200>>;
|
|
327
|
+
export declare const getSitesSsoQueryKey: (siteId: number) => string[];
|
|
328
|
+
export declare type SitesSsoQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSso>>>;
|
|
329
|
+
export declare type SitesSsoQueryError = AxiosError<unknown>;
|
|
330
|
+
export declare const useSitesSso: <TData = axios.AxiosResponse<SitesSso200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
331
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSso200, any>, TError, TData, QueryKey> | undefined;
|
|
332
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
333
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
334
|
+
queryKey: QueryKey;
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Return info about a specific site
|
|
338
|
+
* @summary sites info
|
|
339
|
+
*/
|
|
340
|
+
export declare const sitesInfo: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesInfo200>>;
|
|
341
|
+
export declare const getSitesInfoQueryKey: (siteId: number) => string[];
|
|
342
|
+
export declare type SitesInfoQueryResult = NonNullable<Awaited<ReturnType<typeof sitesInfo>>>;
|
|
343
|
+
export declare type SitesInfoQueryError = AxiosError<unknown>;
|
|
344
|
+
export declare const useSitesInfo: <TData = axios.AxiosResponse<SitesInfo200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
345
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
346
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
347
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
348
|
+
queryKey: QueryKey;
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* Obtain a list of sites.
|
|
352
|
+
* @summary hosting sites
|
|
353
|
+
*/
|
|
354
|
+
export declare const hostingSites: (hostingId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<HostingSites200>>;
|
|
355
|
+
export declare const getHostingSitesQueryKey: (hostingId: number) => string[];
|
|
356
|
+
export declare type HostingSitesQueryResult = NonNullable<Awaited<ReturnType<typeof hostingSites>>>;
|
|
357
|
+
export declare type HostingSitesQueryError = AxiosError<unknown>;
|
|
358
|
+
export declare const useHostingSites: <TData = axios.AxiosResponse<HostingSites200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
359
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingSites200, any>, TError, TData, QueryKey> | undefined;
|
|
360
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
361
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
362
|
+
queryKey: QueryKey;
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* @summary sites plugins
|
|
366
|
+
*/
|
|
367
|
+
export declare const sitePlugins: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitePlugins200>>;
|
|
368
|
+
export declare const getSitePluginsQueryKey: (siteId: number) => string[];
|
|
369
|
+
export declare type SitePluginsQueryResult = NonNullable<Awaited<ReturnType<typeof sitePlugins>>>;
|
|
370
|
+
export declare type SitePluginsQueryError = AxiosError<unknown>;
|
|
371
|
+
export declare const useSitePlugins: <TData = axios.AxiosResponse<SitePlugins200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
372
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitePlugins200, any>, TError, TData, QueryKey> | undefined;
|
|
373
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
374
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
375
|
+
queryKey: QueryKey;
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* @summary site plugins autoupdate
|
|
379
|
+
*/
|
|
380
|
+
export declare const sitePluginsAutoupdate: (siteId: string, sitePluginsAutoupdateBody: SitePluginsAutoupdateBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitePluginsAutoupdate200>>;
|
|
381
|
+
export declare type SitePluginsAutoupdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginsAutoupdate>>>;
|
|
382
|
+
export declare type SitePluginsAutoupdateMutationBody = SitePluginsAutoupdateBody;
|
|
383
|
+
export declare type SitePluginsAutoupdateMutationError = AxiosError<unknown>;
|
|
384
|
+
export declare const useSitePluginsAutoupdate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
385
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitePluginsAutoupdate200, any>, TError, {
|
|
386
|
+
siteId: string;
|
|
387
|
+
data: SitePluginsAutoupdateBody;
|
|
388
|
+
}, TContext> | undefined;
|
|
389
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
390
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<SitePluginsAutoupdate200, any>, TError, {
|
|
391
|
+
siteId: string;
|
|
392
|
+
data: SitePluginsAutoupdateBody;
|
|
393
|
+
}, TContext>;
|
|
394
|
+
/**
|
|
395
|
+
* @summary site plugins toggle
|
|
396
|
+
*/
|
|
397
|
+
export declare const sitePluginsToggle: (siteId: string, sitePluginsToggleBody: SitePluginsToggleBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitePluginsToggle200>>;
|
|
398
|
+
export declare type SitePluginsToggleMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginsToggle>>>;
|
|
399
|
+
export declare type SitePluginsToggleMutationBody = SitePluginsToggleBody;
|
|
400
|
+
export declare type SitePluginsToggleMutationError = AxiosError<unknown>;
|
|
401
|
+
export declare const useSitePluginsToggle: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
402
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitePluginsToggle200, any>, TError, {
|
|
403
|
+
siteId: string;
|
|
404
|
+
data: SitePluginsToggleBody;
|
|
405
|
+
}, TContext> | undefined;
|
|
406
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
407
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<SitePluginsToggle200, any>, TError, {
|
|
408
|
+
siteId: string;
|
|
409
|
+
data: SitePluginsToggleBody;
|
|
410
|
+
}, TContext>;
|
|
411
|
+
/**
|
|
412
|
+
* To Check the core files checksum
|
|
413
|
+
* @summary check core files checksum
|
|
414
|
+
*/
|
|
415
|
+
export declare const sitesSecurityCheckCore: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSecurityCheckCore200>>;
|
|
416
|
+
export declare const getSitesSecurityCheckCoreQueryKey: (siteId: number) => string[];
|
|
417
|
+
export declare type SitesSecurityCheckCoreQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityCheckCore>>>;
|
|
418
|
+
export declare type SitesSecurityCheckCoreQueryError = AxiosError<unknown>;
|
|
419
|
+
export declare const useSitesSecurityCheckCore: <TData = axios.AxiosResponse<SitesSecurityCheckCore200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
420
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSecurityCheckCore200, any>, TError, TData, QueryKey> | undefined;
|
|
421
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
422
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
423
|
+
queryKey: QueryKey;
|
|
424
|
+
};
|
|
425
|
+
/**
|
|
426
|
+
* To reset the core files if they are not intact
|
|
427
|
+
* @summary reset core files checksum
|
|
428
|
+
*/
|
|
429
|
+
export declare const sitesSecurityResetCoreFiles: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSecurityResetCoreFiles200>>;
|
|
430
|
+
export declare type SitesSecurityResetCoreFilesMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityResetCoreFiles>>>;
|
|
431
|
+
export declare type SitesSecurityResetCoreFilesMutationError = AxiosError<unknown>;
|
|
432
|
+
export declare const useSitesSecurityResetCoreFiles: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
433
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSecurityResetCoreFiles200, any>, TError, {
|
|
434
|
+
siteId: number;
|
|
435
|
+
}, TContext> | undefined;
|
|
436
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
437
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<SitesSecurityResetCoreFiles200, any>, TError, {
|
|
438
|
+
siteId: number;
|
|
439
|
+
}, TContext>;
|
|
440
|
+
/**
|
|
441
|
+
* To get the https redirection status
|
|
442
|
+
* @summary HTTPS Redirection Status
|
|
443
|
+
*/
|
|
444
|
+
export declare const sitesSecurityHttpsRedirectionStatus: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSecurityHttpsRedirectionStatus200>>;
|
|
445
|
+
export declare const getSitesSecurityHttpsRedirectionStatusQueryKey: (siteId: number) => string[];
|
|
446
|
+
export declare type SitesSecurityHttpsRedirectionStatusQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityHttpsRedirectionStatus>>>;
|
|
447
|
+
export declare type SitesSecurityHttpsRedirectionStatusQueryError = AxiosError<unknown>;
|
|
448
|
+
export declare const useSitesSecurityHttpsRedirectionStatus: <TData = axios.AxiosResponse<SitesSecurityHttpsRedirectionStatus200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
449
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSecurityHttpsRedirectionStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
450
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
451
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
452
|
+
queryKey: QueryKey;
|
|
453
|
+
};
|
|
454
|
+
/**
|
|
455
|
+
* To enable/disable HTTPS
|
|
456
|
+
* @summary Enable/Disable HTTPS Redirection
|
|
457
|
+
*/
|
|
458
|
+
export declare const sitesSecurityHttpsEnableDisableSsl: (siteId: number, sitesSecurityHttpsEnableDisableSslBody: SitesSecurityHttpsEnableDisableSslBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSecurityHttpsEnableDisableSsl200>>;
|
|
459
|
+
export declare type SitesSecurityHttpsEnableDisableSslMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityHttpsEnableDisableSsl>>>;
|
|
460
|
+
export declare type SitesSecurityHttpsEnableDisableSslMutationBody = SitesSecurityHttpsEnableDisableSslBody;
|
|
461
|
+
export declare type SitesSecurityHttpsEnableDisableSslMutationError = AxiosError<unknown>;
|
|
462
|
+
export declare const useSitesSecurityHttpsEnableDisableSsl: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
463
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSecurityHttpsEnableDisableSsl200, any>, TError, {
|
|
464
|
+
siteId: number;
|
|
465
|
+
data: SitesSecurityHttpsEnableDisableSslBody;
|
|
466
|
+
}, TContext> | undefined;
|
|
467
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
468
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<SitesSecurityHttpsEnableDisableSsl200, any>, TError, {
|
|
469
|
+
siteId: number;
|
|
470
|
+
data: SitesSecurityHttpsEnableDisableSslBody;
|
|
471
|
+
}, TContext>;
|
|
472
|
+
/**
|
|
473
|
+
* To get the sitelock addon info
|
|
474
|
+
* @summary Sitelock addon info
|
|
475
|
+
*/
|
|
476
|
+
export declare const sitesSecuritySitelock: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSecuritySitelock200>>;
|
|
477
|
+
export declare const getSitesSecuritySitelockQueryKey: (siteId: number) => string[];
|
|
478
|
+
export declare type SitesSecuritySitelockQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySitelock>>>;
|
|
479
|
+
export declare type SitesSecuritySitelockQueryError = AxiosError<unknown>;
|
|
480
|
+
export declare const useSitesSecuritySitelock: <TData = axios.AxiosResponse<SitesSecuritySitelock200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
481
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSecuritySitelock200, any>, TError, TData, QueryKey> | undefined;
|
|
482
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
483
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
484
|
+
queryKey: QueryKey;
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* To get the SSL Status
|
|
488
|
+
* @summary SSL Status
|
|
489
|
+
*/
|
|
490
|
+
export declare const sitesSecuritySslStatus: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSecuritySslStatus200>>;
|
|
491
|
+
export declare const getSitesSecuritySslStatusQueryKey: (siteId: number) => string[];
|
|
492
|
+
export declare type SitesSecuritySslStatusQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySslStatus>>>;
|
|
493
|
+
export declare type SitesSecuritySslStatusQueryError = AxiosError<unknown>;
|
|
494
|
+
export declare const useSitesSecuritySslStatus: <TData = axios.AxiosResponse<SitesSecuritySslStatus200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
495
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSecuritySslStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
496
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
497
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
498
|
+
queryKey: QueryKey;
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* To add the SSL certificate
|
|
502
|
+
* @summary Add SSL certificate
|
|
503
|
+
*/
|
|
504
|
+
export declare const sitesSecuritySslAcme: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSecuritySslAcme200>>;
|
|
505
|
+
export declare type SitesSecuritySslAcmeMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySslAcme>>>;
|
|
506
|
+
export declare type SitesSecuritySslAcmeMutationError = AxiosError<unknown>;
|
|
507
|
+
export declare const useSitesSecuritySslAcme: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
508
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSecuritySslAcme200, any>, TError, {
|
|
509
|
+
siteId: number;
|
|
510
|
+
}, TContext> | undefined;
|
|
511
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
512
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<SitesSecuritySslAcme200, any>, TError, {
|
|
513
|
+
siteId: number;
|
|
514
|
+
}, TContext>;
|
|
515
|
+
export {};
|