@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.
Files changed (102) hide show
  1. package/dist/cjs/hooks/collections/index.d.ts +3 -0
  2. package/dist/cjs/hooks/collections/index.js +14 -0
  3. package/dist/cjs/hooks/collections/index.js.map +1 -0
  4. package/dist/cjs/hooks/collections/useCollections.d.ts +36 -0
  5. package/dist/cjs/hooks/{lists/useLists.js → collections/useCollections.js} +77 -76
  6. package/dist/cjs/hooks/collections/useCollections.js.map +1 -0
  7. package/dist/cjs/hooks/collections/useCollectionsActions.d.ts +21 -0
  8. package/dist/cjs/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +110 -110
  9. package/dist/cjs/hooks/collections/useCollectionsActions.js.map +1 -0
  10. package/dist/{esm/hooks/lists → cjs/hooks/collections}/useIsEntitySaved.d.ts +2 -2
  11. package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
  12. package/dist/cjs/hooks/collections/useIsEntitySaved.js.map +1 -0
  13. package/dist/cjs/index.d.ts +2 -2
  14. package/dist/cjs/index.js +6 -6
  15. package/dist/cjs/index.js.map +1 -1
  16. package/dist/cjs/interfaces/models/{List.d.ts → Collection.d.ts} +1 -1
  17. package/dist/cjs/interfaces/models/{List.js → Collection.js} +1 -1
  18. package/dist/cjs/interfaces/models/Collection.js.map +1 -0
  19. package/dist/cjs/store/api/appNotificationsApi.d.ts +181 -181
  20. package/dist/cjs/store/api/baseApi.d.ts +1 -1
  21. package/dist/cjs/store/api/baseApi.js +1 -1
  22. package/dist/cjs/store/api/baseApi.js.map +1 -1
  23. package/dist/cjs/store/api/{listsApi.d.ts → collectionsApi.d.ts} +573 -573
  24. package/dist/cjs/store/api/{listsApi.js → collectionsApi.js} +64 -64
  25. package/dist/cjs/store/api/collectionsApi.js.map +1 -0
  26. package/dist/cjs/store/api/entityListsApi.d.ts +107 -107
  27. package/dist/cjs/store/api/index.d.ts +1 -1
  28. package/dist/cjs/store/api/index.js +2 -2
  29. package/dist/cjs/store/api/index.js.map +1 -1
  30. package/dist/cjs/store/api/spacesApi.d.ts +950 -950
  31. package/dist/cjs/store/api/userApi.d.ts +3 -3
  32. package/dist/cjs/store/index.d.ts +4 -4
  33. package/dist/cjs/store/rootReducer.d.ts +4 -4
  34. package/dist/cjs/store/rootReducer.js +2 -2
  35. package/dist/cjs/store/rootReducer.js.map +1 -1
  36. package/dist/cjs/store/slices/{listsSlice.d.ts → collectionsSlice.d.ts} +128 -128
  37. package/dist/cjs/store/slices/collectionsSlice.js +211 -0
  38. package/dist/cjs/store/slices/collectionsSlice.js.map +1 -0
  39. package/dist/esm/hooks/collections/index.d.ts +3 -0
  40. package/dist/esm/hooks/collections/index.js +5 -0
  41. package/dist/esm/hooks/collections/index.js.map +1 -0
  42. package/dist/esm/hooks/collections/useCollections.d.ts +36 -0
  43. package/dist/esm/hooks/{lists/useLists.js → collections/useCollections.js} +75 -74
  44. package/dist/esm/hooks/collections/useCollections.js.map +1 -0
  45. package/dist/esm/hooks/collections/useCollectionsActions.d.ts +21 -0
  46. package/dist/esm/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +101 -101
  47. package/dist/esm/hooks/collections/useCollectionsActions.js.map +1 -0
  48. package/dist/{cjs/hooks/lists → esm/hooks/collections}/useIsEntitySaved.d.ts +2 -2
  49. package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
  50. package/dist/esm/hooks/collections/useIsEntitySaved.js.map +1 -0
  51. package/dist/esm/index.d.ts +2 -2
  52. package/dist/esm/index.js +2 -2
  53. package/dist/esm/index.js.map +1 -1
  54. package/dist/esm/interfaces/models/{List.d.ts → Collection.d.ts} +1 -1
  55. package/dist/esm/interfaces/models/Collection.js +2 -0
  56. package/dist/esm/interfaces/models/Collection.js.map +1 -0
  57. package/dist/esm/store/api/appNotificationsApi.d.ts +181 -181
  58. package/dist/esm/store/api/baseApi.d.ts +1 -1
  59. package/dist/esm/store/api/baseApi.js +1 -1
  60. package/dist/esm/store/api/baseApi.js.map +1 -1
  61. package/dist/esm/store/api/{listsApi.d.ts → collectionsApi.d.ts} +573 -573
  62. package/dist/esm/store/api/{listsApi.js → collectionsApi.js} +63 -63
  63. package/dist/esm/store/api/collectionsApi.js.map +1 -0
  64. package/dist/esm/store/api/entityListsApi.d.ts +107 -107
  65. package/dist/esm/store/api/index.d.ts +1 -1
  66. package/dist/esm/store/api/index.js +2 -2
  67. package/dist/esm/store/api/index.js.map +1 -1
  68. package/dist/esm/store/api/spacesApi.d.ts +950 -950
  69. package/dist/esm/store/api/userApi.d.ts +3 -3
  70. package/dist/esm/store/index.d.ts +4 -4
  71. package/dist/esm/store/rootReducer.d.ts +4 -4
  72. package/dist/esm/store/rootReducer.js +2 -2
  73. package/dist/esm/store/rootReducer.js.map +1 -1
  74. package/dist/esm/store/slices/{listsSlice.d.ts → collectionsSlice.d.ts} +128 -128
  75. package/dist/esm/store/slices/collectionsSlice.js +202 -0
  76. package/dist/esm/store/slices/collectionsSlice.js.map +1 -0
  77. package/package.json +1 -1
  78. package/dist/cjs/hooks/lists/index.d.ts +0 -3
  79. package/dist/cjs/hooks/lists/index.js +0 -14
  80. package/dist/cjs/hooks/lists/index.js.map +0 -1
  81. package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +0 -1
  82. package/dist/cjs/hooks/lists/useLists.d.ts +0 -36
  83. package/dist/cjs/hooks/lists/useLists.js.map +0 -1
  84. package/dist/cjs/hooks/lists/useListsActions.d.ts +0 -21
  85. package/dist/cjs/hooks/lists/useListsActions.js.map +0 -1
  86. package/dist/cjs/interfaces/models/List.js.map +0 -1
  87. package/dist/cjs/store/api/listsApi.js.map +0 -1
  88. package/dist/cjs/store/slices/listsSlice.js +0 -211
  89. package/dist/cjs/store/slices/listsSlice.js.map +0 -1
  90. package/dist/esm/hooks/lists/index.d.ts +0 -3
  91. package/dist/esm/hooks/lists/index.js +0 -5
  92. package/dist/esm/hooks/lists/index.js.map +0 -1
  93. package/dist/esm/hooks/lists/useIsEntitySaved.js.map +0 -1
  94. package/dist/esm/hooks/lists/useLists.d.ts +0 -36
  95. package/dist/esm/hooks/lists/useLists.js.map +0 -1
  96. package/dist/esm/hooks/lists/useListsActions.d.ts +0 -21
  97. package/dist/esm/hooks/lists/useListsActions.js.map +0 -1
  98. package/dist/esm/interfaces/models/List.js +0 -2
  99. package/dist/esm/interfaces/models/List.js.map +0 -1
  100. package/dist/esm/store/api/listsApi.js.map +0 -1
  101. package/dist/esm/store/slices/listsSlice.js +0 -202
  102. 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" | "List" | "User" | "Entity" | "Space" | "SpaceMember", AuthUser, "api", unknown>;
