@newfold/huapi-js 2.1893.0 → 2.1900.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 +327 -1
- package/src/index.js +257 -1
- package/src/index.msw.d.ts +21 -1
- package/src/index.msw.js +123 -3
- package/src/index.schemas.d.ts +480 -283
- package/src/index.schemas.js +11 -0
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.1900.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -299,6 +299,7 @@ export const useCodeguardBackupRestore = (options) => {
|
|
|
299
299
|
};
|
|
300
300
|
/**
|
|
301
301
|
* Returns all database records CodeGuard maintains for this user's account.
|
|
302
|
+
* @deprecated
|
|
302
303
|
* @summary database list
|
|
303
304
|
*/
|
|
304
305
|
export const codeguardDatabaseList = (addonId, options) => {
|
|
@@ -315,6 +316,7 @@ export const getCodeguardDatabaseListQueryOptions = (addonId, options) => {
|
|
|
315
316
|
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
316
317
|
};
|
|
317
318
|
/**
|
|
319
|
+
* @deprecated
|
|
318
320
|
* @summary database list
|
|
319
321
|
*/
|
|
320
322
|
export function useCodeguardDatabaseList(addonId, options) {
|
|
@@ -325,6 +327,7 @@ export function useCodeguardDatabaseList(addonId, options) {
|
|
|
325
327
|
}
|
|
326
328
|
/**
|
|
327
329
|
* Returns all database backup records CodeGuard maintains for this user's account.
|
|
330
|
+
* @deprecated
|
|
328
331
|
* @summary database backup list
|
|
329
332
|
*/
|
|
330
333
|
export const codeguardDatabaseBackupList = (addonId, params, options) => {
|
|
@@ -341,6 +344,7 @@ export const getCodeguardDatabaseBackupListQueryOptions = (addonId, params, opti
|
|
|
341
344
|
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
342
345
|
};
|
|
343
346
|
/**
|
|
347
|
+
* @deprecated
|
|
344
348
|
* @summary database backup list
|
|
345
349
|
*/
|
|
346
350
|
export function useCodeguardDatabaseBackupList(addonId, params, options) {
|
|
@@ -351,6 +355,7 @@ export function useCodeguardDatabaseBackupList(addonId, params, options) {
|
|
|
351
355
|
}
|
|
352
356
|
/**
|
|
353
357
|
* Queue the creation of a database backup.
|
|
358
|
+
* @deprecated
|
|
354
359
|
* @summary database backup create
|
|
355
360
|
*/
|
|
356
361
|
export const codeguardDatabaseBackupCreate = (addonId, codeguardDatabaseBackupCreateBody, options) => {
|
|
@@ -365,6 +370,7 @@ export const getCodeguardDatabaseBackupCreateMutationOptions = (options) => {
|
|
|
365
370
|
return Object.assign({ mutationFn }, mutationOptions);
|
|
366
371
|
};
|
|
367
372
|
/**
|
|
373
|
+
* @deprecated
|
|
368
374
|
* @summary database backup create
|
|
369
375
|
*/
|
|
370
376
|
export const useCodeguardDatabaseBackupCreate = (options) => {
|
|
@@ -373,6 +379,7 @@ export const useCodeguardDatabaseBackupCreate = (options) => {
|
|
|
373
379
|
};
|
|
374
380
|
/**
|
|
375
381
|
* Restores a database backup
|
|
382
|
+
* @deprecated
|
|
376
383
|
* @summary database backup restore
|
|
377
384
|
*/
|
|
378
385
|
export const codeguardDatabaseBackupRestore = (addonId, codeguardDatabaseBackupRestoreBody, options) => {
|
|
@@ -387,6 +394,7 @@ export const getCodeguardDatabaseBackupRestoreMutationOptions = (options) => {
|
|
|
387
394
|
return Object.assign({ mutationFn }, mutationOptions);
|
|
388
395
|
};
|
|
389
396
|
/**
|
|
397
|
+
* @deprecated
|
|
390
398
|
* @summary database backup restore
|
|
391
399
|
*/
|
|
392
400
|
export const useCodeguardDatabaseBackupRestore = (options) => {
|
|
@@ -447,6 +455,7 @@ export function useCodeguardPlanInfo(addonId, options) {
|
|
|
447
455
|
}
|
|
448
456
|
/**
|
|
449
457
|
* Returns all website records CodeGuard maintains for this user's account.
|
|
458
|
+
* @deprecated
|
|
450
459
|
* @summary website list
|
|
451
460
|
*/
|
|
452
461
|
export const codeguardWebsiteList = (addonId, options) => {
|
|
@@ -463,6 +472,7 @@ export const getCodeguardWebsiteListQueryOptions = (addonId, options) => {
|
|
|
463
472
|
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
464
473
|
};
|
|
465
474
|
/**
|
|
475
|
+
* @deprecated
|
|
466
476
|
* @summary website list
|
|
467
477
|
*/
|
|
468
478
|
export function useCodeguardWebsiteList(addonId, options) {
|
|
@@ -473,6 +483,7 @@ export function useCodeguardWebsiteList(addonId, options) {
|
|
|
473
483
|
}
|
|
474
484
|
/**
|
|
475
485
|
* Returns all website backup records CodeGuard maintains for this user's account.
|
|
486
|
+
* @deprecated
|
|
476
487
|
* @summary website backup list
|
|
477
488
|
*/
|
|
478
489
|
export const codeguardWebsiteBackupList = (addonId, params, options) => {
|
|
@@ -489,6 +500,7 @@ export const getCodeguardWebsiteBackupListQueryOptions = (addonId, params, optio
|
|
|
489
500
|
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
490
501
|
};
|
|
491
502
|
/**
|
|
503
|
+
* @deprecated
|
|
492
504
|
* @summary website backup list
|
|
493
505
|
*/
|
|
494
506
|
export function useCodeguardWebsiteBackupList(addonId, params, options) {
|
|
@@ -499,6 +511,7 @@ export function useCodeguardWebsiteBackupList(addonId, params, options) {
|
|
|
499
511
|
}
|
|
500
512
|
/**
|
|
501
513
|
* Initiate the creation of a new backup for a given website
|
|
514
|
+
* @deprecated
|
|
502
515
|
* @summary website backup create
|
|
503
516
|
*/
|
|
504
517
|
export const codeguardWebsiteBackupCreate = (addonId, codeguardWebsiteBackupCreateBody, options) => {
|
|
@@ -513,6 +526,7 @@ export const getCodeguardWebsiteBackupCreateMutationOptions = (options) => {
|
|
|
513
526
|
return Object.assign({ mutationFn }, mutationOptions);
|
|
514
527
|
};
|
|
515
528
|
/**
|
|
529
|
+
* @deprecated
|
|
516
530
|
* @summary website backup create
|
|
517
531
|
*/
|
|
518
532
|
export const useCodeguardWebsiteBackupCreate = (options) => {
|
|
@@ -521,6 +535,7 @@ export const useCodeguardWebsiteBackupCreate = (options) => {
|
|
|
521
535
|
};
|
|
522
536
|
/**
|
|
523
537
|
* Restores a website backup
|
|
538
|
+
* @deprecated
|
|
524
539
|
* @summary website backup restore
|
|
525
540
|
*/
|
|
526
541
|
export const codeguardWebsiteBackupRestore = (addonId, codeguardWebsiteBackupRestoreBody, options) => {
|
|
@@ -535,6 +550,7 @@ export const getCodeguardWebsiteBackupRestoreMutationOptions = (options) => {
|
|
|
535
550
|
return Object.assign({ mutationFn }, mutationOptions);
|
|
536
551
|
};
|
|
537
552
|
/**
|
|
553
|
+
* @deprecated
|
|
538
554
|
* @summary website backup restore
|
|
539
555
|
*/
|
|
540
556
|
export const useCodeguardWebsiteBackupRestore = (options) => {
|
|
@@ -567,6 +583,150 @@ export function useAddonsSitelockSso(addonId, options) {
|
|
|
567
583
|
query.queryKey = queryOptions.queryKey;
|
|
568
584
|
return query;
|
|
569
585
|
}
|
|
586
|
+
/**
|
|
587
|
+
* Returns a combined backup list with website commit ids and corresponding database commits
|
|
588
|
+
* @summary backup list
|
|
589
|
+
*/
|
|
590
|
+
export const xcitiumBackupList = (addonId, params, options) => {
|
|
591
|
+
return axios.get(`/v1/addons/xcitium/${addonId}/backups`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
592
|
+
};
|
|
593
|
+
export const getXcitiumBackupListQueryKey = (addonId, params) => {
|
|
594
|
+
return [`/v1/addons/xcitium/${addonId}/backups`, ...(params ? [params] : [])];
|
|
595
|
+
};
|
|
596
|
+
export const getXcitiumBackupListQueryOptions = (addonId, params, options) => {
|
|
597
|
+
var _a;
|
|
598
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
599
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getXcitiumBackupListQueryKey(addonId, params);
|
|
600
|
+
const queryFn = ({ signal }) => xcitiumBackupList(addonId, params, Object.assign({ signal }, axiosOptions));
|
|
601
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* @summary backup list
|
|
605
|
+
*/
|
|
606
|
+
export function useXcitiumBackupList(addonId, params, options) {
|
|
607
|
+
const queryOptions = getXcitiumBackupListQueryOptions(addonId, params, options);
|
|
608
|
+
const query = useQuery(queryOptions);
|
|
609
|
+
query.queryKey = queryOptions.queryKey;
|
|
610
|
+
return query;
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* Creates the website backup
|
|
614
|
+
* @summary backup create
|
|
615
|
+
*/
|
|
616
|
+
export const xcitiumBackupCreate = (addonId, xcitiumBackupCreateBody, options) => {
|
|
617
|
+
return axios.post(`/v1/addons/xcitium/${addonId}/backups`, xcitiumBackupCreateBody, options);
|
|
618
|
+
};
|
|
619
|
+
export const getXcitiumBackupCreateMutationOptions = (options) => {
|
|
620
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
621
|
+
const mutationFn = (props) => {
|
|
622
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
623
|
+
return xcitiumBackupCreate(addonId, data, axiosOptions);
|
|
624
|
+
};
|
|
625
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
626
|
+
};
|
|
627
|
+
/**
|
|
628
|
+
* @summary backup create
|
|
629
|
+
*/
|
|
630
|
+
export const useXcitiumBackupCreate = (options) => {
|
|
631
|
+
const mutationOptions = getXcitiumBackupCreateMutationOptions(options);
|
|
632
|
+
return useMutation(mutationOptions);
|
|
633
|
+
};
|
|
634
|
+
/**
|
|
635
|
+
* Queues the backup download.
|
|
636
|
+
* @summary backup download
|
|
637
|
+
*/
|
|
638
|
+
export const xcitiumBackupDownload = (addonId, xcitiumBackupDownloadBody, options) => {
|
|
639
|
+
return axios.post(`/v1/addons/xcitium/${addonId}/backups/download`, xcitiumBackupDownloadBody, options);
|
|
640
|
+
};
|
|
641
|
+
export const getXcitiumBackupDownloadMutationOptions = (options) => {
|
|
642
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
643
|
+
const mutationFn = (props) => {
|
|
644
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
645
|
+
return xcitiumBackupDownload(addonId, data, axiosOptions);
|
|
646
|
+
};
|
|
647
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
648
|
+
};
|
|
649
|
+
/**
|
|
650
|
+
* @summary backup download
|
|
651
|
+
*/
|
|
652
|
+
export const useXcitiumBackupDownload = (options) => {
|
|
653
|
+
const mutationOptions = getXcitiumBackupDownloadMutationOptions(options);
|
|
654
|
+
return useMutation(mutationOptions);
|
|
655
|
+
};
|
|
656
|
+
/**
|
|
657
|
+
* Restores a website and database backup
|
|
658
|
+
* @summary backups restore
|
|
659
|
+
*/
|
|
660
|
+
export const xcitiumBackupRestore = (addonId, xcitiumBackupRestoreBody, options) => {
|
|
661
|
+
return axios.post(`/v1/addons/xcitium/${addonId}/backups/restore`, xcitiumBackupRestoreBody, options);
|
|
662
|
+
};
|
|
663
|
+
export const getXcitiumBackupRestoreMutationOptions = (options) => {
|
|
664
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
665
|
+
const mutationFn = (props) => {
|
|
666
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
667
|
+
return xcitiumBackupRestore(addonId, data, axiosOptions);
|
|
668
|
+
};
|
|
669
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
670
|
+
};
|
|
671
|
+
/**
|
|
672
|
+
* @summary backups restore
|
|
673
|
+
*/
|
|
674
|
+
export const useXcitiumBackupRestore = (options) => {
|
|
675
|
+
const mutationOptions = getXcitiumBackupRestoreMutationOptions(options);
|
|
676
|
+
return useMutation(mutationOptions);
|
|
677
|
+
};
|
|
678
|
+
/**
|
|
679
|
+
* Returns the subscribed plan and usage info
|
|
680
|
+
* @summary plan info
|
|
681
|
+
*/
|
|
682
|
+
export const xcitiumPlanInfo = (addonId, options) => {
|
|
683
|
+
return axios.get(`/v1/addons/xcitium/${addonId}/plan`, options);
|
|
684
|
+
};
|
|
685
|
+
export const getXcitiumPlanInfoQueryKey = (addonId) => {
|
|
686
|
+
return [`/v1/addons/xcitium/${addonId}/plan`];
|
|
687
|
+
};
|
|
688
|
+
export const getXcitiumPlanInfoQueryOptions = (addonId, options) => {
|
|
689
|
+
var _a;
|
|
690
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
691
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getXcitiumPlanInfoQueryKey(addonId);
|
|
692
|
+
const queryFn = ({ signal }) => xcitiumPlanInfo(addonId, Object.assign({ signal }, axiosOptions));
|
|
693
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
694
|
+
};
|
|
695
|
+
/**
|
|
696
|
+
* @summary plan info
|
|
697
|
+
*/
|
|
698
|
+
export function useXcitiumPlanInfo(addonId, options) {
|
|
699
|
+
const queryOptions = getXcitiumPlanInfoQueryOptions(addonId, options);
|
|
700
|
+
const query = useQuery(queryOptions);
|
|
701
|
+
query.queryKey = queryOptions.queryKey;
|
|
702
|
+
return query;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Returns an SSO URL that can be used to access the user's Xcitium dashboard.
|
|
706
|
+
* @summary Xcitium SSO link
|
|
707
|
+
*/
|
|
708
|
+
export const xcitiumSso = (addonId, options) => {
|
|
709
|
+
return axios.get(`/v1/addons/xcitium/${addonId}/sso`, options);
|
|
710
|
+
};
|
|
711
|
+
export const getXcitiumSsoQueryKey = (addonId) => {
|
|
712
|
+
return [`/v1/addons/xcitium/${addonId}/sso`];
|
|
713
|
+
};
|
|
714
|
+
export const getXcitiumSsoQueryOptions = (addonId, options) => {
|
|
715
|
+
var _a;
|
|
716
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
717
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getXcitiumSsoQueryKey(addonId);
|
|
718
|
+
const queryFn = ({ signal }) => xcitiumSso(addonId, Object.assign({ signal }, axiosOptions));
|
|
719
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
720
|
+
};
|
|
721
|
+
/**
|
|
722
|
+
* @summary Xcitium SSO link
|
|
723
|
+
*/
|
|
724
|
+
export function useXcitiumSso(addonId, options) {
|
|
725
|
+
const queryOptions = getXcitiumSsoQueryOptions(addonId, options);
|
|
726
|
+
const query = useQuery(queryOptions);
|
|
727
|
+
query.queryKey = queryOptions.queryKey;
|
|
728
|
+
return query;
|
|
729
|
+
}
|
|
570
730
|
/**
|
|
571
731
|
* Backup initiate
|
|
572
732
|
* @summary Backup initiate
|
|
@@ -669,6 +829,28 @@ export function useBackupMeta(addonId, params, options) {
|
|
|
669
829
|
query.queryKey = queryOptions.queryKey;
|
|
670
830
|
return query;
|
|
671
831
|
}
|
|
832
|
+
/**
|
|
833
|
+
* Backup create on demand
|
|
834
|
+
* @summary Backup create on demand
|
|
835
|
+
*/
|
|
836
|
+
export const backupCreateOndemandV1 = (addonId, siteId, backupCreateOndemandV1Body, options) => {
|
|
837
|
+
return axios.post(`/v1/addons/${addonId}/backup/sites/${siteId}/create`, backupCreateOndemandV1Body, options);
|
|
838
|
+
};
|
|
839
|
+
export const getBackupCreateOndemandV1MutationOptions = (options) => {
|
|
840
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
841
|
+
const mutationFn = (props) => {
|
|
842
|
+
const { addonId, siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
843
|
+
return backupCreateOndemandV1(addonId, siteId, data, axiosOptions);
|
|
844
|
+
};
|
|
845
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
846
|
+
};
|
|
847
|
+
/**
|
|
848
|
+
* @summary Backup create on demand
|
|
849
|
+
*/
|
|
850
|
+
export const useBackupCreateOndemandV1 = (options) => {
|
|
851
|
+
const mutationOptions = getBackupCreateOndemandV1MutationOptions(options);
|
|
852
|
+
return useMutation(mutationOptions);
|
|
853
|
+
};
|
|
672
854
|
/**
|
|
673
855
|
* HAL get_site_backup_pref: schedule, retention, and status for a site.
|
|
674
856
|
* @summary Get site backup preference
|
|
@@ -761,6 +943,32 @@ export const useBackupPrefSetStatus = (options) => {
|
|
|
761
943
|
const mutationOptions = getBackupPrefSetStatusMutationOptions(options);
|
|
762
944
|
return useMutation(mutationOptions);
|
|
763
945
|
};
|
|
946
|
+
/**
|
|
947
|
+
* HAL backup_usage_stat: allowed, used, and available backup storage in bytes for the addon.
|
|
948
|
+
* @summary Backup storage usage
|
|
949
|
+
*/
|
|
950
|
+
export const backupUsage = (addonId, options) => {
|
|
951
|
+
return axios.get(`/v1/addons/${addonId}/backup/usage`, options);
|
|
952
|
+
};
|
|
953
|
+
export const getBackupUsageQueryKey = (addonId) => {
|
|
954
|
+
return [`/v1/addons/${addonId}/backup/usage`];
|
|
955
|
+
};
|
|
956
|
+
export const getBackupUsageQueryOptions = (addonId, options) => {
|
|
957
|
+
var _a;
|
|
958
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
959
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getBackupUsageQueryKey(addonId);
|
|
960
|
+
const queryFn = ({ signal }) => backupUsage(addonId, Object.assign({ signal }, axiosOptions));
|
|
961
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
962
|
+
};
|
|
963
|
+
/**
|
|
964
|
+
* @summary Backup storage usage
|
|
965
|
+
*/
|
|
966
|
+
export function useBackupUsage(addonId, options) {
|
|
967
|
+
const queryOptions = getBackupUsageQueryOptions(addonId, options);
|
|
968
|
+
const query = useQuery(queryOptions);
|
|
969
|
+
query.queryKey = queryOptions.queryKey;
|
|
970
|
+
return query;
|
|
971
|
+
}
|
|
764
972
|
/**
|
|
765
973
|
* Decom and delete cloudflare basic addon
|
|
766
974
|
* @summary Uninstall cloudflare basic addon
|
|
@@ -4802,6 +5010,28 @@ export const useBackupsJetpackBackup = (options) => {
|
|
|
4802
5010
|
const mutationOptions = getBackupsJetpackBackupMutationOptions(options);
|
|
4803
5011
|
return useMutation(mutationOptions);
|
|
4804
5012
|
};
|
|
5013
|
+
/**
|
|
5014
|
+
* Adds the site to the Xcitium account
|
|
5015
|
+
* @summary Add site to xcitium
|
|
5016
|
+
*/
|
|
5017
|
+
export const sitesBackupsXcitium = (siteId, options) => {
|
|
5018
|
+
return axios.post(`/v1/sites/${siteId}/backups/xcitium`, undefined, options);
|
|
5019
|
+
};
|
|
5020
|
+
export const getSitesBackupsXcitiumMutationOptions = (options) => {
|
|
5021
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5022
|
+
const mutationFn = (props) => {
|
|
5023
|
+
const { siteId } = props !== null && props !== void 0 ? props : {};
|
|
5024
|
+
return sitesBackupsXcitium(siteId, axiosOptions);
|
|
5025
|
+
};
|
|
5026
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
5027
|
+
};
|
|
5028
|
+
/**
|
|
5029
|
+
* @summary Add site to xcitium
|
|
5030
|
+
*/
|
|
5031
|
+
export const useSitesBackupsXcitium = (options) => {
|
|
5032
|
+
const mutationOptions = getSitesBackupsXcitiumMutationOptions(options);
|
|
5033
|
+
return useMutation(mutationOptions);
|
|
5034
|
+
};
|
|
4805
5035
|
/**
|
|
4806
5036
|
* Creates cloudflare basic addon using site_id
|
|
4807
5037
|
* @summary Install cloudflare basic addon using site_id
|
|
@@ -7315,6 +7545,32 @@ export const useBackupRestoreV3 = (options) => {
|
|
|
7315
7545
|
const mutationOptions = getBackupRestoreV3MutationOptions(options);
|
|
7316
7546
|
return useMutation(mutationOptions);
|
|
7317
7547
|
};
|
|
7548
|
+
/**
|
|
7549
|
+
* Returns backups for the addon and site with pagination via page and limit query parameters.
|
|
7550
|
+
* @summary Backup list (paginated)
|
|
7551
|
+
*/
|
|
7552
|
+
export const backupListV3 = (addonId, siteId, params, options) => {
|
|
7553
|
+
return axios.get(`/v3/addons/${addonId}/backup/sites/${siteId}/list`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
7554
|
+
};
|
|
7555
|
+
export const getBackupListV3QueryKey = (addonId, siteId, params) => {
|
|
7556
|
+
return [`/v3/addons/${addonId}/backup/sites/${siteId}/list`, ...(params ? [params] : [])];
|
|
7557
|
+
};
|
|
7558
|
+
export const getBackupListV3QueryOptions = (addonId, siteId, params, options) => {
|
|
7559
|
+
var _a;
|
|
7560
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
7561
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getBackupListV3QueryKey(addonId, siteId, params);
|
|
7562
|
+
const queryFn = ({ signal }) => backupListV3(addonId, siteId, params, Object.assign({ signal }, axiosOptions));
|
|
7563
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(addonId && siteId) }, queryOptions);
|
|
7564
|
+
};
|
|
7565
|
+
/**
|
|
7566
|
+
* @summary Backup list (paginated)
|
|
7567
|
+
*/
|
|
7568
|
+
export function useBackupListV3(addonId, siteId, params, options) {
|
|
7569
|
+
const queryOptions = getBackupListV3QueryOptions(addonId, siteId, params, options);
|
|
7570
|
+
const query = useQuery(queryOptions);
|
|
7571
|
+
query.queryKey = queryOptions.queryKey;
|
|
7572
|
+
return query;
|
|
7573
|
+
}
|
|
7318
7574
|
/**
|
|
7319
7575
|
* Add a site to the current hosting.
|
|
7320
7576
|
* @summary sites add
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, AllUserMonarxDetails200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, 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, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, AllUserMonarxDetails200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupUsage200, 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, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountFeaturesResponseMock: (overrideResponse?: Partial<AccountFeatures200>) => AccountFeatures200;
|
|
5
5
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
@@ -23,14 +23,22 @@ export declare const getCodeguardWebsiteBackupListResponseMock: (overrideRespons
|
|
|
23
23
|
export declare const getCodeguardWebsiteBackupCreateResponseMock: (overrideResponse?: Partial<CodeguardWebsiteBackupCreate200>) => CodeguardWebsiteBackupCreate200;
|
|
24
24
|
export declare const getCodeguardWebsiteBackupRestoreResponseMock: (overrideResponse?: Partial<CodeguardWebsiteBackupRestore200>) => CodeguardWebsiteBackupRestore200;
|
|
25
25
|
export declare const getAddonsSitelockSsoResponseMock: (overrideResponse?: Partial<AddonsSitelockSso200>) => AddonsSitelockSso200;
|
|
26
|
+
export declare const getXcitiumBackupListResponseMock: (overrideResponse?: Partial<XcitiumBackupList200>) => XcitiumBackupList200;
|
|
27
|
+
export declare const getXcitiumBackupCreateResponseMock: (overrideResponse?: Partial<XcitiumBackupCreate200>) => XcitiumBackupCreate200;
|
|
28
|
+
export declare const getXcitiumBackupDownloadResponseMock: (overrideResponse?: Partial<XcitiumBackupDownload200>) => XcitiumBackupDownload200;
|
|
29
|
+
export declare const getXcitiumBackupRestoreResponseMock: (overrideResponse?: Partial<XcitiumBackupRestore200>) => XcitiumBackupRestore200;
|
|
30
|
+
export declare const getXcitiumPlanInfoResponseMock: (overrideResponse?: Partial<XcitiumPlanInfo200>) => XcitiumPlanInfo200;
|
|
31
|
+
export declare const getXcitiumSsoResponseMock: (overrideResponse?: Partial<XcitiumSso200>) => XcitiumSso200;
|
|
26
32
|
export declare const getBackupInitiateResponseMock: (overrideResponse?: Partial<BackupInitiate200>) => BackupInitiate200;
|
|
27
33
|
export declare const getBackupStatusResponseMock: (overrideResponse?: Partial<BackupStatus200>) => BackupStatus200;
|
|
28
34
|
export declare const getBackupListResponseMock: (overrideResponse?: Partial<BackupList200>) => BackupList200;
|
|
29
35
|
export declare const getBackupMetaResponseMock: (overrideResponse?: Partial<BackupMeta200>) => BackupMeta200;
|
|
36
|
+
export declare const getBackupCreateOndemandV1ResponseMock: (overrideResponse?: Partial<BackupCreateOndemandV1200>) => BackupCreateOndemandV1200;
|
|
30
37
|
export declare const getBackupSettingsResponseMock: (overrideResponse?: Partial<BackupSettings200>) => BackupSettings200;
|
|
31
38
|
export declare const getBackupSettingsCreateResponseMock: (overrideResponse?: Partial<BackupSettingsCreate200>) => BackupSettingsCreate200;
|
|
32
39
|
export declare const getBackupSettingsUpdateResponseMock: (overrideResponse?: Partial<BackupSettingsUpdate200>) => BackupSettingsUpdate200;
|
|
33
40
|
export declare const getBackupPrefSetStatusResponseMock: (overrideResponse?: Partial<BackupPrefSetStatus200>) => BackupPrefSetStatus200;
|
|
41
|
+
export declare const getBackupUsageResponseMock: (overrideResponse?: Partial<BackupUsage200>) => BackupUsage200;
|
|
34
42
|
export declare const getAddonsCloudflareResponseMock: (overrideResponse?: Partial<AddonsCloudflare200>) => AddonsCloudflare200;
|
|
35
43
|
export declare const getAddonsCloudflareExternalNsCheckResponseMock: (overrideResponse?: Partial<AddonsCloudflareExternalNsCheck200>) => AddonsCloudflareExternalNsCheck200;
|
|
36
44
|
export declare const getAddonsInfoResponseMock: (overrideResponse?: Partial<AddonsInfo200>) => AddonsInfo200;
|
|
@@ -199,6 +207,7 @@ export declare const getSitesBackupsCodeguardResponseMock: (overrideResponse?: P
|
|
|
199
207
|
export declare const getSitesBackupsDetailsResponseMock: (overrideResponse?: Partial<SitesBackupsDetails200>) => SitesBackupsDetails200;
|
|
200
208
|
export declare const getJetpackBackupStatusResponseMock: (overrideResponse?: Partial<JetpackBackupStatus200>) => JetpackBackupStatus200;
|
|
201
209
|
export declare const getBackupsJetpackBackupResponseMock: () => BackupsJetpackBackup200;
|
|
210
|
+
export declare const getSitesBackupsXcitiumResponseMock: (overrideResponse?: Partial<SitesBackupsXcitium200>) => SitesBackupsXcitium200;
|
|
202
211
|
export declare const getSiteAddonCloudflareResponseMock: (overrideResponse?: Partial<SiteAddonCloudflare200>) => SiteAddonCloudflare200;
|
|
203
212
|
export declare const getSitesDatabaseInfoResponseMock: (overrideResponse?: Partial<SitesDatabaseInfo200>) => SitesDatabaseInfo200;
|
|
204
213
|
export declare const getSitesDatabasePasswordsyncResponseMock: (overrideResponse?: Partial<SitesDatabasePasswordsync200>) => SitesDatabasePasswordsync200;
|
|
@@ -299,6 +308,7 @@ export declare const getSitesSshUserListV2ResponseMock: (overrideResponse?: Part
|
|
|
299
308
|
export declare const getSiteUsersV2ResponseMock: (overrideResponse?: Partial<SiteUsersV2200>) => SiteUsersV2200;
|
|
300
309
|
export declare const getBackupCreateV3ResponseMock: (overrideResponse?: Partial<BackupCreateV3200>) => BackupCreateV3200;
|
|
301
310
|
export declare const getBackupRestoreV3ResponseMock: (overrideResponse?: Partial<BackupRestoreV3200>) => BackupRestoreV3200;
|
|
311
|
+
export declare const getBackupListV3ResponseMock: (overrideResponse?: Partial<BackupListV3200>) => BackupListV3200;
|
|
302
312
|
export declare const getHostingSiteAddV3ResponseMock: (overrideResponse?: Partial<HostingSiteAddV3200>) => HostingSiteAddV3200;
|
|
303
313
|
export declare const getSshKeyImportV3ResponseMock: (overrideResponse?: Partial<SshKeyImportV3200>) => SshKeyImportV3200;
|
|
304
314
|
export declare const getSshKeyListV3ResponseMock: (overrideResponse?: Partial<SshKeyListV3200>) => SshKeyListV3200;
|
|
@@ -328,14 +338,22 @@ export declare const getCodeguardWebsiteBackupListMockHandler: (overrideResponse
|
|
|
328
338
|
export declare const getCodeguardWebsiteBackupCreateMockHandler: (overrideResponse?: CodeguardWebsiteBackupCreate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<CodeguardWebsiteBackupCreate200> | CodeguardWebsiteBackupCreate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
329
339
|
export declare const getCodeguardWebsiteBackupRestoreMockHandler: (overrideResponse?: CodeguardWebsiteBackupRestore200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<CodeguardWebsiteBackupRestore200> | CodeguardWebsiteBackupRestore200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
330
340
|
export declare const getAddonsSitelockSsoMockHandler: (overrideResponse?: AddonsSitelockSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsSitelockSso200> | AddonsSitelockSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
341
|
+
export declare const getXcitiumBackupListMockHandler: (overrideResponse?: XcitiumBackupList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<XcitiumBackupList200> | XcitiumBackupList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
342
|
+
export declare const getXcitiumBackupCreateMockHandler: (overrideResponse?: XcitiumBackupCreate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<XcitiumBackupCreate200> | XcitiumBackupCreate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
343
|
+
export declare const getXcitiumBackupDownloadMockHandler: (overrideResponse?: XcitiumBackupDownload200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<XcitiumBackupDownload200> | XcitiumBackupDownload200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
344
|
+
export declare const getXcitiumBackupRestoreMockHandler: (overrideResponse?: XcitiumBackupRestore200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<XcitiumBackupRestore200> | XcitiumBackupRestore200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
345
|
+
export declare const getXcitiumPlanInfoMockHandler: (overrideResponse?: XcitiumPlanInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<XcitiumPlanInfo200> | XcitiumPlanInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
346
|
+
export declare const getXcitiumSsoMockHandler: (overrideResponse?: XcitiumSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<XcitiumSso200> | XcitiumSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
331
347
|
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;
|
|
332
348
|
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;
|
|
333
349
|
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;
|
|
334
350
|
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;
|
|
351
|
+
export declare const getBackupCreateOndemandV1MockHandler: (overrideResponse?: BackupCreateOndemandV1200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupCreateOndemandV1200> | BackupCreateOndemandV1200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
335
352
|
export declare const getBackupSettingsMockHandler: (overrideResponse?: BackupSettings200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupSettings200> | BackupSettings200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
336
353
|
export declare const getBackupSettingsCreateMockHandler: (overrideResponse?: BackupSettingsCreate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupSettingsCreate200> | BackupSettingsCreate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
337
354
|
export declare const getBackupSettingsUpdateMockHandler: (overrideResponse?: BackupSettingsUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<BackupSettingsUpdate200> | BackupSettingsUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
338
355
|
export declare const getBackupPrefSetStatusMockHandler: (overrideResponse?: BackupPrefSetStatus200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<BackupPrefSetStatus200> | BackupPrefSetStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
356
|
+
export declare const getBackupUsageMockHandler: (overrideResponse?: BackupUsage200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupUsage200> | BackupUsage200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
339
357
|
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;
|
|
340
358
|
export declare const getAddonsCloudflareExternalNsCheckMockHandler: (overrideResponse?: AddonsCloudflareExternalNsCheck200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsCloudflareExternalNsCheck200> | AddonsCloudflareExternalNsCheck200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
341
359
|
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;
|
|
@@ -504,6 +522,7 @@ export declare const getSitesBackupsCodeguardMockHandler: (overrideResponse?: Si
|
|
|
504
522
|
export declare const getSitesBackupsDetailsMockHandler: (overrideResponse?: SitesBackupsDetails200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesBackupsDetails200> | SitesBackupsDetails200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
505
523
|
export declare const getJetpackBackupStatusMockHandler: (overrideResponse?: JetpackBackupStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<JetpackBackupStatus200> | JetpackBackupStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
506
524
|
export declare const getBackupsJetpackBackupMockHandler: (overrideResponse?: BackupsJetpackBackup200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<BackupsJetpackBackup200> | BackupsJetpackBackup200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
525
|
+
export declare const getSitesBackupsXcitiumMockHandler: (overrideResponse?: SitesBackupsXcitium200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesBackupsXcitium200> | SitesBackupsXcitium200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
507
526
|
export declare const getSiteAddonCloudflareMockHandler: (overrideResponse?: SiteAddonCloudflare200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SiteAddonCloudflare200> | SiteAddonCloudflare200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
508
527
|
export declare const getSitesDatabaseInfoMockHandler: (overrideResponse?: SitesDatabaseInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesDatabaseInfo200> | SitesDatabaseInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
509
528
|
export declare const getSitesDatabasePasswordsyncMockHandler: (overrideResponse?: SitesDatabasePasswordsync200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesDatabasePasswordsync200> | SitesDatabasePasswordsync200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -606,6 +625,7 @@ export declare const getSitesSshUserListV2MockHandler: (overrideResponse?: Sites
|
|
|
606
625
|
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;
|
|
607
626
|
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;
|
|
608
627
|
export declare const getBackupRestoreV3MockHandler: (overrideResponse?: BackupRestoreV3200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupRestoreV3200> | BackupRestoreV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
628
|
+
export declare const getBackupListV3MockHandler: (overrideResponse?: BackupListV3200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupListV3200> | BackupListV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
609
629
|
export declare const getHostingSiteAddV3MockHandler: (overrideResponse?: HostingSiteAddV3200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingSiteAddV3200> | HostingSiteAddV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
610
630
|
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;
|
|
611
631
|
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;
|