@newfold/huapi-js 2.1043.0 → 2.1045.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 CHANGED
@@ -17,12 +17,14 @@ export default defineConfig({
17
17
  query: {
18
18
  useQuery: true,
19
19
  useInfinite: true,
20
+ useInfiniteQueryParam: 'page_id',
20
21
  },
21
22
  },
22
23
  sites_access_logs: {
23
24
  query: {
24
25
  useQuery: true,
25
26
  useInfinite: true,
27
+ useInfiniteQueryParam: 'page_id',
26
28
  },
27
29
  },
28
30
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "tslib": "2.7.0"
11
11
  },
12
12
  "module": "dist/index.ts",
13
- "version": "2.1043.0",
13
+ "version": "2.1045.0",
14
14
  "sideEffects": false,
15
15
  "main": "./src/index.js",
16
16
  "types": "./src/index.d.ts",
package/src/index.d.ts CHANGED
@@ -3687,28 +3687,28 @@ export declare const useAddSiteIpaddress: <TError = AxiosError<unknown, any>, TC
3687
3687
  */
3688
3688
  export declare const sitesAccessLogs: (siteId: number, params?: SitesAccessLogsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesAccessLogs200>>;
3689
3689
  export declare const getSitesAccessLogsQueryKey: (siteId: number, params?: SitesAccessLogsParams) => readonly [`/v1/sites/${number}/logs/access`, ...SitesAccessLogsParams[]];
3690
- export declare const getSitesAccessLogsInfiniteQueryOptions: <TData = InfiniteData<AxiosResponse<SitesAccessLogs200, any>, unknown>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesAccessLogsParams, options?: {
3691
- query?: Partial<UseInfiniteQueryOptions<AxiosResponse<SitesAccessLogs200, any>, TError, TData, AxiosResponse<SitesAccessLogs200, any>, QueryKey, unknown>> | undefined;
3690
+ export declare const getSitesAccessLogsInfiniteQueryOptions: <TData = InfiniteData<AxiosResponse<SitesAccessLogs200, any>, string | undefined>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesAccessLogsParams, options?: {
3691
+ query?: Partial<UseInfiniteQueryOptions<AxiosResponse<SitesAccessLogs200, any>, TError, TData, AxiosResponse<SitesAccessLogs200, any>, QueryKey, string | undefined>> | undefined;
3692
3692
  axios?: AxiosRequestConfig<any> | undefined;
3693
- } | undefined) => UseInfiniteQueryOptions<AxiosResponse<SitesAccessLogs200, any>, TError, TData, AxiosResponse<SitesAccessLogs200, any>, QueryKey, unknown> & {
3693
+ } | undefined) => UseInfiniteQueryOptions<AxiosResponse<SitesAccessLogs200, any>, TError, TData, AxiosResponse<SitesAccessLogs200, any>, QueryKey, string | undefined> & {
3694
3694
  queryKey: QueryKey;
3695
3695
  };
3696
3696
  export declare type SitesAccessLogsInfiniteQueryResult = NonNullable<Awaited<ReturnType<typeof sitesAccessLogs>>>;
3697
3697
  export declare type SitesAccessLogsInfiniteQueryError = AxiosError<unknown>;
