@newfold/huapi-js 1.567.0 → 1.568.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 +3 -2
- package/src/index.js +3 -2
- 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.568.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import type { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
|
|
@@ -802,7 +802,8 @@ export declare const useHostingMigrations: <TError = AxiosError<unknown, any>, T
|
|
|
802
802
|
}, TContext>;
|
|
803
803
|
/**
|
|
804
804
|
* Checks if Migration ID exists, indicating the site migration is in progress or completed
|
|
805
|
-
* @
|
|
805
|
+
* @deprecated
|
|
806
|
+
* @summary Deprecated Migration ID check
|
|
806
807
|
*/
|
|
807
808
|
export declare const hostingMigrationsCheck: (hostingId: number, params: HostingMigrationsCheckParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrationsCheck200>>;
|
|
808
809
|
export declare const getHostingMigrationsCheckQueryKey: (hostingId: number, params: HostingMigrationsCheckParams) => (string | HostingMigrationsCheckParams)[];
|
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.568.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import { useQuery, useMutation } from '@tanstack/react-query';
|
|
@@ -814,7 +814,8 @@ export const useHostingMigrations = (options) => {
|
|
|
814
814
|
};
|
|
815
815
|
/**
|
|
816
816
|
* Checks if Migration ID exists, indicating the site migration is in progress or completed
|
|
817
|
-
* @
|
|
817
|
+
* @deprecated
|
|
818
|
+
* @summary Deprecated Migration ID check
|
|
818
819
|
*/
|
|
819
820
|
export const hostingMigrationsCheck = (hostingId, params, options) => {
|
|
820
821
|
return axios.get(`/v1/hosting/${hostingId}/migrations/check`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
package/src/index.msw.d.ts
CHANGED
|
@@ -311,6 +311,7 @@ export declare const getHostingMigrationInfoMock: () => {
|
|
|
311
311
|
hostname: string | undefined;
|
|
312
312
|
feasible: string | undefined;
|
|
313
313
|
incoming_domain: string | undefined;
|
|
314
|
+
is_valid_migration_id: boolean | undefined;
|
|
314
315
|
};
|
|
315
316
|
export declare const getHostingMigrationSiteScanStatusMock: () => {
|
|
316
317
|
transferable: boolean | 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.568.0
|
|
7
7
|
*/
|
|
8
8
|
import { rest } from 'msw';
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
@@ -59,7 +59,7 @@ export const getHostingMigrationStatusMock = () => ({ rows: faker.helpers.arrayE
|
|
|
59
59
|
export const getHostingMigrationsMock = () => ({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
|
60
60
|
export const getHostingMigrationsCheckMock = () => ({ transferable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), description: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
61
61
|
export const getHostingMigrationsEventMock = () => ({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
|
62
|
-
export const getHostingMigrationInfoMock = () => ({ migration_id: faker.helpers.arrayElement([faker.random.word(), undefined]), domain: faker.helpers.arrayElement([faker.random.word(), undefined]), site_url: faker.helpers.arrayElement([faker.random.word(), undefined]), hostname: faker.helpers.arrayElement([faker.random.word(), undefined]), feasible: faker.helpers.arrayElement([faker.random.word(), undefined]), incoming_domain: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
62
|
+
export const getHostingMigrationInfoMock = () => ({ migration_id: faker.helpers.arrayElement([faker.random.word(), undefined]), domain: faker.helpers.arrayElement([faker.random.word(), undefined]), site_url: faker.helpers.arrayElement([faker.random.word(), undefined]), hostname: faker.helpers.arrayElement([faker.random.word(), undefined]), feasible: faker.helpers.arrayElement([faker.random.word(), undefined]), incoming_domain: faker.helpers.arrayElement([faker.random.word(), undefined]), is_valid_migration_id: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
|
63
63
|
export const getHostingMigrationSiteScanStatusMock = () => ({ transferable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), callback_url: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
64
64
|
export const getHostingNameserversMock = () => ({ nameservers: Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.random.word())) });
|
|
65
65
|
export const getHostingOnboardingDataMock = () => ({ completed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
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.568.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV2200RowsItem = {
|
|
9
9
|
name?: string;
|
|
@@ -612,6 +612,7 @@ export declare type HostingMigrationInfo200 = {
|
|
|
612
612
|
hostname?: string;
|
|
613
613
|
feasible?: string;
|
|
614
614
|
incoming_domain?: string;
|
|
615
|
+
is_valid_migration_id?: boolean;
|
|
615
616
|
};
|
|
616
617
|
export declare type HostingMigrationInfoParams = {
|
|
617
618
|
migration_id: string;
|