jp.ui.app.toolkit 1.0.50 → 1.0.51
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/dist/index.d.ts +256 -1177
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/app/dummy-application.d.ts +6 -0
- package/dist/src/data/hooks.d.ts +24 -2
- package/dist/src/data/middleware/index.d.ts +2 -1
- package/dist/src/data/middleware/one-table-tournament-status/one-table-tournament-status-screen-middleware.d.ts +1 -0
- package/dist/src/data/requests/index.d.ts +2 -0
- package/dist/src/data/requests/many-tables-tournament/index.d.ts +7 -0
- package/dist/src/data/requests/many-tables-tournament/many-tables-tournament-buy-ticket-request.d.ts +2 -0
- package/dist/src/data/requests/many-tables-tournament/many-tables-tournament-join-tournament-request.d.ts +2 -0
- package/dist/src/data/requests/many-tables-tournament/many-tables-tournament-leave-tournament-request.d.ts +2 -0
- package/dist/src/data/requests/many-tables-tournament/many-tables-tournament-move-on-the-table-request.d.ts +2 -0
- package/dist/src/data/requests/many-tables-tournament/many-tables-tournament-status-request.d.ts +3 -0
- package/dist/src/data/requests/many-tables-tournament/many-tables-tournament-table-list-request.d.ts +3 -0
- package/dist/src/data/requests/many-tables-tournament/many-tables-tournament-watch-the-table-request.d.ts +2 -0
- package/dist/src/data/requests/one-table-tournament/index.d.ts +5 -0
- package/dist/src/data/requests/one-table-tournament/one-table-tournament-join-tournament-request.d.ts +2 -0
- package/dist/src/data/requests/one-table-tournament/one-table-tournament-leave-tournament-request.d.ts +2 -0
- package/dist/src/data/requests/one-table-tournament/one-table-tournament-move-on-the-table-request.d.ts +2 -0
- package/dist/src/data/requests/one-table-tournament/one-table-tournament-status-request.d.ts +3 -0
- package/dist/src/data/requests/one-table-tournament/one-table-tournament-watch-the-table-request.d.ts +2 -0
- package/dist/src/data/slices/index.d.ts +79 -14
- package/dist/src/data/slices/many-tables-tournament-status-screen-slice.d.ts +31 -0
- package/dist/src/data/slices/many-tables-tournament-table-list-screen-slice.d.ts +31 -0
- package/dist/src/data/slices/menu-screen-slice.d.ts +4 -4
- package/dist/src/data/slices/one-table-tournament-status-screen-slice.d.ts +31 -0
- package/dist/src/data/slices/shop-screen-slice.d.ts +4 -4
- package/dist/src/data/slices/tables-screen-slice.d.ts +4 -4
- package/dist/src/data/slices/ws-connector-slice.d.ts +1 -1
- package/dist/src/data/store.d.ts +25 -1
- package/dist/src/screens/index.d.ts +3 -1
- package/dist/src/screens/many-tables-tournament-status/many-tables-tournament-status-screen.d.ts +2 -0
- package/dist/src/screens/many-tables-tournament-table-list/many-tables-tournament-table-list-screen.d.ts +2 -0
- package/dist/src/screens/one-table-tournament-status/one-table-tournament-status-screen.d.ts +2 -0
- package/dist/src/types/route.type.d.ts +1 -1
- package/dist/src/utils/config.d.ts +14 -2
- package/dist/src/utils/global-storage.enum.d.ts +14 -2
- package/dist/src/utils/ws-connector.d.ts +2 -2
- package/package.json +1 -1
- package/dist/src/app/poker-application.d.ts +0 -6
- package/dist/src/data/app-state.d.ts +0 -4
- package/dist/src/data/middleware/table/game-table-deactivate-screen-middleware.d.ts +0 -3
- package/dist/src/data/middleware/table/game-table-init-screen-middleware.d.ts +0 -3
- package/dist/src/data/middleware/table/game-table-screen-back-click-middleware.d.ts +0 -3
- package/dist/src/data/middleware/table/game-table-screen-move-button-click-middleware.d.ts +0 -3
- package/dist/src/data/middleware/ws/ws-connector-middleware.d.ts +0 -1
- package/dist/src/data/slices/game-table-screen-slice/actions/action-types.d.ts +0 -12
- package/dist/src/data/slices/game-table-screen-slice/actions/actions.d.ts +0 -24
- package/dist/src/data/slices/game-table-screen-slice/index.d.ts +0 -13
- package/dist/src/data/slices/game-table-screen-slice/reducer/reducer.d.ts +0 -9
- package/dist/src/data/slices/game-table-screen-slice/selectors/base-selectors.d.ts +0 -1296
- package/dist/src/data/slices/game-table-screen-slice/selectors/cards-selectors.d.ts +0 -901
- package/dist/src/screens/table/table-screen.d.ts +0 -6
- package/dist/src/utils/jp-client-logger.d.ts +0 -20
|
@@ -4,9 +4,11 @@ import { shopScreenSlice } from './shop-screen-slice';
|
|
|
4
4
|
import { tablesScreenSlice } from './tables-screen-slice';
|
|
5
5
|
import { raiseBottomSheetBlockSlice } from './raise-bottom-sheet-block-slice';
|
|
6
6
|
import { reactionBottomSheetBlockSlice } from './reaction-bottom-sheet-block-slice';
|
|
7
|
+
import { oneTableTournamentStatusScreenSlice } from './one-table-tournament-status-screen-slice';
|
|
8
|
+
import { manyTablesTournamentStatusScreenSlice } from './many-tables-tournament-status-screen-slice';
|
|
9
|
+
import { manyTablesTournamentTableListScreenSlice } from './many-tables-tournament-table-list-screen-slice';
|
|
7
10
|
import { wsConnectorSlice } from './ws-connector-slice';
|
|
8
|
-
|
|
9
|
-
export { appSlice, menuScreenSlice, shopScreenSlice, tablesScreenSlice, raiseBottomSheetBlockSlice, reactionBottomSheetBlockSlice, wsConnectorSlice, gameTableScreenSlice, };
|
|
11
|
+
export { appSlice, menuScreenSlice, shopScreenSlice, tablesScreenSlice, raiseBottomSheetBlockSlice, reactionBottomSheetBlockSlice, oneTableTournamentStatusScreenSlice, manyTablesTournamentStatusScreenSlice, manyTablesTournamentTableListScreenSlice, wsConnectorSlice, };
|
|
10
12
|
export declare function getBaseSlices(): (import("@reduxjs/toolkit").Slice<import("./app-slice").AppSlice, {
|
|
11
13
|
initApp: (state: import("./app-slice").AppSlice) => {
|
|
12
14
|
isLoading: boolean;
|
|
@@ -35,13 +37,13 @@ export declare function getBaseSlices(): (import("@reduxjs/toolkit").Slice<impor
|
|
|
35
37
|
}> | import("@reduxjs/toolkit").Slice<import("./menu-screen-slice").MenuScreenState, {
|
|
36
38
|
start: (state: import("./menu-screen-slice").MenuScreenState) => {
|
|
37
39
|
isLoading: boolean;
|
|
38
|
-
isError:
|
|
39
|
-
data:
|
|
40
|
+
isError: boolean;
|
|
41
|
+
data: undefined;
|
|
40
42
|
};
|
|
41
43
|
error: (state: import("./menu-screen-slice").MenuScreenState) => {
|
|
42
44
|
isLoading: boolean;
|
|
43
45
|
isError: boolean;
|
|
44
|
-
data
|
|
46
|
+
data: import("jp.common.view").AppScreenTypes | undefined;
|
|
45
47
|
};
|
|
46
48
|
success: (state: import("./menu-screen-slice").MenuScreenState, action: import("@reduxjs/toolkit").PayloadAction<import("jp.common.view").AppScreenTypes | undefined>) => {
|
|
47
49
|
isLoading: boolean;
|
|
@@ -57,13 +59,13 @@ export declare function getBaseSlices(): (import("@reduxjs/toolkit").Slice<impor
|
|
|
57
59
|
}> | import("@reduxjs/toolkit").Slice<import("./shop-screen-slice").ShopScreenState, {
|
|
58
60
|
start: (state: import("./shop-screen-slice").ShopScreenState) => {
|
|
59
61
|
isLoading: boolean;
|
|
60
|
-
isError:
|
|
61
|
-
data:
|
|
62
|
+
isError: boolean;
|
|
63
|
+
data: undefined;
|
|
62
64
|
};
|
|
63
65
|
error: (state: import("./shop-screen-slice").ShopScreenState) => {
|
|
64
66
|
isLoading: boolean;
|
|
65
67
|
isError: boolean;
|
|
66
|
-
data
|
|
68
|
+
data: import("jp.common.view").AppScreenTypes | undefined;
|
|
67
69
|
};
|
|
68
70
|
success: (state: import("./shop-screen-slice").ShopScreenState, action: import("@reduxjs/toolkit").PayloadAction<import("jp.common.view").AppScreenTypes | undefined>) => {
|
|
69
71
|
isLoading: boolean;
|
|
@@ -78,13 +80,13 @@ export declare function getBaseSlices(): (import("@reduxjs/toolkit").Slice<impor
|
|
|
78
80
|
}> | import("@reduxjs/toolkit").Slice<import("./tables-screen-slice").TablesScreenState, {
|
|
79
81
|
start: (state: import("./tables-screen-slice").TablesScreenState) => {
|
|
80
82
|
isLoading: boolean;
|
|
81
|
-
isError:
|
|
82
|
-
data:
|
|
83
|
+
isError: boolean;
|
|
84
|
+
data: undefined;
|
|
83
85
|
};
|
|
84
86
|
error: (state: import("./tables-screen-slice").TablesScreenState) => {
|
|
85
87
|
isLoading: boolean;
|
|
86
88
|
isError: boolean;
|
|
87
|
-
data?: import("jp.common.view").AppScreenTypes;
|
|
89
|
+
data?: import("jp.common.view").AppScreenTypes | undefined;
|
|
88
90
|
};
|
|
89
91
|
success: (state: import("./tables-screen-slice").TablesScreenState, action: import("@reduxjs/toolkit").PayloadAction<import("jp.common.view").AppScreenTypes | undefined>) => {
|
|
90
92
|
isLoading: boolean;
|
|
@@ -115,6 +117,69 @@ export declare function getBaseSlices(): (import("@reduxjs/toolkit").Slice<impor
|
|
|
115
117
|
};
|
|
116
118
|
}, "reactionBottomSheetBlockSlice", "reactionBottomSheetBlockSlice", {
|
|
117
119
|
getIsOpen: (sliceState: import("./reaction-bottom-sheet-block-slice").ReactionBottomSheetBlockState) => boolean;
|
|
120
|
+
}> | import("@reduxjs/toolkit").Slice<import("./one-table-tournament-status-screen-slice").OneTableTournamentStatusScreenState, {
|
|
121
|
+
start: (state: import("./one-table-tournament-status-screen-slice").OneTableTournamentStatusScreenState) => {
|
|
122
|
+
isLoading: boolean;
|
|
123
|
+
isError: boolean;
|
|
124
|
+
data: undefined;
|
|
125
|
+
};
|
|
126
|
+
error: (state: import("./one-table-tournament-status-screen-slice").OneTableTournamentStatusScreenState) => {
|
|
127
|
+
isLoading: boolean;
|
|
128
|
+
isError: boolean;
|
|
129
|
+
data: import("jp.common.view").AppScreenTypes | undefined;
|
|
130
|
+
};
|
|
131
|
+
success: (state: import("./one-table-tournament-status-screen-slice").OneTableTournamentStatusScreenState, action: import("@reduxjs/toolkit").PayloadAction<import("jp.common.view").AppScreenTypes | undefined>) => {
|
|
132
|
+
isLoading: boolean;
|
|
133
|
+
isError: boolean;
|
|
134
|
+
data: import("jp.common.view").AppScreenTypes | undefined;
|
|
135
|
+
};
|
|
136
|
+
init: (state: Map<import("immer").Draft<K>, import("immer").Draft<V>>) => Map<import("immer").Draft<K>, import("immer").Draft<V>>;
|
|
137
|
+
}, "oneTableTournamentStatusScreenSlice", "oneTableTournamentStatusScreenSlice", {
|
|
138
|
+
getScreen: (sliceState: import("./one-table-tournament-status-screen-slice").OneTableTournamentStatusScreenState) => import("jp.common.view").AppScreenTypes | undefined;
|
|
139
|
+
isLoading: (sliceState: import("./one-table-tournament-status-screen-slice").OneTableTournamentStatusScreenState) => boolean;
|
|
140
|
+
isError: (sliceState: import("./one-table-tournament-status-screen-slice").OneTableTournamentStatusScreenState) => boolean;
|
|
141
|
+
}> | import("@reduxjs/toolkit").Slice<import("./many-tables-tournament-status-screen-slice").ManyTablesTournamentStatusScreenState, {
|
|
142
|
+
start: (state: import("./many-tables-tournament-status-screen-slice").ManyTablesTournamentStatusScreenState) => {
|
|
143
|
+
isLoading: boolean;
|
|
144
|
+
isError: boolean;
|
|
145
|
+
data: undefined;
|
|
146
|
+
};
|
|
147
|
+
error: (state: import("./many-tables-tournament-status-screen-slice").ManyTablesTournamentStatusScreenState) => {
|
|
148
|
+
isLoading: boolean;
|
|
149
|
+
isError: boolean;
|
|
150
|
+
data: import("jp.common.view").AppScreenTypes | undefined;
|
|
151
|
+
};
|
|
152
|
+
success: (state: import("./many-tables-tournament-status-screen-slice").ManyTablesTournamentStatusScreenState, action: import("@reduxjs/toolkit").PayloadAction<import("jp.common.view").AppScreenTypes | undefined>) => {
|
|
153
|
+
isLoading: boolean;
|
|
154
|
+
isError: boolean;
|
|
155
|
+
data: import("jp.common.view").AppScreenTypes | undefined;
|
|
156
|
+
};
|
|
157
|
+
init: (state: Map<import("immer").Draft<K>, import("immer").Draft<V>>) => Map<import("immer").Draft<K>, import("immer").Draft<V>>;
|
|
158
|
+
}, "manyTablesTournamentStatusScreenSlice", "manyTablesTournamentStatusScreenSlice", {
|
|
159
|
+
getScreen: (sliceState: import("./many-tables-tournament-status-screen-slice").ManyTablesTournamentStatusScreenState) => import("jp.common.view").AppScreenTypes | undefined;
|
|
160
|
+
isLoading: (sliceState: import("./many-tables-tournament-status-screen-slice").ManyTablesTournamentStatusScreenState) => boolean;
|
|
161
|
+
isError: (sliceState: import("./many-tables-tournament-status-screen-slice").ManyTablesTournamentStatusScreenState) => boolean;
|
|
162
|
+
}> | import("@reduxjs/toolkit").Slice<import("./many-tables-tournament-table-list-screen-slice").ManyTablesTournamentTableListScreenState, {
|
|
163
|
+
start: (state: import("./many-tables-tournament-table-list-screen-slice").ManyTablesTournamentTableListScreenState) => {
|
|
164
|
+
isLoading: boolean;
|
|
165
|
+
isError: boolean;
|
|
166
|
+
data: undefined;
|
|
167
|
+
};
|
|
168
|
+
error: (state: import("./many-tables-tournament-table-list-screen-slice").ManyTablesTournamentTableListScreenState) => {
|
|
169
|
+
isLoading: boolean;
|
|
170
|
+
isError: boolean;
|
|
171
|
+
data: import("jp.common.view").AppScreenTypes | undefined;
|
|
172
|
+
};
|
|
173
|
+
success: (state: import("./many-tables-tournament-table-list-screen-slice").ManyTablesTournamentTableListScreenState, action: import("@reduxjs/toolkit").PayloadAction<import("jp.common.view").AppScreenTypes | undefined>) => {
|
|
174
|
+
isLoading: boolean;
|
|
175
|
+
isError: boolean;
|
|
176
|
+
data: import("jp.common.view").AppScreenTypes | undefined;
|
|
177
|
+
};
|
|
178
|
+
init: (state: Map<import("immer").Draft<K>, import("immer").Draft<V>>) => Map<import("immer").Draft<K>, import("immer").Draft<V>>;
|
|
179
|
+
}, "manyTablesTournamentTableListScreenSlice", "manyTablesTournamentTableListScreenSlice", {
|
|
180
|
+
getScreen: (sliceState: import("./many-tables-tournament-table-list-screen-slice").ManyTablesTournamentTableListScreenState) => import("jp.common.view").AppScreenTypes | undefined;
|
|
181
|
+
isLoading: (sliceState: import("./many-tables-tournament-table-list-screen-slice").ManyTablesTournamentTableListScreenState) => boolean;
|
|
182
|
+
isError: (sliceState: import("./many-tables-tournament-table-list-screen-slice").ManyTablesTournamentTableListScreenState) => boolean;
|
|
118
183
|
}> | import("@reduxjs/toolkit").Slice<import("./ws-connector-slice").WsConnectorState, {
|
|
119
184
|
connect: (state: import("./ws-connector-slice").WsConnectorState) => {
|
|
120
185
|
isConnected: boolean;
|
|
@@ -140,8 +205,8 @@ export declare function getBaseSlicesReducer(): {
|
|
|
140
205
|
tablesScreenSlice: import("redux").Reducer<import("./tables-screen-slice").TablesScreenState>;
|
|
141
206
|
raiseBottomSheetBlockSlice: import("redux").Reducer<import("./raise-bottom-sheet-block-slice").RaiseBottomSheetBlockState>;
|
|
142
207
|
reactionBottomSheetBlockSlice: import("redux").Reducer<import("./reaction-bottom-sheet-block-slice").ReactionBottomSheetBlockState>;
|
|
208
|
+
oneTableTournamentStatusScreenSlice: import("redux").Reducer<import("./one-table-tournament-status-screen-slice").OneTableTournamentStatusScreenState>;
|
|
209
|
+
manyTablesTournamentStatusScreenSlice: import("redux").Reducer<import("./many-tables-tournament-status-screen-slice").ManyTablesTournamentStatusScreenState>;
|
|
210
|
+
manyTablesTournamentTableListScreenSlice: import("redux").Reducer<import("./many-tables-tournament-table-list-screen-slice").ManyTablesTournamentTableListScreenState>;
|
|
143
211
|
wsConnectorSlice: import("redux").Reducer<import("./ws-connector-slice").WsConnectorState>;
|
|
144
|
-
gameTableScreenSlice: import("redux").Reducer<import("./game-table-screen-slice/reducer/reducer").IBaseTableScreenState> & {
|
|
145
|
-
getInitialState: () => import("./game-table-screen-slice/reducer/reducer").IBaseTableScreenState;
|
|
146
|
-
};
|
|
147
212
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { AppScreenTypes } from 'jp.common.view';
|
|
3
|
+
export interface ManyTablesTournamentStatusScreenState {
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
data: AppScreenTypes | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare const manyTablesTournamentStatusScreenSlice: import("@reduxjs/toolkit").Slice<ManyTablesTournamentStatusScreenState, {
|
|
9
|
+
start: (state: ManyTablesTournamentStatusScreenState) => {
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
isError: boolean;
|
|
12
|
+
data: undefined;
|
|
13
|
+
};
|
|
14
|
+
error: (state: ManyTablesTournamentStatusScreenState) => {
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
isError: boolean;
|
|
17
|
+
data: AppScreenTypes | undefined;
|
|
18
|
+
};
|
|
19
|
+
success: (state: ManyTablesTournamentStatusScreenState, action: PayloadAction<AppScreenTypes | undefined>) => {
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
isError: boolean;
|
|
22
|
+
data: AppScreenTypes | undefined;
|
|
23
|
+
};
|
|
24
|
+
init: (state: Map<import("immer").Draft<K>, import("immer").Draft<V>>) => Map<import("immer").Draft<K>, import("immer").Draft<V>>;
|
|
25
|
+
}, "manyTablesTournamentStatusScreenSlice", "manyTablesTournamentStatusScreenSlice", {
|
|
26
|
+
getScreen: (sliceState: ManyTablesTournamentStatusScreenState) => AppScreenTypes | undefined;
|
|
27
|
+
isLoading: (sliceState: ManyTablesTournamentStatusScreenState) => boolean;
|
|
28
|
+
isError: (sliceState: ManyTablesTournamentStatusScreenState) => boolean;
|
|
29
|
+
}>;
|
|
30
|
+
declare const _default: import("redux").Reducer<ManyTablesTournamentStatusScreenState>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { AppScreenTypes } from 'jp.common.view';
|
|
3
|
+
export interface ManyTablesTournamentTableListScreenState {
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
data: AppScreenTypes | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare const manyTablesTournamentTableListScreenSlice: import("@reduxjs/toolkit").Slice<ManyTablesTournamentTableListScreenState, {
|
|
9
|
+
start: (state: ManyTablesTournamentTableListScreenState) => {
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
isError: boolean;
|
|
12
|
+
data: undefined;
|
|
13
|
+
};
|
|
14
|
+
error: (state: ManyTablesTournamentTableListScreenState) => {
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
isError: boolean;
|
|
17
|
+
data: AppScreenTypes | undefined;
|
|
18
|
+
};
|
|
19
|
+
success: (state: ManyTablesTournamentTableListScreenState, action: PayloadAction<AppScreenTypes | undefined>) => {
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
isError: boolean;
|
|
22
|
+
data: AppScreenTypes | undefined;
|
|
23
|
+
};
|
|
24
|
+
init: (state: Map<import("immer").Draft<K>, import("immer").Draft<V>>) => Map<import("immer").Draft<K>, import("immer").Draft<V>>;
|
|
25
|
+
}, "manyTablesTournamentTableListScreenSlice", "manyTablesTournamentTableListScreenSlice", {
|
|
26
|
+
getScreen: (sliceState: ManyTablesTournamentTableListScreenState) => AppScreenTypes | undefined;
|
|
27
|
+
isLoading: (sliceState: ManyTablesTournamentTableListScreenState) => boolean;
|
|
28
|
+
isError: (sliceState: ManyTablesTournamentTableListScreenState) => boolean;
|
|
29
|
+
}>;
|
|
30
|
+
declare const _default: import("redux").Reducer<ManyTablesTournamentTableListScreenState>;
|
|
31
|
+
export default _default;
|
|
@@ -3,18 +3,18 @@ import type { AppScreenSectionListItem, AppScreenTypes } from 'jp.common.view';
|
|
|
3
3
|
export interface MenuScreenState {
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
isError: boolean;
|
|
6
|
-
data
|
|
6
|
+
data: AppScreenTypes | undefined;
|
|
7
7
|
}
|
|
8
8
|
export declare const menuScreenSlice: import("@reduxjs/toolkit").Slice<MenuScreenState, {
|
|
9
9
|
start: (state: MenuScreenState) => {
|
|
10
10
|
isLoading: boolean;
|
|
11
|
-
isError:
|
|
12
|
-
data:
|
|
11
|
+
isError: boolean;
|
|
12
|
+
data: undefined;
|
|
13
13
|
};
|
|
14
14
|
error: (state: MenuScreenState) => {
|
|
15
15
|
isLoading: boolean;
|
|
16
16
|
isError: boolean;
|
|
17
|
-
data
|
|
17
|
+
data: AppScreenTypes | undefined;
|
|
18
18
|
};
|
|
19
19
|
success: (state: MenuScreenState, action: PayloadAction<AppScreenTypes | undefined>) => {
|
|
20
20
|
isLoading: boolean;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { AppScreenTypes } from 'jp.common.view';
|
|
3
|
+
export interface OneTableTournamentStatusScreenState {
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
data: AppScreenTypes | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare const oneTableTournamentStatusScreenSlice: import("@reduxjs/toolkit").Slice<OneTableTournamentStatusScreenState, {
|
|
9
|
+
start: (state: OneTableTournamentStatusScreenState) => {
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
isError: boolean;
|
|
12
|
+
data: undefined;
|
|
13
|
+
};
|
|
14
|
+
error: (state: OneTableTournamentStatusScreenState) => {
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
isError: boolean;
|
|
17
|
+
data: AppScreenTypes | undefined;
|
|
18
|
+
};
|
|
19
|
+
success: (state: OneTableTournamentStatusScreenState, action: PayloadAction<AppScreenTypes | undefined>) => {
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
isError: boolean;
|
|
22
|
+
data: AppScreenTypes | undefined;
|
|
23
|
+
};
|
|
24
|
+
init: (state: Map<import("immer").Draft<K>, import("immer").Draft<V>>) => Map<import("immer").Draft<K>, import("immer").Draft<V>>;
|
|
25
|
+
}, "oneTableTournamentStatusScreenSlice", "oneTableTournamentStatusScreenSlice", {
|
|
26
|
+
getScreen: (sliceState: OneTableTournamentStatusScreenState) => AppScreenTypes | undefined;
|
|
27
|
+
isLoading: (sliceState: OneTableTournamentStatusScreenState) => boolean;
|
|
28
|
+
isError: (sliceState: OneTableTournamentStatusScreenState) => boolean;
|
|
29
|
+
}>;
|
|
30
|
+
declare const _default: import("redux").Reducer<OneTableTournamentStatusScreenState>;
|
|
31
|
+
export default _default;
|
|
@@ -3,18 +3,18 @@ import type { AppScreenTypes } from 'jp.common.view';
|
|
|
3
3
|
export interface ShopScreenState {
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
isError: boolean;
|
|
6
|
-
data
|
|
6
|
+
data: AppScreenTypes | undefined;
|
|
7
7
|
}
|
|
8
8
|
export declare const shopScreenSlice: import("@reduxjs/toolkit").Slice<ShopScreenState, {
|
|
9
9
|
start: (state: ShopScreenState) => {
|
|
10
10
|
isLoading: boolean;
|
|
11
|
-
isError:
|
|
12
|
-
data:
|
|
11
|
+
isError: boolean;
|
|
12
|
+
data: undefined;
|
|
13
13
|
};
|
|
14
14
|
error: (state: ShopScreenState) => {
|
|
15
15
|
isLoading: boolean;
|
|
16
16
|
isError: boolean;
|
|
17
|
-
data
|
|
17
|
+
data: AppScreenTypes | undefined;
|
|
18
18
|
};
|
|
19
19
|
success: (state: ShopScreenState, action: PayloadAction<AppScreenTypes | undefined>) => {
|
|
20
20
|
isLoading: boolean;
|
|
@@ -3,18 +3,18 @@ import type { AppScreenSectionListItem, AppScreenTypes } from 'jp.common.view';
|
|
|
3
3
|
export interface TablesScreenState {
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
isError: boolean;
|
|
6
|
-
data?: AppScreenTypes;
|
|
6
|
+
data?: AppScreenTypes | undefined;
|
|
7
7
|
}
|
|
8
8
|
export declare const tablesScreenSlice: import("@reduxjs/toolkit").Slice<TablesScreenState, {
|
|
9
9
|
start: (state: TablesScreenState) => {
|
|
10
10
|
isLoading: boolean;
|
|
11
|
-
isError:
|
|
12
|
-
data:
|
|
11
|
+
isError: boolean;
|
|
12
|
+
data: undefined;
|
|
13
13
|
};
|
|
14
14
|
error: (state: TablesScreenState) => {
|
|
15
15
|
isLoading: boolean;
|
|
16
16
|
isError: boolean;
|
|
17
|
-
data?: AppScreenTypes;
|
|
17
|
+
data?: AppScreenTypes | undefined;
|
|
18
18
|
};
|
|
19
19
|
success: (state: TablesScreenState, action: PayloadAction<AppScreenTypes | undefined>) => {
|
|
20
20
|
isLoading: boolean;
|
package/dist/src/data/store.d.ts
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
export declare const store:
|
|
1
|
+
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
2
|
+
appSlice: import("./slices/app-slice").AppSlice;
|
|
3
|
+
menuScreenSlice: import("./slices/menu-screen-slice").MenuScreenState;
|
|
4
|
+
shopScreenSlice: import("./slices/shop-screen-slice").ShopScreenState;
|
|
5
|
+
tablesScreenSlice: import("./slices/tables-screen-slice").TablesScreenState;
|
|
6
|
+
raiseBottomSheetBlockSlice: import("./slices/raise-bottom-sheet-block-slice").RaiseBottomSheetBlockState;
|
|
7
|
+
reactionBottomSheetBlockSlice: import("./slices/reaction-bottom-sheet-block-slice").ReactionBottomSheetBlockState;
|
|
8
|
+
oneTableTournamentStatusScreenSlice: import("./slices/one-table-tournament-status-screen-slice").OneTableTournamentStatusScreenState;
|
|
9
|
+
manyTablesTournamentStatusScreenSlice: import("./slices/many-tables-tournament-status-screen-slice").ManyTablesTournamentStatusScreenState;
|
|
10
|
+
manyTablesTournamentTableListScreenSlice: import("./slices/many-tables-tournament-table-list-screen-slice").ManyTablesTournamentTableListScreenState;
|
|
11
|
+
wsConnectorSlice: import("./slices/ws-connector-slice").WsConnectorState;
|
|
12
|
+
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
13
|
+
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
14
|
+
appSlice: import("./slices/app-slice").AppSlice;
|
|
15
|
+
menuScreenSlice: import("./slices/menu-screen-slice").MenuScreenState;
|
|
16
|
+
shopScreenSlice: import("./slices/shop-screen-slice").ShopScreenState;
|
|
17
|
+
tablesScreenSlice: import("./slices/tables-screen-slice").TablesScreenState;
|
|
18
|
+
raiseBottomSheetBlockSlice: import("./slices/raise-bottom-sheet-block-slice").RaiseBottomSheetBlockState;
|
|
19
|
+
reactionBottomSheetBlockSlice: import("./slices/reaction-bottom-sheet-block-slice").ReactionBottomSheetBlockState;
|
|
20
|
+
oneTableTournamentStatusScreenSlice: import("./slices/one-table-tournament-status-screen-slice").OneTableTournamentStatusScreenState;
|
|
21
|
+
manyTablesTournamentStatusScreenSlice: import("./slices/many-tables-tournament-status-screen-slice").ManyTablesTournamentStatusScreenState;
|
|
22
|
+
manyTablesTournamentTableListScreenSlice: import("./slices/many-tables-tournament-table-list-screen-slice").ManyTablesTournamentTableListScreenState;
|
|
23
|
+
wsConnectorSlice: import("./slices/ws-connector-slice").WsConnectorState;
|
|
24
|
+
}, undefined, import("redux").UnknownAction>;
|
|
25
|
+
}>, import("redux").StoreEnhancer]>>;
|
|
2
26
|
export type RootState = ReturnType<typeof store.getState>;
|
|
3
27
|
export type AppDispatch = typeof store.dispatch;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { MenuScreen } from './menu/menu-screen';
|
|
2
2
|
export { ShopScreen } from './shop/shop-screen';
|
|
3
3
|
export { TablesScreen } from './tables/tables-screen';
|
|
4
|
-
export {
|
|
4
|
+
export { OneTableTournamentStatusScreen } from './one-table-tournament-status/one-table-tournament-status-screen';
|
|
5
|
+
export { ManyTablesTournamentStatusScreen } from './many-tables-tournament-status/many-tables-tournament-status-screen';
|
|
6
|
+
export { ManyTablesTournamentTableListScreen } from './many-tables-tournament-table-list/many-tables-tournament-table-list-screen';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
export declare function getClientVersion(): any;
|
|
2
|
+
export declare function isAppDevelopment(): boolean;
|
|
1
3
|
export declare function getClientBaseHost(): string;
|
|
2
4
|
export declare function getClientGame(): string;
|
|
3
5
|
export declare function getClientChannel(): string;
|
|
4
6
|
export declare function getClientAppEnv(): string;
|
|
5
|
-
export declare function isAppDevelopment(): boolean;
|
|
6
7
|
export declare function getClientAuthVKUrl(): string;
|
|
7
8
|
export declare function getClientAuthYAUrl(): string;
|
|
8
9
|
export declare function getClientAuthWEBUrl(): string;
|
|
@@ -15,4 +16,15 @@ export declare function getClientExitTheTableUrl(): string;
|
|
|
15
16
|
export declare function getClientMoveOnTheTableUrl(): string;
|
|
16
17
|
export declare function getClientPlayerCheckStateUrl(): string;
|
|
17
18
|
export declare function getClientSupportLogUrl(): string;
|
|
18
|
-
export declare function
|
|
19
|
+
export declare function getClientOneTableTournamentStatusUrl(): string;
|
|
20
|
+
export declare function getClientOneTableTournamentWatchTheTableUrl(): string;
|
|
21
|
+
export declare function getClientOneTableTournamentMoveOnTheTableUrl(): string;
|
|
22
|
+
export declare function getClientOneTableTournamentJoinTournamentUrl(): string;
|
|
23
|
+
export declare function getClientOneTableTournamentLeaveTournamentUrl(): string;
|
|
24
|
+
export declare function getClientManyTablesTournamentStatusUrl(): string;
|
|
25
|
+
export declare function getClientManyTablesTournamentTableListUrl(): string;
|
|
26
|
+
export declare function getClientManyTablesTournamentWatchTheTableUrl(): string;
|
|
27
|
+
export declare function getClientManyTablesTournamentMoveOnTheTableUrl(): string;
|
|
28
|
+
export declare function getClientManyTablesTournamentJoinTournamentUrl(): string;
|
|
29
|
+
export declare function getClientManyTablesTournamentLeaveTournamentUrl(): string;
|
|
30
|
+
export declare function getClientManyTablesTournamentBuyTickettUrl(): string;
|
|
@@ -16,10 +16,22 @@ export declare enum GlobalStorageEnum {
|
|
|
16
16
|
CLIENT_MENU_URL = "CLIENT_MENU_URL",
|
|
17
17
|
CLIENT_SHOP_URL = "CLIENT_SHOP_URL",
|
|
18
18
|
CLIENT_TABLES_URL = "CLIENT_TABLES_URL",
|
|
19
|
+
CLIENT_PLAYER_CHECK_STATE_URL = "CLIENT_PLAYER_CHECK_STATE_URL",
|
|
20
|
+
CLIENT_SUPPORT_LOG_URL = "CLIENT_SUPPORT_LOG_URL",
|
|
19
21
|
CLIENT_WATCH_THE_TABLE_URL = "CLIENT_WATCH_THE_TABLE_URL",
|
|
20
22
|
CLIENT_ENTER_THE_TABLE_URL = "CLIENT_ENTER_THE_TABLE_URL",
|
|
21
23
|
CLIENT_EXIT_THE_TABLE_URL = "CLIENT_EXIT_THE_TABLE_URL",
|
|
22
24
|
CLIENT_MOVE_ON_THE_TABLE_URL = "CLIENT_MOVE_ON_THE_TABLE_URL",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
CLIENT_ONE_TABLE_TOURNAMENT_STATUS_URL = "CLIENT_ONE_TABLE_TOURNAMENT_STATUS_URL",
|
|
26
|
+
CLIENT_ONE_TABLE_TOURNAMENT_WATCH_THE_TABLE_URL = "CLIENT_ONE_TABLE_TOURNAMENT_WATCH_THE_TABLE_URL",
|
|
27
|
+
CLIENT_ONE_TABLE_TOURNAMENT_MOVE_ON_THE_TABLE_URL = "CLIENT_ONE_TABLE_TOURNAMENT_MOVE_ON_THE_TABLE_URL",
|
|
28
|
+
CLIENT_ONE_TABLE_TOURNAMENT_JOIN_TOURNAMENT_URL = "CLIENT_ONE_TABLE_TOURNAMENT_JOIN_TOURNAMENT_URL",
|
|
29
|
+
CLIENT_ONE_TABLE_TOURNAMENT_LEAVE_TOURNAMENT_URL = "CLIENT_ONE_TABLE_TOURNAMENT_LEAVE_TOURNAMENT_URL",
|
|
30
|
+
CLIENT_MANY_TABLES_TOURNAMENT_STATUS_URL = "CLIENT_MANY_TABLES_TOURNAMENT_STATUS_URL",
|
|
31
|
+
CLIENT_MANY_TABLES_TOURNAMENT_TABLE_LIST_URL = "CLIENT_MANY_TABLES_TOURNAMENT_TABLE_LIST_URL",
|
|
32
|
+
CLIENT_MANY_TABLES_TOURNAMENT_WATCH_THE_TABLE_URL = "CLIENT_MANY_TABLES_TOURNAMENT_WATCH_THE_TABLE_URL",
|
|
33
|
+
CLIENT_MANY_TABLES_TOURNAMENT_MOVE_ON_THE_TABLE_URL = "CLIENT_MANY_TABLES_TOURNAMENT_MOVE_ON_THE_TABLE_URL",
|
|
34
|
+
CLIENT_MANY_TABLES_TOURNAMENT_JOIN_TOURNAMENT_URL = "CLIENT_MANY_TABLES_TOURNAMENT_JOIN_TOURNAMENT_URL",
|
|
35
|
+
CLIENT_MANY_TABLES_TOURNAMENT_LEAVE_TOURNAMENT_URL = "CLIENT_MANY_TABLES_TOURNAMENT_LEAVE_TOURNAMENT_URL",
|
|
36
|
+
CLIENT_MANY_TABLES_TOURNAMENT_BUY_TICKET_URL = "CLIENT_MANY_TABLES_TOURNAMENT_BUY_TICKET_URL"
|
|
25
37
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ListenerEffectAPI } from '@reduxjs/toolkit';
|
|
1
|
+
import { type ListenerEffectAPI } from '@reduxjs/toolkit';
|
|
2
2
|
export declare class WSConnector {
|
|
3
3
|
private _socket;
|
|
4
4
|
private _listenerApi;
|
|
5
5
|
private _authToken;
|
|
6
6
|
private static _instance;
|
|
7
7
|
static getInstance(): WSConnector;
|
|
8
|
-
connect(address: string, authToken:
|
|
8
|
+
connect(address: string, authToken: string, listenerApi: ListenerEffectAPI<any, any>): void;
|
|
9
9
|
sendMessage(message: object): void;
|
|
10
10
|
private _openConnectionHandler;
|
|
11
11
|
private _closeConnectionHandler;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const wsConnectorListenerMiddleware: import("@reduxjs/toolkit").ListenerMiddlewareInstance<unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum TableScreenSliceActionTypes {
|
|
2
|
-
INIT = "@tableScreenSlice/init",
|
|
3
|
-
DEACTIVATE = "@tableScreenSlice/deactivate",
|
|
4
|
-
BACK_CLICK = "@tableScreenSlice/backClick",
|
|
5
|
-
START = "@tableScreenSlice/start",
|
|
6
|
-
SUCCESS = "@tableScreenSlice/success",
|
|
7
|
-
ERROR = "@tableScreenSlice/error",
|
|
8
|
-
MOVE_BUTTON_CLICK = "@tableScreenSlice/moveButtonClick",
|
|
9
|
-
SET_WS_TABLE_STATE = "@tableScreenSlice/setWsTableState",
|
|
10
|
-
DECREMENT_PLAYERS_TURN_TIMEOUT_TIMER = "@tableScreenSlice/decrementPlayersTurnTimeoutTimer",
|
|
11
|
-
DECREMENT_RESTART_TIMEOUT_TIMER = "@tableScreenSlice/decrementRestartTimeoutTimer"
|
|
12
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { IBaseTableGameState } from 'jp.common.models';
|
|
2
|
-
import { TableScreenSliceActionTypes } from './action-types';
|
|
3
|
-
export declare const start: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.START>;
|
|
4
|
-
export declare const success: import("@reduxjs/toolkit").ActionCreatorWithPayload<IBaseTableGameState, string>;
|
|
5
|
-
export declare const error: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.ERROR>;
|
|
6
|
-
export declare const init: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.INIT>;
|
|
7
|
-
export declare const deactivate: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.DEACTIVATE>;
|
|
8
|
-
export declare const backClick: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.BACK_CLICK>;
|
|
9
|
-
export declare const moveButtonClick: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>;
|
|
10
|
-
export declare const setWsTableState: import("@reduxjs/toolkit").ActionCreatorWithPayload<IBaseTableGameState, string>;
|
|
11
|
-
export declare const decrementPlayersTurnTimeoutTimer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.DECREMENT_PLAYERS_TURN_TIMEOUT_TIMER>;
|
|
12
|
-
export declare const decrementRestartTimeoutTimer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.DECREMENT_RESTART_TIMEOUT_TIMER>;
|
|
13
|
-
export declare const actions: {
|
|
14
|
-
start: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.START>;
|
|
15
|
-
success: import("@reduxjs/toolkit").ActionCreatorWithPayload<IBaseTableGameState, string>;
|
|
16
|
-
error: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.ERROR>;
|
|
17
|
-
init: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.INIT>;
|
|
18
|
-
deactivate: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.DEACTIVATE>;
|
|
19
|
-
backClick: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.BACK_CLICK>;
|
|
20
|
-
moveButtonClick: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>;
|
|
21
|
-
setWsTableState: import("@reduxjs/toolkit").ActionCreatorWithPayload<IBaseTableGameState, string>;
|
|
22
|
-
decrementPlayersTurnTimeoutTimer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.DECREMENT_PLAYERS_TURN_TIMEOUT_TIMER>;
|
|
23
|
-
decrementRestartTimeoutTimer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<TableScreenSliceActionTypes.DECREMENT_RESTART_TIMEOUT_TIMER>;
|
|
24
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { actions } from './actions/actions';
|
|
2
|
-
import { reducer } from './reducer/reducer';
|
|
3
|
-
import { baseSelectors } from './selectors/base-selectors';
|
|
4
|
-
import { cardsSelectors } from './selectors/cards-selectors';
|
|
5
|
-
export type GameTableScreenSliceType = {
|
|
6
|
-
actions: typeof actions;
|
|
7
|
-
reducer: typeof reducer;
|
|
8
|
-
selectors: {
|
|
9
|
-
base: typeof baseSelectors;
|
|
10
|
-
cards: typeof cardsSelectors;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare const gameTableScreenSlice: GameTableScreenSliceType;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IBaseTableGameState } from 'jp.common.models';
|
|
2
|
-
export interface IBaseTableScreenState {
|
|
3
|
-
isLoading: boolean;
|
|
4
|
-
isError: boolean;
|
|
5
|
-
data?: IBaseTableGameState;
|
|
6
|
-
}
|
|
7
|
-
export declare const reducer: import("redux").Reducer<IBaseTableScreenState> & {
|
|
8
|
-
getInitialState: () => IBaseTableScreenState;
|
|
9
|
-
};
|