@overmap-ai/core 1.0.74-more-clean-ups.0 → 1.0.74-more-attachments.1
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/overmap-core.js +2370 -2238
- package/dist/overmap-core.umd.cjs +7 -7
- package/dist/sdk/services/IssueAttachmentService.d.ts +1 -0
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +40 -0
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +40 -0
- package/dist/sdk/services/index.d.ts +2 -0
- package/dist/store/slices/assetAttachmentSlice.d.ts +0 -4
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +0 -4
- package/dist/store/slices/documentAttachmentSlice.d.ts +0 -4
- package/dist/store/slices/index.d.ts +2 -0
- package/dist/store/slices/issueAttachmentSlice.d.ts +0 -4
- package/dist/store/slices/issueCommentAttachmentSlice.d.ts +42 -0
- package/dist/store/slices/issueTypeAttachmentSlice.d.ts +42 -0
- package/dist/store/slices/projectAttachmentSlice.d.ts +0 -4
- package/dist/store/store.d.ts +3 -1
- package/dist/typings/models/attachments.d.ts +6 -0
- package/dist/typings/models/store.d.ts +3 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachme
|
|
|
5
5
|
export declare abstract class IssueAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, IssueAttachment> {
|
|
6
6
|
name: string;
|
|
7
7
|
url: string;
|
|
8
|
+
initializeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/initializeIssueAttachments">;
|
|
8
9
|
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/addIssueAttachments">;
|
|
9
10
|
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/updateIssueAttachments">;
|
|
10
11
|
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "issueAttachments/deleteIssueAttachments">;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IssueCommentAttachment, OvermapRootState, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
5
|
+
export declare abstract class IssueCommentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, IssueCommentAttachment> {
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
initializeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueCommentAttachment>[], "issueCommentAttachments/initializeIssueCommentAttachments">;
|
|
9
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueCommentAttachment>[], "issueCommentAttachments/addIssueCommentAttachments">;
|
|
10
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueCommentAttachment>[], "issueCommentAttachments/updateIssueCommentAttachments">;
|
|
11
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "issueCommentAttachments/deleteIssueCommentAttachments">;
|
|
12
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "issueCommentAttachments/deleteIssueCommentAttachment">;
|
|
13
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueCommentAttachment>, "issueCommentAttachments/setIssueCommentAttachment">;
|
|
14
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<IssueCommentAttachment> | undefined>;
|
|
15
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../..').Offline<{
|
|
16
|
+
file: string;
|
|
17
|
+
file_sha1: string;
|
|
18
|
+
created_by: number | undefined;
|
|
19
|
+
file_name: string;
|
|
20
|
+
file_type: string;
|
|
21
|
+
submitted_at: string;
|
|
22
|
+
description: string | undefined;
|
|
23
|
+
issue_comment: string;
|
|
24
|
+
}>;
|
|
25
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
|
|
26
|
+
issue_comment: string;
|
|
27
|
+
modelId: string;
|
|
28
|
+
offline_id: import('../..').OfflineModel["offline_id"];
|
|
29
|
+
description: import('../..').Attachment["description"];
|
|
30
|
+
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
31
|
+
file_name: import('../..').FileWithNameModel["file_name"];
|
|
32
|
+
file_extension: string;
|
|
33
|
+
};
|
|
34
|
+
bulkAdd(payloads: {
|
|
35
|
+
issueCommentId: string;
|
|
36
|
+
file: File;
|
|
37
|
+
}[]): Promise<OptimisticMultipleModelResult<IssueCommentAttachment>>;
|
|
38
|
+
delete(id: string): Promise<void>;
|
|
39
|
+
refreshStore(projectId: number): Promise<void>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IssueTypeAttachment, OvermapRootState, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
5
|
+
export declare abstract class IssueTypeAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, IssueTypeAttachment> {
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
initializeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueTypeAttachment>[], "issueTypeAttachments/initializeIssueTypeAttachments">;
|
|
9
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueTypeAttachment>[], "issueTypeAttachments/addIssueTypeAttachments">;
|
|
10
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueTypeAttachment>[], "issueTypeAttachments/updateIssueTypeAttachments">;
|
|
11
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "issueTypeAttachments/deleteIssueTypeAttachments">;
|
|
12
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "issueTypeAttachments/deleteIssueTypeAttachment">;
|
|
13
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueTypeAttachment>, "issueTypeAttachments/setIssueTypeAttachment">;
|
|
14
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<IssueTypeAttachment> | undefined>;
|
|
15
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../..').Offline<{
|
|
16
|
+
file: string;
|
|
17
|
+
file_sha1: string;
|
|
18
|
+
created_by: number | undefined;
|
|
19
|
+
file_name: string;
|
|
20
|
+
file_type: string;
|
|
21
|
+
submitted_at: string;
|
|
22
|
+
description: string | undefined;
|
|
23
|
+
issue_type: string;
|
|
24
|
+
}>;
|
|
25
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
|
|
26
|
+
issue_type: string;
|
|
27
|
+
modelId: string;
|
|
28
|
+
offline_id: import('../..').OfflineModel["offline_id"];
|
|
29
|
+
description: import('../..').Attachment["description"];
|
|
30
|
+
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
31
|
+
file_name: import('../..').FileWithNameModel["file_name"];
|
|
32
|
+
file_extension: string;
|
|
33
|
+
};
|
|
34
|
+
bulkAdd(payloads: {
|
|
35
|
+
issueTypeId: string;
|
|
36
|
+
file: File;
|
|
37
|
+
}[]): Promise<OptimisticMultipleModelResult<IssueTypeAttachment>>;
|
|
38
|
+
delete(id: string): Promise<void>;
|
|
39
|
+
refreshStore(organizationId: number): Promise<void>;
|
|
40
|
+
}
|
|
@@ -24,8 +24,10 @@ export * from './FormSubmissionService';
|
|
|
24
24
|
export * from './GeoImageService';
|
|
25
25
|
export * from './IssueAssociationService';
|
|
26
26
|
export * from './IssueAttachmentService';
|
|
27
|
+
export * from './IssueCommentAttachmentService';
|
|
27
28
|
export * from './IssueCommentService';
|
|
28
29
|
export * from './IssueService';
|
|
30
|
+
export * from './IssueTypeAttachmentService';
|
|
29
31
|
export * from './IssueTypeFieldsAttachmentService';
|
|
30
32
|
export * from './IssueTypeFieldsService';
|
|
31
33
|
export * from './IssueTypeFieldValuesAttachmentService';
|
|
@@ -39,8 +39,4 @@ export declare const selectAssetAttachmentMapping: (state: OvermapRootState) =>
|
|
|
39
39
|
export declare const selectAssetAttachments: OvermapSelector<Stored<AssetAttachment>[]>;
|
|
40
40
|
export declare const selectAssetAttachmentById: OvermapSelectorWithArgs<string, Stored<AssetAttachment> | undefined>;
|
|
41
41
|
export declare const selectAttachmentsOfAsset: (args: string) => (state: OvermapRootState) => Stored<AssetAttachment>[];
|
|
42
|
-
export declare const selectAttachmentsOfAssetByType: (args: string) => (state: OvermapRootState) => {
|
|
43
|
-
fileAttachments: Stored<AssetAttachment>[];
|
|
44
|
-
imageAttachments: Stored<AssetAttachment>[];
|
|
45
|
-
};
|
|
46
42
|
export declare const assetAttachmentReducer: Reducer<AssetAttachmentState>;
|
|
@@ -39,8 +39,4 @@ export declare const selectAssetTypeAttachmentMapping: (state: OvermapRootState)
|
|
|
39
39
|
export declare const selectAssetTypeAttachments: OvermapSelector<Stored<AssetTypeAttachment>[]>;
|
|
40
40
|
export declare const selectAssetTypeAttachmentById: OvermapSelectorWithArgs<string, Stored<AssetTypeAttachment> | undefined>;
|
|
41
41
|
export declare const selectAttachmentsOfAssetType: (args: string) => (state: OvermapRootState) => Stored<AssetTypeAttachment>[];
|
|
42
|
-
export declare const selectAttachmentsOfAssetTypeByType: (args: string) => (state: OvermapRootState) => {
|
|
43
|
-
fileAttachments: Stored<AssetTypeAttachment>[];
|
|
44
|
-
imageAttachments: Stored<AssetTypeAttachment>[];
|
|
45
|
-
};
|
|
46
42
|
export declare const assetTypeAttachmentReducer: Reducer<AssetTypeAttachmentState>;
|
|
@@ -39,8 +39,4 @@ export declare const selectDocumentAttachmentMapping: (state: OvermapRootState)
|
|
|
39
39
|
export declare const selectAllDocumentAttachments: OvermapSelector<Stored<DocumentAttachment>[]>;
|
|
40
40
|
export declare const selectDocumentAttachmentById: OvermapSelectorWithArgs<string, Stored<DocumentAttachment> | undefined>;
|
|
41
41
|
export declare const selectAttachmentsOfDocument: (args: string) => (state: OvermapRootState) => Stored<DocumentAttachment>[];
|
|
42
|
-
export declare const selectAttachmentsOfDocumentByType: (args: string) => (state: OvermapRootState) => {
|
|
43
|
-
fileAttachments: Stored<DocumentAttachment>[];
|
|
44
|
-
imageAttachments: Stored<DocumentAttachment>[];
|
|
45
|
-
};
|
|
46
42
|
export declare const documentAttachmentReducer: Reducer<DocumentAttachmentState>;
|
|
@@ -23,8 +23,10 @@ export * from './formSubmissionSlice';
|
|
|
23
23
|
export * from './geoImageSlice';
|
|
24
24
|
export * from './issueAssociationSlice';
|
|
25
25
|
export * from './issueAttachmentSlice';
|
|
26
|
+
export * from './issueCommentAttachmentSlice';
|
|
26
27
|
export * from './issueCommentSlice';
|
|
27
28
|
export * from './issueSlice';
|
|
29
|
+
export * from './issueTypeAttachmentSlice';
|
|
28
30
|
export * from './issueTypeFieldsAttachmentSlice';
|
|
29
31
|
export * from './issueTypeFieldsSlice';
|
|
30
32
|
export * from './issueTypeFieldValuesAttachmentSlice';
|
|
@@ -39,8 +39,4 @@ export declare const selectIssueAttachmentMapping: (state: OvermapRootState) =>
|
|
|
39
39
|
export declare const selectIssueAttachments: OvermapSelector<Stored<IssueAttachment>[]>;
|
|
40
40
|
export declare const selectAttachmentsOfIssue: (args: string) => (state: OvermapRootState) => Stored<IssueAttachment>[];
|
|
41
41
|
export declare const selectIssueAttachmentById: OvermapSelectorWithArgs<string, Stored<IssueAttachment> | undefined>;
|
|
42
|
-
export declare const selectAttachmentsOfIssueByType: (args: string) => (state: OvermapRootState) => {
|
|
43
|
-
fileAttachments: Stored<IssueAttachment>[];
|
|
44
|
-
imageAttachments: Stored<IssueAttachment>[];
|
|
45
|
-
};
|
|
46
42
|
export declare const issueAttachmentReducer: Reducer<IssueAttachmentState>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { IssueCommentAttachment, OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
export type IssueCommentAttachmentState = ModelState<Stored<IssueCommentAttachment>>;
|
|
5
|
+
export declare const issueCommentAttachmentSlice: import('@reduxjs/toolkit').Slice<ModelState<Stored<IssueCommentAttachment>>, {
|
|
6
|
+
initializeIssueCommentAttachments: (state: ModelState<Stored<IssueCommentAttachment>>, action: {
|
|
7
|
+
payload: Stored<IssueCommentAttachment>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addIssueCommentAttachment: (state: ModelState<Stored<IssueCommentAttachment>>, action: {
|
|
11
|
+
payload: Stored<IssueCommentAttachment>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addIssueCommentAttachments: (state: ModelState<Stored<IssueCommentAttachment>>, action: {
|
|
15
|
+
payload: Stored<IssueCommentAttachment>[];
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
setIssueCommentAttachment: (state: ModelState<Stored<IssueCommentAttachment>>, action: {
|
|
19
|
+
payload: Stored<IssueCommentAttachment>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
setIssueCommentAttachments: (state: ModelState<Stored<IssueCommentAttachment>>, action: {
|
|
23
|
+
payload: Stored<IssueCommentAttachment>[];
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
updateIssueCommentAttachment: (state: ModelState<Stored<IssueCommentAttachment>>, action: {
|
|
27
|
+
payload: Stored<IssueCommentAttachment>;
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
updateIssueCommentAttachments: (state: ModelState<Stored<IssueCommentAttachment>>, action: {
|
|
31
|
+
payload: Stored<IssueCommentAttachment>[];
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
deleteIssueCommentAttachment: (state: ModelState<Stored<IssueCommentAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
35
|
+
deleteIssueCommentAttachments: (state: ModelState<Stored<IssueCommentAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
36
|
+
}, "issueCommentAttachments", "issueCommentAttachments", import('@reduxjs/toolkit').SliceSelectors<ModelState<Stored<IssueCommentAttachment>>>>;
|
|
37
|
+
export declare const initializeIssueCommentAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueCommentAttachment>[], "issueCommentAttachments/initializeIssueCommentAttachments">, addIssueCommentAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueCommentAttachment>, "issueCommentAttachments/addIssueCommentAttachment">, addIssueCommentAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueCommentAttachment>[], "issueCommentAttachments/addIssueCommentAttachments">, setIssueCommentAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueCommentAttachment>, "issueCommentAttachments/setIssueCommentAttachment">, setIssueCommentAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueCommentAttachment>[], "issueCommentAttachments/setIssueCommentAttachments">, updateIssueCommentAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueCommentAttachment>, "issueCommentAttachments/updateIssueCommentAttachment">, updateIssueCommentAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueCommentAttachment>[], "issueCommentAttachments/updateIssueCommentAttachments">, deleteIssueCommentAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "issueCommentAttachments/deleteIssueCommentAttachment">, deleteIssueCommentAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "issueCommentAttachments/deleteIssueCommentAttachments">;
|
|
38
|
+
export declare const selectIssueCommentAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<IssueCommentAttachment>>;
|
|
39
|
+
export declare const selectIssueCommentAttachments: OvermapSelector<Stored<IssueCommentAttachment>[]>;
|
|
40
|
+
export declare const selectIssueCommentAttachmentById: OvermapSelectorWithArgs<string, Stored<IssueCommentAttachment> | undefined>;
|
|
41
|
+
export declare const selectAttachmentsOfIssueComment: (args: string) => (state: OvermapRootState) => Stored<IssueCommentAttachment>[];
|
|
42
|
+
export declare const issueCommentAttachmentReducer: Reducer<IssueCommentAttachmentState>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { IssueTypeAttachment, OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
export type IssueTypeAttachmentState = ModelState<Stored<IssueTypeAttachment>>;
|
|
5
|
+
export declare const issueTypeAttachmentSlice: import('@reduxjs/toolkit').Slice<ModelState<Stored<IssueTypeAttachment>>, {
|
|
6
|
+
initializeIssueTypeAttachments: (state: ModelState<Stored<IssueTypeAttachment>>, action: {
|
|
7
|
+
payload: Stored<IssueTypeAttachment>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addIssueTypeAttachment: (state: ModelState<Stored<IssueTypeAttachment>>, action: {
|
|
11
|
+
payload: Stored<IssueTypeAttachment>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addIssueTypeAttachments: (state: ModelState<Stored<IssueTypeAttachment>>, action: {
|
|
15
|
+
payload: Stored<IssueTypeAttachment>[];
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
setIssueTypeAttachment: (state: ModelState<Stored<IssueTypeAttachment>>, action: {
|
|
19
|
+
payload: Stored<IssueTypeAttachment>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
setIssueTypeAttachments: (state: ModelState<Stored<IssueTypeAttachment>>, action: {
|
|
23
|
+
payload: Stored<IssueTypeAttachment>[];
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
updateIssueTypeAttachment: (state: ModelState<Stored<IssueTypeAttachment>>, action: {
|
|
27
|
+
payload: Stored<IssueTypeAttachment>;
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
updateIssueTypeAttachments: (state: ModelState<Stored<IssueTypeAttachment>>, action: {
|
|
31
|
+
payload: Stored<IssueTypeAttachment>[];
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
deleteIssueTypeAttachment: (state: ModelState<Stored<IssueTypeAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
35
|
+
deleteIssueTypeAttachments: (state: ModelState<Stored<IssueTypeAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
36
|
+
}, "issueTypeAttachments", "issueTypeAttachments", import('@reduxjs/toolkit').SliceSelectors<ModelState<Stored<IssueTypeAttachment>>>>;
|
|
37
|
+
export declare const initializeIssueTypeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueTypeAttachment>[], "issueTypeAttachments/initializeIssueTypeAttachments">, addIssueTypeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueTypeAttachment>, "issueTypeAttachments/addIssueTypeAttachment">, addIssueTypeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueTypeAttachment>[], "issueTypeAttachments/addIssueTypeAttachments">, setIssueTypeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueTypeAttachment>, "issueTypeAttachments/setIssueTypeAttachment">, setIssueTypeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueTypeAttachment>[], "issueTypeAttachments/setIssueTypeAttachments">, updateIssueTypeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueTypeAttachment>, "issueTypeAttachments/updateIssueTypeAttachment">, updateIssueTypeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueTypeAttachment>[], "issueTypeAttachments/updateIssueTypeAttachments">, deleteIssueTypeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "issueTypeAttachments/deleteIssueTypeAttachment">, deleteIssueTypeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "issueTypeAttachments/deleteIssueTypeAttachments">;
|
|
38
|
+
export declare const selectIssueTypeAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<IssueTypeAttachment>>;
|
|
39
|
+
export declare const selectIssueTypeAttachments: OvermapSelector<Stored<IssueTypeAttachment>[]>;
|
|
40
|
+
export declare const selectIssueTypeAttachmentById: OvermapSelectorWithArgs<string, Stored<IssueTypeAttachment> | undefined>;
|
|
41
|
+
export declare const selectAttachmentsOfIssueType: (args: string) => (state: OvermapRootState) => Stored<IssueTypeAttachment>[];
|
|
42
|
+
export declare const issueTypeAttachmentReducer: Reducer<IssueTypeAttachmentState>;
|
|
@@ -39,8 +39,4 @@ export declare const selectProjectAttachmentMapping: (state: OvermapRootState) =
|
|
|
39
39
|
export declare const selectAllProjectAttachments: OvermapSelector<Stored<ProjectAttachment>[]>;
|
|
40
40
|
export declare const selectProjectAttachmentById: OvermapSelectorWithArgs<string, ProjectAttachment | undefined>;
|
|
41
41
|
export declare const selectAttachmentsOfProject: (args: number) => (state: OvermapRootState) => Stored<ProjectAttachment>[];
|
|
42
|
-
export declare const selectAttachmentsOfProjectByType: (args: number) => (state: OvermapRootState) => {
|
|
43
|
-
fileAttachments: Stored<ProjectAttachment>[];
|
|
44
|
-
imageAttachments: Stored<ProjectAttachment>[];
|
|
45
|
-
};
|
|
46
42
|
export declare const projectAttachmentReducer: Reducer<ProjectAttachmentState>;
|
package/dist/store/store.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Reducer } from '@reduxjs/toolkit';
|
|
|
3
3
|
import { default as request } from 'superagent';
|
|
4
4
|
import { BaseSDK, OfflineMetaEffect, OutboxCoordinator, RequestDetails } from '../sdk';
|
|
5
5
|
import { BaseState, OvermapRootState } from '../typings';
|
|
6
|
-
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeFieldsAttachmentState, AssetTypeFieldsState, AssetTypeFieldValuesAttachmentState, AssetTypeFieldValuesState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeFieldsAttachmentState, IssueTypeFieldsState, IssueTypeFieldValuesAttachmentState, IssueTypeFieldValuesState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VersioningState } from './slices';
|
|
6
|
+
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeFieldsAttachmentState, AssetTypeFieldsState, AssetTypeFieldValuesAttachmentState, AssetTypeFieldValuesState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentAttachmentState, IssueCommentState, IssueState, IssueTypeAttachmentState, IssueTypeFieldsAttachmentState, IssueTypeFieldsState, IssueTypeFieldValuesAttachmentState, IssueTypeFieldValuesState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VersioningState } from './slices';
|
|
7
7
|
export declare const VERSION_REDUCER_KEY = "versioning";
|
|
8
8
|
export declare const overmapReducers: {
|
|
9
9
|
versioning: Reducer<VersioningState>;
|
|
@@ -18,6 +18,7 @@ export declare const overmapReducers: {
|
|
|
18
18
|
assetTypeAttachmentReducer: Reducer<AssetTypeAttachmentState>;
|
|
19
19
|
issueReducer: Reducer<IssueState>;
|
|
20
20
|
issueTypeReducer: Reducer<IssueTypeState>;
|
|
21
|
+
issueTypeAttachmentReducer: Reducer<IssueTypeAttachmentState>;
|
|
21
22
|
organizationReducer: Reducer<OrganizationState>;
|
|
22
23
|
outboxReducer: Reducer<OutboxState>;
|
|
23
24
|
projectReducer: Reducer<ProjectState>;
|
|
@@ -39,6 +40,7 @@ export declare const overmapReducers: {
|
|
|
39
40
|
teamReducer: Reducer<TeamState>;
|
|
40
41
|
agentsReducer: Reducer<AgentsState>;
|
|
41
42
|
issueCommentReducer: Reducer<IssueCommentState>;
|
|
43
|
+
issueCommentAttachmentReducer: Reducer<IssueCommentAttachmentState>;
|
|
42
44
|
issueUpdateReducer: Reducer<IssueUpdateState>;
|
|
43
45
|
issueAttachmentReducer: Reducer<IssueAttachmentState>;
|
|
44
46
|
geoImageReducer: Reducer<GeoImageSliceState>;
|
|
@@ -7,6 +7,12 @@ export interface Attachment extends OfflineModel, SubmittedAtModel, FileWithName
|
|
|
7
7
|
export interface IssueAttachment extends Attachment {
|
|
8
8
|
issue: string;
|
|
9
9
|
}
|
|
10
|
+
export interface IssueTypeAttachment extends Attachment {
|
|
11
|
+
issue_type: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IssueCommentAttachment extends Attachment {
|
|
14
|
+
issue_comment: string;
|
|
15
|
+
}
|
|
10
16
|
export interface AssetAttachment extends Attachment {
|
|
11
17
|
asset: string;
|
|
12
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OfflineState } from '@redux-offline/redux-offline/lib/types';
|
|
2
|
-
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeFieldsAttachmentState, AssetTypeFieldsState, AssetTypeFieldValuesAttachmentState, AssetTypeFieldValuesState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeFieldsAttachmentState, IssueTypeFieldsState, IssueTypeFieldValuesAttachmentState, IssueTypeFieldValuesState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState } from '../../store';
|
|
2
|
+
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeFieldsAttachmentState, AssetTypeFieldsState, AssetTypeFieldValuesAttachmentState, AssetTypeFieldValuesState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentAttachmentState, IssueCommentState, IssueState, IssueTypeAttachmentState, IssueTypeFieldsAttachmentState, IssueTypeFieldsState, IssueTypeFieldValuesAttachmentState, IssueTypeFieldValuesState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState } from '../../store';
|
|
3
3
|
export interface BaseState {
|
|
4
4
|
outboxReducer: OutboxState;
|
|
5
5
|
offline: OfflineState;
|
|
@@ -18,8 +18,10 @@ export interface OvermapRootState extends BaseState {
|
|
|
18
18
|
issueReducer: IssueState;
|
|
19
19
|
issueAttachmentReducer: IssueAttachmentState;
|
|
20
20
|
issueCommentReducer: IssueCommentState;
|
|
21
|
+
issueCommentAttachmentReducer: IssueCommentAttachmentState;
|
|
21
22
|
issueUpdateReducer: IssueUpdateState;
|
|
22
23
|
issueTypeReducer: IssueTypeState;
|
|
24
|
+
issueTypeAttachmentReducer: IssueTypeAttachmentState;
|
|
23
25
|
organizationReducer: OrganizationState;
|
|
24
26
|
projectReducer: ProjectState;
|
|
25
27
|
projectAttachmentReducer: ProjectAttachmentState;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core functionality for Overmap",
|
|
4
4
|
"author": "Wôrdn Inc.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
|
-
"version": "1.0.74-more-
|
|
6
|
+
"version": "1.0.74-more-attachments.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|