@newfold/huapi-js 2.1375.0 → 2.1412.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 +257 -134
- package/src/index.js +195 -105
- package/src/index.msw.d.ts +19 -11
- package/src/index.msw.js +96 -48
- package/src/index.schemas.d.ts +290 -120
- package/src/index.schemas.js +31 -5
package/src/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.1412.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -588,7 +588,7 @@ export function useBackupStatus(addonId, params, options) {
|
|
|
588
588
|
return query;
|
|
589
589
|
}
|
|
590
590
|
/**
|
|
591
|
-
* Returns backup list
|
|
591
|
+
* Deprecated, use backup_list_v2 instead - Returns backup list
|
|
592
592
|
* @deprecated
|
|
593
593
|
* @summary Backup list
|
|
594
594
|
*/
|
|
@@ -615,6 +615,32 @@ export function useBackupList(addonId, params, options) {
|
|
|
615
615
|
query.queryKey = queryOptions.queryKey;
|
|
616
616
|
return query;
|
|
617
617
|
}
|
|
618
|
+
/**
|
|
619
|
+
* Backup meta
|
|
620
|
+
* @summary Backup meta
|
|
621
|
+
*/
|
|
622
|
+
export const backupMeta = (addonId, options) => {
|
|
623
|
+
return axios.get(`/v1/addons/${addonId}/backup/meta`, options);
|
|
624
|
+
};
|
|
625
|
+
export const getBackupMetaQueryKey = (addonId) => {
|
|
626
|
+
return [`/v1/addons/${addonId}/backup/meta`];
|
|
627
|
+
};
|
|
628
|
+
export const getBackupMetaQueryOptions = (addonId, options) => {
|
|
629
|
+
var _a;
|
|
630
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
631
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getBackupMetaQueryKey(addonId);
|
|
632
|
+
const queryFn = ({ signal }) => backupMeta(addonId, Object.assign({ signal }, axiosOptions));
|
|
633
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* @summary Backup meta
|
|
637
|
+
*/
|
|
638
|
+
export function useBackupMeta(addonId, options) {
|
|
639
|
+
const queryOptions = getBackupMetaQueryOptions(addonId, options);
|
|
640
|
+
const query = useQuery(queryOptions);
|
|
641
|
+
query.queryKey = queryOptions.queryKey;
|
|
642
|
+
return query;
|
|
643
|
+
}
|
|
618
644
|
/**
|
|
619
645
|
* Decom and delete cloudflare basic addon
|
|
620
646
|
* @summary Uninstall cloudflare basic addon
|
|
@@ -1395,30 +1421,6 @@ export function useHostingCapabilities(hostingId, options) {
|
|
|
1395
1421
|
query.queryKey = queryOptions.queryKey;
|
|
1396
1422
|
return query;
|
|
1397
1423
|
}
|
|
1398
|
-
/**
|
|
1399
|
-
* Creates cloudflare basic addon
|
|
1400
|
-
* @deprecated
|
|
1401
|
-
* @summary Deprecated - Install cloudflare basic addon
|
|
1402
|
-
*/
|
|
1403
|
-
export const addonCloudflare = (hostingId, addonCloudflareBody, options) => {
|
|
1404
|
-
return axios.post(`/v1/hosting/${hostingId}/cloudflare`, addonCloudflareBody, options);
|
|
1405
|
-
};
|
|
1406
|
-
export const getAddonCloudflareMutationOptions = (options) => {
|
|
1407
|
-
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1408
|
-
const mutationFn = (props) => {
|
|
1409
|
-
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
1410
|
-
return addonCloudflare(hostingId, data, axiosOptions);
|
|
1411
|
-
};
|
|
1412
|
-
return Object.assign({ mutationFn }, mutationOptions);
|
|
1413
|
-
};
|
|
1414
|
-
/**
|
|
1415
|
-
* @deprecated
|
|
1416
|
-
* @summary Deprecated - Install cloudflare basic addon
|
|
1417
|
-
*/
|
|
1418
|
-
export const useAddonCloudflare = (options) => {
|
|
1419
|
-
const mutationOptions = getAddonCloudflareMutationOptions(options);
|
|
1420
|
-
return useMutation(mutationOptions);
|
|
1421
|
-
};
|
|
1422
1424
|
/**
|
|
1423
1425
|
* Returns a list of cron jobs
|
|
1424
1426
|
* @summary cron_list
|
|
@@ -1581,34 +1583,6 @@ export const useDb = (options) => {
|
|
|
1581
1583
|
const mutationOptions = getDbMutationOptions(options);
|
|
1582
1584
|
return useMutation(mutationOptions);
|
|
1583
1585
|
};
|
|
1584
|
-
/**
|
|
1585
|
-
* List all DB name
|
|
1586
|
-
* @deprecated
|
|
1587
|
-
* @summary Get list of database name
|
|
1588
|
-
*/
|
|
1589
|
-
export const dbList = (hostingId, options) => {
|
|
1590
|
-
return axios.get(`/v1/hosting/${hostingId}/db`, options);
|
|
1591
|
-
};
|
|
1592
|
-
export const getDbListQueryKey = (hostingId) => {
|
|
1593
|
-
return [`/v1/hosting/${hostingId}/db`];
|
|
1594
|
-
};
|
|
1595
|
-
export const getDbListQueryOptions = (hostingId, options) => {
|
|
1596
|
-
var _a;
|
|
1597
|
-
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1598
|
-
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDbListQueryKey(hostingId);
|
|
1599
|
-
const queryFn = ({ signal }) => dbList(hostingId, Object.assign({ signal }, axiosOptions));
|
|
1600
|
-
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
1601
|
-
};
|
|
1602
|
-
/**
|
|
1603
|
-
* @deprecated
|
|
1604
|
-
* @summary Get list of database name
|
|
1605
|
-
*/
|
|
1606
|
-
export function useDbList(hostingId, options) {
|
|
1607
|
-
const queryOptions = getDbListQueryOptions(hostingId, options);
|
|
1608
|
-
const query = useQuery(queryOptions);
|
|
1609
|
-
query.queryKey = queryOptions.queryKey;
|
|
1610
|
-
return query;
|
|
1611
|
-
}
|
|
1612
1586
|
/**
|
|
1613
1587
|
* Returns a list of Remote IP
|
|
1614
1588
|
* @summary Returns a list of authorized DB hosts / ips
|
|
@@ -2404,51 +2378,75 @@ export const useHostingEmailForwarderDelete = (options) => {
|
|
|
2404
2378
|
return useMutation(mutationOptions);
|
|
2405
2379
|
};
|
|
2406
2380
|
/**
|
|
2407
|
-
*
|
|
2408
|
-
* @summary email
|
|
2381
|
+
* Update an email address's settings, depending on address type
|
|
2382
|
+
* @summary update email account settings
|
|
2409
2383
|
*/
|
|
2410
|
-
export const
|
|
2411
|
-
return axios.post(`/v1/hosting/${hostingId}/emails/
|
|
2384
|
+
export const hostingEmailSettings = (hostingId, hostingEmailSettingsBody, options) => {
|
|
2385
|
+
return axios.post(`/v1/hosting/${hostingId}/emails/settings`, hostingEmailSettingsBody, options);
|
|
2412
2386
|
};
|
|
2413
|
-
export const
|
|
2387
|
+
export const getHostingEmailSettingsMutationOptions = (options) => {
|
|
2414
2388
|
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2415
2389
|
const mutationFn = (props) => {
|
|
2416
2390
|
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
2417
|
-
return
|
|
2391
|
+
return hostingEmailSettings(hostingId, data, axiosOptions);
|
|
2418
2392
|
};
|
|
2419
2393
|
return Object.assign({ mutationFn }, mutationOptions);
|
|
2420
2394
|
};
|
|
2421
2395
|
/**
|
|
2422
|
-
* @summary email
|
|
2396
|
+
* @summary update email account settings
|
|
2423
2397
|
*/
|
|
2424
|
-
export const
|
|
2425
|
-
const mutationOptions =
|
|
2398
|
+
export const useHostingEmailSettings = (options) => {
|
|
2399
|
+
const mutationOptions = getHostingEmailSettingsMutationOptions(options);
|
|
2426
2400
|
return useMutation(mutationOptions);
|
|
2427
2401
|
};
|
|
2428
2402
|
/**
|
|
2429
|
-
*
|
|
2430
|
-
* @
|
|
2431
|
-
* @summary List files
|
|
2403
|
+
* Returns a SSO login token for an email account by using the query parameters.
|
|
2404
|
+
* @summary email sso
|
|
2432
2405
|
*/
|
|
2433
|
-
export const
|
|
2434
|
-
return axios.get(`/v1/hosting/${hostingId}/
|
|
2406
|
+
export const emailSso = (hostingId, params, options) => {
|
|
2407
|
+
return axios.get(`/v1/hosting/${hostingId}/emails/sso`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
2435
2408
|
};
|
|
2436
|
-
export const
|
|
2437
|
-
return [`/v1/hosting/${hostingId}/
|
|
2409
|
+
export const getEmailSsoQueryKey = (hostingId, params) => {
|
|
2410
|
+
return [`/v1/hosting/${hostingId}/emails/sso`, ...(params ? [params] : [])];
|
|
2438
2411
|
};
|
|
2439
|
-
export const
|
|
2412
|
+
export const getEmailSsoQueryOptions = (hostingId, params, options) => {
|
|
2440
2413
|
var _a;
|
|
2441
2414
|
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2442
|
-
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
2443
|
-
const queryFn = ({ signal }) =>
|
|
2415
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getEmailSsoQueryKey(hostingId, params);
|
|
2416
|
+
const queryFn = ({ signal }) => emailSso(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
2444
2417
|
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
2445
2418
|
};
|
|
2446
2419
|
/**
|
|
2447
|
-
* @
|
|
2448
|
-
|
|
2420
|
+
* @summary email sso
|
|
2421
|
+
*/
|
|
2422
|
+
export function useEmailSso(hostingId, params, options) {
|
|
2423
|
+
const queryOptions = getEmailSsoQueryOptions(hostingId, params, options);
|
|
2424
|
+
const query = useQuery(queryOptions);
|
|
2425
|
+
query.queryKey = queryOptions.queryKey;
|
|
2426
|
+
return query;
|
|
2427
|
+
}
|
|
2428
|
+
/**
|
|
2429
|
+
* Lists existing email address folders
|
|
2430
|
+
* @summary email folder list
|
|
2431
|
+
*/
|
|
2432
|
+
export const hostingEmailFolderList = (hostingId, address, options) => {
|
|
2433
|
+
return axios.get(`/v1/hosting/${hostingId}/emails/${address}/folders`, options);
|
|
2434
|
+
};
|
|
2435
|
+
export const getHostingEmailFolderListQueryKey = (hostingId, address) => {
|
|
2436
|
+
return [`/v1/hosting/${hostingId}/emails/${address}/folders`];
|
|
2437
|
+
};
|
|
2438
|
+
export const getHostingEmailFolderListQueryOptions = (hostingId, address, options) => {
|
|
2439
|
+
var _a;
|
|
2440
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2441
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingEmailFolderListQueryKey(hostingId, address);
|
|
2442
|
+
const queryFn = ({ signal }) => hostingEmailFolderList(hostingId, address, Object.assign({ signal }, axiosOptions));
|
|
2443
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId && address) }, queryOptions);
|
|
2444
|
+
};
|
|
2445
|
+
/**
|
|
2446
|
+
* @summary email folder list
|
|
2449
2447
|
*/
|
|
2450
|
-
export function
|
|
2451
|
-
const queryOptions =
|
|
2448
|
+
export function useHostingEmailFolderList(hostingId, address, options) {
|
|
2449
|
+
const queryOptions = getHostingEmailFolderListQueryOptions(hostingId, address, options);
|
|
2452
2450
|
const query = useQuery(queryOptions);
|
|
2453
2451
|
query.queryKey = queryOptions.queryKey;
|
|
2454
2452
|
return query;
|
|
@@ -2567,6 +2565,102 @@ export const useHostingFtp = (options) => {
|
|
|
2567
2565
|
const mutationOptions = getHostingFtpMutationOptions(options);
|
|
2568
2566
|
return useMutation(mutationOptions);
|
|
2569
2567
|
};
|
|
2568
|
+
/**
|
|
2569
|
+
* Returns a list of Git repositories associated
|
|
2570
|
+
* @summary List Git repositories
|
|
2571
|
+
*/
|
|
2572
|
+
export const hostingRepoList = (hostingId, options) => {
|
|
2573
|
+
return axios.get(`/v1/hosting/${hostingId}/git-repos`, options);
|
|
2574
|
+
};
|
|
2575
|
+
export const getHostingRepoListQueryKey = (hostingId) => {
|
|
2576
|
+
return [`/v1/hosting/${hostingId}/git-repos`];
|
|
2577
|
+
};
|
|
2578
|
+
export const getHostingRepoListQueryOptions = (hostingId, options) => {
|
|
2579
|
+
var _a;
|
|
2580
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2581
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingRepoListQueryKey(hostingId);
|
|
2582
|
+
const queryFn = ({ signal }) => hostingRepoList(hostingId, Object.assign({ signal }, axiosOptions));
|
|
2583
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
2584
|
+
};
|
|
2585
|
+
/**
|
|
2586
|
+
* @summary List Git repositories
|
|
2587
|
+
*/
|
|
2588
|
+
export function useHostingRepoList(hostingId, options) {
|
|
2589
|
+
const queryOptions = getHostingRepoListQueryOptions(hostingId, options);
|
|
2590
|
+
const query = useQuery(queryOptions);
|
|
2591
|
+
query.queryKey = queryOptions.queryKey;
|
|
2592
|
+
return query;
|
|
2593
|
+
}
|
|
2594
|
+
/**
|
|
2595
|
+
* Clone a new Git repo or pull latest changes into the given path (deployment)
|
|
2596
|
+
* @summary Clone or pull Git repository(deploy)
|
|
2597
|
+
*/
|
|
2598
|
+
export const hostingRepoSync = (hostingId, hostingRepoSyncBody, options) => {
|
|
2599
|
+
return axios.post(`/v1/hosting/${hostingId}/git-repos`, hostingRepoSyncBody, options);
|
|
2600
|
+
};
|
|
2601
|
+
export const getHostingRepoSyncMutationOptions = (options) => {
|
|
2602
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2603
|
+
const mutationFn = (props) => {
|
|
2604
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
2605
|
+
return hostingRepoSync(hostingId, data, axiosOptions);
|
|
2606
|
+
};
|
|
2607
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
2608
|
+
};
|
|
2609
|
+
/**
|
|
2610
|
+
* @summary Clone or pull Git repository(deploy)
|
|
2611
|
+
*/
|
|
2612
|
+
export const useHostingRepoSync = (options) => {
|
|
2613
|
+
const mutationOptions = getHostingRepoSyncMutationOptions(options);
|
|
2614
|
+
return useMutation(mutationOptions);
|
|
2615
|
+
};
|
|
2616
|
+
/**
|
|
2617
|
+
* Deletes the local clone of a Git repository at the specified path
|
|
2618
|
+
* @summary Delete Git repository
|
|
2619
|
+
*/
|
|
2620
|
+
export const hostingRepo = (hostingId, hostingRepoBody, options) => {
|
|
2621
|
+
return axios.delete(`/v1/hosting/${hostingId}/git-repos`, Object.assign({ data: hostingRepoBody }, options));
|
|
2622
|
+
};
|
|
2623
|
+
export const getHostingRepoMutationOptions = (options) => {
|
|
2624
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2625
|
+
const mutationFn = (props) => {
|
|
2626
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
2627
|
+
return hostingRepo(hostingId, data, axiosOptions);
|
|
2628
|
+
};
|
|
2629
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
2630
|
+
};
|
|
2631
|
+
/**
|
|
2632
|
+
* @summary Delete Git repository
|
|
2633
|
+
*/
|
|
2634
|
+
export const useHostingRepo = (options) => {
|
|
2635
|
+
const mutationOptions = getHostingRepoMutationOptions(options);
|
|
2636
|
+
return useMutation(mutationOptions);
|
|
2637
|
+
};
|
|
2638
|
+
/**
|
|
2639
|
+
* Returns the deployment log for a Git repository identified by the path
|
|
2640
|
+
* @summary View Git repository deployment log
|
|
2641
|
+
*/
|
|
2642
|
+
export const hostingRepoLog = (hostingId, params, options) => {
|
|
2643
|
+
return axios.get(`/v1/hosting/${hostingId}/git-repos/log`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
2644
|
+
};
|
|
2645
|
+
export const getHostingRepoLogQueryKey = (hostingId, params) => {
|
|
2646
|
+
return [`/v1/hosting/${hostingId}/git-repos/log`, ...(params ? [params] : [])];
|
|
2647
|
+
};
|
|
2648
|
+
export const getHostingRepoLogQueryOptions = (hostingId, params, options) => {
|
|
2649
|
+
var _a;
|
|
2650
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2651
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingRepoLogQueryKey(hostingId, params);
|
|
2652
|
+
const queryFn = ({ signal }) => hostingRepoLog(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
2653
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
2654
|
+
};
|
|
2655
|
+
/**
|
|
2656
|
+
* @summary View Git repository deployment log
|
|
2657
|
+
*/
|
|
2658
|
+
export function useHostingRepoLog(hostingId, params, options) {
|
|
2659
|
+
const queryOptions = getHostingRepoLogQueryOptions(hostingId, params, options);
|
|
2660
|
+
const query = useQuery(queryOptions);
|
|
2661
|
+
query.queryKey = queryOptions.queryKey;
|
|
2662
|
+
return query;
|
|
2663
|
+
}
|
|
2570
2664
|
/**
|
|
2571
2665
|
* Hotlink configuration details
|
|
2572
2666
|
* @summary Hotlink configuration details
|
|
@@ -2829,34 +2923,6 @@ export const useHostingMigrations = (options) => {
|
|
|
2829
2923
|
const mutationOptions = getHostingMigrationsMutationOptions(options);
|
|
2830
2924
|
return useMutation(mutationOptions);
|
|
2831
2925
|
};
|
|
2832
|
-
/**
|
|
2833
|
-
* Checks if Migration ID exists, indicating the site migration is in progress or completed
|
|
2834
|
-
* @deprecated
|
|
2835
|
-
* @summary Deprecated Migration ID check
|
|
2836
|
-
*/
|
|
2837
|
-
export const hostingMigrationsCheck = (hostingId, params, options) => {
|
|
2838
|
-
return axios.get(`/v1/hosting/${hostingId}/migrations/check`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
2839
|
-
};
|
|
2840
|
-
export const getHostingMigrationsCheckQueryKey = (hostingId, params) => {
|
|
2841
|
-
return [`/v1/hosting/${hostingId}/migrations/check`, ...(params ? [params] : [])];
|
|
2842
|
-
};
|
|
2843
|
-
export const getHostingMigrationsCheckQueryOptions = (hostingId, params, options) => {
|
|
2844
|
-
var _a;
|
|
2845
|
-
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2846
|
-
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingMigrationsCheckQueryKey(hostingId, params);
|
|
2847
|
-
const queryFn = ({ signal }) => hostingMigrationsCheck(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
2848
|
-
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
2849
|
-
};
|
|
2850
|
-
/**
|
|
2851
|
-
* @deprecated
|
|
2852
|
-
* @summary Deprecated Migration ID check
|
|
2853
|
-
*/
|
|
2854
|
-
export function useHostingMigrationsCheck(hostingId, params, options) {
|
|
2855
|
-
const queryOptions = getHostingMigrationsCheckQueryOptions(hostingId, params, options);
|
|
2856
|
-
const query = useQuery(queryOptions);
|
|
2857
|
-
query.queryKey = queryOptions.queryKey;
|
|
2858
|
-
return query;
|
|
2859
|
-
}
|
|
2860
2926
|
/**
|
|
2861
2927
|
* Post migration event to CWM
|
|
2862
2928
|
* @summary hosting migrations event
|
|
@@ -5305,6 +5371,7 @@ export function useAddonsSitelockSsoV2(addonId, params, options) {
|
|
|
5305
5371
|
}
|
|
5306
5372
|
/**
|
|
5307
5373
|
* Backup create
|
|
5374
|
+
* @deprecated
|
|
5308
5375
|
* @summary Backup create
|
|
5309
5376
|
*/
|
|
5310
5377
|
export const backupCreateV2 = (addonId, backupCreateV2Body, options) => {
|
|
@@ -5319,6 +5386,7 @@ export const getBackupCreateV2MutationOptions = (options) => {
|
|
|
5319
5386
|
return Object.assign({ mutationFn }, mutationOptions);
|
|
5320
5387
|
};
|
|
5321
5388
|
/**
|
|
5389
|
+
* @deprecated
|
|
5322
5390
|
* @summary Backup create
|
|
5323
5391
|
*/
|
|
5324
5392
|
export const useBackupCreateV2 = (options) => {
|
|
@@ -5853,6 +5921,28 @@ export function useSiteUsersV2(siteId, params, options) {
|
|
|
5853
5921
|
query.queryKey = queryOptions.queryKey;
|
|
5854
5922
|
return query;
|
|
5855
5923
|
}
|
|
5924
|
+
/**
|
|
5925
|
+
* Backup create
|
|
5926
|
+
* @summary Backup create
|
|
5927
|
+
*/
|
|
5928
|
+
export const backupCreateV3 = (addonId, backupCreateV3Body, options) => {
|
|
5929
|
+
return axios.post(`/v3/addons/${addonId}/backup/create`, backupCreateV3Body, options);
|
|
5930
|
+
};
|
|
5931
|
+
export const getBackupCreateV3MutationOptions = (options) => {
|
|
5932
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5933
|
+
const mutationFn = (props) => {
|
|
5934
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
5935
|
+
return backupCreateV3(addonId, data, axiosOptions);
|
|
5936
|
+
};
|
|
5937
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
5938
|
+
};
|
|
5939
|
+
/**
|
|
5940
|
+
* @summary Backup create
|
|
5941
|
+
*/
|
|
5942
|
+
export const useBackupCreateV3 = (options) => {
|
|
5943
|
+
const mutationOptions = getBackupCreateV3MutationOptions(options);
|
|
5944
|
+
return useMutation(mutationOptions);
|
|
5945
|
+
};
|
|
5856
5946
|
/**
|
|
5857
5947
|
* Import public ssh key
|
|
5858
5948
|
* @summary Import ssh key
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200,
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailDelete200, HostingEmailFolderList200, HostingEmailForwarderAdd200, HostingEmailForwarderDelete200, HostingEmailForwardersList200, HostingEmailList200, HostingEmailSettings200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
5
5
|
export declare const getAccountPublicKeysResponseMock: (overrideResponse?: Partial<AccountPublicKeys200>) => AccountPublicKeys200;
|
|
@@ -25,6 +25,7 @@ export declare const getAddonsSitelockSsoResponseMock: (overrideResponse?: Parti
|
|
|
25
25
|
export declare const getBackupInitiateResponseMock: (overrideResponse?: Partial<BackupInitiate200>) => BackupInitiate200;
|
|
26
26
|
export declare const getBackupStatusResponseMock: (overrideResponse?: Partial<BackupStatus200>) => BackupStatus200;
|
|
27
27
|
export declare const getBackupListResponseMock: (overrideResponse?: Partial<BackupList200>) => BackupList200;
|
|
28
|
+
export declare const getBackupMetaResponseMock: (overrideResponse?: Partial<BackupMeta200>) => BackupMeta200;
|
|
28
29
|
export declare const getAddonsCloudflareResponseMock: (overrideResponse?: Partial<AddonsCloudflare200>) => AddonsCloudflare200;
|
|
29
30
|
export declare const getAddonsInfoResponseMock: (overrideResponse?: Partial<AddonsInfo200>) => AddonsInfo200;
|
|
30
31
|
export declare const getAddonsJetpackValidateResponseMock: (overrideResponse?: Partial<AddonsJetpackValidate200>) => AddonsJetpackValidate200;
|
|
@@ -57,7 +58,6 @@ export declare const getHostingAdvancedPasswordResponseMock: (overrideResponse?:
|
|
|
57
58
|
export declare const getHostingAdvancedSsoWhmResponseMock: (overrideResponse?: Partial<HostingAdvancedSsoWhm200>) => HostingAdvancedSsoWhm200;
|
|
58
59
|
export declare const getHostingAdvancedSystemConsoleResponseMock: (overrideResponse?: Partial<HostingAdvancedSystemConsole200>) => HostingAdvancedSystemConsole200;
|
|
59
60
|
export declare const getHostingCapabilitiesResponseMock: (overrideResponse?: Partial<HostingCapabilities200>) => HostingCapabilities200;
|
|
60
|
-
export declare const getAddonCloudflareResponseMock: (overrideResponse?: Partial<AddonCloudflare200>) => AddonCloudflare200;
|
|
61
61
|
export declare const getListCronsResponseMock: (overrideResponse?: Partial<ListCrons200>) => ListCrons200;
|
|
62
62
|
export declare const getAddCronResponseMock: (overrideResponse?: Partial<AddCron200>) => AddCron200;
|
|
63
63
|
export declare const getUpdateCronResponseMock: (overrideResponse?: Partial<UpdateCron200>) => UpdateCron200;
|
|
@@ -65,7 +65,6 @@ export declare const getCronResponseMock: (overrideResponse?: Partial<Cron200>)
|
|
|
65
65
|
export declare const getCronLastRunResponseMock: (overrideResponse?: Partial<CronLastRun200>) => CronLastRun200;
|
|
66
66
|
export declare const getDbAddResponseMock: (overrideResponse?: Partial<DbAdd200>) => DbAdd200;
|
|
67
67
|
export declare const getDbResponseMock: (overrideResponse?: Partial<Db200>) => Db200;
|
|
68
|
-
export declare const getDbListResponseMock: (overrideResponse?: Partial<DbList200>) => DbList200;
|
|
69
68
|
export declare const getHostingDbAuthorizedHostsResponseMock: (overrideResponse?: Partial<HostingDbAuthorizedHosts200>) => HostingDbAuthorizedHosts200;
|
|
70
69
|
export declare const getHostingDbAuthorizedHostsAddResponseMock: (overrideResponse?: Partial<HostingDbAuthorizedHostsAdd200>) => HostingDbAuthorizedHostsAdd200;
|
|
71
70
|
export declare const getHostingDbAuthorizedHostsUpdateResponseMock: (overrideResponse?: Partial<HostingDbAuthorizedHostsUpdate200>) => HostingDbAuthorizedHostsUpdate200;
|
|
@@ -100,13 +99,18 @@ export declare const getHostingEmailUpdateResponseMock: (overrideResponse?: Part
|
|
|
100
99
|
export declare const getHostingEmailForwardersListResponseMock: (overrideResponse?: Partial<HostingEmailForwardersList200>) => HostingEmailForwardersList200;
|
|
101
100
|
export declare const getHostingEmailForwarderAddResponseMock: (overrideResponse?: Partial<HostingEmailForwarderAdd200>) => HostingEmailForwarderAdd200;
|
|
102
101
|
export declare const getHostingEmailForwarderDeleteResponseMock: (overrideResponse?: Partial<HostingEmailForwarderDelete200>) => HostingEmailForwarderDelete200;
|
|
103
|
-
export declare const
|
|
104
|
-
export declare const
|
|
102
|
+
export declare const getHostingEmailSettingsResponseMock: (overrideResponse?: Partial<HostingEmailSettings200>) => HostingEmailSettings200;
|
|
103
|
+
export declare const getEmailSsoResponseMock: (overrideResponse?: Partial<EmailSso200>) => EmailSso200;
|
|
104
|
+
export declare const getHostingEmailFolderListResponseMock: (overrideResponse?: Partial<HostingEmailFolderList200>) => HostingEmailFolderList200;
|
|
105
105
|
export declare const getHostingFixownershipResponseMock: (overrideResponse?: Partial<HostingFixownership200>) => HostingFixownership200;
|
|
106
106
|
export declare const getHostingFtpListResponseMock: (overrideResponse?: Partial<HostingFtpList200>) => HostingFtpList200;
|
|
107
107
|
export declare const getHostingFtpAddResponseMock: (overrideResponse?: Partial<HostingFtpAdd200>) => HostingFtpAdd200;
|
|
108
108
|
export declare const getHostingFtpUpdateResponseMock: (overrideResponse?: Partial<HostingFtpUpdate200>) => HostingFtpUpdate200;
|
|
109
109
|
export declare const getHostingFtpResponseMock: (overrideResponse?: Partial<HostingFtp200>) => HostingFtp200;
|
|
110
|
+
export declare const getHostingRepoListResponseMock: () => HostingRepoList200Item[];
|
|
111
|
+
export declare const getHostingRepoSyncResponseMock: (overrideResponse?: Partial<HostingRepoSync200>) => HostingRepoSync200;
|
|
112
|
+
export declare const getHostingRepoResponseMock: (overrideResponse?: Partial<HostingRepo200>) => HostingRepo200;
|
|
113
|
+
export declare const getHostingRepoLogResponseMock: (overrideResponse?: Partial<HostingRepoLog200>) => HostingRepoLog200;
|
|
110
114
|
export declare const getHotlinkconfigDetailsResponseMock: (overrideResponse?: Partial<HotlinkconfigDetails200>) => HotlinkconfigDetails200;
|
|
111
115
|
export declare const getHotlinkconfigAddResponseMock: (overrideResponse?: Partial<HotlinkconfigAdd200>) => HotlinkconfigAdd200;
|
|
112
116
|
export declare const getHotlinkconfigDeleteResponseMock: (overrideResponse?: Partial<HotlinkconfigDelete200>) => HotlinkconfigDelete200;
|
|
@@ -118,7 +122,6 @@ export declare const getHostingInfoDiskUsageResponseMock: (overrideResponse?: Pa
|
|
|
118
122
|
export declare const getHostingLeadResponseMock: (overrideResponse?: Partial<HostingLead200>) => HostingLead200;
|
|
119
123
|
export declare const getHostingMigrationStatusResponseMock: (overrideResponse?: Partial<HostingMigrationStatus200>) => HostingMigrationStatus200;
|
|
120
124
|
export declare const getHostingMigrationsResponseMock: (overrideResponse?: Partial<HostingMigrations200>) => HostingMigrations200;
|
|
121
|
-
export declare const getHostingMigrationsCheckResponseMock: (overrideResponse?: Partial<HostingMigrationsCheck200>) => HostingMigrationsCheck200;
|
|
122
125
|
export declare const getHostingMigrationsEventResponseMock: (overrideResponse?: Partial<HostingMigrationsEvent200>) => HostingMigrationsEvent200;
|
|
123
126
|
export declare const getHostingMigrationInfoResponseMock: (overrideResponse?: Partial<HostingMigrationInfo200>) => HostingMigrationInfo200;
|
|
124
127
|
export declare const getHostingMigrationSiteScanStatusResponseMock: (overrideResponse?: Partial<HostingMigrationSiteScanStatus200>) => HostingMigrationSiteScanStatus200;
|
|
@@ -238,6 +241,7 @@ export declare const getSiteMalwareStatusV2ResponseMock: (overrideResponse?: Par
|
|
|
238
241
|
export declare const getSitesSecuritySitelockV2ResponseMock: (overrideResponse?: Partial<SitesSecuritySitelockV2200>) => SitesSecuritySitelockV2200;
|
|
239
242
|
export declare const getSitesSshUserListV2ResponseMock: (overrideResponse?: Partial<SitesSshUserListV2200>) => SitesSshUserListV2200;
|
|
240
243
|
export declare const getSiteUsersV2ResponseMock: (overrideResponse?: Partial<SiteUsersV2200>) => SiteUsersV2200;
|
|
244
|
+
export declare const getBackupCreateV3ResponseMock: (overrideResponse?: Partial<BackupCreateV3200>) => BackupCreateV3200;
|
|
241
245
|
export declare const getSshKeyImportV3ResponseMock: (overrideResponse?: Partial<SshKeyImportV3200>) => SshKeyImportV3200;
|
|
242
246
|
export declare const getSshKeyListV3ResponseMock: (overrideResponse?: Partial<SshKeyListV3200>) => SshKeyListV3200;
|
|
243
247
|
export declare const getSitesListV3ResponseMock: (overrideResponse?: Partial<SitesListV3200>) => SitesListV3200;
|
|
@@ -267,6 +271,7 @@ export declare const getAddonsSitelockSsoMockHandler: (overrideResponse?: Addons
|
|
|
267
271
|
export declare const getBackupInitiateMockHandler: (overrideResponse?: BackupInitiate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupInitiate200> | BackupInitiate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
268
272
|
export declare const getBackupStatusMockHandler: (overrideResponse?: BackupStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupStatus200> | BackupStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
269
273
|
export declare const getBackupListMockHandler: (overrideResponse?: BackupList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupList200> | BackupList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
274
|
+
export declare const getBackupMetaMockHandler: (overrideResponse?: BackupMeta200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupMeta200> | BackupMeta200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
270
275
|
export declare const getAddonsCloudflareMockHandler: (overrideResponse?: AddonsCloudflare200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<AddonsCloudflare200> | AddonsCloudflare200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
271
276
|
export declare const getAddonsInfoMockHandler: (overrideResponse?: AddonsInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsInfo200> | AddonsInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
272
277
|
export declare const getAddonsJetpackValidateMockHandler: (overrideResponse?: AddonsJetpackValidate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddonsJetpackValidate200> | AddonsJetpackValidate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -299,7 +304,6 @@ export declare const getHostingAdvancedPasswordMockHandler: (overrideResponse?:
|
|
|
299
304
|
export declare const getHostingAdvancedSsoWhmMockHandler: (overrideResponse?: HostingAdvancedSsoWhm200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedSsoWhm200> | HostingAdvancedSsoWhm200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
300
305
|
export declare const getHostingAdvancedSystemConsoleMockHandler: (overrideResponse?: HostingAdvancedSystemConsole200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedSystemConsole200> | HostingAdvancedSystemConsole200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
301
306
|
export declare const getHostingCapabilitiesMockHandler: (overrideResponse?: HostingCapabilities200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingCapabilities200> | HostingCapabilities200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
302
|
-
export declare const getAddonCloudflareMockHandler: (overrideResponse?: AddonCloudflare200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddonCloudflare200> | AddonCloudflare200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
303
307
|
export declare const getListCronsMockHandler: (overrideResponse?: ListCrons200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ListCrons200> | ListCrons200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
304
308
|
export declare const getAddCronMockHandler: (overrideResponse?: AddCron200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddCron200> | AddCron200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
305
309
|
export declare const getUpdateCronMockHandler: (overrideResponse?: UpdateCron200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<UpdateCron200> | UpdateCron200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -307,7 +311,6 @@ export declare const getCronMockHandler: (overrideResponse?: Cron200 | ((info: P
|
|
|
307
311
|
export declare const getCronLastRunMockHandler: (overrideResponse?: CronLastRun200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CronLastRun200> | CronLastRun200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
308
312
|
export declare const getDbAddMockHandler: (overrideResponse?: DbAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DbAdd200> | DbAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
309
313
|
export declare const getDbMockHandler: (overrideResponse?: Db200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<Db200> | Db200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
310
|
-
export declare const getDbListMockHandler: (overrideResponse?: DbList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DbList200> | DbList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
311
314
|
export declare const getHostingDbAuthorizedHostsMockHandler: (overrideResponse?: HostingDbAuthorizedHosts200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingDbAuthorizedHosts200> | HostingDbAuthorizedHosts200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
312
315
|
export declare const getHostingDbAuthorizedHostsAddMockHandler: (overrideResponse?: HostingDbAuthorizedHostsAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingDbAuthorizedHostsAdd200> | HostingDbAuthorizedHostsAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
313
316
|
export declare const getHostingDbAuthorizedHostsUpdateMockHandler: (overrideResponse?: HostingDbAuthorizedHostsUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingDbAuthorizedHostsUpdate200> | HostingDbAuthorizedHostsUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -342,13 +345,18 @@ export declare const getHostingEmailUpdateMockHandler: (overrideResponse?: Hosti
|
|
|
342
345
|
export declare const getHostingEmailForwardersListMockHandler: (overrideResponse?: HostingEmailForwardersList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailForwardersList200> | HostingEmailForwardersList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
343
346
|
export declare const getHostingEmailForwarderAddMockHandler: (overrideResponse?: HostingEmailForwarderAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingEmailForwarderAdd200> | HostingEmailForwarderAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
344
347
|
export declare const getHostingEmailForwarderDeleteMockHandler: (overrideResponse?: HostingEmailForwarderDelete200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingEmailForwarderDelete200> | HostingEmailForwarderDelete200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
345
|
-
export declare const
|
|
346
|
-
export declare const
|
|
348
|
+
export declare const getHostingEmailSettingsMockHandler: (overrideResponse?: HostingEmailSettings200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingEmailSettings200> | HostingEmailSettings200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
349
|
+
export declare const getEmailSsoMockHandler: (overrideResponse?: EmailSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EmailSso200> | EmailSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
350
|
+
export declare const getHostingEmailFolderListMockHandler: (overrideResponse?: HostingEmailFolderList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailFolderList200> | HostingEmailFolderList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
347
351
|
export declare const getHostingFixownershipMockHandler: (overrideResponse?: HostingFixownership200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingFixownership200> | HostingFixownership200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
348
352
|
export declare const getHostingFtpListMockHandler: (overrideResponse?: HostingFtpList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingFtpList200> | HostingFtpList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
349
353
|
export declare const getHostingFtpAddMockHandler: (overrideResponse?: HostingFtpAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingFtpAdd200> | HostingFtpAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
350
354
|
export declare const getHostingFtpUpdateMockHandler: (overrideResponse?: HostingFtpUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingFtpUpdate200> | HostingFtpUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
351
355
|
export declare const getHostingFtpMockHandler: (overrideResponse?: HostingFtp200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingFtp200> | HostingFtp200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
356
|
+
export declare const getHostingRepoListMockHandler: (overrideResponse?: HostingRepoList200Item[] | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingRepoList200Item[]> | HostingRepoList200Item[]) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
357
|
+
export declare const getHostingRepoSyncMockHandler: (overrideResponse?: HostingRepoSync200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingRepoSync200> | HostingRepoSync200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
358
|
+
export declare const getHostingRepoMockHandler: (overrideResponse?: HostingRepo200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingRepo200> | HostingRepo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
359
|
+
export declare const getHostingRepoLogMockHandler: (overrideResponse?: HostingRepoLog200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingRepoLog200> | HostingRepoLog200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
352
360
|
export declare const getHotlinkconfigDetailsMockHandler: (overrideResponse?: HotlinkconfigDetails200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HotlinkconfigDetails200> | HotlinkconfigDetails200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
353
361
|
export declare const getHotlinkconfigAddMockHandler: (overrideResponse?: HotlinkconfigAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HotlinkconfigAdd200> | HotlinkconfigAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
354
362
|
export declare const getHotlinkconfigDeleteMockHandler: (overrideResponse?: HotlinkconfigDelete200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HotlinkconfigDelete200> | HotlinkconfigDelete200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -360,7 +368,6 @@ export declare const getHostingInfoDiskUsageMockHandler: (overrideResponse?: Hos
|
|
|
360
368
|
export declare const getHostingLeadMockHandler: (overrideResponse?: HostingLead200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingLead200> | HostingLead200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
361
369
|
export declare const getHostingMigrationStatusMockHandler: (overrideResponse?: HostingMigrationStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingMigrationStatus200> | HostingMigrationStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
362
370
|
export declare const getHostingMigrationsMockHandler: (overrideResponse?: HostingMigrations200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingMigrations200> | HostingMigrations200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
363
|
-
export declare const getHostingMigrationsCheckMockHandler: (overrideResponse?: HostingMigrationsCheck200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingMigrationsCheck200> | HostingMigrationsCheck200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
364
371
|
export declare const getHostingMigrationsEventMockHandler: (overrideResponse?: HostingMigrationsEvent200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingMigrationsEvent200> | HostingMigrationsEvent200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
365
372
|
export declare const getHostingMigrationInfoMockHandler: (overrideResponse?: HostingMigrationInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingMigrationInfo200> | HostingMigrationInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
366
373
|
export declare const getHostingMigrationSiteScanStatusMockHandler: (overrideResponse?: HostingMigrationSiteScanStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingMigrationSiteScanStatus200> | HostingMigrationSiteScanStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -482,6 +489,7 @@ export declare const getSiteMalwareStatusV2MockHandler: (overrideResponse?: Site
|
|
|
482
489
|
export declare const getSitesSecuritySitelockV2MockHandler: (overrideResponse?: SitesSecuritySitelockV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSecuritySitelockV2200> | SitesSecuritySitelockV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
483
490
|
export declare const getSitesSshUserListV2MockHandler: (overrideResponse?: SitesSshUserListV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSshUserListV2200> | SitesSshUserListV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
484
491
|
export declare const getSiteUsersV2MockHandler: (overrideResponse?: SiteUsersV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SiteUsersV2200> | SiteUsersV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
492
|
+
export declare const getBackupCreateV3MockHandler: (overrideResponse?: BackupCreateV3200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupCreateV3200> | BackupCreateV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
485
493
|
export declare const getSshKeyImportV3MockHandler: (overrideResponse?: SshKeyImportV3200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SshKeyImportV3200> | SshKeyImportV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
486
494
|
export declare const getSshKeyListV3MockHandler: (overrideResponse?: SshKeyListV3200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SshKeyListV3200> | SshKeyListV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
487
495
|
export declare const getSitesListV3MockHandler: (overrideResponse?: SitesListV3200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesListV3200> | SitesListV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|