@zeniai/client-epic-state 5.3.8-beta0DI → 5.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/entity/task/taskPayload.d.ts +0 -1
- package/lib/entity/task/taskPayload.js +0 -1
- package/lib/entity/task/taskReducer.d.ts +1 -4
- package/lib/entity/task/taskReducer.js +2 -19
- package/lib/entity/task/taskState.d.ts +0 -3
- package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +45 -38
- package/lib/epic.d.ts +1 -4
- package/lib/epic.js +0 -9
- package/lib/esm/entity/task/taskPayload.js +0 -1
- package/lib/esm/entity/task/taskReducer.js +1 -18
- package/lib/esm/entity/tenant/epic/fetchAllTenantsEpic.js +46 -39
- package/lib/esm/epic.js +0 -9
- package/lib/esm/index.js +3 -6
- package/lib/esm/init.js +14 -3
- package/lib/esm/reducer.js +0 -6
- package/lib/esm/sessionEndpointsLoader.js +7 -0
- package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +0 -3
- package/lib/esm/view/taskManager/taskListView/taskList.js +0 -5
- package/lib/esm/view/taskManager/taskListView/taskListFilterHelpers.js +0 -2
- package/lib/esm/view/taskManager/taskListView/taskListViewHelpers.js +0 -37
- package/lib/esm/view/transactionDetail/createTransaction/createTransactionPayload.js +14 -2
- package/lib/esm/view/transactionDetail/createTransaction/createTransactionSelector.js +21 -2
- package/lib/index.d.ts +4 -7
- package/lib/index.js +53 -66
- package/lib/init.d.ts +9 -0
- package/lib/init.js +17 -4
- package/lib/reducer.d.ts +0 -2
- package/lib/reducer.js +0 -6
- package/lib/rootStateTypes.d.ts +0 -4
- package/lib/sessionEndpointsLoader.d.ts +9 -0
- package/lib/sessionEndpointsLoader.js +11 -0
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.d.ts +0 -4
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +0 -3
- package/lib/view/taskManager/taskListView/taskList.d.ts +1 -1
- package/lib/view/taskManager/taskListView/taskList.js +0 -5
- package/lib/view/taskManager/taskListView/taskListFilterHelpers.js +0 -2
- package/lib/view/taskManager/taskListView/taskListViewHelpers.d.ts +1 -1
- package/lib/view/taskManager/taskListView/taskListViewHelpers.js +0 -37
- package/lib/view/transactionDetail/createTransaction/createTransactionPayload.d.ts +10 -6
- package/lib/view/transactionDetail/createTransaction/createTransactionPayload.js +14 -2
- package/lib/view/transactionDetail/createTransaction/createTransactionSelector.d.ts +4 -1
- package/lib/view/transactionDetail/createTransaction/createTransactionSelector.js +21 -2
- package/lib/view/transactionDetail/createTransaction/createTransactionState.d.ts +1 -1
- package/lib/zeniAPI.d.ts +2 -2
- package/package.json +1 -1
- package/lib/entity/timeEntry/timeEntryPayload.d.ts +0 -26
- package/lib/entity/timeEntry/timeEntryPayload.js +0 -2
- package/lib/entity/timeEntry/timeEntryReducer.d.ts +0 -8
- package/lib/entity/timeEntry/timeEntryReducer.js +0 -76
- package/lib/entity/timeEntry/timeEntrySelector.d.ts +0 -10
- package/lib/entity/timeEntry/timeEntrySelector.js +0 -32
- package/lib/entity/timeEntry/timeEntryState.d.ts +0 -43
- package/lib/entity/timeEntry/timeEntryState.js +0 -13
- package/lib/esm/entity/timeEntry/timeEntryPayload.js +0 -1
- package/lib/esm/entity/timeEntry/timeEntryReducer.js +0 -70
- package/lib/esm/entity/timeEntry/timeEntrySelector.js +0 -23
- package/lib/esm/entity/timeEntry/timeEntryState.js +0 -8
- package/lib/esm/view/taskManager/timeEntryView/epic/fetchTaskCategoriesEpic.js +0 -24
- package/lib/esm/view/taskManager/timeEntryView/epic/fetchTimeEntriesEpic.js +0 -73
- package/lib/esm/view/taskManager/timeEntryView/epic/writeTimeEntryEpic.js +0 -77
- package/lib/esm/view/taskManager/timeEntryView/timeEntryViewPayload.js +0 -1
- package/lib/esm/view/taskManager/timeEntryView/timeEntryViewReducer.js +0 -160
- package/lib/esm/view/taskManager/timeEntryView/timeEntryViewSelector.js +0 -41
- package/lib/esm/view/taskManager/timeEntryView/timeEntryViewState.js +0 -1
- package/lib/view/taskManager/timeEntryView/epic/fetchTaskCategoriesEpic.d.ts +0 -18
- package/lib/view/taskManager/timeEntryView/epic/fetchTaskCategoriesEpic.js +0 -28
- package/lib/view/taskManager/timeEntryView/epic/fetchTimeEntriesEpic.d.ts +0 -23
- package/lib/view/taskManager/timeEntryView/epic/fetchTimeEntriesEpic.js +0 -78
- package/lib/view/taskManager/timeEntryView/epic/writeTimeEntryEpic.d.ts +0 -23
- package/lib/view/taskManager/timeEntryView/epic/writeTimeEntryEpic.js +0 -83
- package/lib/view/taskManager/timeEntryView/timeEntryViewPayload.d.ts +0 -27
- package/lib/view/taskManager/timeEntryView/timeEntryViewPayload.js +0 -2
- package/lib/view/taskManager/timeEntryView/timeEntryViewReducer.d.ts +0 -48
- package/lib/view/taskManager/timeEntryView/timeEntryViewReducer.js +0 -164
- package/lib/view/taskManager/timeEntryView/timeEntryViewSelector.d.ts +0 -24
- package/lib/view/taskManager/timeEntryView/timeEntryViewSelector.js +0 -46
- package/lib/view/taskManager/timeEntryView/timeEntryViewState.d.ts +0 -21
- package/lib/view/taskManager/timeEntryView/timeEntryViewState.js +0 -5
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
|
-
/** Mon-Fri is quoted to people inclusively, so the key is both ends. */
|
|
3
|
-
export type TimeEntryRangeKey = `${string}_${string}_${string}`;
|
|
4
|
-
export declare const toTimeEntryRangeKey: (userId: ID, startDate: string, endDate: string) => TimeEntryRangeKey;
|
|
5
|
-
export interface TimeEntryViewState {
|
|
6
|
-
fetchStateByRangeKey: Record<TimeEntryRangeKey, FetchStateAndError>;
|
|
7
|
-
fetchStateByTaskId: Record<ID, FetchStateAndError>;
|
|
8
|
-
/** Per task, because two rows can be saving at once on the board and a
|
|
9
|
-
* single flag would make one row's spinner answer for the other. */
|
|
10
|
-
saveStateByTaskId: Record<ID, FetchStateAndError>;
|
|
11
|
-
/** Per entry, for edits and deletes addressed by entry id. */
|
|
12
|
-
saveStateByTimeEntryId: Record<ID, FetchStateAndError>;
|
|
13
|
-
taskCategoryFetchState: FetchStateAndError;
|
|
14
|
-
/** Ids per (user, start, end). Keyed by the window rather than by user so
|
|
15
|
-
* two weeks open at once do not overwrite each other. */
|
|
16
|
-
timeEntryIdsByRangeKey: Record<TimeEntryRangeKey, ID[]>;
|
|
17
|
-
/** Ids per task, so the detail breakdown does not scan every entry in the
|
|
18
|
-
* store. Replaced wholesale on fetch — the server is authoritative about
|
|
19
|
-
* which entries a task has. */
|
|
20
|
-
timeEntryIdsByTaskId: Record<ID, ID[]>;
|
|
21
|
-
}
|