@newfold/huapi-js 1.413.0 → 1.413.1-alpha

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/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.413.0
6
+ * OpenAPI spec version: 0.1.0-unknown
7
7
  */
8
8
  import axios from 'axios';
9
9
  import { useQuery, useMutation } from '@tanstack/react-query';
@@ -280,6 +280,23 @@ export const useAddonsInfo = (addonId, options) => {
280
280
  query.queryKey = queryKey;
281
281
  return query;
282
282
  };
283
+ /**
284
+ * Returns spamexperts sso url
285
+ * @summary info
286
+ */
287
+ export const addonsSpamexpertsSso = (addonId, options) => {
288
+ return axios.get(`/v1/addons/${addonId}/spamexperts/sso`, options);
289
+ };
290
+ export const getAddonsSpamexpertsSsoQueryKey = (addonId) => [`/v1/addons/${addonId}/spamexperts/sso`];
291
+ export const useAddonsSpamexpertsSso = (addonId, options) => {
292
+ var _a;
293
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
294
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAddonsSpamexpertsSsoQueryKey(addonId);
295
+ const queryFn = ({ signal }) => addonsSpamexpertsSso(addonId, Object.assign({ signal }, axiosOptions));
296
+ const query = useQuery(Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions));
297
+ query.queryKey = queryKey;
298
+ return query;
299
+ };
283
300
  /**
284
301
  * Returns HAL hosting account-level information
285
302
  * @summary HAL Hosting Account Info
@@ -314,23 +331,6 @@ export const useHostingAddons = (hostingId, params, options) => {
314
331
  query.queryKey = queryKey;
315
332
  return query;
316
333
  };
317
- /**
318
- * Returns a list of cron jobs
319
- * @summary cron_list
320
- */
321
- export const hostingAdvancedCrontab = (hostingId, options) => {
322
- return axios.get(`/v1/hosting/${hostingId}/advanced/crontab`, options);
323
- };
324
- export const getHostingAdvancedCrontabQueryKey = (hostingId) => [`/v1/hosting/${hostingId}/advanced/crontab`];
325
- export const useHostingAdvancedCrontab = (hostingId, options) => {
326
- var _a;
327
- const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
328
- const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingAdvancedCrontabQueryKey(hostingId);
329
- const queryFn = ({ signal }) => hostingAdvancedCrontab(hostingId, Object.assign({ signal }, axiosOptions));
330
- const query = useQuery(Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions));
331
- query.queryKey = queryKey;
332
- return query;
333
- };
334
334
  /**
335
335
  * Returns the hosting server info
336
336
  * @summary server status/info
@@ -444,6 +444,68 @@ export const useAddonCloudflare = (options) => {
444
444
  };
445
445
  return useMutation(mutationFn, mutationOptions);
446
446
  };
447
+ /**
448
+ * Returns a list of cron jobs
449
+ * @summary cron_list
450
+ */
451
+ export const listCrons = (hostingId, options) => {
452
+ return axios.get(`/v1/hosting/${hostingId}/crontab`, options);
453
+ };
454
+ export const getListCronsQueryKey = (hostingId) => [`/v1/hosting/${hostingId}/crontab`];
455
+ export const useListCrons = (hostingId, options) => {
456
+ var _a;
457
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
458
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getListCronsQueryKey(hostingId);
459
+ const queryFn = ({ signal }) => listCrons(hostingId, Object.assign({ signal }, axiosOptions));
460
+ const query = useQuery(Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions));
461
+ query.queryKey = queryKey;
462
+ return query;
463
+ };
464
+ /**
465
+ * Adds a new cron job
466
+ * @summary cron_add
467
+ */
468
+ export const addCron = (hostingId, addCronBody, options) => {
469
+ return axios.post(`/v1/hosting/${hostingId}/crontab`, addCronBody, options);
470
+ };
471
+ export const useAddCron = (options) => {
472
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
473
+ const mutationFn = (props) => {
474
+ const { hostingId, data } = props !== null && props !== void 0 ? props : {};
475
+ return addCron(hostingId, data, axiosOptions);
476
+ };
477
+ return useMutation(mutationFn, mutationOptions);
478
+ };
479
+ /**
480
+ * Updates a cron job
481
+ * @summary cron_update
482
+ */
483
+ export const updateCron = (hostingId, updateCronBody, options) => {
484
+ return axios.put(`/v1/hosting/${hostingId}/crontab`, updateCronBody, options);
485
+ };
486
+ export const useUpdateCron = (options) => {
487
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
488
+ const mutationFn = (props) => {
489
+ const { hostingId, data } = props !== null && props !== void 0 ? props : {};
490
+ return updateCron(hostingId, data, axiosOptions);
491
+ };
492
+ return useMutation(mutationFn, mutationOptions);
493
+ };
494
+ /**
495
+ * Deletes a cron job
496
+ * @summary cron_delete
497
+ */
498
+ export const cron = (hostingId, cronBody, options) => {
499
+ return axios.delete(`/v1/hosting/${hostingId}/crontab`, Object.assign({ data: cronBody }, options));
500
+ };
501
+ export const useCron = (options) => {
502
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
503
+ const mutationFn = (props) => {
504
+ const { hostingId, data } = props !== null && props !== void 0 ? props : {};
505
+ return cron(hostingId, data, axiosOptions);
506
+ };
507
+ return useMutation(mutationFn, mutationOptions);
508
+ };
447
509
  /**
448
510
  * Add a new db to an account
449
511
  * @summary Create a database for an account
@@ -491,6 +553,70 @@ export const useDbList = (hostingId, options) => {
491
553
  query.queryKey = queryKey;
492
554
  return query;
493
555
  };
556
+ /**
557
+ * Get user privileges on a database.
558
+ * @summary Get user privileges on a database.
559
+ */
560
+ export const dbUserPrivsGet = (hostingId, params, options) => {
561
+ return axios.get(`/v1/hosting/${hostingId}/db/user/privileges`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
562
+ };
563
+ export const getDbUserPrivsGetQueryKey = (hostingId, params) => [`/v1/hosting/${hostingId}/db/user/privileges`, ...(params ? [params] : [])];
564
+ export const useDbUserPrivsGet = (hostingId, params, options) => {
565
+ var _a;
566
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
567
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDbUserPrivsGetQueryKey(hostingId, params);
568
+ const queryFn = ({ signal }) => dbUserPrivsGet(hostingId, params, Object.assign({ signal }, axiosOptions));
569
+ const query = useQuery(Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions));
570
+ query.queryKey = queryKey;
571
+ return query;
572
+ };
573
+ /**
574
+ * Creates a database user. The final username cannot exceed 16 characters, and will have the cpanel account username's first eight characters prepended to it.
575
+ * @summary Create a database user
576
+ */
577
+ export const dbUserAdd = (hostingId, dbUserAddBody, options) => {
578
+ return axios.post(`/v1/hosting/${hostingId}/db/users`, dbUserAddBody, options);
579
+ };
580
+ export const useDbUserAdd = (options) => {
581
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
582
+ const mutationFn = (props) => {
583
+ const { hostingId, data } = props !== null && props !== void 0 ? props : {};
584
+ return dbUserAdd(hostingId, data, axiosOptions);
585
+ };
586
+ return useMutation(mutationFn, mutationOptions);
587
+ };
588
+ /**
589
+ * Delete db user
590
+ * @summary Delete db user
591
+ */
592
+ export const dbUserDelete = (hostingId, dbUserDeleteBody, options) => {
593
+ return axios.delete(`/v1/hosting/${hostingId}/db/users`, Object.assign({ data: dbUserDeleteBody }, options));
594
+ };
595
+ export const useDbUserDelete = (options) => {
596
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
597
+ const mutationFn = (props) => {
598
+ const { hostingId, data } = props !== null && props !== void 0 ? props : {};
599
+ return dbUserDelete(hostingId, data, axiosOptions);
600
+ };
601
+ return useMutation(mutationFn, mutationOptions);
602
+ };
603
+ /**
604
+ * List all DB users
605
+ * @summary Get list of db users
606
+ */
607
+ export const dbUserList = (hostingId, options) => {
608
+ return axios.get(`/v1/hosting/${hostingId}/db/users`, options);
609
+ };
610
+ export const getDbUserListQueryKey = (hostingId) => [`/v1/hosting/${hostingId}/db/users`];
611
+ export const useDbUserList = (hostingId, options) => {
612
+ var _a;
613
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
614
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDbUserListQueryKey(hostingId);
615
+ const queryFn = ({ signal }) => dbUserList(hostingId, Object.assign({ signal }, axiosOptions));
616
+ const query = useQuery(Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions));
617
+ query.queryKey = queryKey;
618
+ return query;
619
+ };
494
620
  /**
495
621
  * Returns a list of domains
496
622
  * @summary domain list
@@ -508,6 +634,23 @@ export const useDomains = (hostingId, params, options) => {
508
634
  query.queryKey = queryKey;
509
635
  return query;
510
636
  };
637
+ /**
638
+ * Returns info about an existing ecommerce addon otherwise it returns null
639
+ * @summary ecommerce info
640
+ */
641
+ export const hostingEcommerceInfo = (hostingId, options) => {
642
+ return axios.get(`/v1/hosting/${hostingId}/ecommerce`, options);
643
+ };
644
+ export const getHostingEcommerceInfoQueryKey = (hostingId) => [`/v1/hosting/${hostingId}/ecommerce`];
645
+ export const useHostingEcommerceInfo = (hostingId, options) => {
646
+ var _a;
647
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
648
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingEcommerceInfoQueryKey(hostingId);
649
+ const queryFn = ({ signal }) => hostingEcommerceInfo(hostingId, Object.assign({ signal }, axiosOptions));
650
+ const query = useQuery(Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions));
651
+ query.queryKey = queryKey;
652
+ return query;
653
+ };
511
654
  /**
512
655
  * Returns a list of FTP accounts.
513
656
  * @summary ftp list
@@ -604,6 +747,21 @@ export const useHostingInfoDiskUsage = (hostingId, options) => {
604
747
  query.queryKey = queryKey;
605
748
  return query;
606
749
  };
750
+ /**
751
+ * Returns lead info for the user of the hosting account
752
+ * @summary Lead info
753
+ */
754
+ export const hostingLead = (hostingId, params, options) => {
755
+ return axios.post(`/v1/hosting/${hostingId}/lead`, undefined, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
756
+ };
757
+ export const useHostingLead = (options) => {
758
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
759
+ const mutationFn = (props) => {
760
+ const { hostingId, params } = props !== null && props !== void 0 ? props : {};
761
+ return hostingLead(hostingId, params, axiosOptions);
762
+ };
763
+ return useMutation(mutationFn, mutationOptions);
764
+ };
607
765
  /**
608
766
  * Gets the Wordpress migration status
609
767
  * @summary Wordpress migration status
@@ -702,6 +860,37 @@ export const useHostingNameservers = (hostingId, options) => {
702
860
  query.queryKey = queryKey;
703
861
  return query;
704
862
  };
863
+ /**
864
+ * Returns onboarding data
865
+ * @summary Returns hosting onboarding data
866
+ */
867
+ export const hostingOnboardingData = (hostingId, options) => {
868
+ return axios.get(`/v1/hosting/${hostingId}/onboarding`, options);
869
+ };
870
+ export const getHostingOnboardingDataQueryKey = (hostingId) => [`/v1/hosting/${hostingId}/onboarding`];
871
+ export const useHostingOnboardingData = (hostingId, options) => {
872
+ var _a;
873
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
874
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingOnboardingDataQueryKey(hostingId);
875
+ const queryFn = ({ signal }) => hostingOnboardingData(hostingId, Object.assign({ signal }, axiosOptions));
876
+ const query = useQuery(Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions));
877
+ query.queryKey = queryKey;
878
+ return query;
879
+ };
880
+ /**
881
+ * @summary Updates hosting onboarding data
882
+ */
883
+ export const hostingOnboardingDataUpdate = (hostingId, hostingOnboardingDataUpdateBody, options) => {
884
+ return axios.put(`/v1/hosting/${hostingId}/onboarding`, hostingOnboardingDataUpdateBody, options);
885
+ };
886
+ export const useHostingOnboardingDataUpdate = (options) => {
887
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
888
+ const mutationFn = (props) => {
889
+ const { hostingId, data } = props !== null && props !== void 0 ? props : {};
890
+ return hostingOnboardingDataUpdate(hostingId, data, axiosOptions);
891
+ };
892
+ return useMutation(mutationFn, mutationOptions);
893
+ };
705
894
  /**
706
895
  * Enable or disable shell access on an account by setting the shell.SSH key access must be established separately.
707
896
  * @summary hosting shell toggle
@@ -1011,6 +1200,21 @@ export const useSitesHasBackups = (siteId, options) => {
1011
1200
  query.queryKey = queryKey;
1012
1201
  return query;
1013
1202
  };
1203
+ /**
1204
+ * Adds the site to the codeguard
1205
+ * @summary Add additional sites to codeguard
1206
+ */
1207
+ export const sitesBackupsCodeguard = (siteId, options) => {
1208
+ return axios.post(`/v1/sites/${siteId}/backups/codeguard`, undefined, options);
1209
+ };
1210
+ export const useSitesBackupsCodeguard = (options) => {
1211
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
1212
+ const mutationFn = (props) => {
1213
+ const { siteId } = props !== null && props !== void 0 ? props : {};
1214
+ return sitesBackupsCodeguard(siteId, axiosOptions);
1215
+ };
1216
+ return useMutation(mutationFn, mutationOptions);
1217
+ };
1014
1218
  /**
1015
1219
  * Returns details about the backup options available for the site, i.e. details about the codeguard backup addon and the jetpack based on if one or both of them are added to the account.
1016
1220
  * @summary site backup details
@@ -1094,6 +1298,21 @@ export const useSitesDomainUrl = (options) => {
1094
1298
  };
1095
1299
  return useMutation(mutationFn, mutationOptions);
1096
1300
  };
1301
+ /**
1302
+ * Delete pending domain
1303
+ * @summary Delete pending domain
1304
+ */
1305
+ export const sitePendingDomainDelete = (siteId, options) => {
1306
+ return axios.delete(`/v1/sites/${siteId}/pending-domain`, options);
1307
+ };
1308
+ export const useSitePendingDomainDelete = (options) => {
1309
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
1310
+ const mutationFn = (props) => {
1311
+ const { siteId } = props !== null && props !== void 0 ? props : {};
1312
+ return sitePendingDomainDelete(siteId, axiosOptions);
1313
+ };
1314
+ return useMutation(mutationFn, mutationOptions);
1315
+ };
1097
1316
  /**
1098
1317
  * cache purge site and url
1099
1318
  * @summary cache purge url
@@ -1528,6 +1747,22 @@ export const useSitesSso = (siteId, params, options) => {
1528
1747
  query.queryKey = queryKey;
1529
1748
  return query;
1530
1749
  };
1750
+ /**
1751
+ * @summary site status
1752
+ */
1753
+ export const siteStatus = (siteId, options) => {
1754
+ return axios.get(`/v1/sites/${siteId}/status`, options);
1755
+ };
1756
+ export const getSiteStatusQueryKey = (siteId) => [`/v1/sites/${siteId}/status`];
1757
+ export const useSiteStatus = (siteId, options) => {
1758
+ var _a;
1759
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
1760
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSiteStatusQueryKey(siteId);
1761
+ const queryFn = ({ signal }) => siteStatus(siteId, Object.assign({ signal }, axiosOptions));
1762
+ const query = useQuery(Object.assign({ queryKey, queryFn, enabled: !!(siteId) }, queryOptions));
1763
+ query.queryKey = queryKey;
1764
+ return query;
1765
+ };
1531
1766
  /**
1532
1767
  * Returns a list of the site's users
1533
1768
  * @summary users
@@ -93,6 +93,9 @@ export declare const getAddonsCloudflareMock: () => {
93
93
  export declare const getAddonsInfoMock: () => {
94
94
  id: string | undefined;
95
95
  };
96
+ export declare const getAddonsSpamexpertsSsoMock: () => {
97
+ url: string | undefined;
98
+ };
96
99
  export declare const getHostingAccountMock: () => {
97
100
  id: string | undefined;
98
101
  account_id: string | undefined;
@@ -102,7 +105,11 @@ export declare const getHostingAccountMock: () => {
102
105
  status: string | undefined;
103
106
  type: string | undefined;
104
107
  advanced: boolean | undefined;
105
- plan: string | undefined;
108
+ billing: {
109
+ product_name: string | undefined;
110
+ } | undefined;
111
+ panel: string | undefined;
112
+ plan_key: string | undefined;
106
113
  };
107
114
  export declare const getHostingAddonsMock: () => {
108
115
  rows: {
@@ -113,19 +120,6 @@ export declare const getHostingAddonsMock: () => {
113
120
  status_user: string | undefined;
114
121
  }[] | undefined;
115
122
  };
116
- export declare const getHostingAdvancedCrontabMock: () => {
117
- rows: {
118
- command: string | undefined;
119
- day: string | undefined;
120
- hour: string | undefined;
121
- key: string | undefined;
122
- line: string | undefined;
123
- minute: string | undefined;
124
- month: string | undefined;
125
- type: string | undefined;
126
- weekday: string | undefined;
127
- }[] | undefined;
128
- };
129
123
  export declare const getHostingAdvancedServerMock: () => {
130
124
  status: string | undefined;
131
125
  uptime: string | undefined;
@@ -158,6 +152,29 @@ export declare const getAddonCloudflareMock: () => {
158
152
  status: string | undefined;
159
153
  addon_id: number | undefined;
160
154
  };
155
+ export declare const getListCronsMock: () => {
156
+ rows: {
157
+ command: string | undefined;
158
+ day: string | undefined;
159
+ hour: string | undefined;
160
+ key: string | undefined;
161
+ line: string | undefined;
162
+ minute: string | undefined;
163
+ month: string | undefined;
164
+ type: string | undefined;
165
+ weekday: string | undefined;
166
+ email: string | undefined;
167
+ }[] | undefined;
168
+ };
169
+ export declare const getAddCronMock: () => {
170
+ key: string | undefined;
171
+ };
172
+ export declare const getUpdateCronMock: () => {
173
+ key: number | undefined;
174
+ };
175
+ export declare const getCronMock: () => {
176
+ success: boolean | undefined;
177
+ };
161
178
  export declare const getDbAddMock: () => {
162
179
  dbname: string | undefined;
163
180
  status: number | undefined;
@@ -172,6 +189,7 @@ export declare const getDbListMock: () => {
172
189
  status: boolean | undefined;
173
190
  databases: {
174
191
  db: string | undefined;
192
+ sitename: string | undefined;
175
193
  size: string | undefined;
176
194
  sizemeg: string | undefined;
177
195
  usercount: number | undefined;
@@ -181,6 +199,21 @@ export declare const getDbListMock: () => {
181
199
  }[] | undefined;
182
200
  }[] | undefined;
183
201
  };
202
+ export declare const getDbUserPrivsGetMock: () => {
203
+ privileges: string[] | undefined;
204
+ };
205
+ export declare const getDbUserAddMock: () => {
206
+ username: string | undefined;
207
+ password: string | undefined;
208
+ };
209
+ export declare const getDbUserDeleteMock: () => {};
210
+ export declare const getDbUserListMock: () => {
211
+ users: {
212
+ dblist: string[] | undefined;
213
+ shortuser: string | undefined;
214
+ user: string | undefined;
215
+ }[] | undefined;
216
+ };
184
217
  export declare const getDomainsMock: () => {
185
218
  domains: {
186
219
  docroot: string;
@@ -189,6 +222,15 @@ export declare const getDomainsMock: () => {
189
222
  id: number;
190
223
  }[];
191
224
  };
225
+ export declare const getHostingEcommerceInfoMock: () => {
226
+ addon_id: number | undefined;
227
+ back_ref: string | undefined;
228
+ level: string | undefined;
229
+ name: string | undefined;
230
+ type: string | undefined;
231
+ status: string | undefined;
232
+ subtype: string | null | undefined;
233
+ };
192
234
  export declare const getHostingFtpListMock: () => {
193
235
  ftp_accounts: {
194
236
  user: string | undefined;
@@ -204,6 +246,7 @@ export declare const getHostingFtpListMock: () => {
204
246
  account: string | undefined;
205
247
  domain: string | undefined;
206
248
  }[] | undefined;
249
+ server_name: string | undefined;
207
250
  };
208
251
  export declare const getHostingFtpAddMock: () => {
209
252
  user: string | undefined;
@@ -223,6 +266,19 @@ export declare const getHostingInfoDiskUsageMock: () => {
223
266
  diskused: string | undefined;
224
267
  disklimit: string | undefined;
225
268
  };
269
+ export declare const getHostingLeadMock: () => {
270
+ response: {
271
+ providerApplicationName: string | undefined;
272
+ clientRequestId: string | undefined;
273
+ status: string | undefined;
274
+ errors: string | undefined;
275
+ data: {
276
+ leadId: string | undefined;
277
+ message: string | undefined;
278
+ } | undefined;
279
+ messageId: string | undefined;
280
+ }[] | undefined;
281
+ };
226
282
  export declare const getHostingMigrationStatusMock: () => {
227
283
  rows: {
228
284
  id: string | undefined;
@@ -243,8 +299,6 @@ export declare const getHostingMigrationInfoMock: () => {
243
299
  site_url: string | undefined;
244
300
  hostname: string | undefined;
245
301
  feasible: string | undefined;
246
- source_type: string | undefined;
247
- product_type: string | undefined;
248
302
  incoming_domain: string | undefined;
249
303
  };
250
304
  export declare const getHostingMigrationSiteScanStatusMock: () => {
@@ -254,6 +308,12 @@ export declare const getHostingMigrationSiteScanStatusMock: () => {
254
308
  export declare const getHostingNameserversMock: () => {
255
309
  nameservers: string[];
256
310
  };
311
+ export declare const getHostingOnboardingDataMock: () => {
312
+ completed: boolean | undefined;
313
+ };
314
+ export declare const getHostingOnboardingDataUpdateMock: () => {
315
+ completed: boolean | undefined;
316
+ };
257
317
  export declare const getHostingShellToggleMock: () => {
258
318
  enabled: boolean | undefined;
259
319
  };
@@ -273,6 +333,7 @@ export declare const getHostingSitesMock: () => {
273
333
  url: string | undefined;
274
334
  docroot: string | undefined;
275
335
  status: string | undefined;
336
+ type: string | undefined;
276
337
  pending_url: string | undefined;
277
338
  meta: {
278
339
  pending_url: string | undefined;
@@ -337,13 +398,8 @@ export declare const getSitesInfoMock: () => {
337
398
  status: string;
338
399
  url: string;
339
400
  version: string;
340
- versionLatest: string | undefined;
341
401
  php_version: string | null | undefined;
342
- updatable: boolean | undefined;
343
402
  pending_url: string | undefined;
344
- meta: {
345
- pending_url: string | undefined;
346
- } | undefined;
347
403
  };
348
404
  export declare const getSiteUpdateMock: () => {
349
405
  success: boolean;
@@ -367,6 +423,11 @@ export declare const getSitesBackupsMock: () => {
367
423
  export declare const getSitesHasBackupsMock: () => {
368
424
  has_backups: boolean | undefined;
369
425
  };
426
+ export declare const getSitesBackupsCodeguardMock: () => {
427
+ website_id: number | undefined;
428
+ database_id: number | undefined;
429
+ success: number | undefined;
430
+ };
370
431
  export declare const getSitesBackupsDetailsMock: () => {
371
432
  codeguard: {
372
433
  addon_id: string | undefined;
@@ -412,6 +473,7 @@ export declare const getSitesDomainMock: () => {
412
473
  export declare const getSitesDomainUrlMock: () => {
413
474
  success: boolean | undefined;
414
475
  };
476
+ export declare const getSitePendingDomainDeleteMock: () => {};
415
477
  export declare const getSitesPerformanceCachepurgeMock: () => {
416
478
  success: boolean | undefined;
417
479
  };
@@ -470,6 +532,7 @@ export declare const getSitesSecurityHttpsEnableDisableSslMock: () => {
470
532
  export declare const getSitesSecuritySitelockMock: () => {
471
533
  addon_id: number | undefined;
472
534
  plan: string | undefined;
535
+ billing_code: string | undefined;
473
536
  success: number | undefined;
474
537
  subscription_id: string | undefined;
475
538
  upgrade_levels: string[] | undefined;
@@ -517,6 +580,11 @@ export declare const getSitesSettingsPhpVersionsMock: () => {
517
580
  export declare const getSitesSsoMock: () => {
518
581
  sso: string | undefined;
519
582
  };
583
+ export declare const getSiteStatusMock: () => {
584
+ url: string | undefined;
585
+ pending_url: string | undefined;
586
+ cloudflare_ready: boolean | undefined;
587
+ };
520
588
  export declare const getSiteUsersMock: () => {
521
589
  users: {
522
590
  display_name: string | undefined;
@@ -551,7 +619,9 @@ export declare const getHostingSitesV2Mock: () => {
551
619
  url: string | undefined;
552
620
  docroot: string | undefined;
553
621
  status: string | undefined;
622
+ type: string | undefined;
554
623
  pending_url: string | undefined;
624
+ migration_id: string | undefined;
555
625
  }[] | undefined;
556
626
  };
557
627
  export declare const getSshKeyListV2Mock: () => {