@newfold/huapi-js 1.880.0 → 1.882.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 +1 -1
- package/src/index.js +1 -1
- package/src/index.msw.d.ts +1 -0
- package/src/index.msw.js +2 -2
- package/src/index.schemas.d.ts +2 -1
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.882.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import type { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
|
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.882.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import { useQuery, useMutation } from '@tanstack/react-query';
|
package/src/index.msw.d.ts
CHANGED
|
@@ -742,6 +742,7 @@ export declare const getSitesSettingsPhpVersionUpdateMock: () => {
|
|
|
742
742
|
success: number | undefined;
|
|
743
743
|
};
|
|
744
744
|
export declare const getSitesSettingsPhpVersionsMock: () => {
|
|
745
|
+
default: string | undefined;
|
|
745
746
|
latest: string | undefined;
|
|
746
747
|
versions: string[] | undefined;
|
|
747
748
|
deprecated: string[] | undefined;
|
package/src/index.msw.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.882.0
|
|
7
7
|
*/
|
|
8
8
|
import { rest } from 'msw';
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
@@ -127,7 +127,7 @@ export const getSitesSettingsComingSoonToggleMock = () => ({ success: faker.help
|
|
|
127
127
|
export const getSitesSettingsDebugMock = () => ({ status: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) });
|
|
128
128
|
export const getSitesSettingsDebugToggleMock = () => ({ success: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) });
|
|
129
129
|
export const getSitesSettingsPhpVersionUpdateMock = () => ({ success: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) });
|
|
130
|
-
export const getSitesSettingsPhpVersionsMock = () => ({ latest: faker.helpers.arrayElement([faker.random.word(), undefined]), versions: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.random.word())), undefined]), deprecated: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.random.word())), undefined]) });
|
|
130
|
+
export const getSitesSettingsPhpVersionsMock = () => ({ default: faker.helpers.arrayElement([faker.random.word(), undefined]), latest: faker.helpers.arrayElement([faker.random.word(), undefined]), versions: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.random.word())), undefined]), deprecated: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.random.word())), undefined]) });
|
|
131
131
|
export const getSitesSshUserListMock = () => ({});
|
|
132
132
|
export const getSitesSshUserCreateMock = () => ({ public_key: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]), private_key: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]) });
|
|
133
133
|
export const getSitesSshUserDeleteMock = () => ({});
|
package/src/index.schemas.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.882.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SitesDomainsV2200DomainsItem = {
|
|
9
9
|
id?: number;
|
|
@@ -295,6 +295,7 @@ export declare type SitesSshUserList200 = {
|
|
|
295
295
|
[key: string]: any;
|
|
296
296
|
};
|
|
297
297
|
export declare type SitesSettingsPhpVersions200 = {
|
|
298
|
+
default?: string;
|
|
298
299
|
latest?: string;
|
|
299
300
|
versions?: string[];
|
|
300
301
|
deprecated?: string[];
|