22
- }, "api", "AppNotification" | "List" | "User" | "Entity" | "Space" | "SpaceMember", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
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" | "List" | "User" | "Entity" | "Space" | "SpaceMember", AuthUser, "api", unknown>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
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" | "List" | "User" | "Entity" | "Space" | "SpaceMember", "api">;
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
- lists: import("./slices/listsSlice").ListsState;
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" | "List" | "User" | "Entity" | "Space" | "SpaceMember", "api">;
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
- lists: import("./slices/listsSlice").ListsState;
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" | "List" | "User" | "Entity" | "Space" | "SpaceMember", "api">;
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
- lists: import("./slices/listsSlice").ListsState;
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" | "List" | "User" | "Entity" | "Space" | "SpaceMember", "api"> | undefined;
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
- lists: import("./slices/listsSlice").ListsState | undefined;
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 listsReducer from "./slices/listsSlice";
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.lists = listsReducer,
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,YAAY,MAAM,qBAAqB,CAAC;AAC/C,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,QAAK,GAAE,YAAY;IACnB,OAAI,GAAE,WAAW;IACjB,cAAW,GAAE,kBAAkB;IAC/B,aAAU,GAAE,iBAAiB;QAK7B,CAAC"}
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 { List } from "../../interfaces/models/List";
3
- export interface ListsState {
4
- listsById: {
5
- [listId: string]: List;
2
+ import type { Collection } from "../../interfaces/models/Collection";
3
+ export interface CollectionsState {
4
+ collectionsById: {
5
+ [collectionId: string]: Collection;
6
6
  };
7
- sublistsMap: {
7
+ subcollectionsMap: {
8
8
  [parentId: string]: string[];
9
9
  };
10
- currentListId: string | null;
11
- listHistory: string[];
10
+ currentCollectionId: string | null;
11
+ collectionHistory: string[];
12
12
  loading: boolean;
13
13
  currentProjectId?: string;
14
14
  }
15
- export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
15
+ export declare const collectionsSlice: import("@reduxjs/toolkit").Slice<CollectionsState, {
16
16
  setProjectContext: (state: {
17
- listsById: {
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
- sublistsMap: {
135
+ subcollectionsMap: {
136
136
  [x: string]: string[];
137
137
  };
138
- currentListId: string | null;
139
- listHistory: string[];
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
- listsById: {
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
- sublistsMap: {
262
+ subcollectionsMap: {
263
263
  [x: string]: string[];
264
264
  };
265
- currentListId: string | null;
266
- listHistory: string[];
265
+ currentCollectionId: string | null;
266
+ collectionHistory: string[];
267
267
  loading: boolean;
268
268
  currentProjectId?: string | undefined;
269
269
  }, action: PayloadAction<boolean>) => void;
270
- openList: (state: {
271
- listsById: {
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
- sublistsMap: {
389
+ subcollectionsMap: {
390
390
  [x: string]: string[];
391
391
  };
392
- currentListId: string | null;
393
- listHistory: string[];
392
+ currentCollectionId: string | null;
393
+ collectionHistory: string[];
394
394
  loading: boolean;
395
395
  currentProjectId?: string | undefined;
396
- }, action: PayloadAction<List>) => void;
396
+ }, action: PayloadAction<Collection>) => void;
397
397
  goBack: (state: {
398
- listsById: {
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
- sublistsMap: {
516
+ subcollectionsMap: {
517
517
  [x: string]: string[];
518
518
  };
519
- currentListId: string | null;
520
- listHistory: string[];
519
+ currentCollectionId: string | null;
520
+ collectionHistory: string[];
521
521
  loading: boolean;
522
522
  currentProjectId?: string | undefined;
523
523
  }) => void;
524
524
  goToRoot: (state: {
525
- listsById: {
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
- sublistsMap: {
643
+ subcollectionsMap: {
644
644
  [x: string]: string[];
645
645
  };
646
- currentListId: string | null;
647
- listHistory: string[];
646
+ currentCollectionId: string | null;
647
+ collectionHistory: string[];
648
648
  loading: boolean;
649
649
  currentProjectId?: string | undefined;
650
650
  }) => void;
651
- setCurrentList: (state: {
652
- listsById: {
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
- sublistsMap: {
770
+ subcollectionsMap: {
771
771
  [x: string]: string[];
772
772
  };
773
- currentListId: string | null;
774
- listHistory: string[];
773
+ currentCollectionId: string | null;
774
+ collectionHistory: string[];
775
775
  loading: boolean;
776
776
  currentProjectId?: string | undefined;
777
- }, action: PayloadAction<List | null>) => void;
778
- setSubLists: (state: {
779
- listsById: {
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
- sublistsMap: {
897
+ subcollectionsMap: {
898
898
  [x: string]: string[];
899
899
  };
900
- currentListId: string | null;
901
- listHistory: string[];
900
+ currentCollectionId: string | null;
901
+ collectionHistory: string[];
902
902
  loading: boolean;
903
903
  currentProjectId?: string | undefined;
904
904
  }, action: PayloadAction<{
905
- lists: List[];
906
- parentListId: string;
905
+ collections: Collection[];
906
+ parentCollectionId: string;
907
907
  }>) => void;
908
- updateCurrentList: (state: {
909
- listsById: {
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
- sublistsMap: {
1027
+ subcollectionsMap: {
1028
1028
  [x: string]: string[];
1029
1029
  };
1030
- currentListId: string | null;
1031
- listHistory: string[];
1030
+ currentCollectionId: string | null;
1031
+ collectionHistory: string[];
1032
1032
  loading: boolean;
1033
1033
  currentProjectId?: string | undefined;
1034
- }, action: PayloadAction<List>) => void;
1035
- updateListInSubLists: (state: {
1036
- listsById: {
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
- sublistsMap: {
1154
+ subcollectionsMap: {
1155
1155
  [x: string]: string[];
1156
1156
  };
1157
- currentListId: string | null;
1158
- listHistory: string[];
1157
+ currentCollectionId: string | null;
1158
+ collectionHistory: string[];
1159
1159
  loading: boolean;
1160
1160
  currentProjectId?: string | undefined;
1161
- }, action: PayloadAction<List>) => void;
1162
- addNewListAndNavigate: (state: {
1163
- listsById: {
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
- sublistsMap: {
1281
+ subcollectionsMap: {
1282
1282
  [x: string]: string[];
1283
1283
  };
1284
- currentListId: string | null;
1285
- listHistory: string[];
1284
+ currentCollectionId: string | null;
1285
+ collectionHistory: string[];
1286
1286
  loading: boolean;
1287
1287
  currentProjectId?: string | undefined;
1288
- }, action: PayloadAction<List>) => void;
1289
- removeListFromSubLists: (state: {
1290
- listsById: {
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
- sublistsMap: {
1408
+ subcollectionsMap: {
1409
1409
  [x: string]: string[];
1410
1410
  };
1411
- currentListId: string | null;
1412
- listHistory: string[];
1411
+ currentCollectionId: string | null;
1412
+ collectionHistory: string[];
1413
1413
  loading: boolean;
1414
1414
  currentProjectId?: string | undefined;
1415
1415
  }, action: PayloadAction<string>) => void;
1416
- handleListDeletion: (state: {
1417
- listsById: {
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
- sublistsMap: {
1535
+ subcollectionsMap: {
1536
1536
  [x: string]: string[];
1537
1537
  };
1538
- currentListId: string | null;
1539
- listHistory: string[];
1538
+ currentCollectionId: string | null;
1539
+ collectionHistory: string[];
1540
1540
  loading: boolean;
1541
1541
  currentProjectId?: string | undefined;
1542
1542
  }, action: PayloadAction<{
1543
- listId: string;
1543
+ collectionId: string;
1544
1544
  parentId?: string | null;
1545
1545
  }>) => void;
1546
- resetLists: (state: {
1547
- listsById: {
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
- sublistsMap: {
1665
+ subcollectionsMap: {
1666
1666
  [x: string]: string[];
1667
1667
  };
1668
- currentListId: string | null;
1669
- listHistory: string[];
1668
+ currentCollectionId: string | null;
1669
+ collectionHistory: string[];
1670
1670
  loading: boolean;
1671
1671
  currentProjectId?: string | undefined;
1672
1672
  }) => void;
1673
1673
  handleError: (state: {
1674
- listsById: {
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
- sublistsMap: {
1792
+ subcollectionsMap: {
1793
1793
  [x: string]: string[];
1794
1794
  };
1795
- currentListId: string | null;
1796
- listHistory: string[];
1795
+ currentCollectionId: string | null;
1796
+ collectionHistory: string[];
1797
1797
  loading: boolean;
1798
1798
  currentProjectId?: string | undefined;
1799
1799
  }) => void;
1800
- }, "lists", "lists", import("@reduxjs/toolkit").SliceSelectors<ListsState>>;
1801
- export declare const setProjectContext: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "lists/setProjectContext">, setLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "lists/setLoading">, openList: import("@reduxjs/toolkit").ActionCreatorWithPayload<List, "lists/openList">, goBack: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"lists/goBack">, goToRoot: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"lists/goToRoot">, setCurrentList: import("@reduxjs/toolkit").ActionCreatorWithPayload<List | null, "lists/setCurrentList">, setSubLists: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
1802
- lists: List[];
1803
- parentListId: string;
1804
- }, "lists/setSubLists">, updateCurrentList: import("@reduxjs/toolkit").ActionCreatorWithPayload<List, "lists/updateCurrentList">, updateListInSubLists: import("@reduxjs/toolkit").ActionCreatorWithPayload<List, "lists/updateListInSubLists">, addNewListAndNavigate: import("@reduxjs/toolkit").ActionCreatorWithPayload<List, "lists/addNewListAndNavigate">, removeListFromSubLists: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "lists/removeListFromSubLists">, handleListDeletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
1805
- listId: string;
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
- }, "lists/handleListDeletion">, resetLists: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"lists/resetLists">, handleError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"lists/handleError">;
1808
- declare const _default: import("@reduxjs/toolkit").Reducer<ListsState>;
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 selectCurrentList: (state: {
1811
- lists: ListsState;
1812
- }) => List | null;
1813
- export declare const selectSubLists: ((state: {
1814
- lists: ListsState;
1810
+ export declare const selectCurrentCollection: (state: {
1811
+ collections: CollectionsState;
1812
+ }) => Collection | null;
1813
+ export declare const selectSubCollections: ((state: {
1814
+ collections: CollectionsState;
1815
1815
  } & {
1816
- lists: ListsState;
1816
+ collections: CollectionsState;
1817
1817
  } & {
1818
- lists: ListsState;
1819
- }) => List[]) & {
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
- [listId: string]: List;
1828
- }) => List[];
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
- [listId: string]: List;
1833
- }) => List[]) & {
1832
+ [collectionId: string]: Collection;
1833
+ }) => Collection[]) & {
1834
1834
  clearCache: () => void;
1835
1835
  resultsCount: () => number;
1836
1836
  resetResultsCount: () => void;
1837
1837
  };
1838
- lastResult: () => List[];
1838
+ lastResult: () => Collection[];
1839
1839
  dependencies: [(state: {
1840
- lists: ListsState;
1840
+ collections: CollectionsState;
1841
1841
  }) => string | null, (state: {
1842
- lists: ListsState;
1842
+ collections: CollectionsState;
1843
1843
  }) => {
1844
1844
  [parentId: string]: string[];
1845
1845
  }, (state: {
1846
- lists: ListsState;
1846
+ collections: CollectionsState;
1847
1847
  }) => {
1848
- [listId: string]: List;
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 selectListsLoading: (state: {
1859
- lists: ListsState;
1858
+ export declare const selectCollectionsLoading: (state: {
1859
+ collections: CollectionsState;
1860
1860
  }) => boolean;
1861
- export declare const selectListHistory: ((state: {
1862
- lists: ListsState;
1861
+ export declare const selectCollectionHistory: ((state: {
1862
+ collections: CollectionsState;
1863
1863
  } & {
1864
- lists: ListsState;
1865
- }) => List[]) & {
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
- [listId: string]: List;
1872
- }) => List[];
1871
+ [collectionId: string]: Collection;
1872
+ }) => Collection[];
1873
1873
  memoizedResultFunc: ((resultFuncArgs_0: string[], resultFuncArgs_1: {
1874
- [listId: string]: List;
1875
- }) => List[]) & {
1874
+ [collectionId: string]: Collection;
1875
+ }) => Collection[]) & {
1876
1876
  clearCache: () => void;
1877
1877
  resultsCount: () => number;
1878
1878
  resetResultsCount: () => void;
1879
1879
  };
1880
- lastResult: () => List[];
1880
+ lastResult: () => Collection[];
1881
1881
  dependencies: [(state: {
1882
- lists: ListsState;
1882
+ collections: CollectionsState;
1883
1883
  }) => string[], (state: {
1884
- lists: ListsState;
1884
+ collections: CollectionsState;
1885
1885
  }) => {
1886
- [listId: string]: List;
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 selectSubListsMap: (state: {
1897
- lists: ListsState;
1896
+ export declare const selectSubCollectionsMap: (state: {
1897
+ collections: CollectionsState;
1898
1898
  }) => {
1899
1899
  [parentId: string]: string[];
1900
1900
  };
1901
- export declare const selectListsById: (state: {
1902
- lists: ListsState;
1901
+ export declare const selectCollectionsById: (state: {
1902
+ collections: CollectionsState;
1903
1903
  }) => {
1904
- [listId: string]: List;
1904
+ [collectionId: string]: Collection;
1905
1905
  };
1906
1906
  export declare const selectCurrentProjectId: (state: {
1907
- lists: ListsState;
1907
+ collections: CollectionsState;
1908
1908
  }) => string | undefined;
1909
- export declare const selectCurrentListId: (state: {
1910
- lists: ListsState;
1909
+ export declare const selectCurrentCollectionId: (state: {
1910
+ collections: CollectionsState;
1911
1911
  }) => string | null;