touchstudy-core 0.1.48 → 0.1.49

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.
@@ -1,10 +1,11 @@
1
1
  import { ChangeEvent } from "react";
2
2
  import { AxiosResponse } from "axios";
3
3
  import { SearchQuery } from "../types/searchQuery";
4
+ import { PagingResponse } from "../types/pagingResponse";
4
5
  declare const useList: <TResponse>(fetchData: (filter: SearchQuery) => Promise<AxiosResponse<any, any>>, defaultQuery: SearchQuery) => {
5
6
  filter: SearchQuery;
6
7
  textSearchRef: import("react").RefObject<HTMLInputElement>;
7
- totalPages: number;
8
+ paging: PagingResponse;
8
9
  data: TResponse[];
9
10
  selectedItem: TResponse | undefined;
10
11
  handleSort: (sortColumnName: string) => void;
@@ -0,0 +1,7 @@
1
+ export interface PagingResponse {
2
+ page: number;
3
+ limit: number;
4
+ totalItems: number;
5
+ totalPages: number;
6
+ }
7
+ export declare const DEFAULT_PAGING_RESPONSE: PagingResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",