@overmap-ai/core 1.0.59 → 1.0.60-export-overmap-reducer.0
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/contexts/overmap.d.ts +2 -2
- package/dist/contexts/sdk/globals.d.ts +3 -3
- package/dist/contexts/sdk/sdk.d.ts +4 -4
- package/dist/enums/index.d.ts +0 -1
- package/dist/forms/fields/BaseField/layouts.d.ts +3 -2
- package/dist/forms/fields/typings.d.ts +3 -3
- package/dist/forms/index.d.ts +1 -0
- package/dist/forms/provider.d.ts +5 -0
- package/dist/forms/renderer/index.d.ts +0 -1
- package/dist/overmap-core.js +5494 -3106
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +5571 -3184
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +4 -4
- package/dist/sdk/services/AssetAttachmentService.d.ts +9 -3
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +9 -3
- package/dist/sdk/services/BaseAttachmentService.d.ts +11 -15
- package/dist/sdk/services/CategoryService.d.ts +1 -20
- package/dist/sdk/services/DocumentAttachmentService.d.ts +9 -3
- package/dist/sdk/services/EmailDomainsService.d.ts +0 -1
- package/dist/sdk/services/IssueAttachmentService.d.ts +9 -3
- package/dist/sdk/services/IssueService.d.ts +1 -2
- package/dist/sdk/services/ProjectAttachmentService.d.ts +9 -3
- package/dist/store/adapter.d.ts +15 -0
- package/dist/store/index.d.ts +0 -1
- package/dist/store/slices/agentsSlice.d.ts +24 -13
- package/dist/store/slices/assetAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/assetSlice.d.ts +11 -52
- package/dist/store/slices/assetStageCompletionSlice.d.ts +2 -2
- package/dist/store/slices/assetStageSlice.d.ts +32 -24
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/assetTypeSlice.d.ts +11 -49
- package/dist/store/slices/authSlice.d.ts +3 -3
- package/dist/store/slices/categorySlice.d.ts +19 -60
- package/dist/store/slices/documentAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/documentSlice.d.ts +5 -79
- package/dist/store/slices/emailDomainsSlice.d.ts +14 -11
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +46 -0
- package/dist/store/slices/formRevisionSlice.d.ts +32 -56
- package/dist/store/slices/formSlice.d.ts +27 -22
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +46 -0
- package/dist/store/slices/formSubmissionSlice.d.ts +29 -29
- package/dist/store/slices/index.d.ts +9 -1
- package/dist/store/slices/issueAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/issueCommentSlice.d.ts +34 -0
- package/dist/store/slices/issueSlice.d.ts +25 -131
- package/dist/store/slices/issueTypeSlice.d.ts +25 -11
- package/dist/store/slices/issueUpdateSlice.d.ts +34 -0
- package/dist/store/slices/licenseSlice.d.ts +9 -7
- package/dist/store/slices/organizationAccessSlice.d.ts +14 -12
- package/dist/store/slices/outboxSlice.d.ts +3 -3
- package/dist/store/slices/projectAccessSlice.d.ts +16 -12
- package/dist/store/slices/projectAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/projectFileSlice.d.ts +4 -37
- package/dist/store/slices/projectSlice.d.ts +5 -46
- package/dist/store/slices/rehydratedSlice.d.ts +3 -2
- package/dist/store/slices/settingsSlice.d.ts +3 -24
- package/dist/store/slices/teamSlice.d.ts +24 -10
- package/dist/store/slices/userSlice.d.ts +4 -4
- package/dist/store/slices/workspaceSlice.d.ts +22 -52
- package/dist/store/store.d.ts +15 -70
- package/dist/store/typings.d.ts +3 -0
- package/dist/style.css +0 -7
- package/dist/typings/models/store.d.ts +41 -4
- package/dist/typings/store.d.ts +4 -4
- package/dist/utils/utils.d.ts +3 -3
- package/package.json +5 -3
- package/dist/enums/map.d.ts +0 -6
- package/dist/forms/renderer/FormSubmissionBrowser/FormSubmissionBrowser.d.ts +0 -28
- package/dist/store/hooks.d.ts +0 -4
- package/dist/store/slices/mapSlice.d.ts +0 -23
- package/dist/store/slices/utils.d.ts +0 -14
|
@@ -1,32 +1,37 @@
|
|
|
1
|
-
import { Reducer
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
2
|
import { CachedUserForm, UserForm } from '../../typings/models/forms';
|
|
3
3
|
import { SearchArgs } from '../../typings/search';
|
|
4
4
|
import { Selector, SelectorWithArgs } from '../../typings/store';
|
|
5
|
-
import { Stored
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
5
|
+
import { Stored } from "../../typings";
|
|
6
|
+
import { ModelState } from "../typings";
|
|
7
|
+
export type FormState = ModelState<Stored<UserForm>>;
|
|
9
8
|
export declare const formSlice: import("@reduxjs/toolkit").Slice<FormState, {
|
|
10
|
-
setForms: (state:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
favoriteForm: (state: import("immer/dist/internal.js").WritableDraft<FormState>, action: {
|
|
14
|
-
payload: {
|
|
15
|
-
formId: string;
|
|
16
|
-
};
|
|
9
|
+
setForms: <TState extends ModelState<Stored<UserForm>>>(state: TState, action: {
|
|
10
|
+
payload: Stored<UserForm>[];
|
|
11
|
+
type: string;
|
|
17
12
|
}) => void;
|
|
18
|
-
|
|
19
|
-
payload:
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
setForm: <TState_1 extends ModelState<Stored<UserForm>>>(state: TState_1, action: {
|
|
14
|
+
payload: Stored<UserForm>;
|
|
15
|
+
type: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
addForm: <TState_2 extends ModelState<Stored<UserForm>>>(state: TState_2, action: {
|
|
18
|
+
payload: Stored<UserForm>;
|
|
19
|
+
type: string;
|
|
20
|
+
}) => void;
|
|
21
|
+
addForms: <TState_3 extends ModelState<Stored<UserForm>>>(state: TState_3, action: {
|
|
22
|
+
payload: Stored<UserForm>[];
|
|
23
|
+
type: string;
|
|
24
|
+
}) => void;
|
|
25
|
+
updateForm: <TState_4 extends ModelState<Stored<UserForm>>>(state: TState_4, action: {
|
|
26
|
+
payload: Stored<UserForm>;
|
|
27
|
+
type: string;
|
|
28
|
+
}) => void;
|
|
29
|
+
deleteForm: <TState_5 extends ModelState<Stored<UserForm>>>(state: TState_5, action: {
|
|
30
|
+
payload: string;
|
|
31
|
+
type: string;
|
|
22
32
|
}) => void;
|
|
23
|
-
deleteForm: (state: import("immer/dist/internal.js").WritableDraft<FormState>, action: PayloadAction<string>) => void;
|
|
24
33
|
}, "forms">;
|
|
25
|
-
export declare const setForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
26
|
-
formId: string;
|
|
27
|
-
}, "forms/favoriteForm">, unfavoriteForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
28
|
-
formId: string;
|
|
29
|
-
}, "forms/unfavoriteForm">, deleteForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "forms/deleteForm">;
|
|
34
|
+
export declare const setForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserForm>[], "forms/setForms">, setForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserForm>, "forms/setForm">, addForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserForm>, "forms/addForm">, addForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserForm>[], "forms/addForms">, updateForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserForm>, "forms/updateForm">, deleteForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "forms/deleteForm">;
|
|
30
35
|
export type FormSearchArgs = SearchArgs<{
|
|
31
36
|
/** `undefined` means don't filter by favorite. `boolean` filters forms. */
|
|
32
37
|
favorites?: boolean;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
+
import { ModelState } from "../typings";
|
|
3
|
+
import { Selector, SelectorWithArgs, Stored, UserFormSubmissionAttachment } from "../../typings";
|
|
4
|
+
export type FormSubmissionAttachmentState = ModelState<Stored<UserFormSubmissionAttachment>>;
|
|
5
|
+
export declare const formSubmissionAttachmentSlice: import("@reduxjs/toolkit").Slice<FormSubmissionAttachmentState, {
|
|
6
|
+
initializeFormSubmissionAttachments: <TState extends ModelState<Stored<UserFormSubmissionAttachment>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<UserFormSubmissionAttachment>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addFormSubmissionAttachment: <TState_1 extends ModelState<Stored<UserFormSubmissionAttachment>>>(state: TState_1, action: {
|
|
11
|
+
payload: Stored<UserFormSubmissionAttachment>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addFormSubmissionAttachments: <TState_2 extends ModelState<Stored<UserFormSubmissionAttachment>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<UserFormSubmissionAttachment>[];
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
setFormSubmissionAttachment: <TState_3 extends ModelState<Stored<UserFormSubmissionAttachment>>>(state: TState_3, action: {
|
|
19
|
+
payload: Stored<UserFormSubmissionAttachment>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
setFormSubmissionAttachments: <TState_4 extends ModelState<Stored<UserFormSubmissionAttachment>>>(state: TState_4, action: {
|
|
23
|
+
payload: Stored<UserFormSubmissionAttachment>[];
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
updateFormSubmissionAttachment: <TState_5 extends ModelState<Stored<UserFormSubmissionAttachment>>>(state: TState_5, action: {
|
|
27
|
+
payload: Stored<UserFormSubmissionAttachment>;
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
updateFormSubmissionAttachments: <TState_6 extends ModelState<Stored<UserFormSubmissionAttachment>>>(state: TState_6, action: {
|
|
31
|
+
payload: Stored<UserFormSubmissionAttachment>[];
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
deleteFormSubmissionAttachment: <TState_7 extends ModelState<Stored<UserFormSubmissionAttachment>>>(state: TState_7, action: {
|
|
35
|
+
payload: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}) => void;
|
|
38
|
+
deleteFormSubmissionAttachments: <TState_8 extends ModelState<Stored<UserFormSubmissionAttachment>>>(state: TState_8, action: {
|
|
39
|
+
payload: string[];
|
|
40
|
+
type: string;
|
|
41
|
+
}) => void;
|
|
42
|
+
}, "formSubmissionAttachments">;
|
|
43
|
+
export declare const initializeFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmissionAttachment>[], "formSubmissionAttachments/initializeFormSubmissionAttachments">, addFormSubmissionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmissionAttachment>, "formSubmissionAttachments/addFormSubmissionAttachment">, addFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmissionAttachment>[], "formSubmissionAttachments/addFormSubmissionAttachments">, setFormSubmissionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmissionAttachment>, "formSubmissionAttachments/setFormSubmissionAttachment">, setFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmissionAttachment>[], "formSubmissionAttachments/setFormSubmissionAttachments">, updateFormSubmissionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmissionAttachment>, "formSubmissionAttachments/updateFormSubmissionAttachment">, updateFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmissionAttachment>[], "formSubmissionAttachments/updateFormSubmissionAttachments">, deleteFormSubmissionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "formSubmissionAttachments/deleteFormSubmissionAttachment">, deleteFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "formSubmissionAttachments/deleteFormSubmissionAttachments">;
|
|
44
|
+
export declare const selectFormSubmissionAttachmentsMapping: Selector<FormSubmissionAttachmentState["instances"]>;
|
|
45
|
+
export declare const selectAttachmentsOfFormSubmission: SelectorWithArgs<string, Stored<UserFormSubmissionAttachment>[]>;
|
|
46
|
+
export declare const formSubmissionAttachmentReducer: Reducer<FormSubmissionAttachmentState>;
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Selector, SelectorWithArgs, Stored, UserFormSubmission
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
attachments: Record<UserFormSubmissionAttachment["offline_id"], Stored<UserFormSubmissionAttachment>>;
|
|
6
|
-
}
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
+
import { Selector, SelectorWithArgs, Stored, UserFormSubmission } from "../../typings";
|
|
3
|
+
import { ModelState } from "../typings";
|
|
4
|
+
export type FormSubmissionState = ModelState<Stored<UserFormSubmission>>;
|
|
7
5
|
export declare const formSubmissionSlice: import("@reduxjs/toolkit").Slice<FormSubmissionState, {
|
|
8
|
-
setFormSubmission:
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
setFormSubmission: <TState extends ModelState<Stored<UserFormSubmission>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<UserFormSubmission>;
|
|
8
|
+
type: string;
|
|
11
9
|
}) => void;
|
|
12
|
-
|
|
13
|
-
addFormSubmissions: (state: import("immer/dist/internal.js").WritableDraft<FormSubmissionState>, action: {
|
|
10
|
+
setFormSubmissions: <TState_1 extends ModelState<Stored<UserFormSubmission>>>(state: TState_1, action: {
|
|
14
11
|
payload: Stored<UserFormSubmission>[];
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addFormSubmission: <TState_2 extends ModelState<Stored<UserFormSubmission>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<UserFormSubmission>;
|
|
16
|
+
type: string;
|
|
15
17
|
}) => void;
|
|
16
|
-
|
|
17
|
-
updateFormSubmissions: (state: import("immer/dist/internal.js").WritableDraft<FormSubmissionState>, action: {
|
|
18
|
+
addFormSubmissions: <TState_3 extends ModelState<Stored<UserFormSubmission>>>(state: TState_3, action: {
|
|
18
19
|
payload: Stored<UserFormSubmission>[];
|
|
20
|
+
type: string;
|
|
19
21
|
}) => void;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
updateFormSubmission: <TState_4 extends ModelState<Stored<UserFormSubmission>>>(state: TState_4, action: {
|
|
23
|
+
payload: Stored<UserFormSubmission>;
|
|
24
|
+
type: string;
|
|
23
25
|
}) => void;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
updateFormSubmissions: <TState_5 extends ModelState<Stored<UserFormSubmission>>>(state: TState_5, action: {
|
|
27
|
+
payload: Stored<UserFormSubmission>[];
|
|
28
|
+
type: string;
|
|
27
29
|
}) => void;
|
|
28
|
-
|
|
29
|
-
payload:
|
|
30
|
+
deleteFormSubmission: <TState_6 extends ModelState<Stored<UserFormSubmission>>>(state: TState_6, action: {
|
|
31
|
+
payload: string;
|
|
32
|
+
type: string;
|
|
30
33
|
}) => void;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
payload: UserFormSubmissionAttachment["offline_id"][];
|
|
34
|
+
deleteFormSubmissions: <TState_7 extends ModelState<Stored<UserFormSubmission>>>(state: TState_7, action: {
|
|
35
|
+
payload: string[];
|
|
36
|
+
type: string;
|
|
35
37
|
}) => void;
|
|
36
38
|
}, "formSubmissions">;
|
|
37
|
-
export declare const setFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>, "formSubmissions/setFormSubmission">, setFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>[], "formSubmissions/setFormSubmissions">, addFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>, "formSubmissions/addFormSubmission">, addFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>[], "formSubmissions/addFormSubmissions">, updateFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>, "formSubmissions/updateFormSubmission">, updateFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>[], "formSubmissions/updateFormSubmissions">, deleteFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "formSubmissions/deleteFormSubmission">, deleteFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "formSubmissions/deleteFormSubmissions"
|
|
38
|
-
export declare const selectFormSubmissionsMapping: Selector<FormSubmissionState["
|
|
39
|
+
export declare const setFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>, "formSubmissions/setFormSubmission">, setFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>[], "formSubmissions/setFormSubmissions">, addFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>, "formSubmissions/addFormSubmission">, addFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>[], "formSubmissions/addFormSubmissions">, updateFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>, "formSubmissions/updateFormSubmission">, updateFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormSubmission>[], "formSubmissions/updateFormSubmissions">, deleteFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "formSubmissions/deleteFormSubmission">, deleteFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "formSubmissions/deleteFormSubmissions">;
|
|
40
|
+
export declare const selectFormSubmissionsMapping: Selector<FormSubmissionState["instances"]>;
|
|
39
41
|
export declare const selectFormSubmissions: Selector<Stored<UserFormSubmission>[]>;
|
|
40
42
|
export declare const selectFormSubmission: SelectorWithArgs<string, Stored<UserFormSubmission>>;
|
|
41
43
|
export declare const selectFormSubmissionsOfForm: SelectorWithArgs<string, Stored<UserFormSubmission>[]>;
|
|
@@ -45,6 +47,4 @@ export declare const selectFormSubmissionsOfIssue: SelectorWithArgs<string, Stor
|
|
|
45
47
|
export declare const selectFormSubmissionsByIssues: SelectorWithArgs<string[], Record<string, Stored<UserFormSubmission>[]>>;
|
|
46
48
|
export declare const selectFormSubmissionsOfAsset: SelectorWithArgs<string, Stored<UserFormSubmission>[]>;
|
|
47
49
|
export declare const selectFormSubmissionsByAssets: Selector<Record<string, Stored<UserFormSubmission>[]>>;
|
|
48
|
-
export declare const selectFormSubmissionAttachmentsMapping: Selector<FormSubmissionState["attachments"]>;
|
|
49
|
-
export declare const selectAttachmentsOfFormSubmission: SelectorWithArgs<string, Stored<UserFormSubmissionAttachment>[]>;
|
|
50
50
|
export declare const formSubmissionReducer: Reducer<FormSubmissionState>;
|
|
@@ -1,28 +1,36 @@
|
|
|
1
1
|
export * from "./authSlice";
|
|
2
2
|
export * from "./categorySlice";
|
|
3
3
|
export * from "./assetSlice";
|
|
4
|
+
export * from "./assetAttachmentSlice";
|
|
4
5
|
export * from "./assetStageCompletionSlice";
|
|
5
6
|
export * from "./assetStageSlice";
|
|
6
7
|
export * from "./assetTypeSlice";
|
|
8
|
+
export * from "./assetTypeAttachmentSlice";
|
|
7
9
|
export * from "./issueSlice";
|
|
8
10
|
export * from "./issueTypeSlice";
|
|
9
11
|
export * from "./fileSlice";
|
|
10
|
-
export * from "./mapSlice";
|
|
11
12
|
export * from "./organizationSlice";
|
|
12
13
|
export * from "./outboxSlice";
|
|
13
14
|
export * from "./projectAccessSlice";
|
|
14
15
|
export * from "./projectFileSlice";
|
|
15
16
|
export * from "./projectSlice";
|
|
17
|
+
export * from "./projectAttachmentSlice";
|
|
16
18
|
export * from "./rehydratedSlice";
|
|
17
19
|
export * from "./settingsSlice";
|
|
18
20
|
export * from "./formSlice";
|
|
19
21
|
export * from "./formSubmissionSlice";
|
|
22
|
+
export * from "./formSubmissionAttachmentSlice";
|
|
20
23
|
export * from "./formRevisionSlice";
|
|
24
|
+
export * from "./formRevisionAttachmentSlice";
|
|
21
25
|
export * from "./userSlice";
|
|
22
26
|
export * from "./workspaceSlice";
|
|
23
27
|
export * from "./organizationAccessSlice";
|
|
24
28
|
export * from "./emailDomainsSlice";
|
|
25
29
|
export * from "./licenseSlice";
|
|
26
30
|
export * from "./documentSlice";
|
|
31
|
+
export * from "./documentAttachmentSlice";
|
|
27
32
|
export * from "./teamSlice";
|
|
28
33
|
export * from "./agentsSlice";
|
|
34
|
+
export * from "./issueCommentSlice";
|
|
35
|
+
export * from "./issueUpdateSlice";
|
|
36
|
+
export * from "./issueAttachmentSlice";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
+
import { IssueAttachment, OvermapRootState, Selector, SelectorWithArgs, Stored } from "../../typings";
|
|
3
|
+
import { ModelState } from "../typings";
|
|
4
|
+
export type IssueAttachmentState = ModelState<Stored<IssueAttachment>>;
|
|
5
|
+
export declare const issueAttachmentSlice: import("@reduxjs/toolkit").Slice<IssueAttachmentState, {
|
|
6
|
+
initializeIssueAttachments: <TState extends ModelState<Stored<IssueAttachment>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<IssueAttachment>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addIssueAttachment: <TState_1 extends ModelState<Stored<IssueAttachment>>>(state: TState_1, action: {
|
|
11
|
+
payload: Stored<IssueAttachment>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addIssueAttachments: <TState_2 extends ModelState<Stored<IssueAttachment>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<IssueAttachment>[];
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
setIssueAttachment: <TState_3 extends ModelState<Stored<IssueAttachment>>>(state: TState_3, action: {
|
|
19
|
+
payload: Stored<IssueAttachment>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
setIssueAttachments: <TState_4 extends ModelState<Stored<IssueAttachment>>>(state: TState_4, action: {
|
|
23
|
+
payload: Stored<IssueAttachment>[];
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
updateIssueAttachment: <TState_5 extends ModelState<Stored<IssueAttachment>>>(state: TState_5, action: {
|
|
27
|
+
payload: Stored<IssueAttachment>;
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
updateIssueAttachments: <TState_6 extends ModelState<Stored<IssueAttachment>>>(state: TState_6, action: {
|
|
31
|
+
payload: Stored<IssueAttachment>[];
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
deleteIssueAttachment: <TState_7 extends ModelState<Stored<IssueAttachment>>>(state: TState_7, action: {
|
|
35
|
+
payload: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}) => void;
|
|
38
|
+
deleteIssueAttachments: <TState_8 extends ModelState<Stored<IssueAttachment>>>(state: TState_8, action: {
|
|
39
|
+
payload: string[];
|
|
40
|
+
type: string;
|
|
41
|
+
}) => void;
|
|
42
|
+
}, "issueAttachments">;
|
|
43
|
+
export declare const initializeIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/initializeIssueAttachments">, addIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueAttachment>, "issueAttachments/addIssueAttachment">, addIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/addIssueAttachments">, setIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueAttachment>, "issueAttachments/setIssueAttachment">, setIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/setIssueAttachments">, updateIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueAttachment>, "issueAttachments/updateIssueAttachment">, updateIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/updateIssueAttachments">, deleteIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issueAttachments/deleteIssueAttachment">, deleteIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issueAttachments/deleteIssueAttachments">;
|
|
44
|
+
export declare const selectIssueAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<IssueAttachment>>;
|
|
45
|
+
export declare const selectIssueAttachments: Selector<Stored<IssueAttachment>[]>;
|
|
46
|
+
export declare const selectAttachmentsOfIssue: (args: string) => (state: OvermapRootState) => Stored<IssueAttachment>[];
|
|
47
|
+
export declare const selectIssueAttachment: SelectorWithArgs<string, Stored<IssueAttachment>>;
|
|
48
|
+
export declare const selectAttachmentsOfIssueByType: (args: string) => (state: OvermapRootState) => {
|
|
49
|
+
fileAttachments: Stored<IssueAttachment>[];
|
|
50
|
+
imageAttachments: Stored<IssueAttachment>[];
|
|
51
|
+
};
|
|
52
|
+
export declare const issueAttachmentReducer: Reducer<IssueAttachmentState>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
+
import { ModelState } from "../typings";
|
|
3
|
+
import { IssueComment, OvermapRootState, Stored } from "../../typings";
|
|
4
|
+
export type IssueCommentState = ModelState<Stored<IssueComment>>;
|
|
5
|
+
export declare const issueCommentSlice: import("@reduxjs/toolkit").Slice<IssueCommentState, {
|
|
6
|
+
addIssueComment: <TState extends ModelState<Stored<IssueComment>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<IssueComment>;
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addIssueComments: <TState_1 extends ModelState<Stored<IssueComment>>>(state: TState_1, action: {
|
|
11
|
+
payload: Stored<IssueComment>[];
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
setIssueComment: <TState_2 extends ModelState<Stored<IssueComment>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<IssueComment>;
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
setIssueComments: <TState_3 extends ModelState<Stored<IssueComment>>>(state: TState_3, action: {
|
|
19
|
+
payload: Stored<IssueComment>[];
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
deleteIssueComment: <TState_4 extends ModelState<Stored<IssueComment>>>(state: TState_4, action: {
|
|
23
|
+
payload: string;
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
deleteIssueComments: <TState_5 extends ModelState<Stored<IssueComment>>>(state: TState_5, action: {
|
|
27
|
+
payload: string[];
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
}, "issueComments">;
|
|
31
|
+
export declare const setIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueComment>[], "issueComments/setIssueComments">, setIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueComment>, "issueComments/setIssueComment">, addIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueComment>, "issueComments/addIssueComment">, addIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueComment>[], "issueComments/addIssueComments">, deleteIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issueComments/deleteIssueComment">, deleteIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issueComments/deleteIssueComments">;
|
|
32
|
+
export declare const selectIssueCommentMapping: (state: OvermapRootState) => Record<string, Stored<IssueComment>>;
|
|
33
|
+
export declare const selectCommentsOfIssue: (args: string) => (state: OvermapRootState) => Stored<IssueComment>[];
|
|
34
|
+
export declare const issueCommentReducer: Reducer<IssueCommentState>;
|
|
@@ -1,171 +1,65 @@
|
|
|
1
|
-
/// <reference types="@redux-offline/redux-offline" />
|
|
2
1
|
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
3
|
-
import {
|
|
2
|
+
import { Issue, OvermapRootState, SearchableRecentResult, SearchArgs, SearchResult, Selector, SelectorWithArgs, Stored } from "../../typings";
|
|
4
3
|
import { IssueStatus } from "../../enums";
|
|
4
|
+
import { ModelState } from "../typings";
|
|
5
5
|
interface RecentIssueId {
|
|
6
6
|
offlineId: string;
|
|
7
7
|
lastOpenedEpochTime: number;
|
|
8
8
|
}
|
|
9
|
-
export interface IssueState {
|
|
10
|
-
issues: Record<string, Stored<Issue>>;
|
|
11
|
-
attachments: Record<string, Stored<IssueAttachment>>;
|
|
12
|
-
comments: Record<string, Stored<IssueComment>>;
|
|
13
|
-
updates: Record<string, Stored<IssueUpdate>>;
|
|
9
|
+
export interface IssueState extends ModelState<Stored<Issue>> {
|
|
14
10
|
visibleStatuses: IssueStatus[];
|
|
15
11
|
visibleUserIds: (number | null)[] | null;
|
|
16
12
|
recentIssueIds: RecentIssueId[];
|
|
17
|
-
activeIssueId: string | null;
|
|
18
13
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Manages issues and categories stored offline.
|
|
21
|
-
* Issue and category functionality is combined because they modify each other.
|
|
22
|
-
* For example, if a category's color is changed then all issues with the category must be changed too.
|
|
23
|
-
*/
|
|
24
14
|
export declare const issueSlice: import("@reduxjs/toolkit").Slice<IssueState, {
|
|
25
|
-
|
|
26
|
-
payload:
|
|
27
|
-
|
|
28
|
-
setIssueUpdates: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
29
|
-
payload: Created<IssueUpdate>[];
|
|
30
|
-
}) => void;
|
|
31
|
-
setActiveIssueId: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
32
|
-
payload: string | null;
|
|
15
|
+
initializeIssues: <TState extends ModelState<Stored<Issue>>>(state: TState, action: {
|
|
16
|
+
payload: Stored<Issue>[];
|
|
17
|
+
type: string;
|
|
33
18
|
}) => void;
|
|
34
|
-
addIssue: (state:
|
|
35
|
-
payload:
|
|
19
|
+
addIssue: <TState_1 extends ModelState<Stored<Issue>>>(state: TState_1, action: {
|
|
20
|
+
payload: Stored<Issue>;
|
|
21
|
+
type: string;
|
|
36
22
|
}) => void;
|
|
37
|
-
addIssues: (state:
|
|
23
|
+
addIssues: <TState_2 extends ModelState<Stored<Issue>>>(state: TState_2, action: {
|
|
38
24
|
payload: Stored<Issue>[];
|
|
25
|
+
type: string;
|
|
39
26
|
}) => void;
|
|
40
|
-
|
|
41
|
-
payload:
|
|
27
|
+
updateIssue: <TState_3 extends ModelState<Stored<Issue>>>(state: TState_3, action: {
|
|
28
|
+
payload: Stored<Issue>;
|
|
29
|
+
type: string;
|
|
42
30
|
}) => void;
|
|
43
|
-
|
|
44
|
-
payload:
|
|
31
|
+
deleteIssue: <TState_4 extends ModelState<Stored<Issue>>>(state: TState_4, action: {
|
|
32
|
+
payload: string;
|
|
33
|
+
type: string;
|
|
45
34
|
}) => void;
|
|
46
|
-
|
|
47
|
-
payload:
|
|
35
|
+
deleteIssues: <TState_5 extends ModelState<Stored<Issue>>>(state: TState_5, action: {
|
|
36
|
+
payload: string[];
|
|
37
|
+
type: string;
|
|
48
38
|
}) => void;
|
|
49
|
-
removeIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
50
|
-
removeIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string[]>) => void;
|
|
51
|
-
removeIssueUpdate: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
52
|
-
removeIssueUpdates: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string[]>) => void;
|
|
53
|
-
removeAttachmentsOfIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
54
39
|
setVisibleStatuses: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<IssueStatus[]>) => void;
|
|
55
40
|
setVisibleUserIds: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
56
41
|
payload: (number | null)[];
|
|
57
42
|
}) => void;
|
|
58
|
-
addIssueComment: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<Submitted<IssueComment>>) => void;
|
|
59
|
-
addIssueComments: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<Submitted<IssueComment>[]>) => void;
|
|
60
|
-
setIssueComment: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<Stored<IssueComment>>) => void;
|
|
61
|
-
setIssueComments: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<Stored<IssueComment>[]>) => void;
|
|
62
|
-
addOrReplaceIssueComment: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<Submitted<IssueComment>>) => void;
|
|
63
|
-
removeIssueComment: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
64
|
-
removeIssueComments: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string[]>) => void;
|
|
65
43
|
cleanRecentIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>) => void;
|
|
66
44
|
addToRecentIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
67
45
|
payload: string;
|
|
68
46
|
}) => void;
|
|
69
47
|
resetRecentIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>) => void;
|
|
70
48
|
removeRecentIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
71
|
-
setIssueAttachment: (state: IssueState, action: {
|
|
72
|
-
payload: Stored<IssueAttachment>;
|
|
73
|
-
type: string;
|
|
74
|
-
}) => void;
|
|
75
|
-
setIssueAttachments: (state: IssueState, action: {
|
|
76
|
-
payload: Stored<IssueAttachment>[];
|
|
77
|
-
type: string;
|
|
78
|
-
}) => void;
|
|
79
|
-
addIssueAttachment: (state: IssueState, action: {
|
|
80
|
-
payload: Submitted<IssueAttachment>;
|
|
81
|
-
type: string;
|
|
82
|
-
}) => void;
|
|
83
|
-
addIssueAttachments: (state: IssueState, action: {
|
|
84
|
-
payload: Submitted<IssueAttachment>[];
|
|
85
|
-
type: string;
|
|
86
|
-
}) => void;
|
|
87
|
-
updateIssueAttachment: (state: IssueState, action: {
|
|
88
|
-
payload: Submitted<IssueAttachment>;
|
|
89
|
-
type: string;
|
|
90
|
-
}) => void;
|
|
91
|
-
updateIssueAttachments: (state: IssueState, action: {
|
|
92
|
-
payload: Submitted<IssueAttachment>[];
|
|
93
|
-
type: string;
|
|
94
|
-
}) => void;
|
|
95
|
-
removeIssueAttachment: (state: IssueState, action: {
|
|
96
|
-
payload: string;
|
|
97
|
-
type: string;
|
|
98
|
-
}) => void;
|
|
99
|
-
removeIssueAttachments: (state: IssueState, action: {
|
|
100
|
-
payload: string[];
|
|
101
|
-
type: string;
|
|
102
|
-
}) => void;
|
|
103
49
|
}, "issues">;
|
|
104
|
-
export declare const
|
|
50
|
+
export declare const initializeIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Issue>[], "issues/initializeIssues">, addIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Issue>, "issues/addIssue">, addIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Issue>[], "issues/addIssues">, updateIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Issue>, "issues/updateIssue">, deleteIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/deleteIssue">, deleteIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issues/deleteIssues">, setVisibleStatuses: import("@reduxjs/toolkit").ActionCreatorWithPayload<IssueStatus[], "issues/setVisibleStatuses">, setVisibleUserIds: import("@reduxjs/toolkit").ActionCreatorWithPayload<(number | null)[], "issues/setVisibleUserIds">, addToRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/addToRecentIssues">, cleanRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/cleanRecentIssues">, removeRecentIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeRecentIssue">, resetRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/resetRecentIssues">;
|
|
105
51
|
export interface IssueFilterArgs {
|
|
106
52
|
filterByAssignedTo: boolean;
|
|
107
53
|
filterByStatus: boolean;
|
|
108
54
|
filterByCategory: boolean;
|
|
109
55
|
filterByWorkspace: boolean;
|
|
110
56
|
}
|
|
111
|
-
export declare const selectIssueMapping: (state:
|
|
112
|
-
export declare const selectRecentIssueIds: (state:
|
|
113
|
-
export declare const selectVisibleUserIds: (state:
|
|
114
|
-
export declare const selectVisibleStatuses: (state:
|
|
57
|
+
export declare const selectIssueMapping: (state: OvermapRootState) => Record<string, Stored<Issue>>;
|
|
58
|
+
export declare const selectRecentIssueIds: (state: OvermapRootState) => RecentIssueId[];
|
|
59
|
+
export declare const selectVisibleUserIds: (state: OvermapRootState) => (number | null)[] | null;
|
|
60
|
+
export declare const selectVisibleStatuses: (state: OvermapRootState) => IssueStatus[];
|
|
115
61
|
export declare const selectIssues: SelectorWithArgs<IssueFilterArgs, Stored<Issue>[]>;
|
|
116
|
-
export declare const selectActiveIssueId: (state: RootState) => string | null;
|
|
117
|
-
export declare const selectIssueAttachmentMapping: (state: RootState) => Record<string, Stored<IssueAttachment>>;
|
|
118
|
-
export declare const selectIssueAttachments: Selector<Stored<IssueAttachment>[]>;
|
|
119
|
-
export declare const selectPhotoAttachmentsOfIssue: SelectorWithArgs<string, Stored<IssueAttachment>[]>;
|
|
120
|
-
export declare const selectCommentMapping: (state: RootState) => Record<string, Stored<IssueComment>>;
|
|
121
|
-
export declare const selectCommentsOfIssue: (args: string) => (state: RootState) => Stored<IssueComment>[];
|
|
122
|
-
export declare const selectIssueUpdateMapping: (state: RootState) => Record<string, Stored<IssueUpdate>>;
|
|
123
|
-
export declare const selectIssueUpdatesOfIssue: (args: string) => (state: RootState) => Stored<IssueUpdate>[];
|
|
124
|
-
export declare const selectAttachmentsOfIssue: (args: string) => (state: RootState) => Stored<IssueAttachment>[];
|
|
125
|
-
export declare const selectIssueAttachment: SelectorWithArgs<string, Stored<IssueAttachment>>;
|
|
126
|
-
export declare const selectAttachmentsOfIssueByType: (args: string) => (state: RootState) => {
|
|
127
|
-
fileAttachments: Stored<IssueAttachment>[];
|
|
128
|
-
imageAttachments: Stored<IssueAttachment>[];
|
|
129
|
-
};
|
|
130
|
-
export declare const selectFileAttachmentsOfIssue: (args: string) => (state: RootState) => Stored<IssueAttachment>[] | undefined;
|
|
131
62
|
export declare const selectIssue: SelectorWithArgs<string, Stored<Issue> | undefined>;
|
|
132
|
-
export declare const selectAllAttachments: ((state: import("redux").EmptyObject & {
|
|
133
|
-
versioning: import('../slices/versioningSlice').VersioningState;
|
|
134
|
-
fileReducer: import('..').FileState;
|
|
135
|
-
authReducer: import('..').AuthState;
|
|
136
|
-
categoryReducer: import("./categorySlice").CategoryState;
|
|
137
|
-
assetReducer: import('..').AssetState;
|
|
138
|
-
assetStageCompletionReducer: import('..').AssetStageCompletionState;
|
|
139
|
-
assetStageReducer: import('..').AssetStageState;
|
|
140
|
-
assetTypeReducer: import('..').AssetTypeState;
|
|
141
|
-
issueReducer: IssueState;
|
|
142
|
-
issueTypeReducer: import('..').IssueTypeState;
|
|
143
|
-
mapReducer: import('..').MapState;
|
|
144
|
-
organizationReducer: import('..').OrganizationState;
|
|
145
|
-
outboxReducer: import('..').OutboxState;
|
|
146
|
-
projectReducer: import('..').ProjectState;
|
|
147
|
-
projectAccessReducer: import('..').ProjectAccessState;
|
|
148
|
-
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
149
|
-
projectFileReducer: import('..').ProjectFileState;
|
|
150
|
-
rehydratedReducer: import('..').RehydratedState;
|
|
151
|
-
settingReducer: import('..').SettingState;
|
|
152
|
-
formReducer: import('..').FormState;
|
|
153
|
-
userReducer: import('..').UserState;
|
|
154
|
-
formRevisionReducer: import('..').FormRevisionState;
|
|
155
|
-
formSubmissionReducer: import('..').FormSubmissionState;
|
|
156
|
-
workspaceReducer: import("./workspaceSlice").WorkspaceState;
|
|
157
|
-
emailDomainsReducer: import('..').EmailDomainState;
|
|
158
|
-
licenseReducer: import('..').LicenseState;
|
|
159
|
-
documentsReducer: import('..').DocumentState;
|
|
160
|
-
teamReducer: import('..').TeamState;
|
|
161
|
-
agentsReducer: import('..').AgentsState;
|
|
162
|
-
} & {
|
|
163
|
-
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
164
|
-
}) => Stored<IssueAttachment>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<IssueAttachment>>) => Stored<IssueAttachment>[], {
|
|
165
|
-
clearCache: () => void;
|
|
166
|
-
}> & {
|
|
167
|
-
clearCache: () => void;
|
|
168
|
-
};
|
|
169
63
|
export declare const searchIssues: SelectorWithArgs<SearchArgs, SearchResult<Stored<Issue>>[]>;
|
|
170
64
|
export declare const selectRecentIssuesAsSearchResults: Selector<SearchableRecentResult<Stored<Issue>>[]>;
|
|
171
65
|
export declare const issueReducer: Reducer<IssueState>;
|
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
2
|
import { Issue, IssueType, Organization, Selector, SelectorWithArgs, Stored } from "../../typings";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
3
|
+
import { ModelState } from "../typings";
|
|
4
|
+
export type IssueTypeState = ModelState<Stored<IssueType>>;
|
|
6
5
|
export declare const issueTypeSlice: import("@reduxjs/toolkit").Slice<IssueTypeState, {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
initializeIssueTypes: <TState extends ModelState<Stored<IssueType>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<IssueType>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
setIssueType: <TState_1 extends ModelState<Stored<IssueType>>>(state: TState_1, action: {
|
|
11
|
+
payload: Stored<IssueType>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addIssueType: <TState_2 extends ModelState<Stored<IssueType>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<IssueType>;
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
updateIssueType: <TState_3 extends ModelState<Stored<IssueType>>>(state: TState_3, action: {
|
|
19
|
+
payload: Stored<IssueType>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
removeIssueType: <TState_4 extends ModelState<Stored<IssueType>>>(state: TState_4, action: {
|
|
23
|
+
payload: string;
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
12
26
|
}, "issueTypes">;
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const selectIssueTypeMapping: Selector<IssueTypeState["
|
|
27
|
+
export declare const initializeIssueTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueType>[], "issueTypes/initializeIssueTypes">, setIssueType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueType>, "issueTypes/setIssueType">, addIssueType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueType>, "issueTypes/addIssueType">, updateIssueType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueType>, "issueTypes/updateIssueType">, removeIssueType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issueTypes/removeIssueType">;
|
|
28
|
+
export declare const selectIssueTypeMapping: Selector<IssueTypeState["instances"]>;
|
|
15
29
|
export declare const selectIssueTypes: Selector<Stored<IssueType>[]>;
|
|
16
30
|
export declare const selectIssueType: SelectorWithArgs<IssueType["offline_id"], Stored<IssueType>>;
|
|
17
31
|
export declare const selectIssueTypesOfOrganization: SelectorWithArgs<Organization["id"], Stored<IssueType>[]>;
|