redux-paginator-immutable 17.0.46 → 17.0.48

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/lib/types.d.ts ADDED
@@ -0,0 +1,107 @@
1
+ export type PagesState = any;
2
+ export type ItemsState = any;
3
+ export type State = {
4
+ readonly pages: PagesState;
5
+ readonly itemsReducer: ItemsState;
6
+ };
7
+ export type GetState = () => State;
8
+ export type PromiseAction = Promise<Action>;
9
+ export type ThunkAction = (dispatch: Dispatch, getState: GetState) => any;
10
+ export type Dispatch = (action: Action | ThunkAction | PromiseAction | Array<Action>) => any;
11
+ export type EndPointCb = ((token?: string) => string) | null;
12
+ export type PaginatorSettings = {
13
+ key: string;
14
+ manageEntity: any;
15
+ resultsKey: string;
16
+ rowsPerLoad?: number;
17
+ manipulateItems?: (items: any) => any;
18
+ totalKey?: string;
19
+ pageArgName?: string;
20
+ idKey?: string;
21
+ dataItemURL?: string;
22
+ normalizeDataItem?: any;
23
+ };
24
+ export type RequestPageAction = {
25
+ type: "@@redux-paginator-immutable/REQUEST_PAGE";
26
+ meta: {
27
+ endpoint: string;
28
+ endpointCb: EndPointCb;
29
+ manageEntity: any;
30
+ resultsKey: string;
31
+ totalKey: string;
32
+ pageArgName: string;
33
+ idKey: string;
34
+ };
35
+ payload: {
36
+ page: number;
37
+ token: string;
38
+ };
39
+ };
40
+ export type ReceivePageAction = {
41
+ type: "@@redux-paginator-immutable/RECEIVE_PAGE";
42
+ meta: {
43
+ endpoint: string;
44
+ endpointCb: EndPointCb;
45
+ manageEntity: any;
46
+ pageArgName: string;
47
+ idKey: string;
48
+ };
49
+ payload: {
50
+ page: number;
51
+ token: string;
52
+ items: Array<any>;
53
+ total: number;
54
+ error: boolean;
55
+ raw?: string;
56
+ };
57
+ };
58
+ export type ChangeViewAction = {
59
+ type: "@@redux-paginator-immutable/CHANGE_VIEW";
60
+ meta: {
61
+ endpoint: string;
62
+ };
63
+ payload: {
64
+ view: number;
65
+ token: string;
66
+ };
67
+ };
68
+ export type ResetViewAction = {
69
+ type: "@@redux-paginator-immutable/RESET_VIEW";
70
+ meta: {
71
+ endpoint: string;
72
+ };
73
+ payload: {
74
+ token: string;
75
+ };
76
+ };
77
+ export type ClearDataAction = {
78
+ type: "@@redux-paginator-immutable/CLEAR_DATA";
79
+ meta: {
80
+ endpoint: string;
81
+ };
82
+ };
83
+ export type FetchCurrentCompanyInfoPending = {
84
+ type: "FETCH_CURRENT_COMPANY_INFO_PENDING";
85
+ };
86
+ export type FetchItemDataPending = {
87
+ type: "@@redux-paginator-immutable/FETCH_ITEM_DATA_PENDING";
88
+ meta: {
89
+ id: string;
90
+ };
91
+ };
92
+ export type FetchItemDataRejected = {
93
+ type: "@@redux-paginator-immutable/FETCH_ITEM_DATA_REJECTED";
94
+ meta: {
95
+ id: string;
96
+ };
97
+ };
98
+ export type FetchItemDataFulFilled = {
99
+ type: "@@redux-paginator-immutable/FETCH_ITEM_DATA_FULFILLED";
100
+ payload: {
101
+ Data: any;
102
+ };
103
+ meta: {
104
+ id: string;
105
+ };
106
+ };
107
+ export type Action = RequestPageAction | ReceivePageAction | ResetViewAction | ChangeViewAction | ClearDataAction | FetchCurrentCompanyInfoPending | FetchItemDataPending | FetchItemDataRejected | FetchItemDataFulFilled;
package/lib/types.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redux-paginator-immutable",
3
- "version": "17.0.46",
3
+ "version": "17.0.48",
4
4
  "types": "./lib/index.d.ts",
5
5
  "description": "redux-paginator-immutable helps you deal with paginated API by composing your existing reducers",
6
6
  "main": "./lib/index.js",
File without changes