3698
- export declare function useSitesAccessLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesAccessLogs>>>, TError = AxiosError<unknown>>(siteId: number, params: undefined | SitesAccessLogsParams, options: {
3699
- query: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesAccessLogs>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof sitesAccessLogs>>, TError, TData>, 'initialData'>;
3698
+ export declare function useSitesAccessLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesAccessLogs>>, SitesAccessLogsParams['page_id']>, TError = AxiosError<unknown>>(siteId: number, params: undefined | SitesAccessLogsParams, options: {
3699
+ query: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesAccessLogs>>, TError, TData, Awaited<ReturnType<typeof sitesAccessLogs>>, QueryKey, SitesAccessLogsParams['page_id']>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof sitesAccessLogs>>, TError, TData, QueryKey>, 'initialData'>;
3700
3700
  axios?: AxiosRequestConfig;
3701
3701
  }): DefinedUseInfiniteQueryResult<TData, TError> & {
3702
3702
  queryKey: QueryKey;
3703
3703
  };
3704
- export declare function useSitesAccessLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesAccessLogs>>>, TError = AxiosError<unknown>>(siteId: number, params?: SitesAccessLogsParams, options?: {
3705
- query?: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesAccessLogs>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof sitesAccessLogs>>, TError, TData>, 'initialData'>;
3704
+ export declare function useSitesAccessLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesAccessLogs>>, SitesAccessLogsParams['page_id']>, TError = AxiosError<unknown>>(siteId: number, params?: SitesAccessLogsParams, options?: {
3705
+ query?: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesAccessLogs>>, TError, TData, Awaited<ReturnType<typeof sitesAccessLogs>>, QueryKey, SitesAccessLogsParams['page_id']>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof sitesAccessLogs>>, TError, TData, QueryKey>, 'initialData'>;
3706
3706
  axios?: AxiosRequestConfig;
3707
3707
  }): UseInfiniteQueryResult<TData, TError> & {
3708
3708
  queryKey: QueryKey;
3709
3709
  };
3710
- export declare function useSitesAccessLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesAccessLogs>>>, TError = AxiosError<unknown>>(siteId: number, params?: SitesAccessLogsParams, options?: {
3711
- query?: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesAccessLogs>>, TError, TData>>;
3710
+ export declare function useSitesAccessLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesAccessLogs>>, SitesAccessLogsParams['page_id']>, TError = AxiosError<unknown>>(siteId: number, params?: SitesAccessLogsParams, options?: {
3711
+ query?: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesAccessLogs>>, TError, TData, Awaited<ReturnType<typeof sitesAccessLogs>>, QueryKey, SitesAccessLogsParams['page_id']>>;
3712
3712
  axios?: AxiosRequestConfig;
3713
3713
  }): UseInfiniteQueryResult<TData, TError> & {
3714
3714
  queryKey: QueryKey;
@@ -3777,28 +3777,28 @@ export declare function useSitesAccessLogsDownload<TData = Awaited<ReturnType<ty
3777
3777
  */
3778
3778
  export declare const sitesErrorLogs: (siteId: number, params?: SitesErrorLogsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesErrorLogs200>>;
3779
3779
  export declare const getSitesErrorLogsQueryKey: (siteId: number, params?: SitesErrorLogsParams) => readonly [`/v1/sites/${number}/logs/error`, ...SitesErrorLogsParams[]];
3780
- export declare const getSitesErrorLogsInfiniteQueryOptions: <TData = InfiniteData<AxiosResponse<SitesErrorLogs200, any>, unknown>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesErrorLogsParams, options?: {
3781
- query?: Partial<UseInfiniteQueryOptions<AxiosResponse<SitesErrorLogs200, any>, TError, TData, AxiosResponse<SitesErrorLogs200, any>, QueryKey, unknown>> | undefined;
3780
+ export declare const getSitesErrorLogsInfiniteQueryOptions: <TData = InfiniteData<AxiosResponse<SitesErrorLogs200, any>, string | undefined>, TError = AxiosError<unknown, any>>(siteId: number, params?: SitesErrorLogsParams, options?: {
3781
+ query?: Partial<UseInfiniteQueryOptions<AxiosResponse<SitesErrorLogs200, any>, TError, TData, AxiosResponse<SitesErrorLogs200, any>, QueryKey, string | undefined>> | undefined;
3782
3782
  axios?: AxiosRequestConfig<any> | undefined;
3783
- } | undefined) => UseInfiniteQueryOptions<AxiosResponse<SitesErrorLogs200, any>, TError, TData, AxiosResponse<SitesErrorLogs200, any>, QueryKey, unknown> & {
3783
+ } | undefined) => UseInfiniteQueryOptions<AxiosResponse<SitesErrorLogs200, any>, TError, TData, AxiosResponse<SitesErrorLogs200, any>, QueryKey, string | undefined> & {
3784
3784
  queryKey: QueryKey;
3785
3785
  };
3786
3786
  export declare type SitesErrorLogsInfiniteQueryResult = NonNullable<Awaited<ReturnType<typeof sitesErrorLogs>>>;
3787
3787
  export declare type SitesErrorLogsInfiniteQueryError = AxiosError<unknown>;
3788
- export declare function useSitesErrorLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesErrorLogs>>>, TError = AxiosError<unknown>>(siteId: number, params: undefined | SitesErrorLogsParams, options: {
3789
- query: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesErrorLogs>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof sitesErrorLogs>>, TError, TData>, 'initialData'>;
3788
+ export declare function useSitesErrorLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesErrorLogs>>, SitesErrorLogsParams['page_id']>, TError = AxiosError<unknown>>(siteId: number, params: undefined | SitesErrorLogsParams, options: {
3789
+ query: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesErrorLogs>>, TError, TData, Awaited<ReturnType<typeof sitesErrorLogs>>, QueryKey, SitesErrorLogsParams['page_id']>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof sitesErrorLogs>>, TError, TData, QueryKey>, 'initialData'>;
3790
3790
  axios?: AxiosRequestConfig;
3791
3791
  }): DefinedUseInfiniteQueryResult<TData, TError> & {
3792
3792
  queryKey: QueryKey;
3793
3793
  };
3794
- export declare function useSitesErrorLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesErrorLogs>>>, TError = AxiosError<unknown>>(siteId: number, params?: SitesErrorLogsParams, options?: {
3795
- query?: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesErrorLogs>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof sitesErrorLogs>>, TError, TData>, 'initialData'>;
3794
+ export declare function useSitesErrorLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesErrorLogs>>, SitesErrorLogsParams['page_id']>, TError = AxiosError<unknown>>(siteId: number, params?: SitesErrorLogsParams, options?: {
3795
+ query?: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesErrorLogs>>, TError, TData, Awaited<ReturnType<typeof sitesErrorLogs>>, QueryKey, SitesErrorLogsParams['page_id']>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof sitesErrorLogs>>, TError, TData, QueryKey>, 'initialData'>;
3796
3796
  axios?: AxiosRequestConfig;
3797
3797
  }): UseInfiniteQueryResult<TData, TError> & {
3798
3798
  queryKey: QueryKey;
3799
3799
  };
3800
- export declare function useSitesErrorLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesErrorLogs>>>, TError = AxiosError<unknown>>(siteId: number, params?: SitesErrorLogsParams, options?: {
3801
- query?: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesErrorLogs>>, TError, TData>>;
3800
+ export declare function useSitesErrorLogsInfinite<TData = InfiniteData<Awaited<ReturnType<typeof sitesErrorLogs>>, SitesErrorLogsParams['page_id']>, TError = AxiosError<unknown>>(siteId: number, params?: SitesErrorLogsParams, options?: {
3801
+ query?: Partial<UseInfiniteQueryOptions<Awaited<ReturnType<typeof sitesErrorLogs>>, TError, TData, Awaited<ReturnType<typeof sitesErrorLogs>>, QueryKey, SitesErrorLogsParams['page_id']>>;
3802
3802
  axios?: AxiosRequestConfig;
3803
3803
  }): UseInfiniteQueryResult<TData, TError> & {
3804
3804
  queryKey: QueryKey;
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.1043.0
6
+ * OpenAPI spec version: 1.1045.0
7
7
  */
8
8
  import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
9
9
  import axios from 'axios';
@@ -2874,7 +2874,7 @@ export const getSitesAccessLogsInfiniteQueryOptions = (siteId, params, options)
2874
2874
  var _a;
2875
2875
  const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
2876
2876
  const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSitesAccessLogsQueryKey(siteId, params);
2877
- const queryFn = ({ signal }) => sitesAccessLogs(siteId, params, Object.assign({ signal }, axiosOptions));
2877
+ const queryFn = ({ signal, pageParam }) => sitesAccessLogs(siteId, Object.assign(Object.assign({}, params), { page_id: pageParam || (params === null || params === void 0 ? void 0 : params['page_id']) }), Object.assign({ signal }, axiosOptions));
2878
2878
  return Object.assign({ queryKey, queryFn, enabled: !!(siteId) }, queryOptions);
2879
2879
  };
2880
2880
  /**
@@ -2942,7 +2942,7 @@ export const getSitesErrorLogsInfiniteQueryOptions = (siteId, params, options) =
2942
2942
  var _a;
2943
2943
  const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
2944
2944
  const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSitesErrorLogsQueryKey(siteId, params);
2945
- const queryFn = ({ signal }) => sitesErrorLogs(siteId, params, Object.assign({ signal }, axiosOptions));
2945
+ const queryFn = ({ signal, pageParam }) => sitesErrorLogs(siteId, Object.assign(Object.assign({}, params), { page_id: pageParam || (params === null || params === void 0 ? void 0 : params['page_id']) }), Object.assign({ signal }, axiosOptions));
2946
2946
  return Object.assign({ queryKey, queryFn, enabled: !!(siteId) }, queryOptions);
2947
2947
  };
2948
2948
  /**
package/src/index.msw.js CHANGED
@@ -4,7 +4,7 @@ import { __awaiter } from "tslib";
4
4
  * Do not edit manually.
5
5
  * Hosting UAPI
6
6
  * Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
7
- * OpenAPI spec version: 1.1043.0
7
+ * OpenAPI spec version: 1.1045.0
8
8
  */
9
9
  import { faker } from '@faker-js/faker';
10
10
  import { HttpResponse, delay, http } from 'msw';
@@ -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.1043.0
6
+ * OpenAPI spec version: 1.1045.0
7
7
  */
8
8
  export declare type SitesListV3200 = {
9
9
  items?: SitesListV3200ItemsItem[];