@newfold/huapi-js 1.946.0 → 1.949.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 +2312 -0
- package/src/index.js +2406 -0
- package/src/index.msw.d.ts +1163 -0
- package/src/index.msw.js +471 -0
- package/src/index.schemas.d.ts +2127 -0
- package/src/index.schemas.js +145 -0
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,2312 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.12.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: 1.949.0
|
|
7
|
+
*/
|
|
8
|
+
import axios from 'axios';
|
|
9
|
+
import type { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
|
|
10
|
+
import type { UseQueryOptions, UseInfiniteQueryOptions, UseMutationOptions, UseQueryResult, UseInfiniteQueryResult, QueryKey } from '@tanstack/react-query';
|
|
11
|
+
import type { AccountEventList200, AccountEventListParams, AccountHostingList200, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseList200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteList200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, AddonsSitelockSso200, AddonsCloudflare200, AddonsInfo200, AddonsSpamexpertsSso200, WebzaiSso200, WeeblySso200, DomainInfo200, DomainUnassign200, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, AddonCloudflare200, AddonCloudflareBody, ListCrons200, AddCron200, AddCron400, AddCronBody, UpdateCron200, UpdateCronBody, Cron200, CronBody, DbAdd200, DbAddBody, Db200, DbBody, DbList200, DbUsage200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, Domains200, DomainsParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingEcommerceInfo200, HostingFtpList200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpUpdate200, HostingFtpUpdateBody, HostingFtp200, HostingFtpBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingNameservers200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirects200Item, HostingResellerSsoWhm200, HostingShellToggle200, HostingShellToggleBody, HostingShellInfo200, HostingSiteAdd200, HostingSiteAddBody, SitesBatch200, SitesBatchBody, HostingSshInfo200, SshKeyFetch200, SshKeyFetchParams, SshKeyImport200, SshKeyImportBody, SshKeyList200, SshKey200, SshKeyBody, SshKeyGenerate200, SshKeyGenerateBody, Sso200, SsoParams, SitesList200, SitesInfo200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, Site200, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesHasBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, JetpackBackupStatus200, BackupsJetpackBackup200, SiteAddonCloudflare200, SiteAddonCloudflare400, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesAccessLogs200, SitesAccessLogsParams, SitesAccessLogsDownloadParams, SitesErrorLogs200, SitesErrorLogsParams, SitesErrorLogsDownloadParams, SiteMalwareStatus200, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesMetricDimensions200, SitesMetricDimensionsParams, SitePendingDomainDelete200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEndurancePageCache200, SitePlugins200, SitePluginsParams, SitePluginUpdate200, SitePluginUpdateBody, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, ResetSite200, ResetSiteBody, SitesSecurityCheckCore200, SitesSecurityResetCoreFiles200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecuritySitelock200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserList200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SiteStatus200, SiteUsers200, SitesVersion200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, HostingNameserversV2200, HostingSitesV2200, SshKeyListV2200, SitesListV2200, SitesDomainsV2200, SitesDomainsV2Params, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesListV3200 } from './index.schemas';
|
|
12
|
+
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
13
|
+
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
14
|
+
/**
|
|
15
|
+
* Returns a list of events across a tenant
|
|
16
|
+
* @summary Event list for all accounts under a tenant
|
|
17
|
+
*/
|
|
18
|
+
export declare const accountEventList: (params?: AccountEventListParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<AccountEventList200>>;
|
|
19
|
+
export declare const getAccountEventListQueryKey: (params?: AccountEventListParams) => (string | AccountEventListParams)[];
|
|
20
|
+
export declare type AccountEventListQueryResult = NonNullable<Awaited<ReturnType<typeof accountEventList>>>;
|
|
21
|
+
export declare type AccountEventListQueryError = AxiosError<unknown>;
|
|
22
|
+
export declare const useAccountEventList: <TData = AxiosResponse<AccountEventList200, any>, TError = AxiosError<unknown, any>>(params?: AccountEventListParams, options?: {
|
|
23
|
+
query?: UseQueryOptions<AxiosResponse<AccountEventList200, any>, TError, TData, QueryKey> | undefined;
|
|
24
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
25
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
26
|
+
queryKey: QueryKey;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Returns a hosting account list
|
|
30
|
+
* @summary Hosting account list for a customer
|
|
31
|
+
*/
|
|
32
|
+
export declare const accountHostingList: (options?: AxiosRequestConfig) => Promise<AxiosResponse<AccountHostingList200>>;
|
|
33
|
+
export declare const getAccountHostingListQueryKey: () => string[];
|
|
34
|
+
export declare type AccountHostingListQueryResult = NonNullable<Awaited<ReturnType<typeof accountHostingList>>>;
|
|
35
|
+
export declare type AccountHostingListQueryError = AxiosError<unknown>;
|
|
36
|
+
export declare const useAccountHostingList: <TData = AxiosResponse<AccountHostingList200, any>, TError = AxiosError<unknown, any>>(options?: {
|
|
37
|
+
query?: UseQueryOptions<AxiosResponse<AccountHostingList200, any>, TError, TData, QueryKey> | undefined;
|
|
38
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
39
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
40
|
+
queryKey: QueryKey;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Returns a combined backup list with website commit ids and corresponding database commits
|
|
44
|
+
* @summary backup list
|
|
45
|
+
*/
|
|
46
|
+
export declare const codeguardBackupList: (addonId: number, params: CodeguardBackupListParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardBackupList200>>;
|
|
47
|
+
export declare const getCodeguardBackupListQueryKey: (addonId: number, params: CodeguardBackupListParams) => (string | CodeguardBackupListParams)[];
|
|
48
|
+
export declare type CodeguardBackupListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardBackupList>>>;
|
|
49
|
+
export declare type CodeguardBackupListQueryError = AxiosError<unknown>;
|
|
50
|
+
export declare const useCodeguardBackupList: <TData = AxiosResponse<CodeguardBackupList200, any>, TError = AxiosError<unknown, any>>(addonId: number, params: CodeguardBackupListParams, options?: {
|
|
51
|
+
query?: UseQueryOptions<AxiosResponse<CodeguardBackupList200, any>, TError, TData, QueryKey> | undefined;
|
|
52
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
53
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
54
|
+
queryKey: QueryKey;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Creates the website backup
|
|
58
|
+
* @summary backup create
|
|
59
|
+
*/
|
|
60
|
+
export declare const codeguardBackupCreate: (addonId: number, codeguardBackupCreateBody: CodeguardBackupCreateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardBackupCreate200>>;
|
|
61
|
+
export declare type CodeguardBackupCreateMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardBackupCreate>>>;
|
|
62
|
+
export declare type CodeguardBackupCreateMutationBody = CodeguardBackupCreateBody;
|
|
63
|
+
export declare type CodeguardBackupCreateMutationError = AxiosError<unknown>;
|
|
64
|
+
export declare const useCodeguardBackupCreate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
65
|
+
mutation?: UseMutationOptions<AxiosResponse<CodeguardBackupCreate200, any>, TError, {
|
|
66
|
+
addonId: number;
|
|
67
|
+
data: CodeguardBackupCreateBody;
|
|
68
|
+
}, TContext> | undefined;
|
|
69
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
70
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<CodeguardBackupCreate200, any>, TError, {
|
|
71
|
+
addonId: number;
|
|
72
|
+
data: CodeguardBackupCreateBody;
|
|
73
|
+
}, TContext>;
|
|
74
|
+
/**
|
|
75
|
+
* Queues the backup download.
|
|
76
|
+
* @summary backup download
|
|
77
|
+
*/
|
|
78
|
+
export declare const codeguardBackupDownload: (addonId: number, codeguardBackupDownloadBody: CodeguardBackupDownloadBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardBackupDownload200>>;
|
|
79
|
+
export declare type CodeguardBackupDownloadMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardBackupDownload>>>;
|
|
80
|
+
export declare type CodeguardBackupDownloadMutationBody = CodeguardBackupDownloadBody;
|
|
81
|
+
export declare type CodeguardBackupDownloadMutationError = AxiosError<unknown>;
|
|
82
|
+
export declare const useCodeguardBackupDownload: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
83
|
+
mutation?: UseMutationOptions<AxiosResponse<CodeguardBackupDownload200, any>, TError, {
|
|
84
|
+
addonId: number;
|
|
85
|
+
data: CodeguardBackupDownloadBody;
|
|
86
|
+
}, TContext> | undefined;
|
|
87
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
88
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<CodeguardBackupDownload200, any>, TError, {
|
|
89
|
+
addonId: number;
|
|
90
|
+
data: CodeguardBackupDownloadBody;
|
|
91
|
+
}, TContext>;
|
|
92
|
+
/**
|
|
93
|
+
* Restores a website and database backup
|
|
94
|
+
* @summary backups restore
|
|
95
|
+
*/
|
|
96
|
+
export declare const codeguardBackupRestore: (addonId: number, codeguardBackupRestoreBody: CodeguardBackupRestoreBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardBackupRestore200>>;
|
|
97
|
+
export declare type CodeguardBackupRestoreMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardBackupRestore>>>;
|
|
98
|
+
export declare type CodeguardBackupRestoreMutationBody = CodeguardBackupRestoreBody;
|
|
99
|
+
export declare type CodeguardBackupRestoreMutationError = AxiosError<unknown>;
|
|
100
|
+
export declare const useCodeguardBackupRestore: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
101
|
+
mutation?: UseMutationOptions<AxiosResponse<CodeguardBackupRestore200, any>, TError, {
|
|
102
|
+
addonId: number;
|
|
103
|
+
data: CodeguardBackupRestoreBody;
|
|
104
|
+
}, TContext> | undefined;
|
|
105
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
106
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<CodeguardBackupRestore200, any>, TError, {
|
|
107
|
+
addonId: number;
|
|
108
|
+
data: CodeguardBackupRestoreBody;
|
|
109
|
+
}, TContext>;
|
|
110
|
+
/**
|
|
111
|
+
* Returns all database records CodeGuard maintains for this user's account.
|
|
112
|
+
* @summary database list
|
|
113
|
+
*/
|
|
114
|
+
export declare const codeguardDatabaseList: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardDatabaseList200>>;
|
|
115
|
+
export declare const getCodeguardDatabaseListQueryKey: (addonId: number) => string[];
|
|
116
|
+
export declare type CodeguardDatabaseListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardDatabaseList>>>;
|
|
117
|
+
export declare type CodeguardDatabaseListQueryError = AxiosError<unknown>;
|
|
118
|
+
export declare const useCodeguardDatabaseList: <TData = AxiosResponse<CodeguardDatabaseList200, any>, TError = AxiosError<unknown, any>>(addonId: number, options?: {
|
|
119
|
+
query?: UseQueryOptions<AxiosResponse<CodeguardDatabaseList200, any>, TError, TData, QueryKey> | undefined;
|
|
120
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
121
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
122
|
+
queryKey: QueryKey;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Returns all database backup records CodeGuard maintains for this user's account.
|
|
126
|
+
* @summary database backup list
|
|
127
|
+
*/
|
|
128
|
+
export declare const codeguardDatabaseBackupList: (addonId: number, params?: CodeguardDatabaseBackupListParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardDatabaseBackupList200>>;
|
|
129
|
+
export declare const getCodeguardDatabaseBackupListQueryKey: (addonId: number, params?: CodeguardDatabaseBackupListParams) => (string | CodeguardDatabaseBackupListParams)[];
|
|
130
|
+
export declare type CodeguardDatabaseBackupListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardDatabaseBackupList>>>;
|
|
131
|
+
export declare type CodeguardDatabaseBackupListQueryError = AxiosError<unknown>;
|
|
132
|
+
export declare const useCodeguardDatabaseBackupList: <TData = AxiosResponse<CodeguardDatabaseBackupList200, any>, TError = AxiosError<unknown, any>>(addonId: number, params?: CodeguardDatabaseBackupListParams, options?: {
|
|
133
|
+
query?: UseQueryOptions<AxiosResponse<CodeguardDatabaseBackupList200, any>, TError, TData, QueryKey> | undefined;
|
|
134
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
135
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
136
|
+
queryKey: QueryKey;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Queue the creation of a database backup.
|
|
140
|
+
* @summary database backup create
|
|
141
|
+
*/
|
|
142
|
+
export declare const codeguardDatabaseBackupCreate: (addonId: number, codeguardDatabaseBackupCreateBody: CodeguardDatabaseBackupCreateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardDatabaseBackupCreate200>>;
|
|
143
|
+
export declare type CodeguardDatabaseBackupCreateMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardDatabaseBackupCreate>>>;
|
|
144
|
+
export declare type CodeguardDatabaseBackupCreateMutationBody = CodeguardDatabaseBackupCreateBody;
|
|
145
|
+
export declare type CodeguardDatabaseBackupCreateMutationError = AxiosError<unknown>;
|
|
146
|
+
export declare const useCodeguardDatabaseBackupCreate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
147
|
+
mutation?: UseMutationOptions<AxiosResponse<CodeguardDatabaseBackupCreate200, any>, TError, {
|
|
148
|
+
addonId: number;
|
|
149
|
+
data: CodeguardDatabaseBackupCreateBody;
|
|
150
|
+
}, TContext> | undefined;
|
|
151
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
152
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<CodeguardDatabaseBackupCreate200, any>, TError, {
|
|
153
|
+
addonId: number;
|
|
154
|
+
data: CodeguardDatabaseBackupCreateBody;
|
|
155
|
+
}, TContext>;
|
|
156
|
+
/**
|
|
157
|
+
* Restores a database backup
|
|
158
|
+
* @summary database backup restore
|
|
159
|
+
*/
|
|
160
|
+
export declare const codeguardDatabaseBackupRestore: (addonId: number, codeguardDatabaseBackupRestoreBody: CodeguardDatabaseBackupRestoreBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardDatabaseBackupRestore200>>;
|
|
161
|
+
export declare type CodeguardDatabaseBackupRestoreMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardDatabaseBackupRestore>>>;
|
|
162
|
+
export declare type CodeguardDatabaseBackupRestoreMutationBody = CodeguardDatabaseBackupRestoreBody;
|
|
163
|
+
export declare type CodeguardDatabaseBackupRestoreMutationError = AxiosError<unknown>;
|
|
164
|
+
export declare const useCodeguardDatabaseBackupRestore: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
165
|
+
mutation?: UseMutationOptions<AxiosResponse<CodeguardDatabaseBackupRestore200, any>, TError, {
|
|
166
|
+
addonId: number;
|
|
167
|
+
data: CodeguardDatabaseBackupRestoreBody;
|
|
168
|
+
}, TContext> | undefined;
|
|
169
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
170
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<CodeguardDatabaseBackupRestore200, any>, TError, {
|
|
171
|
+
addonId: number;
|
|
172
|
+
data: CodeguardDatabaseBackupRestoreBody;
|
|
173
|
+
}, TContext>;
|
|
174
|
+
/**
|
|
175
|
+
* Returns an oauth login URL that can be used to access CodeGuard dashboard for a user.
|
|
176
|
+
* @summary login link
|
|
177
|
+
*/
|
|
178
|
+
export declare const codeguardLoginLink: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardLoginLink200>>;
|
|
179
|
+
export declare const getCodeguardLoginLinkQueryKey: (addonId: number) => string[];
|
|
180
|
+
export declare type CodeguardLoginLinkQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardLoginLink>>>;
|
|
181
|
+
export declare type CodeguardLoginLinkQueryError = AxiosError<unknown>;
|
|
182
|
+
export declare const useCodeguardLoginLink: <TData = AxiosResponse<CodeguardLoginLink200, any>, TError = AxiosError<unknown, any>>(addonId: number, options?: {
|
|
183
|
+
query?: UseQueryOptions<AxiosResponse<CodeguardLoginLink200, any>, TError, TData, QueryKey> | undefined;
|
|
184
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
185
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
186
|
+
queryKey: QueryKey;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Returns the subscribed plan and usage info
|
|
190
|
+
* @summary plan info
|
|
191
|
+
*/
|
|
192
|
+
export declare const codeguardPlanInfo: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardPlanInfo200>>;
|
|
193
|
+
export declare const getCodeguardPlanInfoQueryKey: (addonId: number) => string[];
|
|
194
|
+
export declare type CodeguardPlanInfoQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardPlanInfo>>>;
|
|
195
|
+
export declare type CodeguardPlanInfoQueryError = AxiosError<unknown>;
|
|
196
|
+
export declare const useCodeguardPlanInfo: <TData = AxiosResponse<CodeguardPlanInfo200, any>, TError = AxiosError<unknown, any>>(addonId: number, options?: {
|
|
197
|
+
query?: UseQueryOptions<AxiosResponse<CodeguardPlanInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
198
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
199
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
200
|
+
queryKey: QueryKey;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Returns all website records CodeGuard maintains for this user's account.
|
|
204
|
+
* @summary website list
|
|
205
|
+
*/
|
|
206
|
+
export declare const codeguardWebsiteList: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardWebsiteList200>>;
|
|
207
|
+
export declare const getCodeguardWebsiteListQueryKey: (addonId: number) => string[];
|
|
208
|
+
export declare type CodeguardWebsiteListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardWebsiteList>>>;
|
|
209
|
+
export declare type CodeguardWebsiteListQueryError = AxiosError<unknown>;
|
|
210
|
+
export declare const useCodeguardWebsiteList: <TData = AxiosResponse<CodeguardWebsiteList200, any>, TError = AxiosError<unknown, any>>(addonId: number, options?: {
|
|
211
|
+
query?: UseQueryOptions<AxiosResponse<CodeguardWebsiteList200, any>, TError, TData, QueryKey> | undefined;
|
|
212
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
213
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
214
|
+
queryKey: QueryKey;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Returns all website backup records CodeGuard maintains for this user's account.
|
|
218
|
+
* @summary website backup list
|
|
219
|
+
*/
|
|
220
|
+
export declare const codeguardWebsiteBackupList: (addonId: number, params?: CodeguardWebsiteBackupListParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardWebsiteBackupList200>>;
|
|
221
|
+
export declare const getCodeguardWebsiteBackupListQueryKey: (addonId: number, params?: CodeguardWebsiteBackupListParams) => (string | CodeguardWebsiteBackupListParams)[];
|
|
222
|
+
export declare type CodeguardWebsiteBackupListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardWebsiteBackupList>>>;
|
|
223
|
+
export declare type CodeguardWebsiteBackupListQueryError = AxiosError<unknown>;
|
|
224
|
+
export declare const useCodeguardWebsiteBackupList: <TData = AxiosResponse<CodeguardWebsiteBackupList200, any>, TError = AxiosError<unknown, any>>(addonId: number, params?: CodeguardWebsiteBackupListParams, options?: {
|
|
225
|
+
query?: UseQueryOptions<AxiosResponse<CodeguardWebsiteBackupList200, any>, TError, TData, QueryKey> | undefined;
|
|
226
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
227
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
228
|
+
queryKey: QueryKey;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Initiate the creation of a new backup for a given website
|
|
232
|
+
* @summary website backup create
|
|
233
|
+
*/
|
|
234
|
+
export declare const codeguardWebsiteBackupCreate: (addonId: number, codeguardWebsiteBackupCreateBody: CodeguardWebsiteBackupCreateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardWebsiteBackupCreate200>>;
|
|
235
|
+
export declare type CodeguardWebsiteBackupCreateMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardWebsiteBackupCreate>>>;
|
|
236
|
+
export declare type CodeguardWebsiteBackupCreateMutationBody = CodeguardWebsiteBackupCreateBody;
|
|
237
|
+
export declare type CodeguardWebsiteBackupCreateMutationError = AxiosError<unknown>;
|
|
238
|
+
export declare const useCodeguardWebsiteBackupCreate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
239
|
+
mutation?: UseMutationOptions<AxiosResponse<CodeguardWebsiteBackupCreate200, any>, TError, {
|
|
240
|
+
addonId: number;
|
|
241
|
+
data: CodeguardWebsiteBackupCreateBody;
|
|
242
|
+
}, TContext> | undefined;
|
|
243
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
244
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<CodeguardWebsiteBackupCreate200, any>, TError, {
|
|
245
|
+
addonId: number;
|
|
246
|
+
data: CodeguardWebsiteBackupCreateBody;
|
|
247
|
+
}, TContext>;
|
|
248
|
+
/**
|
|
249
|
+
* Restores a website backup
|
|
250
|
+
* @summary website backup restore
|
|
251
|
+
*/
|
|
252
|
+
export declare const codeguardWebsiteBackupRestore: (addonId: number, codeguardWebsiteBackupRestoreBody: CodeguardWebsiteBackupRestoreBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardWebsiteBackupRestore200>>;
|
|
253
|
+
export declare type CodeguardWebsiteBackupRestoreMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardWebsiteBackupRestore>>>;
|
|
254
|
+
export declare type CodeguardWebsiteBackupRestoreMutationBody = CodeguardWebsiteBackupRestoreBody;
|
|
255
|
+
export declare type CodeguardWebsiteBackupRestoreMutationError = AxiosError<unknown>;
|
|
256
|
+
export declare const useCodeguardWebsiteBackupRestore: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
257
|
+
mutation?: UseMutationOptions<AxiosResponse<CodeguardWebsiteBackupRestore200, any>, TError, {
|
|
258
|
+
addonId: number;
|
|
259
|
+
data: CodeguardWebsiteBackupRestoreBody;
|
|
260
|
+
}, TContext> | undefined;
|
|
261
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
262
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<CodeguardWebsiteBackupRestore200, any>, TError, {
|
|
263
|
+
addonId: number;
|
|
264
|
+
data: CodeguardWebsiteBackupRestoreBody;
|
|
265
|
+
}, TContext>;
|
|
266
|
+
/**
|
|
267
|
+
* Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
|
|
268
|
+
* @summary sso
|
|
269
|
+
*/
|
|
270
|
+
export declare const addonsSitelockSso: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsSitelockSso200>>;
|
|
271
|
+
export declare const getAddonsSitelockSsoQueryKey: (addonId: number) => string[];
|
|
272
|
+
export declare type AddonsSitelockSsoQueryResult = NonNullable<Awaited<ReturnType<typeof addonsSitelockSso>>>;
|
|
273
|
+
export declare type AddonsSitelockSsoQueryError = AxiosError<unknown>;
|
|
274
|
+
export declare const useAddonsSitelockSso: <TData = AxiosResponse<AddonsSitelockSso200, any>, TError = AxiosError<unknown, any>>(addonId: number, options?: {
|
|
275
|
+
query?: UseQueryOptions<AxiosResponse<AddonsSitelockSso200, any>, TError, TData, QueryKey> | undefined;
|
|
276
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
277
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
278
|
+
queryKey: QueryKey;
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* Decom and delete cloudflare basic addon
|
|
282
|
+
* @summary Uninstall cloudflare basic addon
|
|
283
|
+
*/
|
|
284
|
+
export declare const addonsCloudflare: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsCloudflare200>>;
|
|
285
|
+
export declare type AddonsCloudflareMutationResult = NonNullable<Awaited<ReturnType<typeof addonsCloudflare>>>;
|
|
286
|
+
export declare type AddonsCloudflareMutationError = AxiosError<unknown>;
|
|
287
|
+
export declare const useAddonsCloudflare: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
288
|
+
mutation?: UseMutationOptions<AxiosResponse<AddonsCloudflare200, any>, TError, {
|
|
289
|
+
addonId: number;
|
|
290
|
+
}, TContext> | undefined;
|
|
291
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
292
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<AddonsCloudflare200, any>, TError, {
|
|
293
|
+
addonId: number;
|
|
294
|
+
}, TContext>;
|
|
295
|
+
/**
|
|
296
|
+
* Returns addon information
|
|
297
|
+
* @summary info
|
|
298
|
+
*/
|
|
299
|
+
export declare const addonsInfo: (addonId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsInfo200>>;
|
|
300
|
+
export declare const getAddonsInfoQueryKey: (addonId: string) => string[];
|
|
301
|
+
export declare type AddonsInfoQueryResult = NonNullable<Awaited<ReturnType<typeof addonsInfo>>>;
|
|
302
|
+
export declare type AddonsInfoQueryError = AxiosError<unknown>;
|
|
303
|
+
export declare const useAddonsInfo: <TData = AxiosResponse<AddonsInfo200, any>, TError = AxiosError<unknown, any>>(addonId: string, options?: {
|
|
304
|
+
query?: UseQueryOptions<AxiosResponse<AddonsInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
305
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
306
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
307
|
+
queryKey: QueryKey;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Returns spamexperts sso url
|
|
311
|
+
* @summary info
|
|
312
|
+
*/
|
|
313
|
+
export declare const addonsSpamexpertsSso: (addonId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsSpamexpertsSso200>>;
|
|
314
|
+
export declare const getAddonsSpamexpertsSsoQueryKey: (addonId: string) => string[];
|
|
315
|
+
export declare type AddonsSpamexpertsSsoQueryResult = NonNullable<Awaited<ReturnType<typeof addonsSpamexpertsSso>>>;
|
|
316
|
+
export declare type AddonsSpamexpertsSsoQueryError = AxiosError<unknown>;
|
|
317
|
+
export declare const useAddonsSpamexpertsSso: <TData = AxiosResponse<AddonsSpamexpertsSso200, any>, TError = AxiosError<unknown, any>>(addonId: string, options?: {
|
|
318
|
+
query?: UseQueryOptions<AxiosResponse<AddonsSpamexpertsSso200, any>, TError, TData, QueryKey> | undefined;
|
|
319
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
320
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
321
|
+
queryKey: QueryKey;
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* Returns WebZai SSO URL
|
|
325
|
+
* @summary webzai sso
|
|
326
|
+
*/
|
|
327
|
+
export declare const webzaiSso: (addonId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebzaiSso200>>;
|
|
328
|
+
export declare const getWebzaiSsoQueryKey: (addonId: string) => string[];
|
|
329
|
+
export declare type WebzaiSsoQueryResult = NonNullable<Awaited<ReturnType<typeof webzaiSso>>>;
|
|
330
|
+
export declare type WebzaiSsoQueryError = AxiosError<unknown>;
|
|
331
|
+
export declare const useWebzaiSso: <TData = AxiosResponse<WebzaiSso200, any>, TError = AxiosError<unknown, any>>(addonId: string, options?: {
|
|
332
|
+
query?: UseQueryOptions<AxiosResponse<WebzaiSso200, any>, TError, TData, QueryKey> | undefined;
|
|
333
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
334
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
335
|
+
queryKey: QueryKey;
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Returns Weebly SSO URL
|
|
339
|
+
* @summary weebly sso
|
|
340
|
+
*/
|
|
341
|
+
export declare const weeblySso: (addonId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<WeeblySso200>>;
|
|
342
|
+
export declare const getWeeblySsoQueryKey: (addonId: string) => string[];
|
|
343
|
+
export declare type WeeblySsoQueryResult = NonNullable<Awaited<ReturnType<typeof weeblySso>>>;
|
|
344
|
+
export declare type WeeblySsoQueryError = AxiosError<unknown>;
|
|
345
|
+
export declare const useWeeblySso: <TData = AxiosResponse<WeeblySso200, any>, TError = AxiosError<unknown, any>>(addonId: string, options?: {
|
|
346
|
+
query?: UseQueryOptions<AxiosResponse<WeeblySso200, any>, TError, TData, QueryKey> | undefined;
|
|
347
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
348
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
349
|
+
queryKey: QueryKey;
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Get domain info
|
|
353
|
+
* @summary domain info
|
|
354
|
+
*/
|
|
355
|
+
export declare const domainInfo: (domainId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainInfo200>>;
|
|
356
|
+
export declare const getDomainInfoQueryKey: (domainId: number) => string[];
|
|
357
|
+
export declare type DomainInfoQueryResult = NonNullable<Awaited<ReturnType<typeof domainInfo>>>;
|
|
358
|
+
export declare type DomainInfoQueryError = AxiosError<unknown>;
|
|
359
|
+
export declare const useDomainInfo: <TData = AxiosResponse<DomainInfo200, any>, TError = AxiosError<unknown, any>>(domainId: number, options?: {
|
|
360
|
+
query?: UseQueryOptions<AxiosResponse<DomainInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
361
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
362
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
363
|
+
queryKey: QueryKey;
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* Unassign a domain name
|
|
367
|
+
* @summary domain unassign
|
|
368
|
+
*/
|
|
369
|
+
export declare const domainUnassign: (domainId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainUnassign200>>;
|
|
370
|
+
export declare type DomainUnassignMutationResult = NonNullable<Awaited<ReturnType<typeof domainUnassign>>>;
|
|
371
|
+
export declare type DomainUnassignMutationError = AxiosError<unknown>;
|
|
372
|
+
export declare const useDomainUnassign: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
373
|
+
mutation?: UseMutationOptions<AxiosResponse<DomainUnassign200, any>, TError, {
|
|
374
|
+
domainId: number;
|
|
375
|
+
}, TContext> | undefined;
|
|
376
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
377
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<DomainUnassign200, any>, TError, {
|
|
378
|
+
domainId: number;
|
|
379
|
+
}, TContext>;
|
|
380
|
+
/**
|
|
381
|
+
* Returns HAL hosting account-level information
|
|
382
|
+
* @summary HAL Hosting Account Info
|
|
383
|
+
*/
|
|
384
|
+
export declare const hostingAccount: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAccount200>>;
|
|
385
|
+
export declare const getHostingAccountQueryKey: (hostingId: string) => string[];
|
|
386
|
+
export declare type HostingAccountQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAccount>>>;
|
|
387
|
+
export declare type HostingAccountQueryError = AxiosError<unknown>;
|
|
388
|
+
export declare const useHostingAccount: <TData = AxiosResponse<HostingAccount200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
389
|
+
query?: UseQueryOptions<AxiosResponse<HostingAccount200, any>, TError, TData, QueryKey> | undefined;
|
|
390
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
391
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
392
|
+
queryKey: QueryKey;
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* Returns a list of addons.
|
|
396
|
+
* @summary addon list
|
|
397
|
+
*/
|
|
398
|
+
export declare const hostingAddons: (hostingId: string, params?: HostingAddonsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAddons200>>;
|
|
399
|
+
export declare const getHostingAddonsQueryKey: (hostingId: string, params?: HostingAddonsParams) => (string | HostingAddonsParams)[];
|
|
400
|
+
export declare type HostingAddonsQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAddons>>>;
|
|
401
|
+
export declare type HostingAddonsQueryError = AxiosError<unknown>;
|
|
402
|
+
export declare const useHostingAddons: <TData = AxiosResponse<HostingAddons200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: HostingAddonsParams, options?: {
|
|
403
|
+
query?: UseQueryOptions<AxiosResponse<HostingAddons200, any>, TError, TData, QueryKey> | undefined;
|
|
404
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
405
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
406
|
+
queryKey: QueryKey;
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* Returns the hosting server info
|
|
410
|
+
* @summary server status/info
|
|
411
|
+
*/
|
|
412
|
+
export declare const hostingAdvancedServer: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedServer200>>;
|
|
413
|
+
export declare const getHostingAdvancedServerQueryKey: (hostingId: number) => string[];
|
|
414
|
+
export declare type HostingAdvancedServerQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedServer>>>;
|
|
415
|
+
export declare type HostingAdvancedServerQueryError = AxiosError<unknown>;
|
|
416
|
+
export declare const useHostingAdvancedServer: <TData = AxiosResponse<HostingAdvancedServer200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
417
|
+
query?: UseQueryOptions<AxiosResponse<HostingAdvancedServer200, any>, TError, TData, QueryKey> | undefined;
|
|
418
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
419
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
420
|
+
queryKey: QueryKey;
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* Allows for managing server status
|
|
424
|
+
* @summary server_status
|
|
425
|
+
*/
|
|
426
|
+
export declare const hostingAdvancedServerStatus: (hostingId: number, hostingAdvancedServerStatusBody: HostingAdvancedServerStatusBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedServerStatus200>>;
|
|
427
|
+
export declare type HostingAdvancedServerStatusMutationResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedServerStatus>>>;
|
|
428
|
+
export declare type HostingAdvancedServerStatusMutationBody = HostingAdvancedServerStatusBody;
|
|
429
|
+
export declare type HostingAdvancedServerStatusMutationError = AxiosError<unknown>;
|
|
430
|
+
export declare const useHostingAdvancedServerStatus: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
431
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingAdvancedServerStatus200, any>, TError, {
|
|
432
|
+
hostingId: number;
|
|
433
|
+
data: HostingAdvancedServerStatusBody;
|
|
434
|
+
}, TContext> | undefined;
|
|
435
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
436
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingAdvancedServerStatus200, any>, TError, {
|
|
437
|
+
hostingId: number;
|
|
438
|
+
data: HostingAdvancedServerStatusBody;
|
|
439
|
+
}, TContext>;
|
|
440
|
+
/**
|
|
441
|
+
* Update user account's password
|
|
442
|
+
* @summary Update user account password
|
|
443
|
+
*/
|
|
444
|
+
export declare const hostingAdvancedPassword: (hostingId: number, hostingAdvancedPasswordBody: HostingAdvancedPasswordBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedPassword200>>;
|
|
445
|
+
export declare type HostingAdvancedPasswordMutationResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedPassword>>>;
|
|
446
|
+
export declare type HostingAdvancedPasswordMutationBody = HostingAdvancedPasswordBody;
|
|
447
|
+
export declare type HostingAdvancedPasswordMutationError = AxiosError<unknown>;
|
|
448
|
+
export declare const useHostingAdvancedPassword: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
449
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingAdvancedPassword200, any>, TError, {
|
|
450
|
+
hostingId: number;
|
|
451
|
+
data: HostingAdvancedPasswordBody;
|
|
452
|
+
}, TContext> | undefined;
|
|
453
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
454
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingAdvancedPassword200, any>, TError, {
|
|
455
|
+
hostingId: number;
|
|
456
|
+
data: HostingAdvancedPasswordBody;
|
|
457
|
+
}, TContext>;
|
|
458
|
+
/**
|
|
459
|
+
* Returns the hosting sso_whm login url
|
|
460
|
+
* @summary hosting sso_whm
|
|
461
|
+
*/
|
|
462
|
+
export declare const hostingAdvancedSsoWhm: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedSsoWhm200>>;
|
|
463
|
+
export declare const getHostingAdvancedSsoWhmQueryKey: (hostingId: number) => string[];
|
|
464
|
+
export declare type HostingAdvancedSsoWhmQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedSsoWhm>>>;
|
|
465
|
+
export declare type HostingAdvancedSsoWhmQueryError = AxiosError<unknown>;
|
|
466
|
+
export declare const useHostingAdvancedSsoWhm: <TData = AxiosResponse<HostingAdvancedSsoWhm200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
467
|
+
query?: UseQueryOptions<AxiosResponse<HostingAdvancedSsoWhm200, any>, TError, TData, QueryKey> | undefined;
|
|
468
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
469
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
470
|
+
queryKey: QueryKey;
|
|
471
|
+
};
|
|
472
|
+
/**
|
|
473
|
+
* Returns the hosting system_console url
|
|
474
|
+
* @summary hosting system_console
|
|
475
|
+
*/
|
|
476
|
+
export declare const hostingAdvancedSystemConsole: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedSystemConsole200>>;
|
|
477
|
+
export declare const getHostingAdvancedSystemConsoleQueryKey: (hostingId: number) => string[];
|
|
478
|
+
export declare type HostingAdvancedSystemConsoleQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedSystemConsole>>>;
|
|
479
|
+
export declare type HostingAdvancedSystemConsoleQueryError = AxiosError<unknown>;
|
|
480
|
+
export declare const useHostingAdvancedSystemConsole: <TData = AxiosResponse<HostingAdvancedSystemConsole200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
481
|
+
query?: UseQueryOptions<AxiosResponse<HostingAdvancedSystemConsole200, any>, TError, TData, QueryKey> | undefined;
|
|
482
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
483
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
484
|
+
queryKey: QueryKey;
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* Returns the hosting capabilities
|
|
488
|
+
* @summary hosting capabilities
|
|
489
|
+
*/
|
|
490
|
+
export declare const hostingCapabilities: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingCapabilities200>>;
|
|
491
|
+
export declare const getHostingCapabilitiesQueryKey: (hostingId: string) => string[];
|
|
492
|
+
export declare type HostingCapabilitiesQueryResult = NonNullable<Awaited<ReturnType<typeof hostingCapabilities>>>;
|
|
493
|
+
export declare type HostingCapabilitiesQueryError = AxiosError<unknown>;
|
|
494
|
+
export declare const useHostingCapabilities: <TData = AxiosResponse<HostingCapabilities200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
495
|
+
query?: UseQueryOptions<AxiosResponse<HostingCapabilities200, any>, TError, TData, QueryKey> | undefined;
|
|
496
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
497
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
498
|
+
queryKey: QueryKey;
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Creates cloudflare basic addon
|
|
502
|
+
* @deprecated
|
|
503
|
+
* @summary Deprecated - Install cloudflare basic addon
|
|
504
|
+
*/
|
|
505
|
+
export declare const addonCloudflare: (hostingId: number, addonCloudflareBody: AddonCloudflareBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonCloudflare200>>;
|
|
506
|
+
export declare type AddonCloudflareMutationResult = NonNullable<Awaited<ReturnType<typeof addonCloudflare>>>;
|
|
507
|
+
export declare type AddonCloudflareMutationBody = AddonCloudflareBody;
|
|
508
|
+
export declare type AddonCloudflareMutationError = AxiosError<unknown>;
|
|
509
|
+
export declare const useAddonCloudflare: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
510
|
+
mutation?: UseMutationOptions<AxiosResponse<AddonCloudflare200, any>, TError, {
|
|
511
|
+
hostingId: number;
|
|
512
|
+
data: AddonCloudflareBody;
|
|
513
|
+
}, TContext> | undefined;
|
|
514
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
515
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<AddonCloudflare200, any>, TError, {
|
|
516
|
+
hostingId: number;
|
|
517
|
+
data: AddonCloudflareBody;
|
|
518
|
+
}, TContext>;
|
|
519
|
+
/**
|
|
520
|
+
* Returns a list of cron jobs
|
|
521
|
+
* @summary cron_list
|
|
522
|
+
*/
|
|
523
|
+
export declare const listCrons: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<ListCrons200>>;
|
|
524
|
+
export declare const getListCronsQueryKey: (hostingId: number) => string[];
|
|
525
|
+
export declare type ListCronsQueryResult = NonNullable<Awaited<ReturnType<typeof listCrons>>>;
|
|
526
|
+
export declare type ListCronsQueryError = AxiosError<unknown>;
|
|
527
|
+
export declare const useListCrons: <TData = AxiosResponse<ListCrons200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
528
|
+
query?: UseQueryOptions<AxiosResponse<ListCrons200, any>, TError, TData, QueryKey> | undefined;
|
|
529
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
530
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
531
|
+
queryKey: QueryKey;
|
|
532
|
+
};
|
|
533
|
+
/**
|
|
534
|
+
* Adds a new cron job
|
|
535
|
+
* @summary cron_add
|
|
536
|
+
*/
|
|
537
|
+
export declare const addCron: (hostingId: number, addCronBody: AddCronBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddCron200>>;
|
|
538
|
+
export declare type AddCronMutationResult = NonNullable<Awaited<ReturnType<typeof addCron>>>;
|
|
539
|
+
export declare type AddCronMutationBody = AddCronBody;
|
|
540
|
+
export declare type AddCronMutationError = AxiosError<AddCron400>;
|
|
541
|
+
export declare const useAddCron: <TError = AxiosError<AddCron400, any>, TContext = unknown>(options?: {
|
|
542
|
+
mutation?: UseMutationOptions<AxiosResponse<AddCron200, any>, TError, {
|
|
543
|
+
hostingId: number;
|
|
544
|
+
data: AddCronBody;
|
|
545
|
+
}, TContext> | undefined;
|
|
546
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
547
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<AddCron200, any>, TError, {
|
|
548
|
+
hostingId: number;
|
|
549
|
+
data: AddCronBody;
|
|
550
|
+
}, TContext>;
|
|
551
|
+
/**
|
|
552
|
+
* Updates a cron job
|
|
553
|
+
* @summary cron_update
|
|
554
|
+
*/
|
|
555
|
+
export declare const updateCron: (hostingId: number, updateCronBody: UpdateCronBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<UpdateCron200>>;
|
|
556
|
+
export declare type UpdateCronMutationResult = NonNullable<Awaited<ReturnType<typeof updateCron>>>;
|
|
557
|
+
export declare type UpdateCronMutationBody = UpdateCronBody;
|
|
558
|
+
export declare type UpdateCronMutationError = AxiosError<unknown>;
|
|
559
|
+
export declare const useUpdateCron: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
560
|
+
mutation?: UseMutationOptions<AxiosResponse<UpdateCron200, any>, TError, {
|
|
561
|
+
hostingId: number;
|
|
562
|
+
data: UpdateCronBody;
|
|
563
|
+
}, TContext> | undefined;
|
|
564
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
565
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<UpdateCron200, any>, TError, {
|
|
566
|
+
hostingId: number;
|
|
567
|
+
data: UpdateCronBody;
|
|
568
|
+
}, TContext>;
|
|
569
|
+
/**
|
|
570
|
+
* Deletes a cron job
|
|
571
|
+
* @summary cron_delete
|
|
572
|
+
*/
|
|
573
|
+
export declare const cron: (hostingId: number, cronBody: CronBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<Cron200>>;
|
|
574
|
+
export declare type CronMutationResult = NonNullable<Awaited<ReturnType<typeof cron>>>;
|
|
575
|
+
export declare type CronMutationBody = CronBody;
|
|
576
|
+
export declare type CronMutationError = AxiosError<unknown>;
|
|
577
|
+
export declare const useCron: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
578
|
+
mutation?: UseMutationOptions<AxiosResponse<Cron200, any>, TError, {
|
|
579
|
+
hostingId: number;
|
|
580
|
+
data: CronBody;
|
|
581
|
+
}, TContext> | undefined;
|
|
582
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
583
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<Cron200, any>, TError, {
|
|
584
|
+
hostingId: number;
|
|
585
|
+
data: CronBody;
|
|
586
|
+
}, TContext>;
|
|
587
|
+
/**
|
|
588
|
+
* Add a new db to an account
|
|
589
|
+
* @summary Create a database for an account
|
|
590
|
+
*/
|
|
591
|
+
export declare const dbAdd: (hostingId: number, dbAddBody: DbAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<DbAdd200>>;
|
|
592
|
+
export declare type DbAddMutationResult = NonNullable<Awaited<ReturnType<typeof dbAdd>>>;
|
|
593
|
+
export declare type DbAddMutationBody = DbAddBody;
|
|
594
|
+
export declare type DbAddMutationError = AxiosError<unknown>;
|
|
595
|
+
export declare const useDbAdd: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
596
|
+
mutation?: UseMutationOptions<AxiosResponse<DbAdd200, any>, TError, {
|
|
597
|
+
hostingId: number;
|
|
598
|
+
data: DbAddBody;
|
|
599
|
+
}, TContext> | undefined;
|
|
600
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
601
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<DbAdd200, any>, TError, {
|
|
602
|
+
hostingId: number;
|
|
603
|
+
data: DbAddBody;
|
|
604
|
+
}, TContext>;
|
|
605
|
+
/**
|
|
606
|
+
* Delete db account
|
|
607
|
+
* @summary Delete db account
|
|
608
|
+
*/
|
|
609
|
+
export declare const db: (hostingId: number, dbBody: DbBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<Db200>>;
|
|
610
|
+
export declare type DbMutationResult = NonNullable<Awaited<ReturnType<typeof db>>>;
|
|
611
|
+
export declare type DbMutationBody = DbBody;
|
|
612
|
+
export declare type DbMutationError = AxiosError<unknown>;
|
|
613
|
+
export declare const useDb: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
614
|
+
mutation?: UseMutationOptions<AxiosResponse<Db200, any>, TError, {
|
|
615
|
+
hostingId: number;
|
|
616
|
+
data: DbBody;
|
|
617
|
+
}, TContext> | undefined;
|
|
618
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
619
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<Db200, any>, TError, {
|
|
620
|
+
hostingId: number;
|
|
621
|
+
data: DbBody;
|
|
622
|
+
}, TContext>;
|
|
623
|
+
/**
|
|
624
|
+
* List all DB name
|
|
625
|
+
* @summary Get list of database name
|
|
626
|
+
*/
|
|
627
|
+
export declare const dbList: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<DbList200>>;
|
|
628
|
+
export declare const getDbListQueryKey: (hostingId: number) => string[];
|
|
629
|
+
export declare type DbListQueryResult = NonNullable<Awaited<ReturnType<typeof dbList>>>;
|
|
630
|
+
export declare type DbListQueryError = AxiosError<unknown>;
|
|
631
|
+
export declare const useDbList: <TData = AxiosResponse<DbList200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
632
|
+
query?: UseQueryOptions<AxiosResponse<DbList200, any>, TError, TData, QueryKey> | undefined;
|
|
633
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
634
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
635
|
+
queryKey: QueryKey;
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* Returns a list of db and table limits and usage.
|
|
639
|
+
* @summary DB usage
|
|
640
|
+
*/
|
|
641
|
+
export declare const dbUsage: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<DbUsage200>>;
|
|
642
|
+
export declare const getDbUsageQueryKey: (hostingId: string) => string[];
|
|
643
|
+
export declare type DbUsageQueryResult = NonNullable<Awaited<ReturnType<typeof dbUsage>>>;
|
|
644
|
+
export declare type DbUsageQueryError = AxiosError<unknown>;
|
|
645
|
+
export declare const useDbUsage: <TData = AxiosResponse<DbUsage200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
646
|
+
query?: UseQueryOptions<AxiosResponse<DbUsage200, any>, TError, TData, QueryKey> | undefined;
|
|
647
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
648
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
649
|
+
queryKey: QueryKey;
|
|
650
|
+
};
|
|
651
|
+
/**
|
|
652
|
+
* Update database user password
|
|
653
|
+
* @summary Update database user password
|
|
654
|
+
*/
|
|
655
|
+
export declare const dbUserPasswordSet: (hostingId: number, dbUserPasswordSetBody: DbUserPasswordSetBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<DbUserPasswordSet200>>;
|
|
656
|
+
export declare type DbUserPasswordSetMutationResult = NonNullable<Awaited<ReturnType<typeof dbUserPasswordSet>>>;
|
|
657
|
+
export declare type DbUserPasswordSetMutationBody = DbUserPasswordSetBody;
|
|
658
|
+
export declare type DbUserPasswordSetMutationError = AxiosError<unknown>;
|
|
659
|
+
export declare const useDbUserPasswordSet: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
660
|
+
mutation?: UseMutationOptions<AxiosResponse<DbUserPasswordSet200, any>, TError, {
|
|
661
|
+
hostingId: number;
|
|
662
|
+
data: DbUserPasswordSetBody;
|
|
663
|
+
}, TContext> | undefined;
|
|
664
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
665
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<DbUserPasswordSet200, any>, TError, {
|
|
666
|
+
hostingId: number;
|
|
667
|
+
data: DbUserPasswordSetBody;
|
|
668
|
+
}, TContext>;
|
|
669
|
+
/**
|
|
670
|
+
* Get user privileges on a database.
|
|
671
|
+
* @summary Get user privileges on a database.
|
|
672
|
+
*/
|
|
673
|
+
export declare const dbUserPrivsGet: (hostingId: number, params: DbUserPrivsGetParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<DbUserPrivsGet200>>;
|
|
674
|
+
export declare const getDbUserPrivsGetQueryKey: (hostingId: number, params: DbUserPrivsGetParams) => (string | DbUserPrivsGetParams)[];
|
|
675
|
+
export declare type DbUserPrivsGetQueryResult = NonNullable<Awaited<ReturnType<typeof dbUserPrivsGet>>>;
|
|
676
|
+
export declare type DbUserPrivsGetQueryError = AxiosError<unknown>;
|
|
677
|
+
export declare const useDbUserPrivsGet: <TData = AxiosResponse<DbUserPrivsGet200, any>, TError = AxiosError<unknown, any>>(hostingId: number, params: DbUserPrivsGetParams, options?: {
|
|
678
|
+
query?: UseQueryOptions<AxiosResponse<DbUserPrivsGet200, any>, TError, TData, QueryKey> | undefined;
|
|
679
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
680
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
681
|
+
queryKey: QueryKey;
|
|
682
|
+
};
|
|
683
|
+
/**
|
|
684
|
+
* Add/Update user privileges on a database.
|
|
685
|
+
* @summary Add/Update user privileges on a database.
|
|
686
|
+
*/
|
|
687
|
+
export declare const dbUserPrivsSet: (hostingId: number, dbUserPrivsSetBody: DbUserPrivsSetBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<DbUserPrivsSet200>>;
|
|
688
|
+
export declare type DbUserPrivsSetMutationResult = NonNullable<Awaited<ReturnType<typeof dbUserPrivsSet>>>;
|
|
689
|
+
export declare type DbUserPrivsSetMutationBody = DbUserPrivsSetBody;
|
|
690
|
+
export declare type DbUserPrivsSetMutationError = AxiosError<unknown>;
|
|
691
|
+
export declare const useDbUserPrivsSet: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
692
|
+
mutation?: UseMutationOptions<AxiosResponse<DbUserPrivsSet200, any>, TError, {
|
|
693
|
+
hostingId: number;
|
|
694
|
+
data: DbUserPrivsSetBody;
|
|
695
|
+
}, TContext> | undefined;
|
|
696
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
697
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<DbUserPrivsSet200, any>, TError, {
|
|
698
|
+
hostingId: number;
|
|
699
|
+
data: DbUserPrivsSetBody;
|
|
700
|
+
}, TContext>;
|
|
701
|
+
/**
|
|
702
|
+
* Creates a database user with privileges. The final username cannot exceed 16 characters, and will have the cpanel account username's first eight characters prepended to it.
|
|
703
|
+
* @summary Create a database user with privileges
|
|
704
|
+
*/
|
|
705
|
+
export declare const dbUserAdd: (hostingId: number, dbUserAddBody: DbUserAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<DbUserAdd200>>;
|
|
706
|
+
export declare type DbUserAddMutationResult = NonNullable<Awaited<ReturnType<typeof dbUserAdd>>>;
|
|
707
|
+
export declare type DbUserAddMutationBody = DbUserAddBody;
|
|
708
|
+
export declare type DbUserAddMutationError = AxiosError<unknown>;
|
|
709
|
+
export declare const useDbUserAdd: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
710
|
+
mutation?: UseMutationOptions<AxiosResponse<DbUserAdd200, any>, TError, {
|
|
711
|
+
hostingId: number;
|
|
712
|
+
data: DbUserAddBody;
|
|
713
|
+
}, TContext> | undefined;
|
|
714
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
715
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<DbUserAdd200, any>, TError, {
|
|
716
|
+
hostingId: number;
|
|
717
|
+
data: DbUserAddBody;
|
|
718
|
+
}, TContext>;
|
|
719
|
+
/**
|
|
720
|
+
* Delete db user
|
|
721
|
+
* @summary Delete db user
|
|
722
|
+
*/
|
|
723
|
+
export declare const dbUserDelete: (hostingId: number, dbUserDeleteBody: DbUserDeleteBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<DbUserDelete200>>;
|
|
724
|
+
export declare type DbUserDeleteMutationResult = NonNullable<Awaited<ReturnType<typeof dbUserDelete>>>;
|
|
725
|
+
export declare type DbUserDeleteMutationBody = DbUserDeleteBody;
|
|
726
|
+
export declare type DbUserDeleteMutationError = AxiosError<unknown>;
|
|
727
|
+
export declare const useDbUserDelete: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
728
|
+
mutation?: UseMutationOptions<AxiosResponse<DbUserDelete200, any>, TError, {
|
|
729
|
+
hostingId: number;
|
|
730
|
+
data: DbUserDeleteBody;
|
|
731
|
+
}, TContext> | undefined;
|
|
732
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
733
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<DbUserDelete200, any>, TError, {
|
|
734
|
+
hostingId: number;
|
|
735
|
+
data: DbUserDeleteBody;
|
|
736
|
+
}, TContext>;
|
|
737
|
+
/**
|
|
738
|
+
* List all DB users
|
|
739
|
+
* @summary Get list of db users
|
|
740
|
+
*/
|
|
741
|
+
export declare const dbUserList: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<DbUserList200>>;
|
|
742
|
+
export declare const getDbUserListQueryKey: (hostingId: number) => string[];
|
|
743
|
+
export declare type DbUserListQueryResult = NonNullable<Awaited<ReturnType<typeof dbUserList>>>;
|
|
744
|
+
export declare type DbUserListQueryError = AxiosError<unknown>;
|
|
745
|
+
export declare const useDbUserList: <TData = AxiosResponse<DbUserList200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
746
|
+
query?: UseQueryOptions<AxiosResponse<DbUserList200, any>, TError, TData, QueryKey> | undefined;
|
|
747
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
748
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
749
|
+
queryKey: QueryKey;
|
|
750
|
+
};
|
|
751
|
+
/**
|
|
752
|
+
* Returns a list of domains
|
|
753
|
+
* @summary domain list
|
|
754
|
+
*/
|
|
755
|
+
export declare const domains: (hostingId: string, params?: DomainsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<Domains200>>;
|
|
756
|
+
export declare const getDomainsQueryKey: (hostingId: string, params?: DomainsParams) => (string | DomainsParams)[];
|
|
757
|
+
export declare type DomainsQueryResult = NonNullable<Awaited<ReturnType<typeof domains>>>;
|
|
758
|
+
export declare type DomainsQueryError = AxiosError<unknown>;
|
|
759
|
+
export declare const useDomains: <TData = AxiosResponse<Domains200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: DomainsParams, options?: {
|
|
760
|
+
query?: UseQueryOptions<AxiosResponse<Domains200, any>, TError, TData, QueryKey> | undefined;
|
|
761
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
762
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
763
|
+
queryKey: QueryKey;
|
|
764
|
+
};
|
|
765
|
+
/**
|
|
766
|
+
* Unassign the domain associated with the hosting account
|
|
767
|
+
* @summary Unassign the domain
|
|
768
|
+
*/
|
|
769
|
+
export declare const hostingDomainsUnassign: (hostingId: string, hostingDomainsUnassignBody: HostingDomainsUnassignBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingDomainsUnassign200>>;
|
|
770
|
+
export declare type HostingDomainsUnassignMutationResult = NonNullable<Awaited<ReturnType<typeof hostingDomainsUnassign>>>;
|
|
771
|
+
export declare type HostingDomainsUnassignMutationBody = HostingDomainsUnassignBody;
|
|
772
|
+
export declare type HostingDomainsUnassignMutationError = AxiosError<unknown>;
|
|
773
|
+
export declare const useHostingDomainsUnassign: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
774
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingDomainsUnassign200, any>, TError, {
|
|
775
|
+
hostingId: string;
|
|
776
|
+
data: HostingDomainsUnassignBody;
|
|
777
|
+
}, TContext> | undefined;
|
|
778
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
779
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingDomainsUnassign200, any>, TError, {
|
|
780
|
+
hostingId: string;
|
|
781
|
+
data: HostingDomainsUnassignBody;
|
|
782
|
+
}, TContext>;
|
|
783
|
+
/**
|
|
784
|
+
* Returns info about an existing ecommerce addon otherwise it returns null
|
|
785
|
+
* @summary ecommerce info
|
|
786
|
+
*/
|
|
787
|
+
export declare const hostingEcommerceInfo: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEcommerceInfo200>>;
|
|
788
|
+
export declare const getHostingEcommerceInfoQueryKey: (hostingId: number) => string[];
|
|
789
|
+
export declare type HostingEcommerceInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingEcommerceInfo>>>;
|
|
790
|
+
export declare type HostingEcommerceInfoQueryError = AxiosError<unknown>;
|
|
791
|
+
export declare const useHostingEcommerceInfo: <TData = AxiosResponse<HostingEcommerceInfo200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
792
|
+
query?: UseQueryOptions<AxiosResponse<HostingEcommerceInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
793
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
794
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
795
|
+
queryKey: QueryKey;
|
|
796
|
+
};
|
|
797
|
+
/**
|
|
798
|
+
* Returns a list of FTP accounts.
|
|
799
|
+
* @summary ftp list
|
|
800
|
+
*/
|
|
801
|
+
export declare const hostingFtpList: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingFtpList200>>;
|
|
802
|
+
export declare const getHostingFtpListQueryKey: (hostingId: number) => string[];
|
|
803
|
+
export declare type HostingFtpListQueryResult = NonNullable<Awaited<ReturnType<typeof hostingFtpList>>>;
|
|
804
|
+
export declare type HostingFtpListQueryError = AxiosError<unknown>;
|
|
805
|
+
export declare const useHostingFtpList: <TData = AxiosResponse<HostingFtpList200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
806
|
+
query?: UseQueryOptions<AxiosResponse<HostingFtpList200, any>, TError, TData, QueryKey> | undefined;
|
|
807
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
808
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
809
|
+
queryKey: QueryKey;
|
|
810
|
+
};
|
|
811
|
+
/**
|
|
812
|
+
* Add ftp account
|
|
813
|
+
* @summary Add ftp account
|
|
814
|
+
*/
|
|
815
|
+
export declare const hostingFtpAdd: (hostingId: number, hostingFtpAddBody: HostingFtpAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingFtpAdd200>>;
|
|
816
|
+
export declare type HostingFtpAddMutationResult = NonNullable<Awaited<ReturnType<typeof hostingFtpAdd>>>;
|
|
817
|
+
export declare type HostingFtpAddMutationBody = HostingFtpAddBody;
|
|
818
|
+
export declare type HostingFtpAddMutationError = AxiosError<unknown>;
|
|
819
|
+
export declare const useHostingFtpAdd: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
820
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingFtpAdd200, any>, TError, {
|
|
821
|
+
hostingId: number;
|
|
822
|
+
data: HostingFtpAddBody;
|
|
823
|
+
}, TContext> | undefined;
|
|
824
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
825
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingFtpAdd200, any>, TError, {
|
|
826
|
+
hostingId: number;
|
|
827
|
+
data: HostingFtpAddBody;
|
|
828
|
+
}, TContext>;
|
|
829
|
+
/**
|
|
830
|
+
* Update ftp account
|
|
831
|
+
* @summary Update ftp account
|
|
832
|
+
*/
|
|
833
|
+
export declare const hostingFtpUpdate: (hostingId: number, hostingFtpUpdateBody: HostingFtpUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingFtpUpdate200>>;
|
|
834
|
+
export declare type HostingFtpUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof hostingFtpUpdate>>>;
|
|
835
|
+
export declare type HostingFtpUpdateMutationBody = HostingFtpUpdateBody;
|
|
836
|
+
export declare type HostingFtpUpdateMutationError = AxiosError<unknown>;
|
|
837
|
+
export declare const useHostingFtpUpdate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
838
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingFtpUpdate200, any>, TError, {
|
|
839
|
+
hostingId: number;
|
|
840
|
+
data: HostingFtpUpdateBody;
|
|
841
|
+
}, TContext> | undefined;
|
|
842
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
843
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingFtpUpdate200, any>, TError, {
|
|
844
|
+
hostingId: number;
|
|
845
|
+
data: HostingFtpUpdateBody;
|
|
846
|
+
}, TContext>;
|
|
847
|
+
/**
|
|
848
|
+
* Delete ftp account
|
|
849
|
+
* @summary Delete ftp account
|
|
850
|
+
*/
|
|
851
|
+
export declare const hostingFtp: (hostingId: number, hostingFtpBody: HostingFtpBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingFtp200>>;
|
|
852
|
+
export declare type HostingFtpMutationResult = NonNullable<Awaited<ReturnType<typeof hostingFtp>>>;
|
|
853
|
+
export declare type HostingFtpMutationBody = HostingFtpBody;
|
|
854
|
+
export declare type HostingFtpMutationError = AxiosError<unknown>;
|
|
855
|
+
export declare const useHostingFtp: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
856
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingFtp200, any>, TError, {
|
|
857
|
+
hostingId: number;
|
|
858
|
+
data: HostingFtpBody;
|
|
859
|
+
}, TContext> | undefined;
|
|
860
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
861
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingFtp200, any>, TError, {
|
|
862
|
+
hostingId: number;
|
|
863
|
+
data: HostingFtpBody;
|
|
864
|
+
}, TContext>;
|
|
865
|
+
/**
|
|
866
|
+
* Returns hosting account info
|
|
867
|
+
* @summary Hosting info
|
|
868
|
+
*/
|
|
869
|
+
export declare const hostingInfo: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingInfo200>>;
|
|
870
|
+
export declare const getHostingInfoQueryKey: (hostingId: number) => string[];
|
|
871
|
+
export declare type HostingInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingInfo>>>;
|
|
872
|
+
export declare type HostingInfoQueryError = AxiosError<unknown>;
|
|
873
|
+
export declare const useHostingInfo: <TData = AxiosResponse<HostingInfo200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
874
|
+
query?: UseQueryOptions<AxiosResponse<HostingInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
875
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
876
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
877
|
+
queryKey: QueryKey;
|
|
878
|
+
};
|
|
879
|
+
/**
|
|
880
|
+
* Returns the hosting account's disk usage
|
|
881
|
+
* @summary info disk usage
|
|
882
|
+
*/
|
|
883
|
+
export declare const hostingInfoDiskUsage: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingInfoDiskUsage200>>;
|
|
884
|
+
export declare const getHostingInfoDiskUsageQueryKey: (hostingId: number) => string[];
|
|
885
|
+
export declare type HostingInfoDiskUsageQueryResult = NonNullable<Awaited<ReturnType<typeof hostingInfoDiskUsage>>>;
|
|
886
|
+
export declare type HostingInfoDiskUsageQueryError = AxiosError<unknown>;
|
|
887
|
+
export declare const useHostingInfoDiskUsage: <TData = AxiosResponse<HostingInfoDiskUsage200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
888
|
+
query?: UseQueryOptions<AxiosResponse<HostingInfoDiskUsage200, any>, TError, TData, QueryKey> | undefined;
|
|
889
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
890
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
891
|
+
queryKey: QueryKey;
|
|
892
|
+
};
|
|
893
|
+
/**
|
|
894
|
+
* Returns lead info for the user of the hosting account
|
|
895
|
+
* @summary Lead info
|
|
896
|
+
*/
|
|
897
|
+
export declare const hostingLead: (hostingId: string, params?: HostingLeadParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingLead200>>;
|
|
898
|
+
export declare type HostingLeadMutationResult = NonNullable<Awaited<ReturnType<typeof hostingLead>>>;
|
|
899
|
+
export declare type HostingLeadMutationError = AxiosError<HostingLead400>;
|
|
900
|
+
export declare const useHostingLead: <TError = AxiosError<HostingLead400, any>, TContext = unknown>(options?: {
|
|
901
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingLead200, any>, TError, {
|
|
902
|
+
hostingId: string;
|
|
903
|
+
params?: HostingLeadParams | undefined;
|
|
904
|
+
}, TContext> | undefined;
|
|
905
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
906
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingLead200, any>, TError, {
|
|
907
|
+
hostingId: string;
|
|
908
|
+
params?: HostingLeadParams | undefined;
|
|
909
|
+
}, TContext>;
|
|
910
|
+
/**
|
|
911
|
+
* Gets the Wordpress migration status
|
|
912
|
+
* @summary Wordpress migration status
|
|
913
|
+
*/
|
|
914
|
+
export declare const hostingMigrationStatus: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrationStatus200>>;
|
|
915
|
+
export declare const getHostingMigrationStatusQueryKey: (hostingId: number) => string[];
|
|
916
|
+
export declare type HostingMigrationStatusQueryResult = NonNullable<Awaited<ReturnType<typeof hostingMigrationStatus>>>;
|
|
917
|
+
export declare type HostingMigrationStatusQueryError = AxiosError<unknown>;
|
|
918
|
+
export declare const useHostingMigrationStatus: <TData = AxiosResponse<HostingMigrationStatus200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
919
|
+
query?: UseQueryOptions<AxiosResponse<HostingMigrationStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
920
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
921
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
922
|
+
queryKey: QueryKey;
|
|
923
|
+
};
|
|
924
|
+
/**
|
|
925
|
+
* Adds the wordpressmigrate addon for a given migration id and hosting account
|
|
926
|
+
* @summary start the migration process for a site
|
|
927
|
+
*/
|
|
928
|
+
export declare const hostingMigrations: (hostingId: string, hostingMigrationsBody: HostingMigrationsBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrations200>>;
|
|
929
|
+
export declare type HostingMigrationsMutationResult = NonNullable<Awaited<ReturnType<typeof hostingMigrations>>>;
|
|
930
|
+
export declare type HostingMigrationsMutationBody = HostingMigrationsBody;
|
|
931
|
+
export declare type HostingMigrationsMutationError = AxiosError<unknown>;
|
|
932
|
+
export declare const useHostingMigrations: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
933
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingMigrations200, any>, TError, {
|
|
934
|
+
hostingId: string;
|
|
935
|
+
data: HostingMigrationsBody;
|
|
936
|
+
}, TContext> | undefined;
|
|
937
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
938
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingMigrations200, any>, TError, {
|
|
939
|
+
hostingId: string;
|
|
940
|
+
data: HostingMigrationsBody;
|
|
941
|
+
}, TContext>;
|
|
942
|
+
/**
|
|
943
|
+
* Checks if Migration ID exists, indicating the site migration is in progress or completed
|
|
944
|
+
* @deprecated
|
|
945
|
+
* @summary Deprecated Migration ID check
|
|
946
|
+
*/
|
|
947
|
+
export declare const hostingMigrationsCheck: (hostingId: number, params: HostingMigrationsCheckParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrationsCheck200>>;
|
|
948
|
+
export declare const getHostingMigrationsCheckQueryKey: (hostingId: number, params: HostingMigrationsCheckParams) => (string | HostingMigrationsCheckParams)[];
|
|
949
|
+
export declare type HostingMigrationsCheckQueryResult = NonNullable<Awaited<ReturnType<typeof hostingMigrationsCheck>>>;
|
|
950
|
+
export declare type HostingMigrationsCheckQueryError = AxiosError<unknown>;
|
|
951
|
+
export declare const useHostingMigrationsCheck: <TData = AxiosResponse<HostingMigrationsCheck200, any>, TError = AxiosError<unknown, any>>(hostingId: number, params: HostingMigrationsCheckParams, options?: {
|
|
952
|
+
query?: UseQueryOptions<AxiosResponse<HostingMigrationsCheck200, any>, TError, TData, QueryKey> | undefined;
|
|
953
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
954
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
955
|
+
queryKey: QueryKey;
|
|
956
|
+
};
|
|
957
|
+
/**
|
|
958
|
+
* Post migration event to CWM
|
|
959
|
+
* @summary hosting migrations event
|
|
960
|
+
*/
|
|
961
|
+
export declare const hostingMigrationsEvent: (hostingId: string, hostingMigrationsEventBody: HostingMigrationsEventBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrationsEvent200>>;
|
|
962
|
+
export declare type HostingMigrationsEventMutationResult = NonNullable<Awaited<ReturnType<typeof hostingMigrationsEvent>>>;
|
|
963
|
+
export declare type HostingMigrationsEventMutationBody = HostingMigrationsEventBody;
|
|
964
|
+
export declare type HostingMigrationsEventMutationError = AxiosError<unknown>;
|
|
965
|
+
export declare const useHostingMigrationsEvent: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
966
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingMigrationsEvent200, any>, TError, {
|
|
967
|
+
hostingId: string;
|
|
968
|
+
data: HostingMigrationsEventBody;
|
|
969
|
+
}, TContext> | undefined;
|
|
970
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
971
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingMigrationsEvent200, any>, TError, {
|
|
972
|
+
hostingId: string;
|
|
973
|
+
data: HostingMigrationsEventBody;
|
|
974
|
+
}, TContext>;
|
|
975
|
+
/**
|
|
976
|
+
* Gets the Wordpress migration information
|
|
977
|
+
* @summary Wordpress migration information
|
|
978
|
+
*/
|
|
979
|
+
export declare const hostingMigrationInfo: (hostingId: number, params: HostingMigrationInfoParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrationInfo200>>;
|
|
980
|
+
export declare const getHostingMigrationInfoQueryKey: (hostingId: number, params: HostingMigrationInfoParams) => (string | HostingMigrationInfoParams)[];
|
|
981
|
+
export declare type HostingMigrationInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingMigrationInfo>>>;
|
|
982
|
+
export declare type HostingMigrationInfoQueryError = AxiosError<unknown>;
|
|
983
|
+
export declare const useHostingMigrationInfo: <TData = AxiosResponse<HostingMigrationInfo200, any>, TError = AxiosError<unknown, any>>(hostingId: number, params: HostingMigrationInfoParams, options?: {
|
|
984
|
+
query?: UseQueryOptions<AxiosResponse<HostingMigrationInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
985
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
986
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
987
|
+
queryKey: QueryKey;
|
|
988
|
+
};
|
|
989
|
+
/**
|
|
990
|
+
* Provides the status of SiteMigration site_scan and deeplink to WordPress admin page
|
|
991
|
+
* @summary SiteMigration site_scan status
|
|
992
|
+
*/
|
|
993
|
+
export declare const hostingMigrationSiteScanStatus: (hostingId: number, params: HostingMigrationSiteScanStatusParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrationSiteScanStatus200>>;
|
|
994
|
+
export declare const getHostingMigrationSiteScanStatusQueryKey: (hostingId: number, params: HostingMigrationSiteScanStatusParams) => (string | HostingMigrationSiteScanStatusParams)[];
|
|
995
|
+
export declare type HostingMigrationSiteScanStatusQueryResult = NonNullable<Awaited<ReturnType<typeof hostingMigrationSiteScanStatus>>>;
|
|
996
|
+
export declare type HostingMigrationSiteScanStatusQueryError = AxiosError<unknown>;
|
|
997
|
+
export declare const useHostingMigrationSiteScanStatus: <TData = AxiosResponse<HostingMigrationSiteScanStatus200, any>, TError = AxiosError<unknown, any>>(hostingId: number, params: HostingMigrationSiteScanStatusParams, options?: {
|
|
998
|
+
query?: UseQueryOptions<AxiosResponse<HostingMigrationSiteScanStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
999
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1000
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1001
|
+
queryKey: QueryKey;
|
|
1002
|
+
};
|
|
1003
|
+
/**
|
|
1004
|
+
* Returns the hosting brand nameservers
|
|
1005
|
+
* @deprecated
|
|
1006
|
+
* @summary hosting nameservers
|
|
1007
|
+
*/
|
|
1008
|
+
export declare const hostingNameservers: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingNameservers200>>;
|
|
1009
|
+
export declare const getHostingNameserversQueryKey: (hostingId: number) => string[];
|
|
1010
|
+
export declare type HostingNameserversQueryResult = NonNullable<Awaited<ReturnType<typeof hostingNameservers>>>;
|
|
1011
|
+
export declare type HostingNameserversQueryError = AxiosError<unknown>;
|
|
1012
|
+
export declare const useHostingNameservers: <TData = AxiosResponse<HostingNameservers200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
1013
|
+
query?: UseQueryOptions<AxiosResponse<HostingNameservers200, any>, TError, TData, QueryKey> | undefined;
|
|
1014
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1015
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1016
|
+
queryKey: QueryKey;
|
|
1017
|
+
};
|
|
1018
|
+
/**
|
|
1019
|
+
* Returns onboarding data
|
|
1020
|
+
* @summary Returns hosting onboarding data
|
|
1021
|
+
*/
|
|
1022
|
+
export declare const hostingOnboardingData: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingOnboardingData200>>;
|
|
1023
|
+
export declare const getHostingOnboardingDataQueryKey: (hostingId: string) => string[];
|
|
1024
|
+
export declare type HostingOnboardingDataQueryResult = NonNullable<Awaited<ReturnType<typeof hostingOnboardingData>>>;
|
|
1025
|
+
export declare type HostingOnboardingDataQueryError = AxiosError<unknown>;
|
|
1026
|
+
export declare const useHostingOnboardingData: <TData = AxiosResponse<HostingOnboardingData200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
1027
|
+
query?: UseQueryOptions<AxiosResponse<HostingOnboardingData200, any>, TError, TData, QueryKey> | undefined;
|
|
1028
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1029
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1030
|
+
queryKey: QueryKey;
|
|
1031
|
+
};
|
|
1032
|
+
/**
|
|
1033
|
+
* @summary Updates hosting onboarding data
|
|
1034
|
+
*/
|
|
1035
|
+
export declare const hostingOnboardingDataUpdate: (hostingId: string, hostingOnboardingDataUpdateBody: HostingOnboardingDataUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingOnboardingDataUpdate200>>;
|
|
1036
|
+
export declare type HostingOnboardingDataUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof hostingOnboardingDataUpdate>>>;
|
|
1037
|
+
export declare type HostingOnboardingDataUpdateMutationBody = HostingOnboardingDataUpdateBody;
|
|
1038
|
+
export declare type HostingOnboardingDataUpdateMutationError = AxiosError<unknown>;
|
|
1039
|
+
export declare const useHostingOnboardingDataUpdate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1040
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingOnboardingDataUpdate200, any>, TError, {
|
|
1041
|
+
hostingId: string;
|
|
1042
|
+
data: HostingOnboardingDataUpdateBody;
|
|
1043
|
+
}, TContext> | undefined;
|
|
1044
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1045
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingOnboardingDataUpdate200, any>, TError, {
|
|
1046
|
+
hostingId: string;
|
|
1047
|
+
data: HostingOnboardingDataUpdateBody;
|
|
1048
|
+
}, TContext>;
|
|
1049
|
+
/**
|
|
1050
|
+
* Returns the list of site's redirects
|
|
1051
|
+
* @summary List redirects
|
|
1052
|
+
*/
|
|
1053
|
+
export declare const hostingRedirects: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingRedirects200Item[]>>;
|
|
1054
|
+
export declare const getHostingRedirectsQueryKey: (hostingId: number) => string[];
|
|
1055
|
+
export declare type HostingRedirectsQueryResult = NonNullable<Awaited<ReturnType<typeof hostingRedirects>>>;
|
|
1056
|
+
export declare type HostingRedirectsQueryError = AxiosError<unknown>;
|
|
1057
|
+
export declare const useHostingRedirects: <TData = AxiosResponse<HostingRedirects200Item[], any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
1058
|
+
query?: UseQueryOptions<AxiosResponse<HostingRedirects200Item[], any>, TError, TData, QueryKey> | undefined;
|
|
1059
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1060
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1061
|
+
queryKey: QueryKey;
|
|
1062
|
+
};
|
|
1063
|
+
/**
|
|
1064
|
+
* Returns the hosting sso_whm login url
|
|
1065
|
+
* @summary hosting sso_whm
|
|
1066
|
+
*/
|
|
1067
|
+
export declare const hostingResellerSsoWhm: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingResellerSsoWhm200>>;
|
|
1068
|
+
export declare const getHostingResellerSsoWhmQueryKey: (hostingId: number) => string[];
|
|
1069
|
+
export declare type HostingResellerSsoWhmQueryResult = NonNullable<Awaited<ReturnType<typeof hostingResellerSsoWhm>>>;
|
|
1070
|
+
export declare type HostingResellerSsoWhmQueryError = AxiosError<unknown>;
|
|
1071
|
+
export declare const useHostingResellerSsoWhm: <TData = AxiosResponse<HostingResellerSsoWhm200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
1072
|
+
query?: UseQueryOptions<AxiosResponse<HostingResellerSsoWhm200, any>, TError, TData, QueryKey> | undefined;
|
|
1073
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1074
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1075
|
+
queryKey: QueryKey;
|
|
1076
|
+
};
|
|
1077
|
+
/**
|
|
1078
|
+
* Enable or disable shell access on an account by setting the shell.SSH key access must be established separately.
|
|
1079
|
+
* @summary hosting shell toggle
|
|
1080
|
+
*/
|
|
1081
|
+
export declare const hostingShellToggle: (hostingId: string, hostingShellToggleBody: HostingShellToggleBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingShellToggle200>>;
|
|
1082
|
+
export declare type HostingShellToggleMutationResult = NonNullable<Awaited<ReturnType<typeof hostingShellToggle>>>;
|
|
1083
|
+
export declare type HostingShellToggleMutationBody = HostingShellToggleBody;
|
|
1084
|
+
export declare type HostingShellToggleMutationError = AxiosError<unknown>;
|
|
1085
|
+
export declare const useHostingShellToggle: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1086
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingShellToggle200, any>, TError, {
|
|
1087
|
+
hostingId: string;
|
|
1088
|
+
data: HostingShellToggleBody;
|
|
1089
|
+
}, TContext> | undefined;
|
|
1090
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1091
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingShellToggle200, any>, TError, {
|
|
1092
|
+
hostingId: string;
|
|
1093
|
+
data: HostingShellToggleBody;
|
|
1094
|
+
}, TContext>;
|
|
1095
|
+
/**
|
|
1096
|
+
* Determine shell access status for an account.
|
|
1097
|
+
* @summary hosting shell_status
|
|
1098
|
+
*/
|
|
1099
|
+
export declare const hostingShellInfo: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingShellInfo200>>;
|
|
1100
|
+
export declare const getHostingShellInfoQueryKey: (hostingId: string) => string[];
|
|
1101
|
+
export declare type HostingShellInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingShellInfo>>>;
|
|
1102
|
+
export declare type HostingShellInfoQueryError = AxiosError<unknown>;
|
|
1103
|
+
export declare const useHostingShellInfo: <TData = AxiosResponse<HostingShellInfo200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
1104
|
+
query?: UseQueryOptions<AxiosResponse<HostingShellInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
1105
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1106
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1107
|
+
queryKey: QueryKey;
|
|
1108
|
+
};
|
|
1109
|
+
/**
|
|
1110
|
+
* Add a site to the current hosting.
|
|
1111
|
+
* @summary sites add
|
|
1112
|
+
*/
|
|
1113
|
+
export declare const hostingSiteAdd: (hostingId: number, hostingSiteAddBody: HostingSiteAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingSiteAdd200>>;
|
|
1114
|
+
export declare type HostingSiteAddMutationResult = NonNullable<Awaited<ReturnType<typeof hostingSiteAdd>>>;
|
|
1115
|
+
export declare type HostingSiteAddMutationBody = HostingSiteAddBody;
|
|
1116
|
+
export declare type HostingSiteAddMutationError = AxiosError<unknown>;
|
|
1117
|
+
export declare const useHostingSiteAdd: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1118
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingSiteAdd200, any>, TError, {
|
|
1119
|
+
hostingId: number;
|
|
1120
|
+
data: HostingSiteAddBody;
|
|
1121
|
+
}, TContext> | undefined;
|
|
1122
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1123
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<HostingSiteAdd200, any>, TError, {
|
|
1124
|
+
hostingId: number;
|
|
1125
|
+
data: HostingSiteAddBody;
|
|
1126
|
+
}, TContext>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Update Sites in batches.
|
|
1129
|
+
* @summary sites update batch
|
|
1130
|
+
*/
|
|
1131
|
+
export declare const sitesBatch: (hostingId: number, sitesBatchBody: SitesBatchBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesBatch200>>;
|
|
1132
|
+
export declare type SitesBatchMutationResult = NonNullable<Awaited<ReturnType<typeof sitesBatch>>>;
|
|
1133
|
+
export declare type SitesBatchMutationBody = SitesBatchBody;
|
|
1134
|
+
export declare type SitesBatchMutationError = AxiosError<unknown>;
|
|
1135
|
+
export declare const useSitesBatch: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1136
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesBatch200, any>, TError, {
|
|
1137
|
+
hostingId: number;
|
|
1138
|
+
data: SitesBatchBody;
|
|
1139
|
+
}, TContext> | undefined;
|
|
1140
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1141
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesBatch200, any>, TError, {
|
|
1142
|
+
hostingId: number;
|
|
1143
|
+
data: SitesBatchBody;
|
|
1144
|
+
}, TContext>;
|
|
1145
|
+
/**
|
|
1146
|
+
* Returns the hosting account's SSH information
|
|
1147
|
+
* @summary ssh info
|
|
1148
|
+
*/
|
|
1149
|
+
export declare const hostingSshInfo: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingSshInfo200>>;
|
|
1150
|
+
export declare const getHostingSshInfoQueryKey: (hostingId: string) => string[];
|
|
1151
|
+
export declare type HostingSshInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingSshInfo>>>;
|
|
1152
|
+
export declare type HostingSshInfoQueryError = AxiosError<unknown>;
|
|
1153
|
+
export declare const useHostingSshInfo: <TData = AxiosResponse<HostingSshInfo200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
1154
|
+
query?: UseQueryOptions<AxiosResponse<HostingSshInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
1155
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1156
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1157
|
+
queryKey: QueryKey;
|
|
1158
|
+
};
|
|
1159
|
+
/**
|
|
1160
|
+
* Fetches an SSH public (or optionally private) key.
|
|
1161
|
+
* @summary ssh key fetch
|
|
1162
|
+
*/
|
|
1163
|
+
export declare const sshKeyFetch: (hostingId: string, params: SshKeyFetchParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyFetch200>>;
|
|
1164
|
+
export declare const getSshKeyFetchQueryKey: (hostingId: string, params: SshKeyFetchParams) => (string | SshKeyFetchParams)[];
|
|
1165
|
+
export declare type SshKeyFetchQueryResult = NonNullable<Awaited<ReturnType<typeof sshKeyFetch>>>;
|
|
1166
|
+
export declare type SshKeyFetchQueryError = AxiosError<unknown>;
|
|
1167
|
+
export declare const useSshKeyFetch: <TData = AxiosResponse<SshKeyFetch200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params: SshKeyFetchParams, options?: {
|
|
1168
|
+
query?: UseQueryOptions<AxiosResponse<SshKeyFetch200, any>, TError, TData, QueryKey> | undefined;
|
|
1169
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1170
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1171
|
+
queryKey: QueryKey;
|
|
1172
|
+
};
|
|
1173
|
+
/**
|
|
1174
|
+
* Import public/private ssh key
|
|
1175
|
+
* @summary Import ssh key
|
|
1176
|
+
*/
|
|
1177
|
+
export declare const sshKeyImport: (hostingId: number, sshKeyImportBody: SshKeyImportBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyImport200>>;
|
|
1178
|
+
export declare type SshKeyImportMutationResult = NonNullable<Awaited<ReturnType<typeof sshKeyImport>>>;
|
|
1179
|
+
export declare type SshKeyImportMutationBody = SshKeyImportBody;
|
|
1180
|
+
export declare type SshKeyImportMutationError = AxiosError<unknown>;
|
|
1181
|
+
export declare const useSshKeyImport: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1182
|
+
mutation?: UseMutationOptions<AxiosResponse<SshKeyImport200, any>, TError, {
|
|
1183
|
+
hostingId: number;
|
|
1184
|
+
data: SshKeyImportBody;
|
|
1185
|
+
}, TContext> | undefined;
|
|
1186
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1187
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SshKeyImport200, any>, TError, {
|
|
1188
|
+
hostingId: number;
|
|
1189
|
+
data: SshKeyImportBody;
|
|
1190
|
+
}, TContext>;
|
|
1191
|
+
/**
|
|
1192
|
+
* List all SSH keys on a server or account. Finds all keys in user's .ssh/ diretory.
|
|
1193
|
+
* @deprecated
|
|
1194
|
+
* @summary Deprecated - ssh keys list
|
|
1195
|
+
*/
|
|
1196
|
+
export declare const sshKeyList: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyList200>>;
|
|
1197
|
+
export declare const getSshKeyListQueryKey: (hostingId: string) => string[];
|
|
1198
|
+
export declare type SshKeyListQueryResult = NonNullable<Awaited<ReturnType<typeof sshKeyList>>>;
|
|
1199
|
+
export declare type SshKeyListQueryError = AxiosError<unknown>;
|
|
1200
|
+
export declare const useSshKeyList: <TData = AxiosResponse<SshKeyList200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
1201
|
+
query?: UseQueryOptions<AxiosResponse<SshKeyList200, any>, TError, TData, QueryKey> | undefined;
|
|
1202
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1203
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1204
|
+
queryKey: QueryKey;
|
|
1205
|
+
};
|
|
1206
|
+
/**
|
|
1207
|
+
* Deletes an SSH key
|
|
1208
|
+
* @summary ssh key delete
|
|
1209
|
+
*/
|
|
1210
|
+
export declare const sshKey: (hostingId: string, sshKeyBody: SshKeyBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKey200>>;
|
|
1211
|
+
export declare type SshKeyMutationResult = NonNullable<Awaited<ReturnType<typeof sshKey>>>;
|
|
1212
|
+
export declare type SshKeyMutationBody = SshKeyBody;
|
|
1213
|
+
export declare type SshKeyMutationError = AxiosError<unknown>;
|
|
1214
|
+
export declare const useSshKey: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1215
|
+
mutation?: UseMutationOptions<AxiosResponse<SshKey200, any>, TError, {
|
|
1216
|
+
hostingId: string;
|
|
1217
|
+
data: SshKeyBody;
|
|
1218
|
+
}, TContext> | undefined;
|
|
1219
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1220
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SshKey200, any>, TError, {
|
|
1221
|
+
hostingId: string;
|
|
1222
|
+
data: SshKeyBody;
|
|
1223
|
+
}, TContext>;
|
|
1224
|
+
/**
|
|
1225
|
+
* Generates public/private ssh keys
|
|
1226
|
+
* @summary Generate ssh key
|
|
1227
|
+
*/
|
|
1228
|
+
export declare const sshKeyGenerate: (hostingId: number, sshKeyGenerateBody: SshKeyGenerateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyGenerate200>>;
|
|
1229
|
+
export declare type SshKeyGenerateMutationResult = NonNullable<Awaited<ReturnType<typeof sshKeyGenerate>>>;
|
|
1230
|
+
export declare type SshKeyGenerateMutationBody = SshKeyGenerateBody;
|
|
1231
|
+
export declare type SshKeyGenerateMutationError = AxiosError<unknown>;
|
|
1232
|
+
export declare const useSshKeyGenerate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1233
|
+
mutation?: UseMutationOptions<AxiosResponse<SshKeyGenerate200, any>, TError, {
|
|
1234
|
+
hostingId: number;
|
|
1235
|
+
data: SshKeyGenerateBody;
|
|
1236
|
+
}, TContext> | undefined;
|
|
1237
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1238
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SshKeyGenerate200, any>, TError, {
|
|
1239
|
+
hostingId: number;
|
|
1240
|
+
data: SshKeyGenerateBody;
|
|
1241
|
+
}, TContext>;
|
|
1242
|
+
/**
|
|
1243
|
+
* Returns 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.
|
|
1244
|
+
* @summary sso
|
|
1245
|
+
*/
|
|
1246
|
+
export declare const sso: (hostingId: number, params?: SsoParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<Sso200>>;
|
|
1247
|
+
export declare const getSsoQueryKey: (hostingId: number, params?: SsoParams) => (string | SsoParams)[];
|
|
1248
|
+
export declare type SsoQueryResult = NonNullable<Awaited<ReturnType<typeof sso>>>;
|
|
1249
|
+
export declare type SsoQueryError = AxiosError<unknown>;
|
|
1250
|
+
export declare const useSso: <TData = AxiosResponse<Sso200, any>, TError = AxiosError<unknown, any>>(hostingId: number, params?: SsoParams, options?: {
|
|
1251
|
+
query?: UseQueryOptions<AxiosResponse<Sso200, any>, TError, TData, QueryKey> | undefined;
|
|
1252
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1253
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1254
|
+
queryKey: QueryKey;
|
|
1255
|
+
};
|
|
1256
|
+
/**
|
|
1257
|
+
* Returns site list.
|
|
1258
|
+
* @summary Site list for an account
|
|
1259
|
+
*/
|
|
1260
|
+
export declare const sitesList: (options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesList200>>;
|
|
1261
|
+
export declare const getSitesListQueryKey: () => string[];
|
|
1262
|
+
export declare type SitesListQueryResult = NonNullable<Awaited<ReturnType<typeof sitesList>>>;
|
|
1263
|
+
export declare type SitesListQueryError = AxiosError<unknown>;
|
|
1264
|
+
export declare const useSitesList: <TData = AxiosResponse<SitesList200, any>, TError = AxiosError<unknown, any>>(options?: {
|
|
1265
|
+
query?: UseQueryOptions<AxiosResponse<SitesList200, any>, TError, TData, QueryKey> | undefined;
|
|
1266
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1267
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1268
|
+
queryKey: QueryKey;
|
|
1269
|
+
};
|
|
1270
|
+
/**
|
|
1271
|
+
* Returns site information.
|
|
1272
|
+
* @summary info
|
|
1273
|
+
*/
|
|
1274
|
+
export declare const sitesInfo: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesInfo200>>;
|
|
1275
|
+
export declare const getSitesInfoQueryKey: (siteId: number) => string[];
|
|
1276
|
+
export declare type SitesInfoQueryResult = NonNullable<Awaited<ReturnType<typeof sitesInfo>>>;
|
|
1277
|
+
export declare type SitesInfoQueryError = AxiosError<unknown>;
|
|
1278
|
+
export declare const useSitesInfo: <TData = AxiosResponse<SitesInfo200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1279
|
+
query?: UseQueryOptions<AxiosResponse<SitesInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
1280
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1281
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1282
|
+
queryKey: QueryKey;
|
|
1283
|
+
};
|
|
1284
|
+
/**
|
|
1285
|
+
* Allows for updating a site's attributes
|
|
1286
|
+
* @summary site update
|
|
1287
|
+
*/
|
|
1288
|
+
export declare const siteUpdate: (siteId: number, siteUpdateBody: SiteUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteUpdate200>>;
|
|
1289
|
+
export declare type SiteUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof siteUpdate>>>;
|
|
1290
|
+
export declare type SiteUpdateMutationBody = SiteUpdateBody;
|
|
1291
|
+
export declare type SiteUpdateMutationError = AxiosError<SiteUpdate400>;
|
|
1292
|
+
export declare const useSiteUpdate: <TError = AxiosError<SiteUpdate400, any>, TContext = unknown>(options?: {
|
|
1293
|
+
mutation?: UseMutationOptions<AxiosResponse<SiteUpdate200, any>, TError, {
|
|
1294
|
+
siteId: number;
|
|
1295
|
+
data: SiteUpdateBody;
|
|
1296
|
+
}, TContext> | undefined;
|
|
1297
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1298
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SiteUpdate200, any>, TError, {
|
|
1299
|
+
siteId: number;
|
|
1300
|
+
data: SiteUpdateBody;
|
|
1301
|
+
}, TContext>;
|
|
1302
|
+
/**
|
|
1303
|
+
* Allows deleting a site
|
|
1304
|
+
* @summary site delete
|
|
1305
|
+
*/
|
|
1306
|
+
export declare const site: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<Site200>>;
|
|
1307
|
+
export declare type SiteMutationResult = NonNullable<Awaited<ReturnType<typeof site>>>;
|
|
1308
|
+
export declare type SiteMutationError = AxiosError<unknown>;
|
|
1309
|
+
export declare const useSite: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1310
|
+
mutation?: UseMutationOptions<AxiosResponse<Site200, any>, TError, {
|
|
1311
|
+
siteId: number;
|
|
1312
|
+
}, TContext> | undefined;
|
|
1313
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1314
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<Site200, any>, TError, {
|
|
1315
|
+
siteId: number;
|
|
1316
|
+
}, TContext>;
|
|
1317
|
+
/**
|
|
1318
|
+
* Returns the autoupdate status of the site's core, themes, and plugins
|
|
1319
|
+
* @summary settings autoupdates
|
|
1320
|
+
*/
|
|
1321
|
+
export declare const sitesAutoupdatesInfo: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesAutoupdatesResponse>>;
|
|
1322
|
+
export declare const getSitesAutoupdatesInfoQueryKey: (siteId: number) => string[];
|
|
1323
|
+
export declare type SitesAutoupdatesInfoQueryResult = NonNullable<Awaited<ReturnType<typeof sitesAutoupdatesInfo>>>;
|
|
1324
|
+
export declare type SitesAutoupdatesInfoQueryError = AxiosError<unknown>;
|
|
1325
|
+
export declare const useSitesAutoupdatesInfo: <TData = AxiosResponse<SitesAutoupdatesResponse, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1326
|
+
query?: UseQueryOptions<AxiosResponse<SitesAutoupdatesResponse, any>, TError, TData, QueryKey> | undefined;
|
|
1327
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1328
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1329
|
+
queryKey: QueryKey;
|
|
1330
|
+
};
|
|
1331
|
+
/**
|
|
1332
|
+
* Enable / disable core, themes, or plugins autoupdates
|
|
1333
|
+
* @summary settings autoupdates toggle
|
|
1334
|
+
*/
|
|
1335
|
+
export declare const sitesAutoupdatesUpdate: (siteId: number, sitesAutoupdatesUpdateBody: SitesAutoupdatesUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesAutoupdatesResponse>>;
|
|
1336
|
+
export declare type SitesAutoupdatesUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitesAutoupdatesUpdate>>>;
|
|
1337
|
+
export declare type SitesAutoupdatesUpdateMutationBody = SitesAutoupdatesUpdateBody;
|
|
1338
|
+
export declare type SitesAutoupdatesUpdateMutationError = AxiosError<unknown>;
|
|
1339
|
+
export declare const useSitesAutoupdatesUpdate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1340
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesAutoupdatesResponse, any>, TError, {
|
|
1341
|
+
siteId: number;
|
|
1342
|
+
data: SitesAutoupdatesUpdateBody;
|
|
1343
|
+
}, TContext> | undefined;
|
|
1344
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1345
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesAutoupdatesResponse, any>, TError, {
|
|
1346
|
+
siteId: number;
|
|
1347
|
+
data: SitesAutoupdatesUpdateBody;
|
|
1348
|
+
}, TContext>;
|
|
1349
|
+
/**
|
|
1350
|
+
* Returns whether the site has either Codeguard or Jetpack-backup.
|
|
1351
|
+
* @deprecated
|
|
1352
|
+
* @summary Deprecated - has backup
|
|
1353
|
+
*/
|
|
1354
|
+
export declare const sitesBackups: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesBackups200>>;
|
|
1355
|
+
export declare const getSitesBackupsQueryKey: (siteId: number) => string[];
|
|
1356
|
+
export declare type SitesBackupsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesBackups>>>;
|
|
1357
|
+
export declare type SitesBackupsQueryError = AxiosError<unknown>;
|
|
1358
|
+
export declare const useSitesBackups: <TData = AxiosResponse<SitesBackups200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1359
|
+
query?: UseQueryOptions<AxiosResponse<SitesBackups200, any>, TError, TData, QueryKey> | undefined;
|
|
1360
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1361
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1362
|
+
queryKey: QueryKey;
|
|
1363
|
+
};
|
|
1364
|
+
/**
|
|
1365
|
+
* Returns whether the site has either Codeguard or Jetpack-backup.
|
|
1366
|
+
* @summary has backups
|
|
1367
|
+
*/
|
|
1368
|
+
export declare const sitesHasBackups: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesHasBackups200>>;
|
|
1369
|
+
export declare const getSitesHasBackupsQueryKey: (siteId: number) => string[];
|
|
1370
|
+
export declare type SitesHasBackupsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesHasBackups>>>;
|
|
1371
|
+
export declare type SitesHasBackupsQueryError = AxiosError<unknown>;
|
|
1372
|
+
export declare const useSitesHasBackups: <TData = AxiosResponse<SitesHasBackups200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1373
|
+
query?: UseQueryOptions<AxiosResponse<SitesHasBackups200, any>, TError, TData, QueryKey> | undefined;
|
|
1374
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1375
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1376
|
+
queryKey: QueryKey;
|
|
1377
|
+
};
|
|
1378
|
+
/**
|
|
1379
|
+
* Adds the site to the codeguard
|
|
1380
|
+
* @summary Add additional sites to codeguard
|
|
1381
|
+
*/
|
|
1382
|
+
export declare const sitesBackupsCodeguard: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesBackupsCodeguard200>>;
|
|
1383
|
+
export declare type SitesBackupsCodeguardMutationResult = NonNullable<Awaited<ReturnType<typeof sitesBackupsCodeguard>>>;
|
|
1384
|
+
export declare type SitesBackupsCodeguardMutationError = AxiosError<unknown>;
|
|
1385
|
+
export declare const useSitesBackupsCodeguard: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1386
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesBackupsCodeguard200, any>, TError, {
|
|
1387
|
+
siteId: number;
|
|
1388
|
+
}, TContext> | undefined;
|
|
1389
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1390
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesBackupsCodeguard200, any>, TError, {
|
|
1391
|
+
siteId: number;
|
|
1392
|
+
}, TContext>;
|
|
1393
|
+
/**
|
|
1394
|
+
* Returns details about the backup options available for the site, i.e. details about the codeguard backup addon and the jetpack based on if one or both of them are added to the account.
|
|
1395
|
+
* @summary site backup details
|
|
1396
|
+
*/
|
|
1397
|
+
export declare const sitesBackupsDetails: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesBackupsDetails200>>;
|
|
1398
|
+
export declare const getSitesBackupsDetailsQueryKey: (siteId: number) => string[];
|
|
1399
|
+
export declare type SitesBackupsDetailsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesBackupsDetails>>>;
|
|
1400
|
+
export declare type SitesBackupsDetailsQueryError = AxiosError<unknown>;
|
|
1401
|
+
export declare const useSitesBackupsDetails: <TData = AxiosResponse<SitesBackupsDetails200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1402
|
+
query?: UseQueryOptions<AxiosResponse<SitesBackupsDetails200, any>, TError, TData, QueryKey> | undefined;
|
|
1403
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1404
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1405
|
+
queryKey: QueryKey;
|
|
1406
|
+
};
|
|
1407
|
+
/**
|
|
1408
|
+
* The products supported jetpack-backup addon and jetpack-backup plugin
|
|
1409
|
+
* @summary Returns the status of the jetpack-backup product
|
|
1410
|
+
*/
|
|
1411
|
+
export declare const jetpackBackupStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<JetpackBackupStatus200>>;
|
|
1412
|
+
export declare const getJetpackBackupStatusQueryKey: (siteId: number) => string[];
|
|
1413
|
+
export declare type JetpackBackupStatusQueryResult = NonNullable<Awaited<ReturnType<typeof jetpackBackupStatus>>>;
|
|
1414
|
+
export declare type JetpackBackupStatusQueryError = AxiosError<unknown>;
|
|
1415
|
+
export declare const useJetpackBackupStatus: <TData = AxiosResponse<JetpackBackupStatus200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1416
|
+
query?: UseQueryOptions<AxiosResponse<JetpackBackupStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
1417
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1418
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1419
|
+
queryKey: QueryKey;
|
|
1420
|
+
};
|
|
1421
|
+
/**
|
|
1422
|
+
* Toggles the pending_upgrade meta of the provided jetpackbackup HAL addon
|
|
1423
|
+
* @summary Toggles the pending_upgrade meta of the provided jetpackbackup HAL addon
|
|
1424
|
+
*/
|
|
1425
|
+
export declare const backupsJetpackBackup: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<BackupsJetpackBackup200>>;
|
|
1426
|
+
export declare type BackupsJetpackBackupMutationResult = NonNullable<Awaited<ReturnType<typeof backupsJetpackBackup>>>;
|
|
1427
|
+
export declare type BackupsJetpackBackupMutationError = AxiosError<void>;
|
|
1428
|
+
export declare const useBackupsJetpackBackup: <TError = AxiosError<void, any>, TContext = unknown>(options?: {
|
|
1429
|
+
mutation?: UseMutationOptions<AxiosResponse<BackupsJetpackBackup200, any>, TError, {
|
|
1430
|
+
siteId: number;
|
|
1431
|
+
}, TContext> | undefined;
|
|
1432
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1433
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<BackupsJetpackBackup200, any>, TError, {
|
|
1434
|
+
siteId: number;
|
|
1435
|
+
}, TContext>;
|
|
1436
|
+
/**
|
|
1437
|
+
* Creates cloudflare basic addon using site_id
|
|
1438
|
+
* @summary Install cloudflare basic addon using site_id
|
|
1439
|
+
*/
|
|
1440
|
+
export declare const siteAddonCloudflare: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteAddonCloudflare200>>;
|
|
1441
|
+
export declare type SiteAddonCloudflareMutationResult = NonNullable<Awaited<ReturnType<typeof siteAddonCloudflare>>>;
|
|
1442
|
+
export declare type SiteAddonCloudflareMutationError = AxiosError<SiteAddonCloudflare400>;
|
|
1443
|
+
export declare const useSiteAddonCloudflare: <TError = AxiosError<SiteAddonCloudflare400, any>, TContext = unknown>(options?: {
|
|
1444
|
+
mutation?: UseMutationOptions<AxiosResponse<SiteAddonCloudflare200, any>, TError, {
|
|
1445
|
+
siteId: number;
|
|
1446
|
+
}, TContext> | undefined;
|
|
1447
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1448
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SiteAddonCloudflare200, any>, TError, {
|
|
1449
|
+
siteId: number;
|
|
1450
|
+
}, TContext>;
|
|
1451
|
+
/**
|
|
1452
|
+
* Get info about site database
|
|
1453
|
+
* @summary site - database info
|
|
1454
|
+
*/
|
|
1455
|
+
export declare const sitesDatabaseInfo: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesDatabaseInfo200>>;
|
|
1456
|
+
export declare const getSitesDatabaseInfoQueryKey: (siteId: number) => string[];
|
|
1457
|
+
export declare type SitesDatabaseInfoQueryResult = NonNullable<Awaited<ReturnType<typeof sitesDatabaseInfo>>>;
|
|
1458
|
+
export declare type SitesDatabaseInfoQueryError = AxiosError<unknown>;
|
|
1459
|
+
export declare const useSitesDatabaseInfo: <TData = AxiosResponse<SitesDatabaseInfo200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1460
|
+
query?: UseQueryOptions<AxiosResponse<SitesDatabaseInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
1461
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1462
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1463
|
+
queryKey: QueryKey;
|
|
1464
|
+
};
|
|
1465
|
+
/**
|
|
1466
|
+
* Resync database password with whats in wp-config
|
|
1467
|
+
* @summary site - database - password sync
|
|
1468
|
+
*/
|
|
1469
|
+
export declare const sitesDatabasePasswordsync: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesDatabasePasswordsync200>>;
|
|
1470
|
+
export declare type SitesDatabasePasswordsyncMutationResult = NonNullable<Awaited<ReturnType<typeof sitesDatabasePasswordsync>>>;
|
|
1471
|
+
export declare type SitesDatabasePasswordsyncMutationError = AxiosError<unknown>;
|
|
1472
|
+
export declare const useSitesDatabasePasswordsync: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1473
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesDatabasePasswordsync200, any>, TError, {
|
|
1474
|
+
siteId: number;
|
|
1475
|
+
}, TContext> | undefined;
|
|
1476
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1477
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesDatabasePasswordsync200, any>, TError, {
|
|
1478
|
+
siteId: number;
|
|
1479
|
+
}, TContext>;
|
|
1480
|
+
/**
|
|
1481
|
+
* Returns a list of DNS records for the site's domain.
|
|
1482
|
+
* @summary dns
|
|
1483
|
+
*/
|
|
1484
|
+
export declare const sitesDns: (siteId: string, params?: SitesDnsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesDns200>>;
|
|
1485
|
+
export declare const getSitesDnsQueryKey: (siteId: string, params?: SitesDnsParams) => (string | SitesDnsParams)[];
|
|
1486
|
+
export declare type SitesDnsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesDns>>>;
|
|
1487
|
+
export declare type SitesDnsQueryError = AxiosError<unknown>;
|
|
1488
|
+
export declare const useSitesDns: <TData = AxiosResponse<SitesDns200, any>, TError = AxiosError<unknown, any>>(siteId: string, params?: SitesDnsParams, options?: {
|
|
1489
|
+
query?: UseQueryOptions<AxiosResponse<SitesDns200, any>, TError, TData, QueryKey> | undefined;
|
|
1490
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1491
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1492
|
+
queryKey: QueryKey;
|
|
1493
|
+
};
|
|
1494
|
+
/**
|
|
1495
|
+
* Determines if the domain has the correct DNS setup for site
|
|
1496
|
+
* @summary Domain DNS setup for site
|
|
1497
|
+
*/
|
|
1498
|
+
export declare const sitesDomain: (siteId: number, params?: SitesDomainParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesDomain200>>;
|
|
1499
|
+
export declare const getSitesDomainQueryKey: (siteId: number, params?: SitesDomainParams) => (string | SitesDomainParams)[];
|
|
1500
|
+
export declare type SitesDomainQueryResult = NonNullable<Awaited<ReturnType<typeof sitesDomain>>>;
|
|
1501
|
+
export declare type SitesDomainQueryError = AxiosError<unknown>;
|
|
1502
|
+
export declare const useSitesDomain: <TData = AxiosResponse<SitesDomain200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesDomainParams, options?: {
|
|
1503
|
+
query?: UseQueryOptions<AxiosResponse<SitesDomain200, any>, TError, TData, QueryKey> | undefined;
|
|
1504
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1505
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1506
|
+
queryKey: QueryKey;
|
|
1507
|
+
};
|
|
1508
|
+
/**
|
|
1509
|
+
* Add or promote pending site url
|
|
1510
|
+
* @summary Add pending site url
|
|
1511
|
+
*/
|
|
1512
|
+
export declare const sitesDomainUrl: (siteId: number, sitesDomainUrlBody: SitesDomainUrlBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesDomainUrl200>>;
|
|
1513
|
+
export declare type SitesDomainUrlMutationResult = NonNullable<Awaited<ReturnType<typeof sitesDomainUrl>>>;
|
|
1514
|
+
export declare type SitesDomainUrlMutationBody = SitesDomainUrlBody;
|
|
1515
|
+
export declare type SitesDomainUrlMutationError = AxiosError<unknown>;
|
|
1516
|
+
export declare const useSitesDomainUrl: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1517
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesDomainUrl200, any>, TError, {
|
|
1518
|
+
siteId: number;
|
|
1519
|
+
data: SitesDomainUrlBody;
|
|
1520
|
+
}, TContext> | undefined;
|
|
1521
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1522
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesDomainUrl200, any>, TError, {
|
|
1523
|
+
siteId: number;
|
|
1524
|
+
data: SitesDomainUrlBody;
|
|
1525
|
+
}, TContext>;
|
|
1526
|
+
/**
|
|
1527
|
+
* Add the domain
|
|
1528
|
+
* @summary Add domain for the site
|
|
1529
|
+
*/
|
|
1530
|
+
export declare const sitesDomainsCreate: (siteId: number, sitesDomainsCreateBody: SitesDomainsCreateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesDomainsCreate200>>;
|
|
1531
|
+
export declare type SitesDomainsCreateMutationResult = NonNullable<Awaited<ReturnType<typeof sitesDomainsCreate>>>;
|
|
1532
|
+
export declare type SitesDomainsCreateMutationBody = SitesDomainsCreateBody;
|
|
1533
|
+
export declare type SitesDomainsCreateMutationError = AxiosError<unknown>;
|
|
1534
|
+
export declare const useSitesDomainsCreate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1535
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesDomainsCreate200, any>, TError, {
|
|
1536
|
+
siteId: number;
|
|
1537
|
+
data: SitesDomainsCreateBody;
|
|
1538
|
+
}, TContext> | undefined;
|
|
1539
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1540
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesDomainsCreate200, any>, TError, {
|
|
1541
|
+
siteId: number;
|
|
1542
|
+
data: SitesDomainsCreateBody;
|
|
1543
|
+
}, TContext>;
|
|
1544
|
+
/**
|
|
1545
|
+
* Returns site access logs.
|
|
1546
|
+
* @summary Site access logs
|
|
1547
|
+
*/
|
|
1548
|
+
export declare const sitesAccessLogs: (siteId: number, params?: SitesAccessLogsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesAccessLogs200>>;
|
|
1549
|
+
export declare const getSitesAccessLogsQueryKey: (siteId: number, params?: SitesAccessLogsParams) => (string | SitesAccessLogsParams)[];
|
|
1550
|
+
export declare type SitesAccessLogsInfiniteQueryResult = NonNullable<Awaited<ReturnType<typeof sitesAccessLogs>>>;
|
|
1551
|
+
export declare type SitesAccessLogsInfiniteQueryError = AxiosError<unknown>;
|
|
1552
|
+
export declare const useSitesAccessLogsInfinite: <TData = AxiosResponse<SitesAccessLogs200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesAccessLogsParams, options?: {
|
|
1553
|
+
query?: UseInfiniteQueryOptions<AxiosResponse<SitesAccessLogs200, any>, TError, TData, AxiosResponse<SitesAccessLogs200, any>, QueryKey> | undefined;
|
|
1554
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1555
|
+
} | undefined) => UseInfiniteQueryResult<TData, TError> & {
|
|
1556
|
+
queryKey: QueryKey;
|
|
1557
|
+
};
|
|
1558
|
+
export declare type SitesAccessLogsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesAccessLogs>>>;
|
|
1559
|
+
export declare type SitesAccessLogsQueryError = AxiosError<unknown>;
|
|
1560
|
+
export declare const useSitesAccessLogs: <TData = AxiosResponse<SitesAccessLogs200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesAccessLogsParams, options?: {
|
|
1561
|
+
query?: UseQueryOptions<AxiosResponse<SitesAccessLogs200, any>, TError, TData, QueryKey> | undefined;
|
|
1562
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1563
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1564
|
+
queryKey: QueryKey;
|
|
1565
|
+
};
|
|
1566
|
+
/**
|
|
1567
|
+
* Returns site access logs.
|
|
1568
|
+
* @summary Site access logs
|
|
1569
|
+
*/
|
|
1570
|
+
export declare const sitesAccessLogsDownload: (siteId: number, params?: SitesAccessLogsDownloadParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<unknown>>;
|
|
1571
|
+
export declare const getSitesAccessLogsDownloadQueryKey: (siteId: number, params?: SitesAccessLogsDownloadParams) => (string | SitesAccessLogsDownloadParams)[];
|
|
1572
|
+
export declare type SitesAccessLogsDownloadQueryResult = NonNullable<Awaited<ReturnType<typeof sitesAccessLogsDownload>>>;
|
|
1573
|
+
export declare type SitesAccessLogsDownloadQueryError = AxiosError<unknown>;
|
|
1574
|
+
export declare const useSitesAccessLogsDownload: <TData = AxiosResponse<unknown, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesAccessLogsDownloadParams, options?: {
|
|
1575
|
+
query?: UseQueryOptions<AxiosResponse<unknown, any>, TError, TData, QueryKey> | undefined;
|
|
1576
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1577
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1578
|
+
queryKey: QueryKey;
|
|
1579
|
+
};
|
|
1580
|
+
/**
|
|
1581
|
+
* Returns site error logs.
|
|
1582
|
+
* @summary Site error logs
|
|
1583
|
+
*/
|
|
1584
|
+
export declare const sitesErrorLogs: (siteId: number, params?: SitesErrorLogsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesErrorLogs200>>;
|
|
1585
|
+
export declare const getSitesErrorLogsQueryKey: (siteId: number, params?: SitesErrorLogsParams) => (string | SitesErrorLogsParams)[];
|
|
1586
|
+
export declare type SitesErrorLogsInfiniteQueryResult = NonNullable<Awaited<ReturnType<typeof sitesErrorLogs>>>;
|
|
1587
|
+
export declare type SitesErrorLogsInfiniteQueryError = AxiosError<unknown>;
|
|
1588
|
+
export declare const useSitesErrorLogsInfinite: <TData = AxiosResponse<SitesErrorLogs200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesErrorLogsParams, options?: {
|
|
1589
|
+
query?: UseInfiniteQueryOptions<AxiosResponse<SitesErrorLogs200, any>, TError, TData, AxiosResponse<SitesErrorLogs200, any>, QueryKey> | undefined;
|
|
1590
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1591
|
+
} | undefined) => UseInfiniteQueryResult<TData, TError> & {
|
|
1592
|
+
queryKey: QueryKey;
|
|
1593
|
+
};
|
|
1594
|
+
export declare type SitesErrorLogsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesErrorLogs>>>;
|
|
1595
|
+
export declare type SitesErrorLogsQueryError = AxiosError<unknown>;
|
|
1596
|
+
export declare const useSitesErrorLogs: <TData = AxiosResponse<SitesErrorLogs200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesErrorLogsParams, options?: {
|
|
1597
|
+
query?: UseQueryOptions<AxiosResponse<SitesErrorLogs200, any>, TError, TData, QueryKey> | undefined;
|
|
1598
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1599
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1600
|
+
queryKey: QueryKey;
|
|
1601
|
+
};
|
|
1602
|
+
/**
|
|
1603
|
+
* Returns site error logs.
|
|
1604
|
+
* @summary Site error logs
|
|
1605
|
+
*/
|
|
1606
|
+
export declare const sitesErrorLogsDownload: (siteId: number, params?: SitesErrorLogsDownloadParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<unknown>>;
|
|
1607
|
+
export declare const getSitesErrorLogsDownloadQueryKey: (siteId: number, params?: SitesErrorLogsDownloadParams) => (string | SitesErrorLogsDownloadParams)[];
|
|
1608
|
+
export declare type SitesErrorLogsDownloadQueryResult = NonNullable<Awaited<ReturnType<typeof sitesErrorLogsDownload>>>;
|
|
1609
|
+
export declare type SitesErrorLogsDownloadQueryError = AxiosError<unknown>;
|
|
1610
|
+
export declare const useSitesErrorLogsDownload: <TData = AxiosResponse<unknown, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesErrorLogsDownloadParams, options?: {
|
|
1611
|
+
query?: UseQueryOptions<AxiosResponse<unknown, any>, TError, TData, QueryKey> | undefined;
|
|
1612
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1613
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1614
|
+
queryKey: QueryKey;
|
|
1615
|
+
};
|
|
1616
|
+
/**
|
|
1617
|
+
* Returns malware status of atomic site
|
|
1618
|
+
* @summary malware status of atomic site
|
|
1619
|
+
*/
|
|
1620
|
+
export declare const siteMalwareStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteMalwareStatus200>>;
|
|
1621
|
+
export declare const getSiteMalwareStatusQueryKey: (siteId: number) => string[];
|
|
1622
|
+
export declare type SiteMalwareStatusQueryResult = NonNullable<Awaited<ReturnType<typeof siteMalwareStatus>>>;
|
|
1623
|
+
export declare type SiteMalwareStatusQueryError = AxiosError<unknown>;
|
|
1624
|
+
export declare const useSiteMalwareStatus: <TData = AxiosResponse<SiteMalwareStatus200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1625
|
+
query?: UseQueryOptions<AxiosResponse<SiteMalwareStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
1626
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1627
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1628
|
+
queryKey: QueryKey;
|
|
1629
|
+
};
|
|
1630
|
+
/**
|
|
1631
|
+
* Returns site metrics summary
|
|
1632
|
+
* @summary metrics
|
|
1633
|
+
*/
|
|
1634
|
+
export declare const sitesMetricsDimensionAveraged: (siteId: number, params?: SitesMetricsDimensionAveragedParams, dimension?: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesMetricsDimensionAveraged200>>;
|
|
1635
|
+
export declare const getSitesMetricsDimensionAveragedQueryKey: (siteId: number, params?: SitesMetricsDimensionAveragedParams, dimension?: string) => (string | SitesMetricsDimensionAveragedParams)[];
|
|
1636
|
+
export declare type SitesMetricsDimensionAveragedQueryResult = NonNullable<Awaited<ReturnType<typeof sitesMetricsDimensionAveraged>>>;
|
|
1637
|
+
export declare type SitesMetricsDimensionAveragedQueryError = AxiosError<unknown>;
|
|
1638
|
+
export declare const useSitesMetricsDimensionAveraged: <TData = AxiosResponse<SitesMetricsDimensionAveraged200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesMetricsDimensionAveragedParams, dimension?: string, options?: {
|
|
1639
|
+
query?: UseQueryOptions<AxiosResponse<SitesMetricsDimensionAveraged200, any>, TError, TData, QueryKey> | undefined;
|
|
1640
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1641
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1642
|
+
queryKey: QueryKey;
|
|
1643
|
+
};
|
|
1644
|
+
/**
|
|
1645
|
+
* Returns site metrics.
|
|
1646
|
+
* @summary metrics
|
|
1647
|
+
*/
|
|
1648
|
+
export declare const sitesMetricDimensions: (siteId: number, metric: 'response_time_average' | 'response_bytes_average' | 'response_bytes_persec' | 'requests_persec', params?: SitesMetricDimensionsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesMetricDimensions200>>;
|
|
1649
|
+
export declare const getSitesMetricDimensionsQueryKey: (siteId: number, metric: 'response_time_average' | 'response_bytes_average' | 'response_bytes_persec' | 'requests_persec', params?: SitesMetricDimensionsParams) => (string | SitesMetricDimensionsParams)[];
|
|
1650
|
+
export declare type SitesMetricDimensionsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesMetricDimensions>>>;
|
|
1651
|
+
export declare type SitesMetricDimensionsQueryError = AxiosError<unknown>;
|
|
1652
|
+
export declare const useSitesMetricDimensions: <TData = AxiosResponse<SitesMetricDimensions200, any>, TError = AxiosError<unknown, any>>(siteId: number, metric: 'response_time_average' | 'response_bytes_average' | 'response_bytes_persec' | 'requests_persec', params?: SitesMetricDimensionsParams, options?: {
|
|
1653
|
+
query?: UseQueryOptions<AxiosResponse<SitesMetricDimensions200, any>, TError, TData, QueryKey> | undefined;
|
|
1654
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1655
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1656
|
+
queryKey: QueryKey;
|
|
1657
|
+
};
|
|
1658
|
+
/**
|
|
1659
|
+
* Delete pending domain
|
|
1660
|
+
* @summary Delete pending domain
|
|
1661
|
+
*/
|
|
1662
|
+
export declare const sitePendingDomainDelete: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePendingDomainDelete200>>;
|
|
1663
|
+
export declare type SitePendingDomainDeleteMutationResult = NonNullable<Awaited<ReturnType<typeof sitePendingDomainDelete>>>;
|
|
1664
|
+
export declare type SitePendingDomainDeleteMutationError = AxiosError<unknown>;
|
|
1665
|
+
export declare const useSitePendingDomainDelete: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1666
|
+
mutation?: UseMutationOptions<AxiosResponse<SitePendingDomainDelete200, any>, TError, {
|
|
1667
|
+
siteId: number;
|
|
1668
|
+
}, TContext> | undefined;
|
|
1669
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1670
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitePendingDomainDelete200, any>, TError, {
|
|
1671
|
+
siteId: number;
|
|
1672
|
+
}, TContext>;
|
|
1673
|
+
/**
|
|
1674
|
+
* cache purge site and url
|
|
1675
|
+
* @summary cache purge url
|
|
1676
|
+
*/
|
|
1677
|
+
export declare const sitesPerformanceCachepurge: (siteId: number, sitesPerformanceCachepurgeBody: SitesPerformanceCachepurgeBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceCachepurge200>>;
|
|
1678
|
+
export declare type SitesPerformanceCachepurgeMutationResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceCachepurge>>>;
|
|
1679
|
+
export declare type SitesPerformanceCachepurgeMutationBody = SitesPerformanceCachepurgeBody;
|
|
1680
|
+
export declare type SitesPerformanceCachepurgeMutationError = AxiosError<unknown>;
|
|
1681
|
+
export declare const useSitesPerformanceCachepurge: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1682
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesPerformanceCachepurge200, any>, TError, {
|
|
1683
|
+
siteId: number;
|
|
1684
|
+
data: SitesPerformanceCachepurgeBody;
|
|
1685
|
+
}, TContext> | undefined;
|
|
1686
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1687
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesPerformanceCachepurge200, any>, TError, {
|
|
1688
|
+
siteId: number;
|
|
1689
|
+
data: SitesPerformanceCachepurgeBody;
|
|
1690
|
+
}, TContext>;
|
|
1691
|
+
/**
|
|
1692
|
+
* Update the edge cache
|
|
1693
|
+
* @summary edge cache toggle for atomic site
|
|
1694
|
+
*/
|
|
1695
|
+
export declare const sitesPerformanceEdgecache: (siteId: number, sitesPerformanceEdgecacheBody: SitesPerformanceEdgecacheBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceEdgecache200>>;
|
|
1696
|
+
export declare type SitesPerformanceEdgecacheMutationResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceEdgecache>>>;
|
|
1697
|
+
export declare type SitesPerformanceEdgecacheMutationBody = SitesPerformanceEdgecacheBody;
|
|
1698
|
+
export declare type SitesPerformanceEdgecacheMutationError = AxiosError<unknown>;
|
|
1699
|
+
export declare const useSitesPerformanceEdgecache: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1700
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesPerformanceEdgecache200, any>, TError, {
|
|
1701
|
+
siteId: number;
|
|
1702
|
+
data: SitesPerformanceEdgecacheBody;
|
|
1703
|
+
}, TContext> | undefined;
|
|
1704
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1705
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesPerformanceEdgecache200, any>, TError, {
|
|
1706
|
+
siteId: number;
|
|
1707
|
+
data: SitesPerformanceEdgecacheBody;
|
|
1708
|
+
}, TContext>;
|
|
1709
|
+
/**
|
|
1710
|
+
* Returns the status of endurance_cache_level
|
|
1711
|
+
* @summary Get status of endurance cache level
|
|
1712
|
+
*/
|
|
1713
|
+
export declare const sitesPerformanceEnduranceCacheLevelStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceEnduranceCacheLevelStatus200>>;
|
|
1714
|
+
export declare const getSitesPerformanceEnduranceCacheLevelStatusQueryKey: (siteId: number) => string[];
|
|
1715
|
+
export declare type SitesPerformanceEnduranceCacheLevelStatusQueryResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceEnduranceCacheLevelStatus>>>;
|
|
1716
|
+
export declare type SitesPerformanceEnduranceCacheLevelStatusQueryError = AxiosError<unknown>;
|
|
1717
|
+
export declare const useSitesPerformanceEnduranceCacheLevelStatus: <TData = AxiosResponse<SitesPerformanceEnduranceCacheLevelStatus200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1718
|
+
query?: UseQueryOptions<AxiosResponse<SitesPerformanceEnduranceCacheLevelStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
1719
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1720
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1721
|
+
queryKey: QueryKey;
|
|
1722
|
+
};
|
|
1723
|
+
/**
|
|
1724
|
+
* Set endurance cache level to 0, 1,2 or 3
|
|
1725
|
+
* @summary Set endurance cache level
|
|
1726
|
+
*/
|
|
1727
|
+
export declare const sitesPerformanceEnduranceCacheLevel: (siteId: number, sitesPerformanceEnduranceCacheLevelBody: SitesPerformanceEnduranceCacheLevelBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceEnduranceCacheLevel200>>;
|
|
1728
|
+
export declare type SitesPerformanceEnduranceCacheLevelMutationResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceEnduranceCacheLevel>>>;
|
|
1729
|
+
export declare type SitesPerformanceEnduranceCacheLevelMutationBody = SitesPerformanceEnduranceCacheLevelBody;
|
|
1730
|
+
export declare type SitesPerformanceEnduranceCacheLevelMutationError = AxiosError<unknown>;
|
|
1731
|
+
export declare const useSitesPerformanceEnduranceCacheLevel: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1732
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesPerformanceEnduranceCacheLevel200, any>, TError, {
|
|
1733
|
+
siteId: number;
|
|
1734
|
+
data: SitesPerformanceEnduranceCacheLevelBody;
|
|
1735
|
+
}, TContext> | undefined;
|
|
1736
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1737
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesPerformanceEnduranceCacheLevel200, any>, TError, {
|
|
1738
|
+
siteId: number;
|
|
1739
|
+
data: SitesPerformanceEnduranceCacheLevelBody;
|
|
1740
|
+
}, TContext>;
|
|
1741
|
+
/**
|
|
1742
|
+
* Update the endurance page cache
|
|
1743
|
+
* @summary update the endurance cache page
|
|
1744
|
+
*/
|
|
1745
|
+
export declare const sitesPerformanceEndurancePageCache: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceEndurancePageCache200>>;
|
|
1746
|
+
export declare type SitesPerformanceEndurancePageCacheMutationResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceEndurancePageCache>>>;
|
|
1747
|
+
export declare type SitesPerformanceEndurancePageCacheMutationError = AxiosError<unknown>;
|
|
1748
|
+
export declare const useSitesPerformanceEndurancePageCache: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1749
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesPerformanceEndurancePageCache200, any>, TError, {
|
|
1750
|
+
siteId: number;
|
|
1751
|
+
}, TContext> | undefined;
|
|
1752
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1753
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesPerformanceEndurancePageCache200, any>, TError, {
|
|
1754
|
+
siteId: number;
|
|
1755
|
+
}, TContext>;
|
|
1756
|
+
/**
|
|
1757
|
+
* Returns a list of the site's plugins
|
|
1758
|
+
* @summary plugins
|
|
1759
|
+
*/
|
|
1760
|
+
export declare const sitePlugins: (siteId: number, params?: SitePluginsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePlugins200>>;
|
|
1761
|
+
export declare const getSitePluginsQueryKey: (siteId: number, params?: SitePluginsParams) => (string | SitePluginsParams)[];
|
|
1762
|
+
export declare type SitePluginsQueryResult = NonNullable<Awaited<ReturnType<typeof sitePlugins>>>;
|
|
1763
|
+
export declare type SitePluginsQueryError = AxiosError<unknown>;
|
|
1764
|
+
export declare const useSitePlugins: <TData = AxiosResponse<SitePlugins200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitePluginsParams, options?: {
|
|
1765
|
+
query?: UseQueryOptions<AxiosResponse<SitePlugins200, any>, TError, TData, QueryKey> | undefined;
|
|
1766
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1767
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1768
|
+
queryKey: QueryKey;
|
|
1769
|
+
};
|
|
1770
|
+
/**
|
|
1771
|
+
* Enables / disables a plugin
|
|
1772
|
+
* @summary plugins toggle
|
|
1773
|
+
*/
|
|
1774
|
+
export declare const sitePluginUpdate: (siteId: string, sitePluginUpdateBody: SitePluginUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePluginUpdate200>>;
|
|
1775
|
+
export declare type SitePluginUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginUpdate>>>;
|
|
1776
|
+
export declare type SitePluginUpdateMutationBody = SitePluginUpdateBody;
|
|
1777
|
+
export declare type SitePluginUpdateMutationError = AxiosError<unknown>;
|
|
1778
|
+
export declare const useSitePluginUpdate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1779
|
+
mutation?: UseMutationOptions<AxiosResponse<SitePluginUpdate200, any>, TError, {
|
|
1780
|
+
siteId: string;
|
|
1781
|
+
data: SitePluginUpdateBody;
|
|
1782
|
+
}, TContext> | undefined;
|
|
1783
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1784
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitePluginUpdate200, any>, TError, {
|
|
1785
|
+
siteId: string;
|
|
1786
|
+
data: SitePluginUpdateBody;
|
|
1787
|
+
}, TContext>;
|
|
1788
|
+
/**
|
|
1789
|
+
* Enables / disables plugin auto-updates
|
|
1790
|
+
* @deprecated
|
|
1791
|
+
* @summary plugins autoupdate
|
|
1792
|
+
*/
|
|
1793
|
+
export declare const sitePluginsAutoupdate: (siteId: string, sitePluginsAutoupdateBody: SitePluginsAutoupdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePluginsAutoupdate200>>;
|
|
1794
|
+
export declare type SitePluginsAutoupdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginsAutoupdate>>>;
|
|
1795
|
+
export declare type SitePluginsAutoupdateMutationBody = SitePluginsAutoupdateBody;
|
|
1796
|
+
export declare type SitePluginsAutoupdateMutationError = AxiosError<unknown>;
|
|
1797
|
+
export declare const useSitePluginsAutoupdate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1798
|
+
mutation?: UseMutationOptions<AxiosResponse<SitePluginsAutoupdate200, any>, TError, {
|
|
1799
|
+
siteId: string;
|
|
1800
|
+
data: SitePluginsAutoupdateBody;
|
|
1801
|
+
}, TContext> | undefined;
|
|
1802
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1803
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitePluginsAutoupdate200, any>, TError, {
|
|
1804
|
+
siteId: string;
|
|
1805
|
+
data: SitePluginsAutoupdateBody;
|
|
1806
|
+
}, TContext>;
|
|
1807
|
+
/**
|
|
1808
|
+
* Enables / disables a plugin
|
|
1809
|
+
* @deprecated
|
|
1810
|
+
* @summary Deprecated - plugins toggle
|
|
1811
|
+
*/
|
|
1812
|
+
export declare const sitePluginsToggle: (siteId: string, sitePluginsToggleBody: SitePluginsToggleBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePluginsToggle200>>;
|
|
1813
|
+
export declare type SitePluginsToggleMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginsToggle>>>;
|
|
1814
|
+
export declare type SitePluginsToggleMutationBody = SitePluginsToggleBody;
|
|
1815
|
+
export declare type SitePluginsToggleMutationError = AxiosError<unknown>;
|
|
1816
|
+
export declare const useSitePluginsToggle: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1817
|
+
mutation?: UseMutationOptions<AxiosResponse<SitePluginsToggle200, any>, TError, {
|
|
1818
|
+
siteId: string;
|
|
1819
|
+
data: SitePluginsToggleBody;
|
|
1820
|
+
}, TContext> | undefined;
|
|
1821
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1822
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitePluginsToggle200, any>, TError, {
|
|
1823
|
+
siteId: string;
|
|
1824
|
+
data: SitePluginsToggleBody;
|
|
1825
|
+
}, TContext>;
|
|
1826
|
+
/**
|
|
1827
|
+
* Updates a plugin
|
|
1828
|
+
* @summary plugins update
|
|
1829
|
+
*/
|
|
1830
|
+
export declare const sitePluginsUpdate: (siteId: string, sitePluginsUpdateBody: SitePluginsUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePluginsUpdate200>>;
|
|
1831
|
+
export declare type SitePluginsUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginsUpdate>>>;
|
|
1832
|
+
export declare type SitePluginsUpdateMutationBody = SitePluginsUpdateBody;
|
|
1833
|
+
export declare type SitePluginsUpdateMutationError = AxiosError<unknown>;
|
|
1834
|
+
export declare const useSitePluginsUpdate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1835
|
+
mutation?: UseMutationOptions<AxiosResponse<SitePluginsUpdate200, any>, TError, {
|
|
1836
|
+
siteId: string;
|
|
1837
|
+
data: SitePluginsUpdateBody;
|
|
1838
|
+
}, TContext> | undefined;
|
|
1839
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1840
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitePluginsUpdate200, any>, TError, {
|
|
1841
|
+
siteId: string;
|
|
1842
|
+
data: SitePluginsUpdateBody;
|
|
1843
|
+
}, TContext>;
|
|
1844
|
+
/**
|
|
1845
|
+
* Resets a site - deletes/reinstalls the site.
|
|
1846
|
+
* @summary reset site
|
|
1847
|
+
*/
|
|
1848
|
+
export declare const resetSite: (siteId: number, resetSiteBody: ResetSiteBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<ResetSite200>>;
|
|
1849
|
+
export declare type ResetSiteMutationResult = NonNullable<Awaited<ReturnType<typeof resetSite>>>;
|
|
1850
|
+
export declare type ResetSiteMutationBody = ResetSiteBody;
|
|
1851
|
+
export declare type ResetSiteMutationError = AxiosError<unknown>;
|
|
1852
|
+
export declare const useResetSite: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1853
|
+
mutation?: UseMutationOptions<AxiosResponse<ResetSite200, any>, TError, {
|
|
1854
|
+
siteId: number;
|
|
1855
|
+
data: ResetSiteBody;
|
|
1856
|
+
}, TContext> | undefined;
|
|
1857
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1858
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<ResetSite200, any>, TError, {
|
|
1859
|
+
siteId: number;
|
|
1860
|
+
data: ResetSiteBody;
|
|
1861
|
+
}, TContext>;
|
|
1862
|
+
/**
|
|
1863
|
+
* Performs a checksum of the site's core files to verify integrity.
|
|
1864
|
+
* @summary core files checksum
|
|
1865
|
+
*/
|
|
1866
|
+
export declare const sitesSecurityCheckCore: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecurityCheckCore200>>;
|
|
1867
|
+
export declare const getSitesSecurityCheckCoreQueryKey: (siteId: number) => string[];
|
|
1868
|
+
export declare type SitesSecurityCheckCoreQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityCheckCore>>>;
|
|
1869
|
+
export declare type SitesSecurityCheckCoreQueryError = AxiosError<unknown>;
|
|
1870
|
+
export declare const useSitesSecurityCheckCore: <TData = AxiosResponse<SitesSecurityCheckCore200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1871
|
+
query?: UseQueryOptions<AxiosResponse<SitesSecurityCheckCore200, any>, TError, TData, QueryKey> | undefined;
|
|
1872
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1873
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1874
|
+
queryKey: QueryKey;
|
|
1875
|
+
};
|
|
1876
|
+
/**
|
|
1877
|
+
* Resets the site's core files.
|
|
1878
|
+
* @summary core files reset
|
|
1879
|
+
*/
|
|
1880
|
+
export declare const sitesSecurityResetCoreFiles: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecurityResetCoreFiles200>>;
|
|
1881
|
+
export declare type SitesSecurityResetCoreFilesMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityResetCoreFiles>>>;
|
|
1882
|
+
export declare type SitesSecurityResetCoreFilesMutationError = AxiosError<unknown>;
|
|
1883
|
+
export declare const useSitesSecurityResetCoreFiles: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1884
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesSecurityResetCoreFiles200, any>, TError, {
|
|
1885
|
+
siteId: number;
|
|
1886
|
+
}, TContext> | undefined;
|
|
1887
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1888
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesSecurityResetCoreFiles200, any>, TError, {
|
|
1889
|
+
siteId: number;
|
|
1890
|
+
}, TContext>;
|
|
1891
|
+
/**
|
|
1892
|
+
* Returns the HTTPS redirection status.
|
|
1893
|
+
* @summary https redirection status
|
|
1894
|
+
*/
|
|
1895
|
+
export declare const sitesSecurityHttpsRedirectionStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecurityHttpsRedirectionStatus200>>;
|
|
1896
|
+
export declare const getSitesSecurityHttpsRedirectionStatusQueryKey: (siteId: number) => string[];
|
|
1897
|
+
export declare type SitesSecurityHttpsRedirectionStatusQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityHttpsRedirectionStatus>>>;
|
|
1898
|
+
export declare type SitesSecurityHttpsRedirectionStatusQueryError = AxiosError<unknown>;
|
|
1899
|
+
export declare const useSitesSecurityHttpsRedirectionStatus: <TData = AxiosResponse<SitesSecurityHttpsRedirectionStatus200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1900
|
+
query?: UseQueryOptions<AxiosResponse<SitesSecurityHttpsRedirectionStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
1901
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1902
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1903
|
+
queryKey: QueryKey;
|
|
1904
|
+
};
|
|
1905
|
+
/**
|
|
1906
|
+
* Enables / disables HTTPS redirection.
|
|
1907
|
+
* @summary https redirection toggle
|
|
1908
|
+
*/
|
|
1909
|
+
export declare const sitesSecurityHttpsEnableDisableSsl: (siteId: number, sitesSecurityHttpsEnableDisableSslBody: SitesSecurityHttpsEnableDisableSslBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecurityHttpsEnableDisableSsl200>>;
|
|
1910
|
+
export declare type SitesSecurityHttpsEnableDisableSslMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityHttpsEnableDisableSsl>>>;
|
|
1911
|
+
export declare type SitesSecurityHttpsEnableDisableSslMutationBody = SitesSecurityHttpsEnableDisableSslBody;
|
|
1912
|
+
export declare type SitesSecurityHttpsEnableDisableSslMutationError = AxiosError<unknown>;
|
|
1913
|
+
export declare const useSitesSecurityHttpsEnableDisableSsl: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1914
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesSecurityHttpsEnableDisableSsl200, any>, TError, {
|
|
1915
|
+
siteId: number;
|
|
1916
|
+
data: SitesSecurityHttpsEnableDisableSslBody;
|
|
1917
|
+
}, TContext> | undefined;
|
|
1918
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1919
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesSecurityHttpsEnableDisableSsl200, any>, TError, {
|
|
1920
|
+
siteId: number;
|
|
1921
|
+
data: SitesSecurityHttpsEnableDisableSslBody;
|
|
1922
|
+
}, TContext>;
|
|
1923
|
+
/**
|
|
1924
|
+
* Returns the site's sitelock information.
|
|
1925
|
+
* @summary sitelock info
|
|
1926
|
+
*/
|
|
1927
|
+
export declare const sitesSecuritySitelock: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecuritySitelock200>>;
|
|
1928
|
+
export declare const getSitesSecuritySitelockQueryKey: (siteId: number) => string[];
|
|
1929
|
+
export declare type SitesSecuritySitelockQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySitelock>>>;
|
|
1930
|
+
export declare type SitesSecuritySitelockQueryError = AxiosError<unknown>;
|
|
1931
|
+
export declare const useSitesSecuritySitelock: <TData = AxiosResponse<SitesSecuritySitelock200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1932
|
+
query?: UseQueryOptions<AxiosResponse<SitesSecuritySitelock200, any>, TError, TData, QueryKey> | undefined;
|
|
1933
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1934
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1935
|
+
queryKey: QueryKey;
|
|
1936
|
+
};
|
|
1937
|
+
/**
|
|
1938
|
+
* Disables / enables cPanel to generate Let's Encrypt SSLs for the site.
|
|
1939
|
+
* @summary ssl lets encrypt toggle
|
|
1940
|
+
*/
|
|
1941
|
+
export declare const sitesSecuritySslAcme: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecuritySslAcme200>>;
|
|
1942
|
+
export declare type SitesSecuritySslAcmeMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySslAcme>>>;
|
|
1943
|
+
export declare type SitesSecuritySslAcmeMutationError = AxiosError<unknown>;
|
|
1944
|
+
export declare const useSitesSecuritySslAcme: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1945
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesSecuritySslAcme200, any>, TError, {
|
|
1946
|
+
siteId: number;
|
|
1947
|
+
}, TContext> | undefined;
|
|
1948
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1949
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesSecuritySslAcme200, any>, TError, {
|
|
1950
|
+
siteId: number;
|
|
1951
|
+
}, TContext>;
|
|
1952
|
+
/**
|
|
1953
|
+
* Returns the site's SSL Status
|
|
1954
|
+
* @deprecated
|
|
1955
|
+
* @summary ssl status
|
|
1956
|
+
*/
|
|
1957
|
+
export declare const sitesSecuritySslStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecuritySslStatus200>>;
|
|
1958
|
+
export declare const getSitesSecuritySslStatusQueryKey: (siteId: number) => string[];
|
|
1959
|
+
export declare type SitesSecuritySslStatusQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySslStatus>>>;
|
|
1960
|
+
export declare type SitesSecuritySslStatusQueryError = AxiosError<unknown>;
|
|
1961
|
+
export declare const useSitesSecuritySslStatus: <TData = AxiosResponse<SitesSecuritySslStatus200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1962
|
+
query?: UseQueryOptions<AxiosResponse<SitesSecuritySslStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
1963
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1964
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1965
|
+
queryKey: QueryKey;
|
|
1966
|
+
};
|
|
1967
|
+
/**
|
|
1968
|
+
* Returns whether the coming soon setting is enable or disabled
|
|
1969
|
+
* @summary settings coming soon page status
|
|
1970
|
+
*/
|
|
1971
|
+
export declare const sitesSettingsComingSoon: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsComingSoon200>>;
|
|
1972
|
+
export declare const getSitesSettingsComingSoonQueryKey: (siteId: number) => string[];
|
|
1973
|
+
export declare type SitesSettingsComingSoonQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsComingSoon>>>;
|
|
1974
|
+
export declare type SitesSettingsComingSoonQueryError = AxiosError<unknown>;
|
|
1975
|
+
export declare const useSitesSettingsComingSoon: <TData = AxiosResponse<SitesSettingsComingSoon200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1976
|
+
query?: UseQueryOptions<AxiosResponse<SitesSettingsComingSoon200, any>, TError, TData, QueryKey> | undefined;
|
|
1977
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1978
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1979
|
+
queryKey: QueryKey;
|
|
1980
|
+
};
|
|
1981
|
+
/**
|
|
1982
|
+
* Enables/disables the coming soon (under-construction) page
|
|
1983
|
+
* @summary settings coming soon toggle
|
|
1984
|
+
*/
|
|
1985
|
+
export declare const sitesSettingsComingSoonToggle: (siteId: number, sitesSettingsComingSoonToggleBody: SitesSettingsComingSoonToggleBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsComingSoonToggle200>>;
|
|
1986
|
+
export declare type SitesSettingsComingSoonToggleMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsComingSoonToggle>>>;
|
|
1987
|
+
export declare type SitesSettingsComingSoonToggleMutationBody = SitesSettingsComingSoonToggleBody;
|
|
1988
|
+
export declare type SitesSettingsComingSoonToggleMutationError = AxiosError<unknown>;
|
|
1989
|
+
export declare const useSitesSettingsComingSoonToggle: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1990
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesSettingsComingSoonToggle200, any>, TError, {
|
|
1991
|
+
siteId: number;
|
|
1992
|
+
data: SitesSettingsComingSoonToggleBody;
|
|
1993
|
+
}, TContext> | undefined;
|
|
1994
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1995
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesSettingsComingSoonToggle200, any>, TError, {
|
|
1996
|
+
siteId: number;
|
|
1997
|
+
data: SitesSettingsComingSoonToggleBody;
|
|
1998
|
+
}, TContext>;
|
|
1999
|
+
/**
|
|
2000
|
+
* Returns the site's debug mode status
|
|
2001
|
+
* @summary settings debug status
|
|
2002
|
+
*/
|
|
2003
|
+
export declare const sitesSettingsDebug: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsDebug200>>;
|
|
2004
|
+
export declare const getSitesSettingsDebugQueryKey: (siteId: number) => string[];
|
|
2005
|
+
export declare type SitesSettingsDebugQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsDebug>>>;
|
|
2006
|
+
export declare type SitesSettingsDebugQueryError = AxiosError<unknown>;
|
|
2007
|
+
export declare const useSitesSettingsDebug: <TData = AxiosResponse<SitesSettingsDebug200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
2008
|
+
query?: UseQueryOptions<AxiosResponse<SitesSettingsDebug200, any>, TError, TData, QueryKey> | undefined;
|
|
2009
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2010
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2011
|
+
queryKey: QueryKey;
|
|
2012
|
+
};
|
|
2013
|
+
/**
|
|
2014
|
+
* Enables or disables the output and display of site generated errors on the site
|
|
2015
|
+
* @summary settings debug toggle
|
|
2016
|
+
*/
|
|
2017
|
+
export declare const sitesSettingsDebugToggle: (siteId: number, sitesSettingsDebugToggleBody: SitesSettingsDebugToggleBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsDebugToggle200>>;
|
|
2018
|
+
export declare type SitesSettingsDebugToggleMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsDebugToggle>>>;
|
|
2019
|
+
export declare type SitesSettingsDebugToggleMutationBody = SitesSettingsDebugToggleBody;
|
|
2020
|
+
export declare type SitesSettingsDebugToggleMutationError = AxiosError<unknown>;
|
|
2021
|
+
export declare const useSitesSettingsDebugToggle: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
2022
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesSettingsDebugToggle200, any>, TError, {
|
|
2023
|
+
siteId: number;
|
|
2024
|
+
data: SitesSettingsDebugToggleBody;
|
|
2025
|
+
}, TContext> | undefined;
|
|
2026
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2027
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesSettingsDebugToggle200, any>, TError, {
|
|
2028
|
+
siteId: number;
|
|
2029
|
+
data: SitesSettingsDebugToggleBody;
|
|
2030
|
+
}, TContext>;
|
|
2031
|
+
/**
|
|
2032
|
+
* Updates the site's PHP version
|
|
2033
|
+
* @summary settings php version update
|
|
2034
|
+
*/
|
|
2035
|
+
export declare const sitesSettingsPhpVersionUpdate: (siteId: number, sitesSettingsPhpVersionUpdateBody: SitesSettingsPhpVersionUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsPhpVersionUpdate200>>;
|
|
2036
|
+
export declare type SitesSettingsPhpVersionUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsPhpVersionUpdate>>>;
|
|
2037
|
+
export declare type SitesSettingsPhpVersionUpdateMutationBody = SitesSettingsPhpVersionUpdateBody;
|
|
2038
|
+
export declare type SitesSettingsPhpVersionUpdateMutationError = AxiosError<unknown>;
|
|
2039
|
+
export declare const useSitesSettingsPhpVersionUpdate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
2040
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesSettingsPhpVersionUpdate200, any>, TError, {
|
|
2041
|
+
siteId: number;
|
|
2042
|
+
data: SitesSettingsPhpVersionUpdateBody;
|
|
2043
|
+
}, TContext> | undefined;
|
|
2044
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2045
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesSettingsPhpVersionUpdate200, any>, TError, {
|
|
2046
|
+
siteId: number;
|
|
2047
|
+
data: SitesSettingsPhpVersionUpdateBody;
|
|
2048
|
+
}, TContext>;
|
|
2049
|
+
/**
|
|
2050
|
+
* Gets the list of PHP versions available/installed
|
|
2051
|
+
* @summary settings php versions list
|
|
2052
|
+
*/
|
|
2053
|
+
export declare const sitesSettingsPhpVersions: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsPhpVersions200>>;
|
|
2054
|
+
export declare const getSitesSettingsPhpVersionsQueryKey: (siteId: number) => string[];
|
|
2055
|
+
export declare type SitesSettingsPhpVersionsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsPhpVersions>>>;
|
|
2056
|
+
export declare type SitesSettingsPhpVersionsQueryError = AxiosError<unknown>;
|
|
2057
|
+
export declare const useSitesSettingsPhpVersions: <TData = AxiosResponse<SitesSettingsPhpVersions200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
2058
|
+
query?: UseQueryOptions<AxiosResponse<SitesSettingsPhpVersions200, any>, TError, TData, QueryKey> | undefined;
|
|
2059
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2060
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2061
|
+
queryKey: QueryKey;
|
|
2062
|
+
};
|
|
2063
|
+
/**
|
|
2064
|
+
* List ssh users
|
|
2065
|
+
* @summary site - ssh - list users
|
|
2066
|
+
*/
|
|
2067
|
+
export declare const sitesSshUserList: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSshUserList200>>;
|
|
2068
|
+
export declare const getSitesSshUserListQueryKey: (siteId: number) => string[];
|
|
2069
|
+
export declare type SitesSshUserListQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSshUserList>>>;
|
|
2070
|
+
export declare type SitesSshUserListQueryError = AxiosError<unknown>;
|
|
2071
|
+
export declare const useSitesSshUserList: <TData = AxiosResponse<SitesSshUserList200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
2072
|
+
query?: UseQueryOptions<AxiosResponse<SitesSshUserList200, any>, TError, TData, QueryKey> | undefined;
|
|
2073
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2074
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2075
|
+
queryKey: QueryKey;
|
|
2076
|
+
};
|
|
2077
|
+
/**
|
|
2078
|
+
* Create ssh user
|
|
2079
|
+
* @summary site - ssh - create user
|
|
2080
|
+
*/
|
|
2081
|
+
export declare const sitesSshUserCreate: (siteId: number, sitesSshUserCreateBody: SitesSshUserCreateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSshUserCreate200>>;
|
|
2082
|
+
export declare type SitesSshUserCreateMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSshUserCreate>>>;
|
|
2083
|
+
export declare type SitesSshUserCreateMutationBody = SitesSshUserCreateBody;
|
|
2084
|
+
export declare type SitesSshUserCreateMutationError = AxiosError<unknown>;
|
|
2085
|
+
export declare const useSitesSshUserCreate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
2086
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesSshUserCreate200, any>, TError, {
|
|
2087
|
+
siteId: number;
|
|
2088
|
+
data: SitesSshUserCreateBody;
|
|
2089
|
+
}, TContext> | undefined;
|
|
2090
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2091
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesSshUserCreate200, any>, TError, {
|
|
2092
|
+
siteId: number;
|
|
2093
|
+
data: SitesSshUserCreateBody;
|
|
2094
|
+
}, TContext>;
|
|
2095
|
+
/**
|
|
2096
|
+
* delete ssh user
|
|
2097
|
+
* @summary site - ssh - delete user
|
|
2098
|
+
*/
|
|
2099
|
+
export declare const sitesSshUserDelete: (siteId: number, sitesSshUserDeleteBody: SitesSshUserDeleteBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSshUserDelete200>>;
|
|
2100
|
+
export declare type SitesSshUserDeleteMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSshUserDelete>>>;
|
|
2101
|
+
export declare type SitesSshUserDeleteMutationBody = SitesSshUserDeleteBody;
|
|
2102
|
+
export declare type SitesSshUserDeleteMutationError = AxiosError<unknown>;
|
|
2103
|
+
export declare const useSitesSshUserDelete: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
2104
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesSshUserDelete200, any>, TError, {
|
|
2105
|
+
siteId: number;
|
|
2106
|
+
data: SitesSshUserDeleteBody;
|
|
2107
|
+
}, TContext> | undefined;
|
|
2108
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2109
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesSshUserDelete200, any>, TError, {
|
|
2110
|
+
siteId: number;
|
|
2111
|
+
data: SitesSshUserDeleteBody;
|
|
2112
|
+
}, TContext>;
|
|
2113
|
+
/**
|
|
2114
|
+
* update ssh user
|
|
2115
|
+
* @summary site - ssh - update user
|
|
2116
|
+
*/
|
|
2117
|
+
export declare const sitesSshUserUpdate: (siteId: number, sitesSshUserUpdateBody: SitesSshUserUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSshUserUpdate200>>;
|
|
2118
|
+
export declare type SitesSshUserUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSshUserUpdate>>>;
|
|
2119
|
+
export declare type SitesSshUserUpdateMutationBody = SitesSshUserUpdateBody;
|
|
2120
|
+
export declare type SitesSshUserUpdateMutationError = AxiosError<unknown>;
|
|
2121
|
+
export declare const useSitesSshUserUpdate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
2122
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesSshUserUpdate200, any>, TError, {
|
|
2123
|
+
siteId: number;
|
|
2124
|
+
data: SitesSshUserUpdateBody;
|
|
2125
|
+
}, TContext> | undefined;
|
|
2126
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2127
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesSshUserUpdate200, any>, TError, {
|
|
2128
|
+
siteId: number;
|
|
2129
|
+
data: SitesSshUserUpdateBody;
|
|
2130
|
+
}, TContext>;
|
|
2131
|
+
/**
|
|
2132
|
+
* Returns information about the site domain's SSL/TLS certificate
|
|
2133
|
+
* @summary Site domain SSL cert info
|
|
2134
|
+
*/
|
|
2135
|
+
export declare const sitesSsl: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSsl200>>;
|
|
2136
|
+
export declare const getSitesSslQueryKey: (siteId: number) => string[];
|
|
2137
|
+
export declare type SitesSslQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSsl>>>;
|
|
2138
|
+
export declare type SitesSslQueryError = AxiosError<unknown>;
|
|
2139
|
+
export declare const useSitesSsl: <TData = AxiosResponse<SitesSsl200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
2140
|
+
query?: UseQueryOptions<AxiosResponse<SitesSsl200, any>, TError, TData, QueryKey> | undefined;
|
|
2141
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2142
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2143
|
+
queryKey: QueryKey;
|
|
2144
|
+
};
|
|
2145
|
+
/**
|
|
2146
|
+
* Returns an SSO token or login URL for the site (if supported).
|
|
2147
|
+
* @summary sso
|
|
2148
|
+
*/
|
|
2149
|
+
export declare const sitesSso: (siteId: number, params?: SitesSsoParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSso200>>;
|
|
2150
|
+
export declare const getSitesSsoQueryKey: (siteId: number, params?: SitesSsoParams) => (string | SitesSsoParams)[];
|
|
2151
|
+
export declare type SitesSsoQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSso>>>;
|
|
2152
|
+
export declare type SitesSsoQueryError = AxiosError<unknown>;
|
|
2153
|
+
export declare const useSitesSso: <TData = AxiosResponse<SitesSso200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesSsoParams, options?: {
|
|
2154
|
+
query?: UseQueryOptions<AxiosResponse<SitesSso200, any>, TError, TData, QueryKey> | undefined;
|
|
2155
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2156
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2157
|
+
queryKey: QueryKey;
|
|
2158
|
+
};
|
|
2159
|
+
/**
|
|
2160
|
+
* @summary site status
|
|
2161
|
+
*/
|
|
2162
|
+
export declare const siteStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteStatus200>>;
|
|
2163
|
+
export declare const getSiteStatusQueryKey: (siteId: number) => string[];
|
|
2164
|
+
export declare type SiteStatusQueryResult = NonNullable<Awaited<ReturnType<typeof siteStatus>>>;
|
|
2165
|
+
export declare type SiteStatusQueryError = AxiosError<unknown>;
|
|
2166
|
+
export declare const useSiteStatus: <TData = AxiosResponse<SiteStatus200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
2167
|
+
query?: UseQueryOptions<AxiosResponse<SiteStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
2168
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2169
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2170
|
+
queryKey: QueryKey;
|
|
2171
|
+
};
|
|
2172
|
+
/**
|
|
2173
|
+
* Returns a list of the site's users
|
|
2174
|
+
* @summary users
|
|
2175
|
+
*/
|
|
2176
|
+
export declare const siteUsers: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteUsers200>>;
|
|
2177
|
+
export declare const getSiteUsersQueryKey: (siteId: number) => string[];
|
|
2178
|
+
export declare type SiteUsersQueryResult = NonNullable<Awaited<ReturnType<typeof siteUsers>>>;
|
|
2179
|
+
export declare type SiteUsersQueryError = AxiosError<unknown>;
|
|
2180
|
+
export declare const useSiteUsers: <TData = AxiosResponse<SiteUsers200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
2181
|
+
query?: UseQueryOptions<AxiosResponse<SiteUsers200, any>, TError, TData, QueryKey> | undefined;
|
|
2182
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2183
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2184
|
+
queryKey: QueryKey;
|
|
2185
|
+
};
|
|
2186
|
+
/**
|
|
2187
|
+
* Returns site version information.
|
|
2188
|
+
* @summary version
|
|
2189
|
+
*/
|
|
2190
|
+
export declare const sitesVersion: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesVersion200>>;
|
|
2191
|
+
export declare const getSitesVersionQueryKey: (siteId: number) => string[];
|
|
2192
|
+
export declare type SitesVersionQueryResult = NonNullable<Awaited<ReturnType<typeof sitesVersion>>>;
|
|
2193
|
+
export declare type SitesVersionQueryError = AxiosError<unknown>;
|
|
2194
|
+
export declare const useSitesVersion: <TData = AxiosResponse<SitesVersion200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
2195
|
+
query?: UseQueryOptions<AxiosResponse<SitesVersion200, any>, TError, TData, QueryKey> | undefined;
|
|
2196
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2197
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2198
|
+
queryKey: QueryKey;
|
|
2199
|
+
};
|
|
2200
|
+
/**
|
|
2201
|
+
* Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
|
|
2202
|
+
* @summary sso
|
|
2203
|
+
*/
|
|
2204
|
+
export declare const addonsSitelockSsoV2: (addonId: number, params?: AddonsSitelockSsoV2Params, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsSitelockSsoV2200>>;
|
|
2205
|
+
export declare const getAddonsSitelockSsoV2QueryKey: (addonId: number, params?: AddonsSitelockSsoV2Params) => (string | AddonsSitelockSsoV2Params)[];
|
|
2206
|
+
export declare type AddonsSitelockSsoV2QueryResult = NonNullable<Awaited<ReturnType<typeof addonsSitelockSsoV2>>>;
|
|
2207
|
+
export declare type AddonsSitelockSsoV2QueryError = AxiosError<unknown>;
|
|
2208
|
+
export declare const useAddonsSitelockSsoV2: <TData = AxiosResponse<AddonsSitelockSsoV2200, any>, TError = AxiosError<unknown, any>>(addonId: number, params?: AddonsSitelockSsoV2Params, options?: {
|
|
2209
|
+
query?: UseQueryOptions<AxiosResponse<AddonsSitelockSsoV2200, any>, TError, TData, QueryKey> | undefined;
|
|
2210
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2211
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2212
|
+
queryKey: QueryKey;
|
|
2213
|
+
};
|
|
2214
|
+
/**
|
|
2215
|
+
* Returns the hosting server nameservers information
|
|
2216
|
+
* @summary hosting server nameservers info
|
|
2217
|
+
*/
|
|
2218
|
+
export declare const hostingNameserversV2: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingNameserversV2200>>;
|
|
2219
|
+
export declare const getHostingNameserversV2QueryKey: (hostingId: number) => string[];
|
|
2220
|
+
export declare type HostingNameserversV2QueryResult = NonNullable<Awaited<ReturnType<typeof hostingNameserversV2>>>;
|
|
2221
|
+
export declare type HostingNameserversV2QueryError = AxiosError<unknown>;
|
|
2222
|
+
export declare const useHostingNameserversV2: <TData = AxiosResponse<HostingNameserversV2200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
2223
|
+
query?: UseQueryOptions<AxiosResponse<HostingNameserversV2200, any>, TError, TData, QueryKey> | undefined;
|
|
2224
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2225
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2226
|
+
queryKey: QueryKey;
|
|
2227
|
+
};
|
|
2228
|
+
/**
|
|
2229
|
+
* Returns a list of sites.
|
|
2230
|
+
* @summary sites list v2
|
|
2231
|
+
*/
|
|
2232
|
+
export declare const hostingSitesV2: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingSitesV2200>>;
|
|
2233
|
+
export declare const getHostingSitesV2QueryKey: (hostingId: number) => string[];
|
|
2234
|
+
export declare type HostingSitesV2QueryResult = NonNullable<Awaited<ReturnType<typeof hostingSitesV2>>>;
|
|
2235
|
+
export declare type HostingSitesV2QueryError = AxiosError<unknown>;
|
|
2236
|
+
export declare const useHostingSitesV2: <TData = AxiosResponse<HostingSitesV2200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
2237
|
+
query?: UseQueryOptions<AxiosResponse<HostingSitesV2200, any>, TError, TData, QueryKey> | undefined;
|
|
2238
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2239
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2240
|
+
queryKey: QueryKey;
|
|
2241
|
+
};
|
|
2242
|
+
/**
|
|
2243
|
+
* List all SSH keys on a server or account. Finds all keys in user's .ssh/ diretory.
|
|
2244
|
+
* @summary ssh keys list
|
|
2245
|
+
*/
|
|
2246
|
+
export declare const sshKeyListV2: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyListV2200>>;
|
|
2247
|
+
export declare const getSshKeyListV2QueryKey: (hostingId: string) => string[];
|
|
2248
|
+
export declare type SshKeyListV2QueryResult = NonNullable<Awaited<ReturnType<typeof sshKeyListV2>>>;
|
|
2249
|
+
export declare type SshKeyListV2QueryError = AxiosError<unknown>;
|
|
2250
|
+
export declare const useSshKeyListV2: <TData = AxiosResponse<SshKeyListV2200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
2251
|
+
query?: UseQueryOptions<AxiosResponse<SshKeyListV2200, any>, TError, TData, QueryKey> | undefined;
|
|
2252
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2253
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2254
|
+
queryKey: QueryKey;
|
|
2255
|
+
};
|
|
2256
|
+
/**
|
|
2257
|
+
* Returns site list.
|
|
2258
|
+
* @summary Site list for an account v2
|
|
2259
|
+
*/
|
|
2260
|
+
export declare const sitesListV2: (options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesListV2200>>;
|
|
2261
|
+
export declare const getSitesListV2QueryKey: () => string[];
|
|
2262
|
+
export declare type SitesListV2QueryResult = NonNullable<Awaited<ReturnType<typeof sitesListV2>>>;
|
|
2263
|
+
export declare type SitesListV2QueryError = AxiosError<unknown>;
|
|
2264
|
+
export declare const useSitesListV2: <TData = AxiosResponse<SitesListV2200, any>, TError = AxiosError<unknown, any>>(options?: {
|
|
2265
|
+
query?: UseQueryOptions<AxiosResponse<SitesListV2200, any>, TError, TData, QueryKey> | undefined;
|
|
2266
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2267
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2268
|
+
queryKey: QueryKey;
|
|
2269
|
+
};
|
|
2270
|
+
/**
|
|
2271
|
+
* Provides the domains list associated with the site
|
|
2272
|
+
* @summary Domains list for the site
|
|
2273
|
+
*/
|
|
2274
|
+
export declare const sitesDomainsV2: (siteId: number, params?: SitesDomainsV2Params, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesDomainsV2200>>;
|
|
2275
|
+
export declare const getSitesDomainsV2QueryKey: (siteId: number, params?: SitesDomainsV2Params) => (string | SitesDomainsV2Params)[];
|
|
2276
|
+
export declare type SitesDomainsV2QueryResult = NonNullable<Awaited<ReturnType<typeof sitesDomainsV2>>>;
|
|
2277
|
+
export declare type SitesDomainsV2QueryError = AxiosError<unknown>;
|
|
2278
|
+
export declare const useSitesDomainsV2: <TData = AxiosResponse<SitesDomainsV2200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesDomainsV2Params, options?: {
|
|
2279
|
+
query?: UseQueryOptions<AxiosResponse<SitesDomainsV2200, any>, TError, TData, QueryKey> | undefined;
|
|
2280
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2281
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2282
|
+
queryKey: QueryKey;
|
|
2283
|
+
};
|
|
2284
|
+
/**
|
|
2285
|
+
* Returns the site's sitelock information.
|
|
2286
|
+
* @summary sitelock info
|
|
2287
|
+
*/
|
|
2288
|
+
export declare const sitesSecuritySitelockV2: (siteId: number, params?: SitesSecuritySitelockV2Params, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecuritySitelockV2200>>;
|
|
2289
|
+
export declare const getSitesSecuritySitelockV2QueryKey: (siteId: number, params?: SitesSecuritySitelockV2Params) => (string | SitesSecuritySitelockV2Params)[];
|
|
2290
|
+
export declare type SitesSecuritySitelockV2QueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySitelockV2>>>;
|
|
2291
|
+
export declare type SitesSecuritySitelockV2QueryError = AxiosError<unknown>;
|
|
2292
|
+
export declare const useSitesSecuritySitelockV2: <TData = AxiosResponse<SitesSecuritySitelockV2200, any>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesSecuritySitelockV2Params, options?: {
|
|
2293
|
+
query?: UseQueryOptions<AxiosResponse<SitesSecuritySitelockV2200, any>, TError, TData, QueryKey> | undefined;
|
|
2294
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2295
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2296
|
+
queryKey: QueryKey;
|
|
2297
|
+
};
|
|
2298
|
+
/**
|
|
2299
|
+
* Returns site list.
|
|
2300
|
+
* @summary Site list for an account v3
|
|
2301
|
+
*/
|
|
2302
|
+
export declare const sitesListV3: (options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesListV3200>>;
|
|
2303
|
+
export declare const getSitesListV3QueryKey: () => string[];
|
|
2304
|
+
export declare type SitesListV3QueryResult = NonNullable<Awaited<ReturnType<typeof sitesListV3>>>;
|
|
2305
|
+
export declare type SitesListV3QueryError = AxiosError<unknown>;
|
|
2306
|
+
export declare const useSitesListV3: <TData = AxiosResponse<SitesListV3200, any>, TError = AxiosError<unknown, any>>(options?: {
|
|
2307
|
+
query?: UseQueryOptions<AxiosResponse<SitesListV3200, any>, TError, TData, QueryKey> | undefined;
|
|
2308
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2309
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2310
|
+
queryKey: QueryKey;
|
|
2311
|
+
};
|
|
2312
|
+
export {};
|