@newfold/huapi-js 0.1.0-beta.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -0
- package/package.json +15 -0
- package/src/handlers.d.ts +2 -0
- package/src/handlers.js +7 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +5 -0
- package/src/lib/handlers/index.d.ts +5 -0
- package/src/lib/handlers/index.js +8 -0
- package/src/lib/handlers/sites/data/sites.d.ts +19 -0
- package/src/lib/handlers/sites/data/sites.js +178 -0
- package/src/lib/handlers/sites/getHostingSitesHandler.d.ts +9 -0
- package/src/lib/handlers/sites/getHostingSitesHandler.js +17 -0
- package/src/orval-generated/index.d.ts +336 -0
- package/src/orval-generated/index.js +398 -0
- package/src/orval-generated/index.msw.d.ts +127 -0
- package/src/orval-generated/index.msw.js +100 -0
- package/src/orval-generated/models/addonsCodeguardBackupCreate200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardBackupCreate200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupCreateBody.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardBackupCreateBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupDownload200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardBackupDownload200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupDownloadBody.d.ts +15 -0
- package/src/orval-generated/models/addonsCodeguardBackupDownloadBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupRestore200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardBackupRestore200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupRestoreBody.d.ts +17 -0
- package/src/orval-generated/models/addonsCodeguardBackupRestoreBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackups200.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardBackups200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardBackups200BackupsItem.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardBackups200BackupsItem.js +2 -0
- package/src/orval-generated/models/addonsCodeguardBackups200BackupsItemDatabaseBackupsItem.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardBackups200BackupsItemDatabaseBackupsItem.js +9 -0
- package/src/orval-generated/models/addonsCodeguardBackupsParams.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardBackupsParams.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupCreate200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupCreate200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupCreateBody.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupCreateBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupList200.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupList200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupList200BackupsItem.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupList200BackupsItem.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupListParams.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupListParams.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupRestore200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupRestore200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupRestoreBody.d.ts +15 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupRestoreBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200.d.ts +12 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200DatabasesItem.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200DatabasesItem.js +2 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200DatabasesItemDatabaseBackup.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardDatabaseList200DatabasesItemDatabaseBackup.js +9 -0
- package/src/orval-generated/models/addonsCodeguardLoginLinkGenerate200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardLoginLinkGenerate200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardPlanInfo200.d.ts +17 -0
- package/src/orval-generated/models/addonsCodeguardPlanInfo200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardPlanInfo200SeatsItem.d.ts +12 -0
- package/src/orval-generated/models/addonsCodeguardPlanInfo200SeatsItem.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupCreate200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupCreate200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupCreateBody.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupCreateBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupList200.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupList200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupList200BackupsItem.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupList200BackupsItem.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupListParams.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupListParams.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore200.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore200.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore400.d.ts +12 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore400.js +2 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore400Error.d.ts +10 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore400Error.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestoreBody.d.ts +13 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestoreBody.js +9 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200.js +2 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200WebsiteListItem.d.ts +11 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200WebsiteListItem.js +2 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200WebsiteListItemWebsite.d.ts +12 -0
- package/src/orval-generated/models/addonsCodeguardWebsiteList200WebsiteListItemWebsite.js +9 -0
- package/src/orval-generated/models/hostingAddons200.d.ts +11 -0
- package/src/orval-generated/models/hostingAddons200.js +2 -0
- package/src/orval-generated/models/hostingAddons200RowsItem.d.ts +13 -0
- package/src/orval-generated/models/hostingAddons200RowsItem.js +9 -0
- package/src/orval-generated/models/hostingAddonsParams.d.ts +12 -0
- package/src/orval-generated/models/hostingAddonsParams.js +9 -0
- package/src/orval-generated/models/hostingFtpList200.d.ts +11 -0
- package/src/orval-generated/models/hostingFtpList200.js +2 -0
- package/src/orval-generated/models/hostingFtpList200FtpAccountItem.d.ts +11 -0
- package/src/orval-generated/models/hostingFtpList200FtpAccountItem.js +9 -0
- package/src/orval-generated/models/hostingInfo200.d.ts +10 -0
- package/src/orval-generated/models/hostingInfo200.js +9 -0
- package/src/orval-generated/models/hostingSites200.d.ts +11 -0
- package/src/orval-generated/models/hostingSites200.js +2 -0
- package/src/orval-generated/models/hostingSites200RowsItem.d.ts +12 -0
- package/src/orval-generated/models/hostingSites200RowsItem.js +9 -0
- package/src/orval-generated/models/index.d.ts +46 -0
- package/src/orval-generated/models/index.js +49 -0
- package/src/orval-generated/models/sitesInfo200.d.ts +20 -0
- package/src/orval-generated/models/sitesInfo200.js +9 -0
- package/src/orval-generated/models/sitesSso200.d.ts +10 -0
- package/src/orval-generated/models/sitesSso200.js +9 -0
- package/src/orval-generated/models/sso200.d.ts +10 -0
- package/src/orval-generated/models/sso200.js +9 -0
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSitesSso = exports.getSitesSsoQueryKey = exports.sitesSso = exports.useSso = exports.getSsoQueryKey = exports.sso = exports.useHostingFtpList = exports.getHostingFtpListQueryKey = exports.hostingFtpList = exports.useHostingAddons = exports.getHostingAddonsQueryKey = exports.hostingAddons = exports.useHostingInfo = exports.getHostingInfoQueryKey = exports.hostingInfo = exports.useAddonsCodeguardDatabaseBackupRestore = exports.addonsCodeguardDatabaseBackupRestore = exports.useAddonsCodeguardWebsiteBackupRestore = exports.addonsCodeguardWebsiteBackupRestore = exports.useAddonsCodeguardBackupRestore = exports.addonsCodeguardBackupRestore = exports.useAddonsCodeguardDatabaseBackupList = exports.getAddonsCodeguardDatabaseBackupListQueryKey = exports.addonsCodeguardDatabaseBackupList = exports.useAddonsCodeguardWebsiteBackupList = exports.getAddonsCodeguardWebsiteBackupListQueryKey = exports.addonsCodeguardWebsiteBackupList = exports.useAddonsCodeguardDatabaseList = exports.getAddonsCodeguardDatabaseListQueryKey = exports.addonsCodeguardDatabaseList = exports.useAddonsCodeguardBackupDownload = exports.addonsCodeguardBackupDownload = exports.useAddonsCodeguardBackupCreate = exports.addonsCodeguardBackupCreate = exports.useAddonsCodeguardWebsiteBackupCreate = exports.addonsCodeguardWebsiteBackupCreate = exports.useAddonsCodeguardDatabaseBackupCreate = exports.addonsCodeguardDatabaseBackupCreate = exports.useAddonsCodeguardLoginLinkGenerate = exports.getAddonsCodeguardLoginLinkGenerateQueryKey = exports.addonsCodeguardLoginLinkGenerate = exports.useAddonsCodeguardBackups = exports.getAddonsCodeguardBackupsQueryKey = exports.addonsCodeguardBackups = exports.useAddonsCodeguardWebsiteList = exports.getAddonsCodeguardWebsiteListQueryKey = exports.addonsCodeguardWebsiteList = exports.useAddonsCodeguardPlanInfo = exports.getAddonsCodeguardPlanInfoQueryKey = exports.addonsCodeguardPlanInfo = void 0;
|
|
4
|
+
exports.useHostingSites = exports.getHostingSitesQueryKey = exports.hostingSites = exports.useSitesInfo = exports.getSitesInfoQueryKey = exports.sitesInfo = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Generated by orval v6.8.1 🍺
|
|
7
|
+
* Do not edit manually.
|
|
8
|
+
* Hosting UAPI
|
|
9
|
+
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
10
|
+
* OpenAPI spec version: 0.1.0-beta.59
|
|
11
|
+
*/
|
|
12
|
+
const axios = require("axios");
|
|
13
|
+
const react_query_1 = require("react-query");
|
|
14
|
+
/**
|
|
15
|
+
* Provides the subscribed plan_info, and usage information
|
|
16
|
+
* @summary addons codeguard plan info
|
|
17
|
+
*/
|
|
18
|
+
const addonsCodeguardPlanInfo = (addonId, options) => {
|
|
19
|
+
return axios.default.get(`/v1/addons/codeguard/${addonId}/plan_info`, options);
|
|
20
|
+
};
|
|
21
|
+
exports.addonsCodeguardPlanInfo = addonsCodeguardPlanInfo;
|
|
22
|
+
const getAddonsCodeguardPlanInfoQueryKey = (addonId) => [`/v1/addons/codeguard/${addonId}/plan_info`];
|
|
23
|
+
exports.getAddonsCodeguardPlanInfoQueryKey = getAddonsCodeguardPlanInfoQueryKey;
|
|
24
|
+
const useAddonsCodeguardPlanInfo = (addonId, options) => {
|
|
25
|
+
var _a;
|
|
26
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
27
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getAddonsCodeguardPlanInfoQueryKey)(addonId);
|
|
28
|
+
const queryFn = ({ signal }) => (0, exports.addonsCodeguardPlanInfo)(addonId, Object.assign({ signal }, axiosOptions));
|
|
29
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(addonId) }, queryOptions));
|
|
30
|
+
return Object.assign({ queryKey }, query);
|
|
31
|
+
};
|
|
32
|
+
exports.useAddonsCodeguardPlanInfo = useAddonsCodeguardPlanInfo;
|
|
33
|
+
/**
|
|
34
|
+
* Return all website records CodeGuard maintains for this user's account.
|
|
35
|
+
* @summary addons codeguard website_list
|
|
36
|
+
*/
|
|
37
|
+
const addonsCodeguardWebsiteList = (addonId, options) => {
|
|
38
|
+
return axios.default.get(`/v1/addons/codeguard/${addonId}/website_list`, options);
|
|
39
|
+
};
|
|
40
|
+
exports.addonsCodeguardWebsiteList = addonsCodeguardWebsiteList;
|
|
41
|
+
const getAddonsCodeguardWebsiteListQueryKey = (addonId) => [`/v1/addons/codeguard/${addonId}/website_list`];
|
|
42
|
+
exports.getAddonsCodeguardWebsiteListQueryKey = getAddonsCodeguardWebsiteListQueryKey;
|
|
43
|
+
const useAddonsCodeguardWebsiteList = (addonId, options) => {
|
|
44
|
+
var _a;
|
|
45
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
46
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getAddonsCodeguardWebsiteListQueryKey)(addonId);
|
|
47
|
+
const queryFn = ({ signal }) => (0, exports.addonsCodeguardWebsiteList)(addonId, Object.assign({ signal }, axiosOptions));
|
|
48
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(addonId) }, queryOptions));
|
|
49
|
+
return Object.assign({ queryKey }, query);
|
|
50
|
+
};
|
|
51
|
+
exports.useAddonsCodeguardWebsiteList = useAddonsCodeguardWebsiteList;
|
|
52
|
+
/**
|
|
53
|
+
* Returns a combined backup list with website commit ids and corresponding database commits
|
|
54
|
+
* @summary addons codeguard backups
|
|
55
|
+
*/
|
|
56
|
+
const addonsCodeguardBackups = (addonId, params, options) => {
|
|
57
|
+
return axios.default.get(`/v1/addons/codeguard/${addonId}/backups`, Object.assign({ params }, options));
|
|
58
|
+
};
|
|
59
|
+
exports.addonsCodeguardBackups = addonsCodeguardBackups;
|
|
60
|
+
const getAddonsCodeguardBackupsQueryKey = (addonId, params) => [`/v1/addons/codeguard/${addonId}/backups`, ...(params ? [params] : [])];
|
|
61
|
+
exports.getAddonsCodeguardBackupsQueryKey = getAddonsCodeguardBackupsQueryKey;
|
|
62
|
+
const useAddonsCodeguardBackups = (addonId, params, options) => {
|
|
63
|
+
var _a;
|
|
64
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
65
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getAddonsCodeguardBackupsQueryKey)(addonId, params);
|
|
66
|
+
const queryFn = ({ signal }) => (0, exports.addonsCodeguardBackups)(addonId, params, Object.assign({ signal }, axiosOptions));
|
|
67
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(addonId) }, queryOptions));
|
|
68
|
+
return Object.assign({ queryKey }, query);
|
|
69
|
+
};
|
|
70
|
+
exports.useAddonsCodeguardBackups = useAddonsCodeguardBackups;
|
|
71
|
+
/**
|
|
72
|
+
* Returns an oauth login URL that can be used to access CodeGuard dashboard for a user.
|
|
73
|
+
* @summary addons codeguard login_link_generate
|
|
74
|
+
*/
|
|
75
|
+
const addonsCodeguardLoginLinkGenerate = (addonId, options) => {
|
|
76
|
+
return axios.default.get(`/v1/addons/codeguard/${addonId}/login_link_generate`, options);
|
|
77
|
+
};
|
|
78
|
+
exports.addonsCodeguardLoginLinkGenerate = addonsCodeguardLoginLinkGenerate;
|
|
79
|
+
const getAddonsCodeguardLoginLinkGenerateQueryKey = (addonId) => [`/v1/addons/codeguard/${addonId}/login_link_generate`];
|
|
80
|
+
exports.getAddonsCodeguardLoginLinkGenerateQueryKey = getAddonsCodeguardLoginLinkGenerateQueryKey;
|
|
81
|
+
const useAddonsCodeguardLoginLinkGenerate = (addonId, options) => {
|
|
82
|
+
var _a;
|
|
83
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
84
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getAddonsCodeguardLoginLinkGenerateQueryKey)(addonId);
|
|
85
|
+
const queryFn = ({ signal }) => (0, exports.addonsCodeguardLoginLinkGenerate)(addonId, Object.assign({ signal }, axiosOptions));
|
|
86
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(addonId) }, queryOptions));
|
|
87
|
+
return Object.assign({ queryKey }, query);
|
|
88
|
+
};
|
|
89
|
+
exports.useAddonsCodeguardLoginLinkGenerate = useAddonsCodeguardLoginLinkGenerate;
|
|
90
|
+
/**
|
|
91
|
+
* Queue the creation of a database backup.
|
|
92
|
+
* @summary addons codeguard database_backup_create
|
|
93
|
+
*/
|
|
94
|
+
const addonsCodeguardDatabaseBackupCreate = (addonId, addonsCodeguardDatabaseBackupCreateBody, options) => {
|
|
95
|
+
return axios.default.post(`/v1/addons/codeguard/${addonId}/database_backup_create`, addonsCodeguardDatabaseBackupCreateBody, options);
|
|
96
|
+
};
|
|
97
|
+
exports.addonsCodeguardDatabaseBackupCreate = addonsCodeguardDatabaseBackupCreate;
|
|
98
|
+
const useAddonsCodeguardDatabaseBackupCreate = (options) => {
|
|
99
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
100
|
+
const mutationFn = (props) => {
|
|
101
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
102
|
+
return (0, exports.addonsCodeguardDatabaseBackupCreate)(addonId, data, axiosOptions);
|
|
103
|
+
};
|
|
104
|
+
return (0, react_query_1.useMutation)(mutationFn, mutationOptions);
|
|
105
|
+
};
|
|
106
|
+
exports.useAddonsCodeguardDatabaseBackupCreate = useAddonsCodeguardDatabaseBackupCreate;
|
|
107
|
+
/**
|
|
108
|
+
* Initiate the creation of a new backup for a given website
|
|
109
|
+
* @summary addons codeguard website_backup_create
|
|
110
|
+
*/
|
|
111
|
+
const addonsCodeguardWebsiteBackupCreate = (addonId, addonsCodeguardWebsiteBackupCreateBody, options) => {
|
|
112
|
+
return axios.default.post(`/v1/addons/codeguard/${addonId}/website_backup_create`, addonsCodeguardWebsiteBackupCreateBody, options);
|
|
113
|
+
};
|
|
114
|
+
exports.addonsCodeguardWebsiteBackupCreate = addonsCodeguardWebsiteBackupCreate;
|
|
115
|
+
const useAddonsCodeguardWebsiteBackupCreate = (options) => {
|
|
116
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
117
|
+
const mutationFn = (props) => {
|
|
118
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
119
|
+
return (0, exports.addonsCodeguardWebsiteBackupCreate)(addonId, data, axiosOptions);
|
|
120
|
+
};
|
|
121
|
+
return (0, react_query_1.useMutation)(mutationFn, mutationOptions);
|
|
122
|
+
};
|
|
123
|
+
exports.useAddonsCodeguardWebsiteBackupCreate = useAddonsCodeguardWebsiteBackupCreate;
|
|
124
|
+
/**
|
|
125
|
+
* create the website backup
|
|
126
|
+
* @summary addons codeguard website backup create
|
|
127
|
+
*/
|
|
128
|
+
const addonsCodeguardBackupCreate = (addonId, addonsCodeguardBackupCreateBody, options) => {
|
|
129
|
+
return axios.default.post(`/v1/addons/codeguard/${addonId}/backup_create`, addonsCodeguardBackupCreateBody, options);
|
|
130
|
+
};
|
|
131
|
+
exports.addonsCodeguardBackupCreate = addonsCodeguardBackupCreate;
|
|
132
|
+
const useAddonsCodeguardBackupCreate = (options) => {
|
|
133
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
134
|
+
const mutationFn = (props) => {
|
|
135
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
136
|
+
return (0, exports.addonsCodeguardBackupCreate)(addonId, data, axiosOptions);
|
|
137
|
+
};
|
|
138
|
+
return (0, react_query_1.useMutation)(mutationFn, mutationOptions);
|
|
139
|
+
};
|
|
140
|
+
exports.useAddonsCodeguardBackupCreate = useAddonsCodeguardBackupCreate;
|
|
141
|
+
/**
|
|
142
|
+
* Queue the backup download.
|
|
143
|
+
* @summary addons codeguard backup_download
|
|
144
|
+
*/
|
|
145
|
+
const addonsCodeguardBackupDownload = (addonId, addonsCodeguardBackupDownloadBody, options) => {
|
|
146
|
+
return axios.default.post(`/v1/addons/codeguard/${addonId}/backup_download`, addonsCodeguardBackupDownloadBody, options);
|
|
147
|
+
};
|
|
148
|
+
exports.addonsCodeguardBackupDownload = addonsCodeguardBackupDownload;
|
|
149
|
+
const useAddonsCodeguardBackupDownload = (options) => {
|
|
150
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
151
|
+
const mutationFn = (props) => {
|
|
152
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
153
|
+
return (0, exports.addonsCodeguardBackupDownload)(addonId, data, axiosOptions);
|
|
154
|
+
};
|
|
155
|
+
return (0, react_query_1.useMutation)(mutationFn, mutationOptions);
|
|
156
|
+
};
|
|
157
|
+
exports.useAddonsCodeguardBackupDownload = useAddonsCodeguardBackupDownload;
|
|
158
|
+
/**
|
|
159
|
+
* Return all database records CodeGuard maintains for this user's account.
|
|
160
|
+
* @summary addons codeguard database_list
|
|
161
|
+
*/
|
|
162
|
+
const addonsCodeguardDatabaseList = (addonId, options) => {
|
|
163
|
+
return axios.default.get(`/v1/addons/codeguard/${addonId}/database_list`, options);
|
|
164
|
+
};
|
|
165
|
+
exports.addonsCodeguardDatabaseList = addonsCodeguardDatabaseList;
|
|
166
|
+
const getAddonsCodeguardDatabaseListQueryKey = (addonId) => [`/v1/addons/codeguard/${addonId}/database_list`];
|
|
167
|
+
exports.getAddonsCodeguardDatabaseListQueryKey = getAddonsCodeguardDatabaseListQueryKey;
|
|
168
|
+
const useAddonsCodeguardDatabaseList = (addonId, options) => {
|
|
169
|
+
var _a;
|
|
170
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
171
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getAddonsCodeguardDatabaseListQueryKey)(addonId);
|
|
172
|
+
const queryFn = ({ signal }) => (0, exports.addonsCodeguardDatabaseList)(addonId, Object.assign({ signal }, axiosOptions));
|
|
173
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(addonId) }, queryOptions));
|
|
174
|
+
return Object.assign({ queryKey }, query);
|
|
175
|
+
};
|
|
176
|
+
exports.useAddonsCodeguardDatabaseList = useAddonsCodeguardDatabaseList;
|
|
177
|
+
/**
|
|
178
|
+
* Return all website backup records CodeGuard maintains for this user's account.
|
|
179
|
+
* @summary addons codeguard website backup list
|
|
180
|
+
*/
|
|
181
|
+
const addonsCodeguardWebsiteBackupList = (addonId, params, options) => {
|
|
182
|
+
return axios.default.get(`/v1/addons/codeguard/${addonId}/website_backup_list`, Object.assign({ params }, options));
|
|
183
|
+
};
|
|
184
|
+
exports.addonsCodeguardWebsiteBackupList = addonsCodeguardWebsiteBackupList;
|
|
185
|
+
const getAddonsCodeguardWebsiteBackupListQueryKey = (addonId, params) => [`/v1/addons/codeguard/${addonId}/website_backup_list`, ...(params ? [params] : [])];
|
|
186
|
+
exports.getAddonsCodeguardWebsiteBackupListQueryKey = getAddonsCodeguardWebsiteBackupListQueryKey;
|
|
187
|
+
const useAddonsCodeguardWebsiteBackupList = (addonId, params, options) => {
|
|
188
|
+
var _a;
|
|
189
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
190
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getAddonsCodeguardWebsiteBackupListQueryKey)(addonId, params);
|
|
191
|
+
const queryFn = ({ signal }) => (0, exports.addonsCodeguardWebsiteBackupList)(addonId, params, Object.assign({ signal }, axiosOptions));
|
|
192
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(addonId) }, queryOptions));
|
|
193
|
+
return Object.assign({ queryKey }, query);
|
|
194
|
+
};
|
|
195
|
+
exports.useAddonsCodeguardWebsiteBackupList = useAddonsCodeguardWebsiteBackupList;
|
|
196
|
+
/**
|
|
197
|
+
* Return all database backup records CodeGuard maintains for this user's account.
|
|
198
|
+
* @summary addons codeguard database backup list
|
|
199
|
+
*/
|
|
200
|
+
const addonsCodeguardDatabaseBackupList = (addonId, params, options) => {
|
|
201
|
+
return axios.default.get(`/v1/addons/codeguard/${addonId}/database_backup_list`, Object.assign({ params }, options));
|
|
202
|
+
};
|
|
203
|
+
exports.addonsCodeguardDatabaseBackupList = addonsCodeguardDatabaseBackupList;
|
|
204
|
+
const getAddonsCodeguardDatabaseBackupListQueryKey = (addonId, params) => [`/v1/addons/codeguard/${addonId}/database_backup_list`, ...(params ? [params] : [])];
|
|
205
|
+
exports.getAddonsCodeguardDatabaseBackupListQueryKey = getAddonsCodeguardDatabaseBackupListQueryKey;
|
|
206
|
+
const useAddonsCodeguardDatabaseBackupList = (addonId, params, options) => {
|
|
207
|
+
var _a;
|
|
208
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
209
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getAddonsCodeguardDatabaseBackupListQueryKey)(addonId, params);
|
|
210
|
+
const queryFn = ({ signal }) => (0, exports.addonsCodeguardDatabaseBackupList)(addonId, params, Object.assign({ signal }, axiosOptions));
|
|
211
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(addonId) }, queryOptions));
|
|
212
|
+
return Object.assign({ queryKey }, query);
|
|
213
|
+
};
|
|
214
|
+
exports.useAddonsCodeguardDatabaseBackupList = useAddonsCodeguardDatabaseBackupList;
|
|
215
|
+
/**
|
|
216
|
+
* Restores the website backup
|
|
217
|
+
* @summary addons codeguard website backup restore
|
|
218
|
+
*/
|
|
219
|
+
const addonsCodeguardBackupRestore = (addonId, addonsCodeguardBackupRestoreBody, options) => {
|
|
220
|
+
return axios.default.post(`/v1/addons/codeguard/${addonId}/backup_restore`, addonsCodeguardBackupRestoreBody, options);
|
|
221
|
+
};
|
|
222
|
+
exports.addonsCodeguardBackupRestore = addonsCodeguardBackupRestore;
|
|
223
|
+
const useAddonsCodeguardBackupRestore = (options) => {
|
|
224
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
225
|
+
const mutationFn = (props) => {
|
|
226
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
227
|
+
return (0, exports.addonsCodeguardBackupRestore)(addonId, data, axiosOptions);
|
|
228
|
+
};
|
|
229
|
+
return (0, react_query_1.useMutation)(mutationFn, mutationOptions);
|
|
230
|
+
};
|
|
231
|
+
exports.useAddonsCodeguardBackupRestore = useAddonsCodeguardBackupRestore;
|
|
232
|
+
/**
|
|
233
|
+
* Restores the website backup
|
|
234
|
+
* @summary addons codeguard website backup restore
|
|
235
|
+
*/
|
|
236
|
+
const addonsCodeguardWebsiteBackupRestore = (addonId, addonsCodeguardWebsiteBackupRestoreBody, options) => {
|
|
237
|
+
return axios.default.post(`/v1/addons/codeguard/${addonId}/website_backup_restore`, addonsCodeguardWebsiteBackupRestoreBody, options);
|
|
238
|
+
};
|
|
239
|
+
exports.addonsCodeguardWebsiteBackupRestore = addonsCodeguardWebsiteBackupRestore;
|
|
240
|
+
const useAddonsCodeguardWebsiteBackupRestore = (options) => {
|
|
241
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
242
|
+
const mutationFn = (props) => {
|
|
243
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
244
|
+
return (0, exports.addonsCodeguardWebsiteBackupRestore)(addonId, data, axiosOptions);
|
|
245
|
+
};
|
|
246
|
+
return (0, react_query_1.useMutation)(mutationFn, mutationOptions);
|
|
247
|
+
};
|
|
248
|
+
exports.useAddonsCodeguardWebsiteBackupRestore = useAddonsCodeguardWebsiteBackupRestore;
|
|
249
|
+
/**
|
|
250
|
+
* Restores the database backup
|
|
251
|
+
* @summary addons codeguard database backup restore
|
|
252
|
+
*/
|
|
253
|
+
const addonsCodeguardDatabaseBackupRestore = (addonId, addonsCodeguardDatabaseBackupRestoreBody, options) => {
|
|
254
|
+
return axios.default.post(`/v1/addons/codeguard/${addonId}/database_backup_restore`, addonsCodeguardDatabaseBackupRestoreBody, options);
|
|
255
|
+
};
|
|
256
|
+
exports.addonsCodeguardDatabaseBackupRestore = addonsCodeguardDatabaseBackupRestore;
|
|
257
|
+
const useAddonsCodeguardDatabaseBackupRestore = (options) => {
|
|
258
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
259
|
+
const mutationFn = (props) => {
|
|
260
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
261
|
+
return (0, exports.addonsCodeguardDatabaseBackupRestore)(addonId, data, axiosOptions);
|
|
262
|
+
};
|
|
263
|
+
return (0, react_query_1.useMutation)(mutationFn, mutationOptions);
|
|
264
|
+
};
|
|
265
|
+
exports.useAddonsCodeguardDatabaseBackupRestore = useAddonsCodeguardDatabaseBackupRestore;
|
|
266
|
+
/**
|
|
267
|
+
* Return info about a specific account
|
|
268
|
+
* @summary hosting info
|
|
269
|
+
*/
|
|
270
|
+
const hostingInfo = (hostingId, options) => {
|
|
271
|
+
return axios.default.get(`/v1/hosting/${hostingId}/info`, options);
|
|
272
|
+
};
|
|
273
|
+
exports.hostingInfo = hostingInfo;
|
|
274
|
+
const getHostingInfoQueryKey = (hostingId) => [`/v1/hosting/${hostingId}/info`];
|
|
275
|
+
exports.getHostingInfoQueryKey = getHostingInfoQueryKey;
|
|
276
|
+
const useHostingInfo = (hostingId, options) => {
|
|
277
|
+
var _a;
|
|
278
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
279
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getHostingInfoQueryKey)(hostingId);
|
|
280
|
+
const queryFn = ({ signal }) => (0, exports.hostingInfo)(hostingId, Object.assign({ signal }, axiosOptions));
|
|
281
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(hostingId) }, queryOptions));
|
|
282
|
+
return Object.assign({ queryKey }, query);
|
|
283
|
+
};
|
|
284
|
+
exports.useHostingInfo = useHostingInfo;
|
|
285
|
+
/**
|
|
286
|
+
* Obtain a list of addons.
|
|
287
|
+
* @summary hosting addons
|
|
288
|
+
*/
|
|
289
|
+
const hostingAddons = (hostingId, params, options) => {
|
|
290
|
+
return axios.default.get(`/v1/hosting/${hostingId}/addons`, Object.assign({ params }, options));
|
|
291
|
+
};
|
|
292
|
+
exports.hostingAddons = hostingAddons;
|
|
293
|
+
const getHostingAddonsQueryKey = (hostingId, params) => [`/v1/hosting/${hostingId}/addons`, ...(params ? [params] : [])];
|
|
294
|
+
exports.getHostingAddonsQueryKey = getHostingAddonsQueryKey;
|
|
295
|
+
const useHostingAddons = (hostingId, params, options) => {
|
|
296
|
+
var _a;
|
|
297
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
298
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getHostingAddonsQueryKey)(hostingId, params);
|
|
299
|
+
const queryFn = ({ signal }) => (0, exports.hostingAddons)(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
300
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(hostingId) }, queryOptions));
|
|
301
|
+
return Object.assign({ queryKey }, query);
|
|
302
|
+
};
|
|
303
|
+
exports.useHostingAddons = useHostingAddons;
|
|
304
|
+
/**
|
|
305
|
+
* List FTP accounts.
|
|
306
|
+
* @summary hosting ftp list
|
|
307
|
+
*/
|
|
308
|
+
const hostingFtpList = (hostingId, options) => {
|
|
309
|
+
return axios.default.get(`/v1/hosting/${hostingId}/ftp/list`, options);
|
|
310
|
+
};
|
|
311
|
+
exports.hostingFtpList = hostingFtpList;
|
|
312
|
+
const getHostingFtpListQueryKey = (hostingId) => [`/v1/hosting/${hostingId}/ftp/list`];
|
|
313
|
+
exports.getHostingFtpListQueryKey = getHostingFtpListQueryKey;
|
|
314
|
+
const useHostingFtpList = (hostingId, options) => {
|
|
315
|
+
var _a;
|
|
316
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
317
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getHostingFtpListQueryKey)(hostingId);
|
|
318
|
+
const queryFn = ({ signal }) => (0, exports.hostingFtpList)(hostingId, Object.assign({ signal }, axiosOptions));
|
|
319
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(hostingId) }, queryOptions));
|
|
320
|
+
return Object.assign({ queryKey }, query);
|
|
321
|
+
};
|
|
322
|
+
exports.useHostingFtpList = useHostingFtpList;
|
|
323
|
+
/**
|
|
324
|
+
* Return a SSO login token for a hosting account
|
|
325
|
+
* @summary sso
|
|
326
|
+
*/
|
|
327
|
+
const sso = (hostingId, options) => {
|
|
328
|
+
return axios.default.get(`/v1/hosting/${hostingId}/sso`, options);
|
|
329
|
+
};
|
|
330
|
+
exports.sso = sso;
|
|
331
|
+
const getSsoQueryKey = (hostingId) => [`/v1/hosting/${hostingId}/sso`];
|
|
332
|
+
exports.getSsoQueryKey = getSsoQueryKey;
|
|
333
|
+
const useSso = (hostingId, options) => {
|
|
334
|
+
var _a;
|
|
335
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
336
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getSsoQueryKey)(hostingId);
|
|
337
|
+
const queryFn = ({ signal }) => (0, exports.sso)(hostingId, Object.assign({ signal }, axiosOptions));
|
|
338
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(hostingId) }, queryOptions));
|
|
339
|
+
return Object.assign({ queryKey }, query);
|
|
340
|
+
};
|
|
341
|
+
exports.useSso = useSso;
|
|
342
|
+
/**
|
|
343
|
+
* Return an SSO token or login URL for this site (if supported).
|
|
344
|
+
* @summary sites sso
|
|
345
|
+
*/
|
|
346
|
+
const sitesSso = (siteId, options) => {
|
|
347
|
+
return axios.default.get(`/v1/sites/${siteId}/sso`, options);
|
|
348
|
+
};
|
|
349
|
+
exports.sitesSso = sitesSso;
|
|
350
|
+
const getSitesSsoQueryKey = (siteId) => [`/v1/sites/${siteId}/sso`];
|
|
351
|
+
exports.getSitesSsoQueryKey = getSitesSsoQueryKey;
|
|
352
|
+
const useSitesSso = (siteId, options) => {
|
|
353
|
+
var _a;
|
|
354
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
355
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getSitesSsoQueryKey)(siteId);
|
|
356
|
+
const queryFn = ({ signal }) => (0, exports.sitesSso)(siteId, Object.assign({ signal }, axiosOptions));
|
|
357
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(siteId) }, queryOptions));
|
|
358
|
+
return Object.assign({ queryKey }, query);
|
|
359
|
+
};
|
|
360
|
+
exports.useSitesSso = useSitesSso;
|
|
361
|
+
/**
|
|
362
|
+
* Return info about a specific site
|
|
363
|
+
* @summary sites info
|
|
364
|
+
*/
|
|
365
|
+
const sitesInfo = (siteId, options) => {
|
|
366
|
+
return axios.default.get(`/v1/sites/${siteId}/info`, options);
|
|
367
|
+
};
|
|
368
|
+
exports.sitesInfo = sitesInfo;
|
|
369
|
+
const getSitesInfoQueryKey = (siteId) => [`/v1/sites/${siteId}/info`];
|
|
370
|
+
exports.getSitesInfoQueryKey = getSitesInfoQueryKey;
|
|
371
|
+
const useSitesInfo = (siteId, options) => {
|
|
372
|
+
var _a;
|
|
373
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
374
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getSitesInfoQueryKey)(siteId);
|
|
375
|
+
const queryFn = ({ signal }) => (0, exports.sitesInfo)(siteId, Object.assign({ signal }, axiosOptions));
|
|
376
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(siteId) }, queryOptions));
|
|
377
|
+
return Object.assign({ queryKey }, query);
|
|
378
|
+
};
|
|
379
|
+
exports.useSitesInfo = useSitesInfo;
|
|
380
|
+
/**
|
|
381
|
+
* Obtain a list of sites.
|
|
382
|
+
* @summary hosting sites
|
|
383
|
+
*/
|
|
384
|
+
const hostingSites = (hostingId, options) => {
|
|
385
|
+
return axios.default.get(`/v1/hosting/${hostingId}/sites`, options);
|
|
386
|
+
};
|
|
387
|
+
exports.hostingSites = hostingSites;
|
|
388
|
+
const getHostingSitesQueryKey = (hostingId) => [`/v1/hosting/${hostingId}/sites`];
|
|
389
|
+
exports.getHostingSitesQueryKey = getHostingSitesQueryKey;
|
|
390
|
+
const useHostingSites = (hostingId, options) => {
|
|
391
|
+
var _a;
|
|
392
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
393
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : (0, exports.getHostingSitesQueryKey)(hostingId);
|
|
394
|
+
const queryFn = ({ signal }) => (0, exports.hostingSites)(hostingId, Object.assign({ signal }, axiosOptions));
|
|
395
|
+
const query = (0, react_query_1.useQuery)(queryKey, queryFn, Object.assign({ enabled: !!(hostingId) }, queryOptions));
|
|
396
|
+
return Object.assign({ queryKey }, query);
|
|
397
|
+
};
|
|
398
|
+
exports.useHostingSites = useHostingSites;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export declare const getAddonsCodeguardPlanInfoMock: () => {
|
|
2
|
+
size: number | undefined;
|
|
3
|
+
size_limit: number | undefined;
|
|
4
|
+
seat_count: number | undefined;
|
|
5
|
+
seat_limit: number | undefined;
|
|
6
|
+
status: string | undefined;
|
|
7
|
+
plan_name: string | undefined;
|
|
8
|
+
seats: {
|
|
9
|
+
url: string | undefined;
|
|
10
|
+
activated: string | undefined;
|
|
11
|
+
website_id: number | undefined;
|
|
12
|
+
}[] | undefined;
|
|
13
|
+
};
|
|
14
|
+
export declare const getAddonsCodeguardWebsiteListMock: () => {
|
|
15
|
+
website_list: {
|
|
16
|
+
website: {
|
|
17
|
+
id: number | undefined;
|
|
18
|
+
activated: boolean | undefined;
|
|
19
|
+
url: string | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
}[] | undefined;
|
|
22
|
+
};
|
|
23
|
+
export declare const getAddonsCodeguardBackupsMock: () => {
|
|
24
|
+
backups: {
|
|
25
|
+
website_commit_id: string | undefined;
|
|
26
|
+
event_time: string | undefined;
|
|
27
|
+
database_backups: {
|
|
28
|
+
id: number | undefined;
|
|
29
|
+
commit_id: string | undefined;
|
|
30
|
+
event_time: string | undefined;
|
|
31
|
+
recommended: string | undefined;
|
|
32
|
+
}[] | undefined;
|
|
33
|
+
}[] | undefined;
|
|
34
|
+
};
|
|
35
|
+
export declare const getAddonsCodeguardLoginLinkGenerateMock: () => {
|
|
36
|
+
link: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
export declare const getAddonsCodeguardDatabaseBackupCreateMock: () => {
|
|
39
|
+
status: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
export declare const getAddonsCodeguardWebsiteBackupCreateMock: () => {
|
|
42
|
+
status: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
export declare const getAddonsCodeguardBackupCreateMock: () => {
|
|
45
|
+
status: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
export declare const getAddonsCodeguardBackupDownloadMock: () => {
|
|
48
|
+
status: string | undefined;
|
|
49
|
+
};
|
|
50
|
+
export declare const getAddonsCodeguardDatabaseListMock: () => {
|
|
51
|
+
status: number | undefined;
|
|
52
|
+
databases: {
|
|
53
|
+
database_backup: {
|
|
54
|
+
id: number | undefined;
|
|
55
|
+
account: string | undefined;
|
|
56
|
+
website_id: number | undefined;
|
|
57
|
+
commit_id: string | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
}[] | undefined;
|
|
60
|
+
};
|
|
61
|
+
export declare const getAddonsCodeguardWebsiteBackupListMock: () => {
|
|
62
|
+
backups: {
|
|
63
|
+
commit_id: string | undefined;
|
|
64
|
+
event_time: string | undefined;
|
|
65
|
+
modifications: number | undefined;
|
|
66
|
+
new_content: boolean | undefined;
|
|
67
|
+
}[] | undefined;
|
|
68
|
+
};
|
|
69
|
+
export declare const getAddonsCodeguardDatabaseBackupListMock: () => {
|
|
70
|
+
backups: {
|
|
71
|
+
commit_id: string | undefined;
|
|
72
|
+
event_time: string | undefined;
|
|
73
|
+
}[] | undefined;
|
|
74
|
+
};
|
|
75
|
+
export declare const getAddonsCodeguardBackupRestoreMock: () => {
|
|
76
|
+
status: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
export declare const getAddonsCodeguardWebsiteBackupRestoreMock: () => {
|
|
79
|
+
status: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
export declare const getAddonsCodeguardDatabaseBackupRestoreMock: () => {
|
|
82
|
+
status: string | undefined;
|
|
83
|
+
};
|
|
84
|
+
export declare const getHostingInfoMock: () => {
|
|
85
|
+
id: string;
|
|
86
|
+
};
|
|
87
|
+
export declare const getHostingAddonsMock: () => {
|
|
88
|
+
rows: {
|
|
89
|
+
id: string | undefined;
|
|
90
|
+
type: string | undefined;
|
|
91
|
+
subtype: string | undefined;
|
|
92
|
+
status: string | undefined;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
};
|
|
95
|
+
export declare const getHostingFtpListMock: () => {
|
|
96
|
+
ftp_account: {
|
|
97
|
+
user: string | undefined;
|
|
98
|
+
homedir: string | undefined;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
};
|
|
101
|
+
export declare const getSsoMock: () => {
|
|
102
|
+
url: string | undefined;
|
|
103
|
+
};
|
|
104
|
+
export declare const getSitesSsoMock: () => {
|
|
105
|
+
sso: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
export declare const getSitesInfoMock: () => {
|
|
108
|
+
id: string;
|
|
109
|
+
docroot: string;
|
|
110
|
+
uuid: string;
|
|
111
|
+
date_added: string;
|
|
112
|
+
date_modified: string;
|
|
113
|
+
name: string;
|
|
114
|
+
type: string;
|
|
115
|
+
subtype: string;
|
|
116
|
+
status: string;
|
|
117
|
+
url: string;
|
|
118
|
+
version: string;
|
|
119
|
+
};
|
|
120
|
+
export declare const getHostingSitesMock: () => {
|
|
121
|
+
rows: {
|
|
122
|
+
id: string | undefined;
|
|
123
|
+
name: string | undefined;
|
|
124
|
+
url: string | undefined;
|
|
125
|
+
}[] | undefined;
|
|
126
|
+
};
|
|
127
|
+
export declare const getHostingUAPIMSW: () => import("msw").RestHandler<import("msw/lib/glossary-58eca5a8").M<import("msw/lib/glossary-58eca5a8").c>>[];
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getHostingUAPIMSW = exports.getHostingSitesMock = exports.getSitesInfoMock = exports.getSitesSsoMock = exports.getSsoMock = exports.getHostingFtpListMock = exports.getHostingAddonsMock = exports.getHostingInfoMock = exports.getAddonsCodeguardDatabaseBackupRestoreMock = exports.getAddonsCodeguardWebsiteBackupRestoreMock = exports.getAddonsCodeguardBackupRestoreMock = exports.getAddonsCodeguardDatabaseBackupListMock = exports.getAddonsCodeguardWebsiteBackupListMock = exports.getAddonsCodeguardDatabaseListMock = exports.getAddonsCodeguardBackupDownloadMock = exports.getAddonsCodeguardBackupCreateMock = exports.getAddonsCodeguardWebsiteBackupCreateMock = exports.getAddonsCodeguardDatabaseBackupCreateMock = exports.getAddonsCodeguardLoginLinkGenerateMock = exports.getAddonsCodeguardBackupsMock = exports.getAddonsCodeguardWebsiteListMock = exports.getAddonsCodeguardPlanInfoMock = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Generated by orval v6.8.1 🍺
|
|
6
|
+
* Do not edit manually.
|
|
7
|
+
* Hosting UAPI
|
|
8
|
+
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
9
|
+
* OpenAPI spec version: 0.1.0-beta.59
|
|
10
|
+
*/
|
|
11
|
+
const msw_1 = require("msw");
|
|
12
|
+
const faker_1 = require("@faker-js/faker");
|
|
13
|
+
const getAddonsCodeguardPlanInfoMock = () => ({ size: faker_1.faker.random.arrayElement([faker_1.faker.datatype.number(), undefined]), size_limit: faker_1.faker.random.arrayElement([faker_1.faker.datatype.number(), undefined]), seat_count: faker_1.faker.random.arrayElement([faker_1.faker.datatype.number(), undefined]), seat_limit: faker_1.faker.random.arrayElement([faker_1.faker.datatype.number(), undefined]), status: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), plan_name: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), seats: faker_1.faker.random.arrayElement([[...Array(faker_1.faker.datatype.number({ min: 1, max: 10 }))].map(() => ({ url: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), activated: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), website_id: faker_1.faker.random.arrayElement([faker_1.faker.datatype.number(), undefined]) })), undefined]) });
|
|
14
|
+
exports.getAddonsCodeguardPlanInfoMock = getAddonsCodeguardPlanInfoMock;
|
|
15
|
+
const getAddonsCodeguardWebsiteListMock = () => ({ website_list: faker_1.faker.random.arrayElement([[...Array(faker_1.faker.datatype.number({ min: 1, max: 10 }))].map(() => ({ website: faker_1.faker.random.arrayElement([{ id: faker_1.faker.random.arrayElement([faker_1.faker.datatype.number(), undefined]), activated: faker_1.faker.random.arrayElement([faker_1.faker.datatype.boolean(), undefined]), url: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) }, undefined]) })), undefined]) });
|
|
16
|
+
exports.getAddonsCodeguardWebsiteListMock = getAddonsCodeguardWebsiteListMock;
|
|
17
|
+
const getAddonsCodeguardBackupsMock = () => ({ backups: faker_1.faker.random.arrayElement([[...Array(faker_1.faker.datatype.number({ min: 1, max: 10 }))].map(() => ({ website_commit_id: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), event_time: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), database_backups: faker_1.faker.random.arrayElement([[...Array(faker_1.faker.datatype.number({ min: 1, max: 10 }))].map(() => ({ id: faker_1.faker.random.arrayElement([faker_1.faker.datatype.number(), undefined]), commit_id: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), event_time: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), recommended: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) })), undefined]) })), undefined]) });
|
|
18
|
+
exports.getAddonsCodeguardBackupsMock = getAddonsCodeguardBackupsMock;
|
|
19
|
+
const getAddonsCodeguardLoginLinkGenerateMock = () => ({ link: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) });
|
|
20
|
+
exports.getAddonsCodeguardLoginLinkGenerateMock = getAddonsCodeguardLoginLinkGenerateMock;
|
|
21
|
+
const getAddonsCodeguardDatabaseBackupCreateMock = () => ({ status: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) });
|
|
22
|
+
exports.getAddonsCodeguardDatabaseBackupCreateMock = getAddonsCodeguardDatabaseBackupCreateMock;
|
|
23
|
+
const getAddonsCodeguardWebsiteBackupCreateMock = () => ({ status: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) });
|
|
24
|
+
exports.getAddonsCodeguardWebsiteBackupCreateMock = getAddonsCodeguardWebsiteBackupCreateMock;
|
|
25
|
+
const getAddonsCodeguardBackupCreateMock = () => ({ status: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) });
|
|
26
|
+
exports.getAddonsCodeguardBackupCreateMock = getAddonsCodeguardBackupCreateMock;
|
|
27
|
+
const getAddonsCodeguardBackupDownloadMock = () => ({ status: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) });
|
|
28
|
+
exports.getAddonsCodeguardBackupDownloadMock = getAddonsCodeguardBackupDownloadMock;
|
|
29
|
+
const getAddonsCodeguardDatabaseListMock = () => ({ status: faker_1.faker.random.arrayElement([faker_1.faker.datatype.number(), undefined]), databases: faker_1.faker.random.arrayElement([[...Array(faker_1.faker.datatype.number({ min: 1, max: 10 }))].map(() => ({ database_backup: faker_1.faker.random.arrayElement([{ id: faker_1.faker.random.arrayElement([faker_1.faker.datatype.number(), undefined]), account: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), website_id: faker_1.faker.random.arrayElement([faker_1.faker.datatype.number(), undefined]), commit_id: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) }, undefined]) })), undefined]) });
|
|
30
|
+
exports.getAddonsCodeguardDatabaseListMock = getAddonsCodeguardDatabaseListMock;
|
|
31
|
+
const getAddonsCodeguardWebsiteBackupListMock = () => ({ backups: faker_1.faker.random.arrayElement([[...Array(faker_1.faker.datatype.number({ min: 1, max: 10 }))].map(() => ({ commit_id: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), event_time: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), modifications: faker_1.faker.random.arrayElement([faker_1.faker.datatype.number(), undefined]), new_content: faker_1.faker.random.arrayElement([faker_1.faker.datatype.boolean(), undefined]) })), undefined]) });
|
|
32
|
+
exports.getAddonsCodeguardWebsiteBackupListMock = getAddonsCodeguardWebsiteBackupListMock;
|
|
33
|
+
const getAddonsCodeguardDatabaseBackupListMock = () => ({ backups: faker_1.faker.random.arrayElement([[...Array(faker_1.faker.datatype.number({ min: 1, max: 10 }))].map(() => ({ commit_id: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), event_time: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) })), undefined]) });
|
|
34
|
+
exports.getAddonsCodeguardDatabaseBackupListMock = getAddonsCodeguardDatabaseBackupListMock;
|
|
35
|
+
const getAddonsCodeguardBackupRestoreMock = () => ({ status: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) });
|
|
36
|
+
exports.getAddonsCodeguardBackupRestoreMock = getAddonsCodeguardBackupRestoreMock;
|
|
37
|
+
const getAddonsCodeguardWebsiteBackupRestoreMock = () => ({ status: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) });
|
|
38
|
+
exports.getAddonsCodeguardWebsiteBackupRestoreMock = getAddonsCodeguardWebsiteBackupRestoreMock;
|
|
39
|
+
const getAddonsCodeguardDatabaseBackupRestoreMock = () => ({ status: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) });
|
|
40
|
+
exports.getAddonsCodeguardDatabaseBackupRestoreMock = getAddonsCodeguardDatabaseBackupRestoreMock;
|
|
41
|
+
const getHostingInfoMock = () => ({ id: faker_1.faker.random.word() });
|
|
42
|
+
exports.getHostingInfoMock = getHostingInfoMock;
|
|
43
|
+
const getHostingAddonsMock = () => ({ rows: faker_1.faker.random.arrayElement([[...Array(faker_1.faker.datatype.number({ min: 1, max: 10 }))].map(() => ({ id: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), type: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), subtype: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), status: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) })), undefined]) });
|
|
44
|
+
exports.getHostingAddonsMock = getHostingAddonsMock;
|
|
45
|
+
const getHostingFtpListMock = () => ({ ftp_account: faker_1.faker.random.arrayElement([[...Array(faker_1.faker.datatype.number({ min: 1, max: 10 }))].map(() => ({ user: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), homedir: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) })), undefined]) });
|
|
46
|
+
exports.getHostingFtpListMock = getHostingFtpListMock;
|
|
47
|
+
const getSsoMock = () => ({ url: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) });
|
|
48
|
+
exports.getSsoMock = getSsoMock;
|
|
49
|
+
const getSitesSsoMock = () => ({ sso: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) });
|
|
50
|
+
exports.getSitesSsoMock = getSitesSsoMock;
|
|
51
|
+
const getSitesInfoMock = () => ({ id: faker_1.faker.random.word(), docroot: faker_1.faker.random.word(), uuid: faker_1.faker.random.word(), date_added: faker_1.faker.random.word(), date_modified: faker_1.faker.random.word(), name: faker_1.faker.random.word(), type: faker_1.faker.random.word(), subtype: faker_1.faker.random.word(), status: faker_1.faker.random.word(), url: faker_1.faker.random.word(), version: faker_1.faker.random.word() });
|
|
52
|
+
exports.getSitesInfoMock = getSitesInfoMock;
|
|
53
|
+
const getHostingSitesMock = () => ({ rows: faker_1.faker.random.arrayElement([[...Array(faker_1.faker.datatype.number({ min: 1, max: 10 }))].map(() => ({ id: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), name: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]), url: faker_1.faker.random.arrayElement([faker_1.faker.random.word(), undefined]) })), undefined]) });
|
|
54
|
+
exports.getHostingSitesMock = getHostingSitesMock;
|
|
55
|
+
const getHostingUAPIMSW = () => [
|
|
56
|
+
msw_1.rest.get('*/v1/addons/codeguard/:addonid/plan_info', (_req, res, ctx) => {
|
|
57
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardPlanInfoMock)()));
|
|
58
|
+
}), msw_1.rest.get('*/v1/addons/codeguard/:addonid/website_list', (_req, res, ctx) => {
|
|
59
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardWebsiteListMock)()));
|
|
60
|
+
}), msw_1.rest.get('*/v1/addons/codeguard/:addonid/backups', (_req, res, ctx) => {
|
|
61
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardBackupsMock)()));
|
|
62
|
+
}), msw_1.rest.get('*/v1/addons/codeguard/:addonid/login_link_generate', (_req, res, ctx) => {
|
|
63
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardLoginLinkGenerateMock)()));
|
|
64
|
+
}), msw_1.rest.post('*/v1/addons/codeguard/:addonid/database_backup_create', (_req, res, ctx) => {
|
|
65
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardDatabaseBackupCreateMock)()));
|
|
66
|
+
}), msw_1.rest.post('*/v1/addons/codeguard/:addonid/website_backup_create', (_req, res, ctx) => {
|
|
67
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardWebsiteBackupCreateMock)()));
|
|
68
|
+
}), msw_1.rest.post('*/v1/addons/codeguard/:addonid/backup_create', (_req, res, ctx) => {
|
|
69
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardBackupCreateMock)()));
|
|
70
|
+
}), msw_1.rest.post('*/v1/addons/codeguard/:addonid/backup_download', (_req, res, ctx) => {
|
|
71
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardBackupDownloadMock)()));
|
|
72
|
+
}), msw_1.rest.get('*/v1/addons/codeguard/:addonid/database_list', (_req, res, ctx) => {
|
|
73
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardDatabaseListMock)()));
|
|
74
|
+
}), msw_1.rest.get('*/v1/addons/codeguard/:addonid/website_backup_list', (_req, res, ctx) => {
|
|
75
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardWebsiteBackupListMock)()));
|
|
76
|
+
}), msw_1.rest.get('*/v1/addons/codeguard/:addonid/database_backup_list', (_req, res, ctx) => {
|
|
77
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardDatabaseBackupListMock)()));
|
|
78
|
+
}), msw_1.rest.post('*/v1/addons/codeguard/:addonid/backup_restore', (_req, res, ctx) => {
|
|
79
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardBackupRestoreMock)()));
|
|
80
|
+
}), msw_1.rest.post('*/v1/addons/codeguard/:addonid/website_backup_restore', (_req, res, ctx) => {
|
|
81
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardWebsiteBackupRestoreMock)()));
|
|
82
|
+
}), msw_1.rest.post('*/v1/addons/codeguard/:addonid/database_backup_restore', (_req, res, ctx) => {
|
|
83
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getAddonsCodeguardDatabaseBackupRestoreMock)()));
|
|
84
|
+
}), msw_1.rest.get('*/v1/hosting/:hostingid/info', (_req, res, ctx) => {
|
|
85
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getHostingInfoMock)()));
|
|
86
|
+
}), msw_1.rest.get('*/v1/hosting/:hostingid/addons', (_req, res, ctx) => {
|
|
87
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getHostingAddonsMock)()));
|
|
88
|
+
}), msw_1.rest.get('*/v1/hosting/:hostingid/ftp/list', (_req, res, ctx) => {
|
|
89
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getHostingFtpListMock)()));
|
|
90
|
+
}), msw_1.rest.get('*/v1/hosting/:hostingid/sso', (_req, res, ctx) => {
|
|
91
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getSsoMock)()));
|
|
92
|
+
}), msw_1.rest.get('*/v1/sites/:siteid/sso', (_req, res, ctx) => {
|
|
93
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getSitesSsoMock)()));
|
|
94
|
+
}), msw_1.rest.get('*/v1/sites/:siteid/info', (_req, res, ctx) => {
|
|
95
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getSitesInfoMock)()));
|
|
96
|
+
}), msw_1.rest.get('*/v1/hosting/:hostingid/sites', (_req, res, ctx) => {
|
|
97
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json((0, exports.getHostingSitesMock)()));
|
|
98
|
+
}),
|
|
99
|
+
];
|
|
100
|
+
exports.getHostingUAPIMSW = getHostingUAPIMSW;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.8.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Hosting UAPI
|
|
5
|
+
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
+
* OpenAPI spec version: 0.1.0-beta.59
|
|
7
|
+
*/
|
|
8
|
+
export declare type AddonsCodeguardBackupCreate200 = {
|
|
9
|
+
status?: string;
|
|
10
|
+
};
|