@replyke/core 7.0.0-beta.17 → 7.0.0-beta.19
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/cjs/hooks/collections/index.d.ts +3 -0
- package/dist/cjs/hooks/collections/index.js +14 -0
- package/dist/cjs/hooks/collections/index.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollections.d.ts +36 -0
- package/dist/cjs/hooks/{lists/useLists.js → collections/useCollections.js} +77 -76
- package/dist/cjs/hooks/collections/useCollections.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollectionsActions.d.ts +21 -0
- package/dist/cjs/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +110 -110
- package/dist/cjs/hooks/collections/useCollectionsActions.js.map +1 -0
- package/dist/{esm/hooks/lists → cjs/hooks/collections}/useIsEntitySaved.d.ts +2 -2
- package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
- package/dist/cjs/hooks/collections/useIsEntitySaved.js.map +1 -0
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/models/{List.d.ts → Collection.d.ts} +1 -1
- package/dist/cjs/interfaces/models/{List.js → Collection.js} +1 -1
- package/dist/cjs/interfaces/models/Collection.js.map +1 -0
- package/dist/cjs/store/api/appNotificationsApi.d.ts +181 -181
- package/dist/cjs/store/api/baseApi.d.ts +1 -1
- package/dist/cjs/store/api/baseApi.js +1 -1
- package/dist/cjs/store/api/baseApi.js.map +1 -1
- package/dist/cjs/store/api/{listsApi.d.ts → collectionsApi.d.ts} +573 -573
- package/dist/cjs/store/api/{listsApi.js → collectionsApi.js} +64 -64
- package/dist/cjs/store/api/collectionsApi.js.map +1 -0
- package/dist/cjs/store/api/entityListsApi.d.ts +107 -107
- package/dist/cjs/store/api/index.d.ts +1 -1
- package/dist/cjs/store/api/index.js +2 -2
- package/dist/cjs/store/api/index.js.map +1 -1
- package/dist/cjs/store/api/spacesApi.d.ts +950 -950
- package/dist/cjs/store/api/userApi.d.ts +3 -3
- package/dist/cjs/store/index.d.ts +4 -4
- package/dist/cjs/store/rootReducer.d.ts +4 -4
- package/dist/cjs/store/rootReducer.js +2 -2
- package/dist/cjs/store/rootReducer.js.map +1 -1
- package/dist/cjs/store/slices/{listsSlice.d.ts → collectionsSlice.d.ts} +128 -128
- package/dist/cjs/store/slices/collectionsSlice.js +211 -0
- package/dist/cjs/store/slices/collectionsSlice.js.map +1 -0
- package/dist/esm/hooks/collections/index.d.ts +3 -0
- package/dist/esm/hooks/collections/index.js +5 -0
- package/dist/esm/hooks/collections/index.js.map +1 -0
- package/dist/esm/hooks/collections/useCollections.d.ts +36 -0
- package/dist/esm/hooks/{lists/useLists.js → collections/useCollections.js} +75 -74
- package/dist/esm/hooks/collections/useCollections.js.map +1 -0
- package/dist/esm/hooks/collections/useCollectionsActions.d.ts +21 -0
- package/dist/esm/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +101 -101
- package/dist/esm/hooks/collections/useCollectionsActions.js.map +1 -0
- package/dist/{cjs/hooks/lists → esm/hooks/collections}/useIsEntitySaved.d.ts +2 -2
- package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
- package/dist/esm/hooks/collections/useIsEntitySaved.js.map +1 -0
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/models/{List.d.ts → Collection.d.ts} +1 -1
- package/dist/esm/interfaces/models/Collection.js +2 -0
- package/dist/esm/interfaces/models/Collection.js.map +1 -0
- package/dist/esm/store/api/appNotificationsApi.d.ts +181 -181
- package/dist/esm/store/api/baseApi.d.ts +1 -1
- package/dist/esm/store/api/baseApi.js +1 -1
- package/dist/esm/store/api/baseApi.js.map +1 -1
- package/dist/esm/store/api/{listsApi.d.ts → collectionsApi.d.ts} +573 -573
- package/dist/esm/store/api/{listsApi.js → collectionsApi.js} +63 -63
- package/dist/esm/store/api/collectionsApi.js.map +1 -0
- package/dist/esm/store/api/entityListsApi.d.ts +107 -107
- package/dist/esm/store/api/index.d.ts +1 -1
- package/dist/esm/store/api/index.js +2 -2
- package/dist/esm/store/api/index.js.map +1 -1
- package/dist/esm/store/api/spacesApi.d.ts +950 -950
- package/dist/esm/store/api/userApi.d.ts +3 -3
- package/dist/esm/store/index.d.ts +4 -4
- package/dist/esm/store/rootReducer.d.ts +4 -4
- package/dist/esm/store/rootReducer.js +2 -2
- package/dist/esm/store/rootReducer.js.map +1 -1
- package/dist/esm/store/slices/{listsSlice.d.ts → collectionsSlice.d.ts} +128 -128
- package/dist/esm/store/slices/collectionsSlice.js +202 -0
- package/dist/esm/store/slices/collectionsSlice.js.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/hooks/lists/index.d.ts +0 -3
- package/dist/cjs/hooks/lists/index.js +0 -14
- package/dist/cjs/hooks/lists/index.js.map +0 -1
- package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +0 -1
- package/dist/cjs/hooks/lists/useLists.d.ts +0 -36
- package/dist/cjs/hooks/lists/useLists.js.map +0 -1
- package/dist/cjs/hooks/lists/useListsActions.d.ts +0 -21
- package/dist/cjs/hooks/lists/useListsActions.js.map +0 -1
- package/dist/cjs/interfaces/models/List.js.map +0 -1
- package/dist/cjs/store/api/listsApi.js.map +0 -1
- package/dist/cjs/store/slices/listsSlice.js +0 -211
- package/dist/cjs/store/slices/listsSlice.js.map +0 -1
- package/dist/esm/hooks/lists/index.d.ts +0 -3
- package/dist/esm/hooks/lists/index.js +0 -5
- package/dist/esm/hooks/lists/index.js.map +0 -1
- package/dist/esm/hooks/lists/useIsEntitySaved.js.map +0 -1
- package/dist/esm/hooks/lists/useLists.d.ts +0 -36
- package/dist/esm/hooks/lists/useLists.js.map +0 -1
- package/dist/esm/hooks/lists/useListsActions.d.ts +0 -21
- package/dist/esm/hooks/lists/useListsActions.js.map +0 -1
- package/dist/esm/interfaces/models/List.js +0 -2
- package/dist/esm/interfaces/models/List.js.map +0 -1
- package/dist/esm/store/api/listsApi.js.map +0 -1
- package/dist/esm/store/slices/listsSlice.js +0 -202
- package/dist/esm/store/slices/listsSlice.js.map +0 -1
|
@@ -18,8 +18,8 @@ export interface UpdateUserRequest {
|
|
|
18
18
|
update: UpdateUserParams;
|
|
19
19
|
}
|
|
20
20
|
export declare const userApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, {
|
|
21
|
-
updateUser: import("@reduxjs/toolkit/query").MutationDefinition<UpdateUserRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "AppNotification" | "
|
|
22
|
-
}, "api", "AppNotification" | "
|
|
21
|
+
updateUser: import("@reduxjs/toolkit/query").MutationDefinition<UpdateUserRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "AppNotification" | "Collection" | "User" | "Entity" | "Space" | "SpaceMember", AuthUser, "api", unknown>;
|
|
22
|
+
}, "api", "AppNotification" | "Collection" | "User" | "Entity" | "Space" | "SpaceMember", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
|
|
23
23
|
export declare const useUpdateUserMutation: <R extends Record<string, any> = ({
|
|
24
24
|
requestId?: undefined;
|
|
25
25
|
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
@@ -177,7 +177,7 @@ export declare const useUpdateUserMutation: <R extends Record<string, any> = ({
|
|
|
177
177
|
isError: true;
|
|
178
178
|
})) => R) | undefined;
|
|
179
179
|
fixedCacheKey?: string;
|
|
180
|
-
} | undefined) => readonly [(arg: UpdateUserRequest) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<UpdateUserRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "AppNotification" | "
|
|
180
|
+
} | undefined) => readonly [(arg: UpdateUserRequest) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<UpdateUserRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "AppNotification" | "Collection" | "User" | "Entity" | "Space" | "SpaceMember", AuthUser, "api", unknown>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
|
|
181
181
|
originalArgs?: UpdateUserRequest | undefined;
|
|
182
182
|
reset: () => void;
|
|
183
183
|
}];
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
2
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification" | "
|
|
2
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification" | "Collection" | "User" | "Entity" | "Space" | "SpaceMember", "api">;
|
|
3
3
|
auth: import("./slices/authSlice").AuthState;
|
|
4
4
|
appNotifications: import("./slices/appNotificationsSlice").AppNotificationsState;
|
|
5
|
-
|
|
5
|
+
collections: import("./slices/collectionsSlice").CollectionsState;
|
|
6
6
|
user: import("./slices/userSlice").UserState;
|
|
7
7
|
entityLists: import("./slices/entityListsSlice").EntityListsState;
|
|
8
8
|
spaceLists: import("./slices/spaceListsSlice").SpaceListsState;
|
|
9
9
|
}, import("@reduxjs/toolkit").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("@reduxjs/toolkit").StoreEnhancer<{
|
|
10
10
|
dispatch: import("@reduxjs/toolkit").ThunkDispatch<{
|
|
11
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification" | "
|
|
11
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification" | "Collection" | "User" | "Entity" | "Space" | "SpaceMember", "api">;
|
|
12
12
|
auth: import("./slices/authSlice").AuthState;
|
|
13
13
|
appNotifications: import("./slices/appNotificationsSlice").AppNotificationsState;
|
|
14
|
-
|
|
14
|
+
collections: import("./slices/collectionsSlice").CollectionsState;
|
|
15
15
|
user: import("./slices/userSlice").UserState;
|
|
16
16
|
entityLists: import("./slices/entityListsSlice").EntityListsState;
|
|
17
17
|
spaceLists: import("./slices/spaceListsSlice").SpaceListsState;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const rootReducer: import("@reduxjs/toolkit").Reducer<{
|
|
2
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification" | "
|
|
2
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification" | "Collection" | "User" | "Entity" | "Space" | "SpaceMember", "api">;
|
|
3
3
|
auth: import("./slices/authSlice").AuthState;
|
|
4
4
|
appNotifications: import("./slices/appNotificationsSlice").AppNotificationsState;
|
|
5
|
-
|
|
5
|
+
collections: import("./slices/collectionsSlice").CollectionsState;
|
|
6
6
|
user: import("./slices/userSlice").UserState;
|
|
7
7
|
entityLists: import("./slices/entityListsSlice").EntityListsState;
|
|
8
8
|
spaceLists: import("./slices/spaceListsSlice").SpaceListsState;
|
|
9
9
|
}, import("@reduxjs/toolkit").UnknownAction, Partial<{
|
|
10
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification" | "
|
|
10
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification" | "Collection" | "User" | "Entity" | "Space" | "SpaceMember", "api"> | undefined;
|
|
11
11
|
auth: import("./slices/authSlice").AuthState | undefined;
|
|
12
12
|
appNotifications: import("./slices/appNotificationsSlice").AppNotificationsState | undefined;
|
|
13
|
-
|
|
13
|
+
collections: import("./slices/collectionsSlice").CollectionsState | undefined;
|
|
14
14
|
user: import("./slices/userSlice").UserState | undefined;
|
|
15
15
|
entityLists: import("./slices/entityListsSlice").EntityListsState | undefined;
|
|
16
16
|
spaceLists: import("./slices/spaceListsSlice").SpaceListsState | undefined;
|
|
@@ -3,7 +3,7 @@ import { combineReducers } from "@reduxjs/toolkit";
|
|
|
3
3
|
import { baseApi } from "./api/baseApi";
|
|
4
4
|
import { appNotificationsSlice } from "./slices/appNotificationsSlice";
|
|
5
5
|
import authReducer from "./slices/authSlice";
|
|
6
|
-
import
|
|
6
|
+
import collectionsReducer from "./slices/collectionsSlice";
|
|
7
7
|
import { userReducer } from "./slices/userSlice";
|
|
8
8
|
import entityListsReducer from "./slices/entityListsSlice";
|
|
9
9
|
import spaceListsReducer from "./slices/spaceListsSlice";
|
|
@@ -14,7 +14,7 @@ export var rootReducer = combineReducers((_a = {},
|
|
|
14
14
|
// Feature slices
|
|
15
15
|
_a.auth = authReducer,
|
|
16
16
|
_a.appNotifications = appNotificationsSlice.reducer,
|
|
17
|
-
_a.
|
|
17
|
+
_a.collections = collectionsReducer,
|
|
18
18
|
_a.user = userReducer,
|
|
19
19
|
_a.entityLists = entityListsReducer,
|
|
20
20
|
_a.spaceLists = spaceListsReducer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootReducer.js","sourceRoot":"","sources":["../../../src/store/rootReducer.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"rootReducer.js","sourceRoot":"","sources":["../../../src/store/rootReducer.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,kBAAkB,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,kBAAkB,MAAM,2BAA2B,CAAC;AAC3D,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAEzD,uBAAuB;AACvB,MAAM,CAAC,IAAM,WAAW,GAAG,eAAe;IACxC,8CAA8C;IAC9C,GAAC,OAAO,CAAC,WAAW,IAAG,OAAO,CAAC,OAAO;IAEtC,iBAAiB;IACjB,OAAI,GAAE,WAAW;IACjB,mBAAgB,GAAE,qBAAqB,CAAC,OAAO;IAC/C,cAAW,GAAE,kBAAkB;IAC/B,OAAI,GAAE,WAAW;IACjB,cAAW,GAAE,kBAAkB;IAC/B,aAAU,GAAE,iBAAiB;QAK7B,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
-
import type {
|
|
3
|
-
export interface
|
|
4
|
-
|
|
5
|
-
[
|
|
2
|
+
import type { Collection } from "../../interfaces/models/Collection";
|
|
3
|
+
export interface CollectionsState {
|
|
4
|
+
collectionsById: {
|
|
5
|
+
[collectionId: string]: Collection;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
subcollectionsMap: {
|
|
8
8
|
[parentId: string]: string[];
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
currentCollectionId: string | null;
|
|
11
|
+
collectionHistory: string[];
|
|
12
12
|
loading: boolean;
|
|
13
13
|
currentProjectId?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const collectionsSlice: import("@reduxjs/toolkit").Slice<CollectionsState, {
|
|
16
16
|
setProjectContext: (state: {
|
|
17
|
-
|
|
17
|
+
collectionsById: {
|
|
18
18
|
[x: string]: {
|
|
19
19
|
id: string;
|
|
20
20
|
projectId: string;
|
|
@@ -132,16 +132,16 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
132
132
|
updatedAt: Date;
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
subcollectionsMap: {
|
|
136
136
|
[x: string]: string[];
|
|
137
137
|
};
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
currentCollectionId: string | null;
|
|
139
|
+
collectionHistory: string[];
|
|
140
140
|
loading: boolean;
|
|
141
141
|
currentProjectId?: string | undefined;
|
|
142
142
|
}, action: PayloadAction<string>) => void;
|
|
143
143
|
setLoading: (state: {
|
|
144
|
-
|
|
144
|
+
collectionsById: {
|
|
145
145
|
[x: string]: {
|
|
146
146
|
id: string;
|
|
147
147
|
projectId: string;
|
|
@@ -259,16 +259,16 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
259
259
|
updatedAt: Date;
|
|
260
260
|
};
|
|
261
261
|
};
|
|
262
|
-
|
|
262
|
+
subcollectionsMap: {
|
|
263
263
|
[x: string]: string[];
|
|
264
264
|
};
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
currentCollectionId: string | null;
|
|
266
|
+
collectionHistory: string[];
|
|
267
267
|
loading: boolean;
|
|
268
268
|
currentProjectId?: string | undefined;
|
|
269
269
|
}, action: PayloadAction<boolean>) => void;
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
openCollection: (state: {
|
|
271
|
+
collectionsById: {
|
|
272
272
|
[x: string]: {
|
|
273
273
|
id: string;
|
|
274
274
|
projectId: string;
|
|
@@ -386,16 +386,16 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
386
386
|
updatedAt: Date;
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
|
-
|
|
389
|
+
subcollectionsMap: {
|
|
390
390
|
[x: string]: string[];
|
|
391
391
|
};
|
|
392
|
-
|
|
393
|
-
|
|
392
|
+
currentCollectionId: string | null;
|
|
393
|
+
collectionHistory: string[];
|
|
394
394
|
loading: boolean;
|
|
395
395
|
currentProjectId?: string | undefined;
|
|
396
|
-
}, action: PayloadAction<
|
|
396
|
+
}, action: PayloadAction<Collection>) => void;
|
|
397
397
|
goBack: (state: {
|
|
398
|
-
|
|
398
|
+
collectionsById: {
|
|
399
399
|
[x: string]: {
|
|
400
400
|
id: string;
|
|
401
401
|
projectId: string;
|
|
@@ -513,16 +513,16 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
513
513
|
updatedAt: Date;
|
|
514
514
|
};
|
|
515
515
|
};
|
|
516
|
-
|
|
516
|
+
subcollectionsMap: {
|
|
517
517
|
[x: string]: string[];
|
|
518
518
|
};
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
currentCollectionId: string | null;
|
|
520
|
+
collectionHistory: string[];
|
|
521
521
|
loading: boolean;
|
|
522
522
|
currentProjectId?: string | undefined;
|
|
523
523
|
}) => void;
|
|
524
524
|
goToRoot: (state: {
|
|
525
|
-
|
|
525
|
+
collectionsById: {
|
|
526
526
|
[x: string]: {
|
|
527
527
|
id: string;
|
|
528
528
|
projectId: string;
|
|
@@ -640,16 +640,16 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
640
640
|
updatedAt: Date;
|
|
641
641
|
};
|
|
642
642
|
};
|
|
643
|
-
|
|
643
|
+
subcollectionsMap: {
|
|
644
644
|
[x: string]: string[];
|
|
645
645
|
};
|
|
646
|
-
|
|
647
|
-
|
|
646
|
+
currentCollectionId: string | null;
|
|
647
|
+
collectionHistory: string[];
|
|
648
648
|
loading: boolean;
|
|
649
649
|
currentProjectId?: string | undefined;
|
|
650
650
|
}) => void;
|
|
651
|
-
|
|
652
|
-
|
|
651
|
+
setCurrentCollection: (state: {
|
|
652
|
+
collectionsById: {
|
|
653
653
|
[x: string]: {
|
|
654
654
|
id: string;
|
|
655
655
|
projectId: string;
|
|
@@ -767,16 +767,16 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
767
767
|
updatedAt: Date;
|
|
768
768
|
};
|
|
769
769
|
};
|
|
770
|
-
|
|
770
|
+
subcollectionsMap: {
|
|
771
771
|
[x: string]: string[];
|
|
772
772
|
};
|
|
773
|
-
|
|
774
|
-
|
|
773
|
+
currentCollectionId: string | null;
|
|
774
|
+
collectionHistory: string[];
|
|
775
775
|
loading: boolean;
|
|
776
776
|
currentProjectId?: string | undefined;
|
|
777
|
-
}, action: PayloadAction<
|
|
778
|
-
|
|
779
|
-
|
|
777
|
+
}, action: PayloadAction<Collection | null>) => void;
|
|
778
|
+
setSubCollections: (state: {
|
|
779
|
+
collectionsById: {
|
|
780
780
|
[x: string]: {
|
|
781
781
|
id: string;
|
|
782
782
|
projectId: string;
|
|
@@ -894,19 +894,19 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
894
894
|
updatedAt: Date;
|
|
895
895
|
};
|
|
896
896
|
};
|
|
897
|
-
|
|
897
|
+
subcollectionsMap: {
|
|
898
898
|
[x: string]: string[];
|
|
899
899
|
};
|
|
900
|
-
|
|
901
|
-
|
|
900
|
+
currentCollectionId: string | null;
|
|
901
|
+
collectionHistory: string[];
|
|
902
902
|
loading: boolean;
|
|
903
903
|
currentProjectId?: string | undefined;
|
|
904
904
|
}, action: PayloadAction<{
|
|
905
|
-
|
|
906
|
-
|
|
905
|
+
collections: Collection[];
|
|
906
|
+
parentCollectionId: string;
|
|
907
907
|
}>) => void;
|
|
908
|
-
|
|
909
|
-
|
|
908
|
+
updateCurrentCollection: (state: {
|
|
909
|
+
collectionsById: {
|
|
910
910
|
[x: string]: {
|
|
911
911
|
id: string;
|
|
912
912
|
projectId: string;
|
|
@@ -1024,16 +1024,16 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
1024
1024
|
updatedAt: Date;
|
|
1025
1025
|
};
|
|
1026
1026
|
};
|
|
1027
|
-
|
|
1027
|
+
subcollectionsMap: {
|
|
1028
1028
|
[x: string]: string[];
|
|
1029
1029
|
};
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
currentCollectionId: string | null;
|
|
1031
|
+
collectionHistory: string[];
|
|
1032
1032
|
loading: boolean;
|
|
1033
1033
|
currentProjectId?: string | undefined;
|
|
1034
|
-
}, action: PayloadAction<
|
|
1035
|
-
|
|
1036
|
-
|
|
1034
|
+
}, action: PayloadAction<Collection>) => void;
|
|
1035
|
+
updateCollectionInSubCollections: (state: {
|
|
1036
|
+
collectionsById: {
|
|
1037
1037
|
[x: string]: {
|
|
1038
1038
|
id: string;
|
|
1039
1039
|
projectId: string;
|
|
@@ -1151,16 +1151,16 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
1151
1151
|
updatedAt: Date;
|
|
1152
1152
|
};
|
|
1153
1153
|
};
|
|
1154
|
-
|
|
1154
|
+
subcollectionsMap: {
|
|
1155
1155
|
[x: string]: string[];
|
|
1156
1156
|
};
|
|
1157
|
-
|
|
1158
|
-
|
|
1157
|
+
currentCollectionId: string | null;
|
|
1158
|
+
collectionHistory: string[];
|
|
1159
1159
|
loading: boolean;
|
|
1160
1160
|
currentProjectId?: string | undefined;
|
|
1161
|
-
}, action: PayloadAction<
|
|
1162
|
-
|
|
1163
|
-
|
|
1161
|
+
}, action: PayloadAction<Collection>) => void;
|
|
1162
|
+
addNewCollectionAndNavigate: (state: {
|
|
1163
|
+
collectionsById: {
|
|
1164
1164
|
[x: string]: {
|
|
1165
1165
|
id: string;
|
|
1166
1166
|
projectId: string;
|
|
@@ -1278,16 +1278,16 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
1278
1278
|
updatedAt: Date;
|
|
1279
1279
|
};
|
|
1280
1280
|
};
|
|
1281
|
-
|
|
1281
|
+
subcollectionsMap: {
|
|
1282
1282
|
[x: string]: string[];
|
|
1283
1283
|
};
|
|
1284
|
-
|
|
1285
|
-
|
|
1284
|
+
currentCollectionId: string | null;
|
|
1285
|
+
collectionHistory: string[];
|
|
1286
1286
|
loading: boolean;
|
|
1287
1287
|
currentProjectId?: string | undefined;
|
|
1288
|
-
}, action: PayloadAction<
|
|
1289
|
-
|
|
1290
|
-
|
|
1288
|
+
}, action: PayloadAction<Collection>) => void;
|
|
1289
|
+
removeCollectionFromSubCollections: (state: {
|
|
1290
|
+
collectionsById: {
|
|
1291
1291
|
[x: string]: {
|
|
1292
1292
|
id: string;
|
|
1293
1293
|
projectId: string;
|
|
@@ -1405,16 +1405,16 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
1405
1405
|
updatedAt: Date;
|
|
1406
1406
|
};
|
|
1407
1407
|
};
|
|
1408
|
-
|
|
1408
|
+
subcollectionsMap: {
|
|
1409
1409
|
[x: string]: string[];
|
|
1410
1410
|
};
|
|
1411
|
-
|
|
1412
|
-
|
|
1411
|
+
currentCollectionId: string | null;
|
|
1412
|
+
collectionHistory: string[];
|
|
1413
1413
|
loading: boolean;
|
|
1414
1414
|
currentProjectId?: string | undefined;
|
|
1415
1415
|
}, action: PayloadAction<string>) => void;
|
|
1416
|
-
|
|
1417
|
-
|
|
1416
|
+
handleCollectionDeletion: (state: {
|
|
1417
|
+
collectionsById: {
|
|
1418
1418
|
[x: string]: {
|
|
1419
1419
|
id: string;
|
|
1420
1420
|
projectId: string;
|
|
@@ -1532,19 +1532,19 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
1532
1532
|
updatedAt: Date;
|
|
1533
1533
|
};
|
|
1534
1534
|
};
|
|
1535
|
-
|
|
1535
|
+
subcollectionsMap: {
|
|
1536
1536
|
[x: string]: string[];
|
|
1537
1537
|
};
|
|
1538
|
-
|
|
1539
|
-
|
|
1538
|
+
currentCollectionId: string | null;
|
|
1539
|
+
collectionHistory: string[];
|
|
1540
1540
|
loading: boolean;
|
|
1541
1541
|
currentProjectId?: string | undefined;
|
|
1542
1542
|
}, action: PayloadAction<{
|
|
1543
|
-
|
|
1543
|
+
collectionId: string;
|
|
1544
1544
|
parentId?: string | null;
|
|
1545
1545
|
}>) => void;
|
|
1546
|
-
|
|
1547
|
-
|
|
1546
|
+
resetCollections: (state: {
|
|
1547
|
+
collectionsById: {
|
|
1548
1548
|
[x: string]: {
|
|
1549
1549
|
id: string;
|
|
1550
1550
|
projectId: string;
|
|
@@ -1662,16 +1662,16 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
1662
1662
|
updatedAt: Date;
|
|
1663
1663
|
};
|
|
1664
1664
|
};
|
|
1665
|
-
|
|
1665
|
+
subcollectionsMap: {
|
|
1666
1666
|
[x: string]: string[];
|
|
1667
1667
|
};
|
|
1668
|
-
|
|
1669
|
-
|
|
1668
|
+
currentCollectionId: string | null;
|
|
1669
|
+
collectionHistory: string[];
|
|
1670
1670
|
loading: boolean;
|
|
1671
1671
|
currentProjectId?: string | undefined;
|
|
1672
1672
|
}) => void;
|
|
1673
1673
|
handleError: (state: {
|
|
1674
|
-
|
|
1674
|
+
collectionsById: {
|
|
1675
1675
|
[x: string]: {
|
|
1676
1676
|
id: string;
|
|
1677
1677
|
projectId: string;
|
|
@@ -1789,34 +1789,34 @@ export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
|
|
|
1789
1789
|
updatedAt: Date;
|
|
1790
1790
|
};
|
|
1791
1791
|
};
|
|
1792
|
-
|
|
1792
|
+
subcollectionsMap: {
|
|
1793
1793
|
[x: string]: string[];
|
|
1794
1794
|
};
|
|
1795
|
-
|
|
1796
|
-
|
|
1795
|
+
currentCollectionId: string | null;
|
|
1796
|
+
collectionHistory: string[];
|
|
1797
1797
|
loading: boolean;
|
|
1798
1798
|
currentProjectId?: string | undefined;
|
|
1799
1799
|
}) => void;
|
|
1800
|
-
}, "
|
|
1801
|
-
export declare const setProjectContext: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
}, "
|
|
1805
|
-
|
|
1800
|
+
}, "collections", "collections", import("@reduxjs/toolkit").SliceSelectors<CollectionsState>>;
|
|
1801
|
+
export declare const setProjectContext: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "collections/setProjectContext">, setLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "collections/setLoading">, openCollection: import("@reduxjs/toolkit").ActionCreatorWithPayload<Collection, "collections/openCollection">, goBack: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"collections/goBack">, goToRoot: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"collections/goToRoot">, setCurrentCollection: import("@reduxjs/toolkit").ActionCreatorWithPayload<Collection | null, "collections/setCurrentCollection">, setSubCollections: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
1802
|
+
collections: Collection[];
|
|
1803
|
+
parentCollectionId: string;
|
|
1804
|
+
}, "collections/setSubCollections">, updateCurrentCollection: import("@reduxjs/toolkit").ActionCreatorWithPayload<Collection, "collections/updateCurrentCollection">, updateCollectionInSubCollections: import("@reduxjs/toolkit").ActionCreatorWithPayload<Collection, "collections/updateCollectionInSubCollections">, addNewCollectionAndNavigate: import("@reduxjs/toolkit").ActionCreatorWithPayload<Collection, "collections/addNewCollectionAndNavigate">, removeCollectionFromSubCollections: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "collections/removeCollectionFromSubCollections">, handleCollectionDeletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
1805
|
+
collectionId: string;
|
|
1806
1806
|
parentId?: string | null;
|
|
1807
|
-
}, "
|
|
1808
|
-
declare const _default: import("@reduxjs/toolkit").Reducer<
|
|
1807
|
+
}, "collections/handleCollectionDeletion">, resetCollections: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"collections/resetCollections">, handleError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"collections/handleError">;
|
|
1808
|
+
declare const _default: import("@reduxjs/toolkit").Reducer<CollectionsState>;
|
|
1809
1809
|
export default _default;
|
|
1810
|
-
export declare const
|
|
1811
|
-
|
|
1812
|
-
}) =>
|
|
1813
|
-
export declare const
|
|
1814
|
-
|
|
1810
|
+
export declare const selectCurrentCollection: (state: {
|
|
1811
|
+
collections: CollectionsState;
|
|
1812
|
+
}) => Collection | null;
|
|
1813
|
+
export declare const selectSubCollections: ((state: {
|
|
1814
|
+
collections: CollectionsState;
|
|
1815
1815
|
} & {
|
|
1816
|
-
|
|
1816
|
+
collections: CollectionsState;
|
|
1817
1817
|
} & {
|
|
1818
|
-
|
|
1819
|
-
}) =>
|
|
1818
|
+
collections: CollectionsState;
|
|
1819
|
+
}) => Collection[]) & {
|
|
1820
1820
|
clearCache: () => void;
|
|
1821
1821
|
resultsCount: () => number;
|
|
1822
1822
|
resetResultsCount: () => void;
|
|
@@ -1824,28 +1824,28 @@ export declare const selectSubLists: ((state: {
|
|
|
1824
1824
|
resultFunc: (resultFuncArgs_0: string | null, resultFuncArgs_1: {
|
|
1825
1825
|
[parentId: string]: string[];
|
|
1826
1826
|
}, resultFuncArgs_2: {
|
|
1827
|
-
[
|
|
1828
|
-
}) =>
|
|
1827
|
+
[collectionId: string]: Collection;
|
|
1828
|
+
}) => Collection[];
|
|
1829
1829
|
memoizedResultFunc: ((resultFuncArgs_0: string | null, resultFuncArgs_1: {
|
|
1830
1830
|
[parentId: string]: string[];
|
|
1831
1831
|
}, resultFuncArgs_2: {
|
|
1832
|
-
[
|
|
1833
|
-
}) =>
|
|
1832
|
+
[collectionId: string]: Collection;
|
|
1833
|
+
}) => Collection[]) & {
|
|
1834
1834
|
clearCache: () => void;
|
|
1835
1835
|
resultsCount: () => number;
|
|
1836
1836
|
resetResultsCount: () => void;
|
|
1837
1837
|
};
|
|
1838
|
-
lastResult: () =>
|
|
1838
|
+
lastResult: () => Collection[];
|
|
1839
1839
|
dependencies: [(state: {
|
|
1840
|
-
|
|
1840
|
+
collections: CollectionsState;
|
|
1841
1841
|
}) => string | null, (state: {
|
|
1842
|
-
|
|
1842
|
+
collections: CollectionsState;
|
|
1843
1843
|
}) => {
|
|
1844
1844
|
[parentId: string]: string[];
|
|
1845
1845
|
}, (state: {
|
|
1846
|
-
|
|
1846
|
+
collections: CollectionsState;
|
|
1847
1847
|
}) => {
|
|
1848
|
-
[
|
|
1848
|
+
[collectionId: string]: Collection;
|
|
1849
1849
|
}];
|
|
1850
1850
|
recomputations: () => number;
|
|
1851
1851
|
resetRecomputations: () => void;
|
|
@@ -1855,35 +1855,35 @@ export declare const selectSubLists: ((state: {
|
|
|
1855
1855
|
memoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
|
|
1856
1856
|
argsMemoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
|
|
1857
1857
|
};
|
|
1858
|
-
export declare const
|
|
1859
|
-
|
|
1858
|
+
export declare const selectCollectionsLoading: (state: {
|
|
1859
|
+
collections: CollectionsState;
|
|
1860
1860
|
}) => boolean;
|
|
1861
|
-
export declare const
|
|
1862
|
-
|
|
1861
|
+
export declare const selectCollectionHistory: ((state: {
|
|
1862
|
+
collections: CollectionsState;
|
|
1863
1863
|
} & {
|
|
1864
|
-
|
|
1865
|
-
}) =>
|
|
1864
|
+
collections: CollectionsState;
|
|
1865
|
+
}) => Collection[]) & {
|
|
1866
1866
|
clearCache: () => void;
|
|
1867
1867
|
resultsCount: () => number;
|
|
1868
1868
|
resetResultsCount: () => void;
|
|
1869
1869
|
} & {
|
|
1870
1870
|
resultFunc: (resultFuncArgs_0: string[], resultFuncArgs_1: {
|
|
1871
|
-
[
|
|
1872
|
-
}) =>
|
|
1871
|
+
[collectionId: string]: Collection;
|
|
1872
|
+
}) => Collection[];
|
|
1873
1873
|
memoizedResultFunc: ((resultFuncArgs_0: string[], resultFuncArgs_1: {
|
|
1874
|
-
[
|
|
1875
|
-
}) =>
|
|
1874
|
+
[collectionId: string]: Collection;
|
|
1875
|
+
}) => Collection[]) & {
|
|
1876
1876
|
clearCache: () => void;
|
|
1877
1877
|
resultsCount: () => number;
|
|
1878
1878
|
resetResultsCount: () => void;
|
|
1879
1879
|
};
|
|
1880
|
-
lastResult: () =>
|
|
1880
|
+
lastResult: () => Collection[];
|
|
1881
1881
|
dependencies: [(state: {
|
|
1882
|
-
|
|
1882
|
+
collections: CollectionsState;
|
|
1883
1883
|
}) => string[], (state: {
|
|
1884
|
-
|
|
1884
|
+
collections: CollectionsState;
|
|
1885
1885
|
}) => {
|
|
1886
|
-
[
|
|
1886
|
+
[collectionId: string]: Collection;
|
|
1887
1887
|
}];
|
|
1888
1888
|
recomputations: () => number;
|
|
1889
1889
|
resetRecomputations: () => void;
|
|
@@ -1893,19 +1893,19 @@ export declare const selectListHistory: ((state: {
|
|
|
1893
1893
|
memoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
|
|
1894
1894
|
argsMemoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
|
|
1895
1895
|
};
|
|
1896
|
-
export declare const
|
|
1897
|
-
|
|
1896
|
+
export declare const selectSubCollectionsMap: (state: {
|
|
1897
|
+
collections: CollectionsState;
|
|
1898
1898
|
}) => {
|
|
1899
1899
|
[parentId: string]: string[];
|
|
1900
1900
|
};
|
|
1901
|
-
export declare const
|
|
1902
|
-
|
|
1901
|
+
export declare const selectCollectionsById: (state: {
|
|
1902
|
+
collections: CollectionsState;
|
|
1903
1903
|
}) => {
|
|
1904
|
-
[
|
|
1904
|
+
[collectionId: string]: Collection;
|
|
1905
1905
|
};
|
|
1906
1906
|
export declare const selectCurrentProjectId: (state: {
|
|
1907
|
-
|
|
1907
|
+
collections: CollectionsState;
|
|
1908
1908
|
}) => string | undefined;
|
|
1909
|
-
export declare const
|
|
1910
|
-
|
|
1909
|
+
export declare const selectCurrentCollectionId: (state: {
|
|
1910
|
+
collections: CollectionsState;
|
|
1911
1911
|
}) => string | null;
|