@newfold/huapi-js 1.396.0 → 1.399.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 +4 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
package/src/index.d.ts
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.399.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import type { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
|
|
@@ -591,6 +591,8 @@ export declare type HostingInfo200 = {
|
|
|
591
591
|
};
|
|
592
592
|
export declare type HostingFtp200 = {
|
|
593
593
|
status?: number;
|
|
594
|
+
/** Username */
|
|
595
|
+
user?: string;
|
|
594
596
|
};
|
|
595
597
|
export declare type HostingFtpBody = {
|
|
596
598
|
/** Username for FTP account to delete. */
|
|
@@ -2565,6 +2567,7 @@ export declare const getHostingFtpAddMock: () => {
|
|
|
2565
2567
|
};
|
|
2566
2568
|
export declare const getHostingFtpMock: () => {
|
|
2567
2569
|
status: number | undefined;
|
|
2570
|
+
user: string | undefined;
|
|
2568
2571
|
};
|
|
2569
2572
|
export declare const getHostingInfoMock: () => {
|
|
2570
2573
|
ip: string | undefined;
|
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.399.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import { useQuery, useMutation } from '@tanstack/react-query';
|
|
@@ -1636,7 +1636,7 @@ export const getAddonCloudflareMock = () => ({ status: faker.helpers.arrayElemen
|
|
|
1636
1636
|
export const getDomainsMock = () => ({ domains: Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ docroot: faker.random.word(), domain: faker.random.word(), type: faker.random.word(), id: faker.datatype.number({ min: undefined, max: undefined }) })) });
|
|
1637
1637
|
export const getHostingFtpListMock = () => ({ ftp_accounts: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ user: faker.helpers.arrayElement([faker.random.word(), undefined]), homedir: faker.helpers.arrayElement([faker.random.word(), undefined]), type: faker.helpers.arrayElement([faker.random.word(), undefined]) })), undefined]), special_ftp_accounts: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ user: faker.helpers.arrayElement([faker.random.word(), undefined]), homedir: faker.helpers.arrayElement([faker.random.word(), undefined]), type: faker.helpers.arrayElement([faker.random.word(), undefined]) })), undefined]) });
|
|
1638
1638
|
export const getHostingFtpAddMock = () => ({ user: faker.helpers.arrayElement([faker.random.word(), undefined]), pass: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
1639
|
-
export const getHostingFtpMock = () => ({ status: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) });
|
|
1639
|
+
export const getHostingFtpMock = () => ({ status: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]), user: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
1640
1640
|
export const getHostingInfoMock = () => ({ ip: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
1641
1641
|
export const getHostingInfoDiskUsageMock = () => ({ diskused: faker.helpers.arrayElement([faker.random.word(), undefined]), disklimit: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
1642
1642
|
export const getHostingMigrationStatusMock = () => ({ rows: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ id: faker.helpers.arrayElement([faker.random.word(), undefined]), type: faker.helpers.arrayElement([faker.random.word(), undefined]), subtype: faker.helpers.arrayElement([faker.random.word(), undefined]), status: faker.helpers.arrayElement([faker.random.word(), undefined]) })), undefined]) });
|