@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 CHANGED
@@ -10,7 +10,7 @@
10
10
  "tslib": "2.4.0"
11
11
  },
12
12
  "module": "dist/index.ts",
13
- "version": "1.567.0",
13
+ "version": "1.568.0",
14
14
  "sideEffects": false,
15
15
  "main": "./src/index.js",
16
16
  "types": "./src/index.d.ts",
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.567.0
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
- * @summary Migration ID check
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.567.0
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
- * @summary Migration ID check
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) }));
@@ -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.567.0
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]) });
@@ -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.567.0
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;