@overmap-ai/core 1.0.75-more-clean-ups.0 → 1.0.76
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 +4763 -3634
- package/dist/overmap-core.umd.cjs +11 -11
- package/dist/sdk/services/AgentService.d.ts +6 -6
- package/dist/sdk/services/AssetAttachmentService.d.ts +9 -9
- package/dist/sdk/services/AssetProcedureAttachmentService.d.ts +39 -0
- package/dist/sdk/services/AssetProcedureFieldValuesAttachmentService.d.ts +15 -0
- package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +21 -0
- package/dist/sdk/services/AssetProcedureFieldsAttachmentService.d.ts +12 -0
- package/dist/sdk/services/AssetProcedureFieldsService.d.ts +8 -0
- package/dist/sdk/services/AssetProcedureInstanceService.d.ts +10 -0
- package/dist/sdk/services/AssetProcedureService.d.ts +10 -0
- package/dist/sdk/services/AssetService.d.ts +5 -5
- package/dist/sdk/services/AssetStageCompletionService.d.ts +4 -4
- package/dist/sdk/services/AssetStageService.d.ts +6 -6
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +9 -9
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +4 -4
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +9 -9
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +3 -3
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +2 -2
- package/dist/sdk/services/AssetTypeService.d.ts +4 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +14 -14
- package/dist/sdk/services/CategoryService.d.ts +4 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +9 -9
- package/dist/sdk/services/DocumentService.d.ts +5 -5
- package/dist/sdk/services/EmailDomainsService.d.ts +3 -3
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +3 -3
- package/dist/sdk/services/FormRevisionService.d.ts +2 -2
- package/dist/sdk/services/FormService.d.ts +3 -12
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +4 -4
- package/dist/sdk/services/FormSubmissionService.d.ts +4 -9
- package/dist/sdk/services/GeoImageService.d.ts +5 -5
- package/dist/sdk/services/IssueAssociationService.d.ts +3 -3
- package/dist/sdk/services/IssueAttachmentService.d.ts +10 -9
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +40 -0
- package/dist/sdk/services/IssueCommentService.d.ts +4 -4
- package/dist/sdk/services/IssueService.d.ts +4 -4
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +40 -0
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +4 -4
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +4 -4
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +3 -3
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeService.d.ts +4 -4
- package/dist/sdk/services/IssueUpdateService.d.ts +2 -2
- package/dist/sdk/services/LicenseService.d.ts +2 -2
- package/dist/sdk/services/OrganizationAccessService.d.ts +2 -5
- package/dist/sdk/services/OrganizationService.d.ts +3 -3
- package/dist/sdk/services/ProjectAccessService.d.ts +3 -6
- package/dist/sdk/services/ProjectAttachmentService.d.ts +11 -11
- package/dist/sdk/services/ProjectFileService.d.ts +3 -3
- package/dist/sdk/services/ProjectService.d.ts +5 -5
- package/dist/sdk/services/TeamService.d.ts +7 -7
- package/dist/sdk/services/UserService.d.ts +2 -2
- package/dist/sdk/services/index.d.ts +9 -0
- package/dist/store/adapters/index.d.ts +2 -0
- package/dist/store/adapters/modelAdapter.d.ts +15 -0
- package/dist/store/adapters/selectionAdapter.d.ts +13 -0
- package/dist/store/index.d.ts +1 -1
- package/dist/store/slices/agentsSlice.d.ts +8 -9
- package/dist/store/slices/assetAttachmentSlice.d.ts +20 -19
- package/dist/store/slices/assetProcedureAttachmentSlice.d.ts +47 -0
- package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +68 -0
- package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +68 -0
- package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +67 -0
- package/dist/store/slices/assetProcedureFieldsSlice.d.ts +68 -0
- package/dist/store/slices/assetProcedureInstanceSlice.d.ts +69 -0
- package/dist/store/slices/assetProcedureSlice.d.ts +68 -0
- package/dist/store/slices/assetSlice.d.ts +21 -16
- package/dist/store/slices/assetStageCompletionSlice.d.ts +29 -24
- package/dist/store/slices/assetStageSlice.d.ts +29 -24
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +20 -19
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +20 -15
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +21 -16
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +20 -15
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +35 -30
- package/dist/store/slices/assetTypeSlice.d.ts +20 -15
- package/dist/store/slices/authSlice.d.ts +3 -3
- package/dist/store/slices/categorySlice.d.ts +10 -8
- package/dist/store/slices/documentAttachmentSlice.d.ts +20 -19
- package/dist/store/slices/documentSlice.d.ts +4 -5
- package/dist/store/slices/emailDomainsSlice.d.ts +15 -13
- package/dist/store/slices/fileSlice.d.ts +2 -2
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +19 -14
- package/dist/store/slices/formRevisionSlice.d.ts +29 -25
- package/dist/store/slices/formSlice.d.ts +14 -17
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +19 -14
- package/dist/store/slices/formSubmissionSlice.d.ts +20 -15
- package/dist/store/slices/geoImageSlice.d.ts +28 -23
- package/dist/store/slices/index.d.ts +9 -0
- package/dist/store/slices/issueAssociationSlice.d.ts +18 -13
- package/dist/store/slices/issueAttachmentSlice.d.ts +18 -17
- package/dist/store/slices/issueCommentAttachmentSlice.d.ts +47 -0
- package/dist/store/slices/issueCommentSlice.d.ts +15 -10
- package/dist/store/slices/issueSlice.d.ts +15 -10
- package/dist/store/slices/issueTypeAttachmentSlice.d.ts +47 -0
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +20 -15
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +20 -15
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +20 -15
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +36 -31
- package/dist/store/slices/issueTypeSlice.d.ts +15 -13
- package/dist/store/slices/issueUpdateSlice.d.ts +14 -9
- package/dist/store/slices/licenseSlice.d.ts +12 -13
- package/dist/store/slices/organizationAccessSlice.d.ts +15 -13
- package/dist/store/slices/organizationSlice.d.ts +45 -11
- package/dist/store/slices/outboxSlice.d.ts +2 -2
- package/dist/store/slices/projectAccessSlice.d.ts +17 -12
- package/dist/store/slices/projectAttachmentSlice.d.ts +19 -18
- package/dist/store/slices/projectFileSlice.d.ts +19 -14
- package/dist/store/slices/projectSlice.d.ts +42 -17
- package/dist/store/slices/rehydratedSlice.d.ts +2 -2
- package/dist/store/slices/teamSlice.d.ts +13 -11
- package/dist/store/slices/userSlice.d.ts +47 -10
- package/dist/store/slices/versioningSlice.d.ts +1 -2
- package/dist/store/store.d.ts +54 -46
- package/dist/store/typings.d.ts +5 -2
- package/dist/typings/models/agents.d.ts +2 -2
- package/dist/typings/models/assets.d.ts +36 -14
- package/dist/typings/models/attachments.d.ts +12 -3
- package/dist/typings/models/base.d.ts +65 -19
- package/dist/typings/models/categories.d.ts +3 -3
- package/dist/typings/models/documents.d.ts +4 -4
- package/dist/typings/models/emailDomain.d.ts +3 -3
- package/dist/typings/models/emailVerification.d.ts +5 -5
- package/dist/typings/models/fields.d.ts +5 -5
- package/dist/typings/models/forms.d.ts +8 -9
- package/dist/typings/models/geoImages.d.ts +5 -5
- package/dist/typings/models/index.d.ts +0 -2
- package/dist/typings/models/issueTypes.d.ts +3 -3
- package/dist/typings/models/issues.d.ts +14 -66
- package/dist/typings/models/license.d.ts +3 -3
- package/dist/typings/models/organizations.d.ts +9 -3
- package/dist/typings/models/projects.d.ts +11 -6
- package/dist/typings/models/store.d.ts +10 -1
- package/dist/typings/models/teams.d.ts +4 -4
- package/dist/typings/models/users.d.ts +2 -4
- package/dist/utils/offline.d.ts +4 -3
- package/dist/utils/utils.d.ts +3 -2
- package/package.json +5 -5
- package/dist/store/adapter.d.ts +0 -15
- package/dist/typings/models/access.d.ts +0 -12
- package/dist/typings/models/geo.d.ts +0 -13
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { FormSubmissionAttachment, OvermapRootState } from '../../typings';
|
|
1
|
+
import { FormSubmission, FormSubmissionAttachment, OvermapRootState, Project } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
4
|
import { BaseUploadService } from './BaseUploadService';
|
|
5
5
|
export declare abstract class FormSubmissionAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
6
|
bulkAdd(payloads: {
|
|
7
|
-
|
|
7
|
+
submissionUuid: FormSubmission["uuid"];
|
|
8
8
|
fieldIdentifier: string;
|
|
9
9
|
file: File;
|
|
10
10
|
}[]): Promise<OptimisticMultipleModelResult<FormSubmissionAttachment>>;
|
|
11
|
-
bulkDelete(
|
|
12
|
-
refreshStore(
|
|
11
|
+
bulkDelete(uuids: FormSubmissionAttachment["uuid"][]): Promise<void>;
|
|
12
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
13
13
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormSubmission, Offline, OvermapRootState, Payload } from '../../typings';
|
|
1
|
+
import { FormSubmission, OvermapRootState, Payload, Project, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult } from '../typings';
|
|
5
4
|
import { BaseUploadService } from './BaseUploadService';
|
|
6
|
-
export declare const separateFilesFromValues: (values: Record<string, FieldValue>) => {
|
|
7
|
-
values: Record<string, FieldValue>;
|
|
8
|
-
files: Record<string, File[]>;
|
|
9
|
-
};
|
|
10
5
|
export declare abstract class FormSubmissionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
11
6
|
add(payload: Payload<FormSubmission>): OptimisticModelResult<FormSubmission>;
|
|
12
|
-
update(payload:
|
|
13
|
-
delete(
|
|
14
|
-
refreshStore(
|
|
7
|
+
update(payload: UUID<Partial<Payload<FormSubmission>>>): OptimisticModelResult<FormSubmission>;
|
|
8
|
+
delete(uuid: FormSubmission["uuid"]): Promise<undefined>;
|
|
9
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
15
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BulkGeoImagePayload, GeoImage, GeoImagePayload,
|
|
1
|
+
import { BulkGeoImagePayload, GeoImage, GeoImagePayload, OvermapRootState, Project, UUID } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
|
|
4
4
|
import { BaseUploadService } from './BaseUploadService';
|
|
5
5
|
export declare abstract class GeoImageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
6
|
add(payload: GeoImagePayload): Promise<OptimisticModelResult<GeoImage>>;
|
|
7
|
-
bulkAdd(payloads: BulkGeoImagePayload[],
|
|
8
|
-
update(payload:
|
|
9
|
-
delete(
|
|
10
|
-
refreshStore(
|
|
7
|
+
bulkAdd(payloads: BulkGeoImagePayload[], projectUuid: string): Promise<OptimisticMultipleModelResult<GeoImage>>;
|
|
8
|
+
update(payload: UUID<Partial<Pick<GeoImagePayload, "title" | "description">>>): OptimisticModelResult<GeoImage>;
|
|
9
|
+
delete(uuid: GeoImage["uuid"]): Promise<void>;
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IssueAssociation, OvermapRootState, Payload } from '../../typings';
|
|
1
|
+
import { IssueAssociation, OvermapRootState, Payload, Project } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class IssueAssociationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<IssueAssociation>): OptimisticModelResult<IssueAssociation>;
|
|
7
|
-
delete(
|
|
8
|
-
refreshStore(
|
|
7
|
+
delete(uuid: IssueAssociation["uuid"]): Promise<void>;
|
|
8
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
9
9
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { IssueAttachment, OvermapRootState, Stored } from '../../typings';
|
|
1
|
+
import { Issue, IssueAttachment, OvermapRootState, Project, Stored } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
4
|
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
5
|
-
export declare abstract class IssueAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK,
|
|
5
|
+
export declare abstract class IssueAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, 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">;
|
|
11
12
|
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "issueAttachments/deleteIssueAttachment">;
|
|
12
13
|
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueAttachment>, "issueAttachments/setIssueAttachment">;
|
|
13
14
|
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<IssueAttachment> | undefined>;
|
|
14
|
-
protected buildOfflineAttachment(data: BuildOfflineAttachmentData
|
|
15
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
15
16
|
file: string;
|
|
16
17
|
file_sha1: string;
|
|
17
18
|
created_by: number | undefined;
|
|
@@ -21,19 +22,19 @@ export declare abstract class IssueAttachmentService<TState extends OvermapRootS
|
|
|
21
22
|
description: string | undefined;
|
|
22
23
|
issue: string;
|
|
23
24
|
}>;
|
|
24
|
-
protected buildAttachmentPayload(data: BuildAttachmentPayloadData
|
|
25
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData): {
|
|
25
26
|
issue: string;
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
modelUuid: import('../..').UUIDModel["uuid"];
|
|
28
|
+
uuid: import('../..').UUIDModel["uuid"];
|
|
28
29
|
description: import('../..').Attachment["description"];
|
|
29
30
|
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
30
31
|
file_name: import('../..').FileWithNameModel["file_name"];
|
|
31
32
|
file_extension: string;
|
|
32
33
|
};
|
|
33
34
|
bulkAdd(payloads: {
|
|
34
|
-
|
|
35
|
+
issueUuid: Issue["uuid"];
|
|
35
36
|
file: File;
|
|
36
37
|
}[]): Promise<OptimisticMultipleModelResult<IssueAttachment>>;
|
|
37
|
-
delete(
|
|
38
|
-
refreshStore(
|
|
38
|
+
delete(uuid: IssueAttachment["uuid"]): Promise<void>;
|
|
39
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
39
40
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IssueComment, IssueCommentAttachment, OvermapRootState, Project, 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, 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): import('../..').UUID<{
|
|
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): {
|
|
26
|
+
issue_comment: string;
|
|
27
|
+
modelUuid: import('../..').UUIDModel["uuid"];
|
|
28
|
+
uuid: import('../..').UUIDModel["uuid"];
|
|
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
|
+
issueCommentUuid: IssueComment["uuid"];
|
|
36
|
+
file: File;
|
|
37
|
+
}[]): Promise<OptimisticMultipleModelResult<IssueCommentAttachment>>;
|
|
38
|
+
delete(uuid: IssueCommentAttachment["uuid"]): Promise<void>;
|
|
39
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
40
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IssueComment,
|
|
1
|
+
import { IssueComment, OvermapRootState, Payload, Project, UUID } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class IssueCommentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Omit<Payload<IssueComment>, "author">): OptimisticModelResult<IssueComment>;
|
|
7
|
-
update(payload:
|
|
8
|
-
remove(
|
|
9
|
-
refreshStore(
|
|
7
|
+
update(payload: UUID<Partial<Payload<IssueComment>>>): OptimisticModelResult<IssueComment>;
|
|
8
|
+
remove(uuid: IssueComment["uuid"]): Promise<undefined>;
|
|
9
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Issue,
|
|
1
|
+
import { Issue, OvermapRootState, Payload, Project, UUID } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class IssueService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<Issue>): OptimisticModelResult<Issue>;
|
|
7
|
-
update(payload:
|
|
8
|
-
remove(
|
|
9
|
-
refreshStore(
|
|
7
|
+
update(payload: UUID<Partial<Payload<Issue>>>): OptimisticModelResult<Issue>;
|
|
8
|
+
remove(uuid: Issue["uuid"]): Promise<undefined>;
|
|
9
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<undefined>;
|
|
10
10
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IssueType, IssueTypeAttachment, Organization, 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, 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): import('../..').UUID<{
|
|
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): {
|
|
26
|
+
issue_type: string;
|
|
27
|
+
modelUuid: import('../..').UUIDModel["uuid"];
|
|
28
|
+
uuid: import('../..').UUIDModel["uuid"];
|
|
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
|
+
issueTypeUuid: IssueType["uuid"];
|
|
36
|
+
file: File;
|
|
37
|
+
}[]): Promise<OptimisticMultipleModelResult<IssueTypeAttachment>>;
|
|
38
|
+
delete(uuid: IssueTypeAttachment["uuid"]): Promise<void>;
|
|
39
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
40
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { IssueTypeFieldValuesAttachment, OvermapRootState } from '../../typings';
|
|
1
|
+
import { IssueTypeFieldValues, IssueTypeFieldValuesAttachment, OvermapRootState, Project } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
4
|
import { BaseUploadService } from './BaseUploadService';
|
|
5
5
|
export declare abstract class IssueTypeFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
6
|
bulkAdd(payloads: {
|
|
7
|
-
|
|
7
|
+
fieldValuesUuid: IssueTypeFieldValues["uuid"];
|
|
8
8
|
fieldIdentifier: string;
|
|
9
9
|
file: File;
|
|
10
10
|
}[]): Promise<OptimisticMultipleModelResult<IssueTypeFieldValuesAttachment>>;
|
|
11
|
-
bulkDelete(
|
|
12
|
-
refreshStore(
|
|
11
|
+
bulkDelete(uuids: IssueTypeFieldValuesAttachment["uuid"][]): Promise<void>;
|
|
12
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
13
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IssueTypeFieldValues,
|
|
1
|
+
import { IssueTypeFieldValues, OvermapRootState, Payload, Project, UUID } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class IssueTypeFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<IssueTypeFieldValues>): OptimisticModelResult<IssueTypeFieldValues>;
|
|
7
|
-
update(payload:
|
|
8
|
-
delete(
|
|
9
|
-
refreshStore(
|
|
7
|
+
update(payload: UUID<Partial<Payload<IssueTypeFieldValues>>>): OptimisticModelResult<IssueTypeFieldValues>;
|
|
8
|
+
delete(uuid: IssueTypeFieldValues["uuid"]): Promise<void>;
|
|
9
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
10
10
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IssueTypeFieldsAttachment, OvermapRootState } from '../../typings';
|
|
1
|
+
import { IssueTypeFields, IssueTypeFieldsAttachment, Organization, OvermapRootState } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
4
|
import { BaseUploadService } from './BaseUploadService';
|
|
5
5
|
export declare abstract class IssueTypeFieldsAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
6
|
bulkAdd(payloads: {
|
|
7
|
-
|
|
7
|
+
fieldsRevisionUuid: IssueTypeFields["uuid"];
|
|
8
8
|
fieldIdentifier: string;
|
|
9
9
|
file: File;
|
|
10
10
|
}[]): Promise<OptimisticMultipleModelResult<IssueTypeFieldsAttachment>>;
|
|
11
|
-
refreshStore(
|
|
11
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
12
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IssueTypeFields, OvermapRootState, Payload } from '../../typings';
|
|
1
|
+
import { IssueTypeFields, Organization, OvermapRootState, Payload } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class IssueTypeFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<IssueTypeFields>): OptimisticModelResult<IssueTypeFields>;
|
|
7
|
-
refreshStore(
|
|
7
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
8
8
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IssueType,
|
|
1
|
+
import { IssueType, Organization, OvermapRootState, Payload, UUID } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class IssueTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<IssueType>): OptimisticModelResult<IssueType>;
|
|
7
|
-
update(payload:
|
|
8
|
-
delete(
|
|
9
|
-
refreshStore(
|
|
7
|
+
update(payload: UUID<Partial<Payload<IssueType>>>): OptimisticModelResult<IssueType>;
|
|
8
|
+
delete(uuid: IssueType["uuid"]): Promise<void>;
|
|
9
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../typings';
|
|
1
|
+
import { OvermapRootState, Project } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export declare abstract class IssueUpdateService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
|
-
refreshStore(
|
|
5
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { License, OvermapRootState, Project, Transaction } from '../../typings';
|
|
1
|
+
import { License, Organization, OvermapRootState, Project, Transaction } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export declare abstract class LicenseService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
@@ -9,5 +9,5 @@ export declare abstract class LicenseService<TState extends OvermapRootState, TS
|
|
|
9
9
|
attachLicenseToProject(license: License, project: Project): Promise<License>;
|
|
10
10
|
detachLicenseFromProject(license: License): Promise<License>;
|
|
11
11
|
getLatestTransaction(license: License): Promise<Transaction>;
|
|
12
|
-
refreshStore(
|
|
12
|
+
refreshStore(projectUuid: Project["uuid"], organizationUuid: Organization["uuid"]): Promise<void>;
|
|
13
13
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { OrganizationAccess, OvermapRootState } from '../../typings';
|
|
1
|
+
import { Organization, OrganizationAccess, OvermapRootState } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { BaseApiService } from './BaseApiService';
|
|
4
|
-
/**
|
|
5
|
-
* Handles the creation of OrganizationAccess Service
|
|
6
|
-
*/
|
|
7
4
|
export declare abstract class OrganizationAccessService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
8
5
|
update(organizationAccess: OrganizationAccess): Promise<OrganizationAccess>;
|
|
9
6
|
remove(organizationAccess: OrganizationAccess): Promise<undefined>;
|
|
10
|
-
refreshStore(
|
|
7
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
11
8
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Organization, OvermapRootState } from '../../typings';
|
|
1
|
+
import { Organization, OvermapRootState, Project } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export declare abstract class OrganizationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
5
|
create(name: string): Promise<Organization>;
|
|
6
6
|
update(organization: Organization): Promise<Organization>;
|
|
7
|
-
invite(
|
|
8
|
-
refreshStore(
|
|
7
|
+
invite(organizationUuid: Organization["uuid"], email: string): Promise<undefined>;
|
|
8
|
+
refreshStore(projectUuid: Project["uuid"], organizationUuid: Organization["uuid"]): Promise<void>;
|
|
9
9
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { OvermapRootState, ProjectAccess } from '../../typings';
|
|
1
|
+
import { OvermapRootState, Project, ProjectAccess } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { BaseApiService } from './BaseApiService';
|
|
4
|
-
/**
|
|
5
|
-
* Handles the creation of ProjectAccess Service
|
|
6
|
-
*/
|
|
7
4
|
export declare abstract class ProjectAccessService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
8
5
|
update(projectAccess: ProjectAccess): Promise<ProjectAccess>;
|
|
9
|
-
remove(
|
|
10
|
-
refreshStore(
|
|
6
|
+
remove(uuid: ProjectAccess["uuid"]): Promise<undefined>;
|
|
7
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<undefined>;
|
|
11
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OvermapRootState, ProjectAttachment, Stored } from '../../typings';
|
|
1
|
+
import { OvermapRootState, Project, ProjectAttachment, Stored } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
4
|
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
5
|
-
export declare abstract class ProjectAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK,
|
|
5
|
+
export declare abstract class ProjectAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, Stored<ProjectAttachment>> {
|
|
6
6
|
name: string;
|
|
7
7
|
url: string;
|
|
8
8
|
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/addProjectAttachments">;
|
|
@@ -11,7 +11,7 @@ export declare abstract class ProjectAttachmentService<TState extends OvermapRoo
|
|
|
11
11
|
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "projectAttachments/deleteProjectAttachment">;
|
|
12
12
|
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>, "projectAttachments/setProjectAttachment">;
|
|
13
13
|
selectAttachment: import('../..').OvermapSelectorWithArgs<string, ProjectAttachment | undefined>;
|
|
14
|
-
protected buildOfflineAttachment(data: BuildOfflineAttachmentData
|
|
14
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
15
15
|
file: string;
|
|
16
16
|
file_sha1: string;
|
|
17
17
|
created_by: number | undefined;
|
|
@@ -19,21 +19,21 @@ export declare abstract class ProjectAttachmentService<TState extends OvermapRoo
|
|
|
19
19
|
file_type: string;
|
|
20
20
|
submitted_at: string;
|
|
21
21
|
description: string | undefined;
|
|
22
|
-
project:
|
|
22
|
+
project: string;
|
|
23
23
|
}>;
|
|
24
|
-
protected buildAttachmentPayload(data: BuildAttachmentPayloadData
|
|
25
|
-
project:
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData): {
|
|
25
|
+
project: string;
|
|
26
|
+
modelUuid: import('../..').UUIDModel["uuid"];
|
|
27
|
+
uuid: import('../..').UUIDModel["uuid"];
|
|
28
28
|
description: import('../..').Attachment["description"];
|
|
29
29
|
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
30
30
|
file_name: import('../..').FileWithNameModel["file_name"];
|
|
31
31
|
file_extension: string;
|
|
32
32
|
};
|
|
33
33
|
bulkAdd(payloads: {
|
|
34
|
-
|
|
34
|
+
projectUuid: Project["uuid"];
|
|
35
35
|
file: File;
|
|
36
36
|
}[]): Promise<OptimisticMultipleModelResult<ProjectAttachment>>;
|
|
37
|
-
delete(
|
|
38
|
-
refreshStore(
|
|
37
|
+
delete(uuid: ProjectAttachment["uuid"]): Promise<void>;
|
|
38
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
39
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OvermapRootState, ProjectFile } from '../../typings';
|
|
1
|
+
import { OvermapRootState, Project, ProjectFile } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticGenericResult } from '../typings';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
@@ -8,6 +8,6 @@ import { BaseApiService } from './BaseApiService';
|
|
|
8
8
|
export declare abstract class ProjectFileService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
9
9
|
saveExisting(file: ProjectFile): Promise<ProjectFile>;
|
|
10
10
|
saveActive(): OptimisticGenericResult<ProjectFile>;
|
|
11
|
-
delete(
|
|
12
|
-
refreshStore(
|
|
11
|
+
delete(uuid: ProjectFile["uuid"]): Promise<undefined>;
|
|
12
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
13
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OvermapRootState, Payload, Project } from '../../typings';
|
|
1
|
+
import { OvermapRootState, Payload, Project, User } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
interface JoinProjectResponse {
|
|
@@ -7,9 +7,9 @@ interface JoinProjectResponse {
|
|
|
7
7
|
export declare abstract class ProjectService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
8
8
|
add(payload: Payload<Project>): Promise<Project>;
|
|
9
9
|
update(project: Project): Promise<Project>;
|
|
10
|
-
delete(
|
|
11
|
-
invite(
|
|
12
|
-
joinProject(
|
|
13
|
-
acceptInvite(
|
|
10
|
+
delete(uuid: Project["uuid"]): Promise<void>;
|
|
11
|
+
invite(projectUuid: Project["uuid"], email: string): Promise<undefined>;
|
|
12
|
+
joinProject(projectUuid: Project["uuid"], userUuid: User["id"], inviteCode: string): Promise<JoinProjectResponse>;
|
|
13
|
+
acceptInvite(projectUuid: Project["uuid"]): Promise<void>;
|
|
14
14
|
}
|
|
15
15
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Organization, OvermapRootState, Payload, Team, User, UUID } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class TeamService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<Team>): OptimisticModelResult<Team>;
|
|
7
|
-
update(payload:
|
|
8
|
-
delete(
|
|
9
|
-
setMembers(
|
|
10
|
-
addMembers(
|
|
11
|
-
removeMembers(
|
|
12
|
-
refreshStore(
|
|
7
|
+
update(payload: UUID<Partial<Payload<Team>>>): OptimisticModelResult<Team>;
|
|
8
|
+
delete(uuid: Team["uuid"]): Promise<undefined>;
|
|
9
|
+
setMembers(teamUuid: Team["uuid"], members: User["id"][]): Promise<undefined>;
|
|
10
|
+
addMembers(teamUuid: Team["uuid"], members: User["id"][]): Promise<undefined>;
|
|
11
|
+
removeMembers(teamUuid: Team["uuid"], members: User["id"][]): Promise<undefined>;
|
|
12
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
13
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../typings';
|
|
1
|
+
import { Organization, OvermapRootState, Project } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export declare abstract class UserService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
|
-
refreshStore(
|
|
5
|
+
refreshStore(projectUuid: Project["uuid"], organizationUuid: Organization["uuid"]): Promise<void>;
|
|
6
6
|
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export * from './AgentService';
|
|
2
2
|
export * from './AssetAttachmentService';
|
|
3
|
+
export * from './AssetProcedureAttachmentService';
|
|
4
|
+
export * from './AssetProcedureFieldsAttachmentService';
|
|
5
|
+
export * from './AssetProcedureFieldsService';
|
|
6
|
+
export * from './AssetProcedureFieldValuesAttachmentService';
|
|
7
|
+
export * from './AssetProcedureFieldValuesService';
|
|
8
|
+
export * from './AssetProcedureInstanceService';
|
|
9
|
+
export * from './AssetProcedureService';
|
|
3
10
|
export * from './AssetService';
|
|
4
11
|
export * from './AssetStageCompletionService';
|
|
5
12
|
export * from './AssetStageService';
|
|
@@ -24,8 +31,10 @@ export * from './FormSubmissionService';
|
|
|
24
31
|
export * from './GeoImageService';
|
|
25
32
|
export * from './IssueAssociationService';
|
|
26
33
|
export * from './IssueAttachmentService';
|
|
34
|
+
export * from './IssueCommentAttachmentService';
|
|
27
35
|
export * from './IssueCommentService';
|
|
28
36
|
export * from './IssueService';
|
|
37
|
+
export * from './IssueTypeAttachmentService';
|
|
29
38
|
export * from './IssueTypeFieldsAttachmentService';
|
|
30
39
|
export * from './IssueTypeFieldsService';
|
|
31
40
|
export * from './IssueTypeFieldValuesAttachmentService';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { ModelState } from '../typings';
|
|
3
|
+
export interface OvermapModelAdapter<TId extends string | number | symbol, TModel> {
|
|
4
|
+
addOne: (state: ModelState<TId, TModel>, action: PayloadAction<TModel>) => void;
|
|
5
|
+
addMany: (state: ModelState<TId, TModel>, action: PayloadAction<TModel[]>) => void;
|
|
6
|
+
setOne: (state: ModelState<TId, TModel>, action: PayloadAction<TModel>) => void;
|
|
7
|
+
setMany: (state: ModelState<TId, TModel>, action: PayloadAction<TModel[]>) => void;
|
|
8
|
+
updateOne: (state: ModelState<TId, TModel>, action: PayloadAction<TModel>) => void;
|
|
9
|
+
updateMany: (state: ModelState<TId, TModel>, action: PayloadAction<TModel[]>) => void;
|
|
10
|
+
deleteOne: (state: ModelState<TId, TModel>, action: PayloadAction<TId>) => void;
|
|
11
|
+
deleteMany: (state: ModelState<TId, TModel>, action: PayloadAction<TId[]>) => void;
|
|
12
|
+
initialize: (state: ModelState<TId, TModel>, action: PayloadAction<TModel[]>) => void;
|
|
13
|
+
getInitialState: <TState extends object>(state: TState) => TState & ModelState<TId, TModel>;
|
|
14
|
+
}
|
|
15
|
+
export declare function createModelAdapter<TId extends string | number | symbol, TModel>(computeModelId: (model: TModel) => TId): OvermapModelAdapter<TId, TModel>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { SelectionState } from '../typings';
|
|
3
|
+
export interface SelectionAdapter<TSelection> {
|
|
4
|
+
selectOne: (state: SelectionState<TSelection>, action: PayloadAction<TSelection>) => void;
|
|
5
|
+
selectMany: (state: SelectionState<TSelection>, action: PayloadAction<TSelection[]>) => void;
|
|
6
|
+
unselectOne: (state: SelectionState<TSelection>, action: PayloadAction<TSelection>) => void;
|
|
7
|
+
unselectMany: (state: SelectionState<TSelection>, action: PayloadAction<TSelection[]>) => void;
|
|
8
|
+
toggleOne: (state: SelectionState<TSelection>, action: PayloadAction<TSelection>) => void;
|
|
9
|
+
toggleMany: (state: SelectionState<TSelection>, action: PayloadAction<TSelection[]>) => void;
|
|
10
|
+
initializeSelection: (state: SelectionState<TSelection>, action: PayloadAction<TSelection[]>) => void;
|
|
11
|
+
getInitialState: <TState extends object>(state: TState) => TState & SelectionState<TSelection>;
|
|
12
|
+
}
|
|
13
|
+
export declare function createSelectionAdapter<TSelection>(): SelectionAdapter<TSelection>;
|
package/dist/store/index.d.ts
CHANGED