@newfold/huapi-js 1.885.0 → 1.888.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/orval.config.js +2 -0
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +3 -3
- package/src/index.msw.js +1 -1
- package/src/index.schemas.d.ts +1 -1
package/orval.config.js
CHANGED
|
@@ -18,12 +18,14 @@ export default defineConfig({
|
|
|
18
18
|
query: {
|
|
19
19
|
useQuery: true,
|
|
20
20
|
useInfinite: true,
|
|
21
|
+
useInfiniteQueryParam: 'scroll_id',
|
|
21
22
|
},
|
|
22
23
|
},
|
|
23
24
|
sites_access_logs: {
|
|
24
25
|
query: {
|
|
25
26
|
useQuery: true,
|
|
26
27
|
useInfinite: true,
|
|
28
|
+
useInfiniteQueryParam: 'scroll_id',
|
|
27
29
|
},
|
|
28
30
|
},
|
|
29
31
|
},
|
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.888.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.888.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import { useQuery, useInfiniteQuery, useMutation } from '@tanstack/react-query';
|
|
@@ -1522,7 +1522,7 @@ export const useSitesAccessLogsInfinite = (siteId, params, options) => {
|
|
|
1522
1522
|
var _a;
|
|
1523
1523
|
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1524
1524
|
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSitesAccessLogsQueryKey(siteId, params);
|
|
1525
|
-
const queryFn = () => sitesAccessLogs(siteId, params, axiosOptions);
|
|
1525
|
+
const queryFn = ({ pageParam }) => sitesAccessLogs(siteId, Object.assign({ scroll_id: pageParam }, params), axiosOptions);
|
|
1526
1526
|
const query = useInfiniteQuery(Object.assign({ queryKey, queryFn, enabled: !!(siteId) }, queryOptions));
|
|
1527
1527
|
query.queryKey = queryKey;
|
|
1528
1528
|
return query;
|
|
@@ -1548,7 +1548,7 @@ export const useSitesErrorLogsInfinite = (siteId, params, options) => {
|
|
|
1548
1548
|
var _a;
|
|
1549
1549
|
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1550
1550
|
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSitesErrorLogsQueryKey(siteId, params);
|
|
1551
|
-
const queryFn = () => sitesErrorLogs(siteId, params, axiosOptions);
|
|
1551
|
+
const queryFn = ({ pageParam }) => sitesErrorLogs(siteId, Object.assign({ scroll_id: pageParam }, params), axiosOptions);
|
|
1552
1552
|
const query = useInfiniteQuery(Object.assign({ queryKey, queryFn, enabled: !!(siteId) }, queryOptions));
|
|
1553
1553
|
query.queryKey = queryKey;
|
|
1554
1554
|
return query;
|
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.888.0
|
|
7
7
|
*/
|
|
8
8
|
import { rest } from 'msw';
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
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.888.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SitesDomainsV2200DomainsItem = {
|
|
9
9
|
id?: number;
|