@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,10 +1,10 @@
|
|
|
1
|
-
import { AgentUserConversation, OvermapRootState } from '../../typings';
|
|
1
|
+
import { AgentUserConversation, OvermapRootState, Project } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export declare abstract class AgentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
|
-
startConversation(prompt: string,
|
|
6
|
-
continueConversation(prompt: string,
|
|
7
|
-
fetchDetails(
|
|
8
|
-
rate(
|
|
9
|
-
refreshStore(
|
|
5
|
+
startConversation(prompt: string, projectUuid: Project["uuid"]): Promise<AgentUserConversation>;
|
|
6
|
+
continueConversation(prompt: string, conversationUuid: AgentUserConversation["uuid"], projectUuid: Project["uuid"]): Promise<void>;
|
|
7
|
+
fetchDetails(conversationUuid: AgentUserConversation["uuid"]): Promise<void>;
|
|
8
|
+
rate(responseUuid: string, rating: 1 | 5): Promise<undefined>;
|
|
9
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AssetAttachment, OvermapRootState, Stored } from '../../typings';
|
|
1
|
+
import { Asset, AssetAttachment, 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 AssetAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK,
|
|
5
|
+
export declare abstract class AssetAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, AssetAttachment> {
|
|
6
6
|
name: string;
|
|
7
7
|
url: string;
|
|
8
8
|
initializeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/initializeAssetAttachments">;
|
|
@@ -12,7 +12,7 @@ export declare abstract class AssetAttachmentService<TState extends OvermapRootS
|
|
|
12
12
|
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetAttachments/deleteAssetAttachment">;
|
|
13
13
|
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>, "assetAttachments/setAssetAttachment">;
|
|
14
14
|
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<AssetAttachment> | undefined>;
|
|
15
|
-
protected buildOfflineAttachment(data: BuildOfflineAttachmentData
|
|
15
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
16
16
|
file: string;
|
|
17
17
|
file_sha1: string;
|
|
18
18
|
created_by: number | undefined;
|
|
@@ -22,19 +22,19 @@ export declare abstract class AssetAttachmentService<TState extends OvermapRootS
|
|
|
22
22
|
description: string | undefined;
|
|
23
23
|
asset: string;
|
|
24
24
|
}>;
|
|
25
|
-
protected buildAttachmentPayload(data: BuildAttachmentPayloadData
|
|
25
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData): {
|
|
26
26
|
asset: string;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
modelUuid: import('../..').UUIDModel["uuid"];
|
|
28
|
+
uuid: import('../..').UUIDModel["uuid"];
|
|
29
29
|
description: import('../..').Attachment["description"];
|
|
30
30
|
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
31
31
|
file_name: import('../..').FileWithNameModel["file_name"];
|
|
32
32
|
file_extension: string;
|
|
33
33
|
};
|
|
34
34
|
bulkAdd(payloads: {
|
|
35
|
-
|
|
35
|
+
assetUuid: Asset["uuid"];
|
|
36
36
|
file: File;
|
|
37
37
|
}[]): Promise<OptimisticMultipleModelResult<AssetAttachment>>;
|
|
38
|
-
delete(
|
|
39
|
-
refreshStore(
|
|
38
|
+
delete(uuid: AssetAttachment["uuid"]): Promise<void>;
|
|
39
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
40
40
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AssetProcedure, AssetProcedureAttachment, 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 AssetProcedureAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, AssetProcedureAttachment> {
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetProcedureAttachment>[], "assetProcedureAttachments/addAssetProcedureAttachments">;
|
|
9
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetProcedureAttachment>[], "assetProcedureAttachments/updateAssetProcedureAttachments">;
|
|
10
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetProcedureAttachments/deleteAssetProcedureAttachments">;
|
|
11
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetProcedureAttachments/deleteAssetProcedureAttachment">;
|
|
12
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetProcedureAttachment>, "assetProcedureAttachments/setAssetProcedureAttachment">;
|
|
13
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<AssetProcedureAttachment> | undefined>;
|
|
14
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
15
|
+
file: string;
|
|
16
|
+
file_sha1: string;
|
|
17
|
+
created_by: number | undefined;
|
|
18
|
+
file_name: string;
|
|
19
|
+
file_type: string;
|
|
20
|
+
submitted_at: string;
|
|
21
|
+
description: string | undefined;
|
|
22
|
+
asset_procedure: string;
|
|
23
|
+
}>;
|
|
24
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData): {
|
|
25
|
+
asset_procedure: string;
|
|
26
|
+
modelUuid: import('../..').UUIDModel["uuid"];
|
|
27
|
+
uuid: import('../..').UUIDModel["uuid"];
|
|
28
|
+
description: import('../..').Attachment["description"];
|
|
29
|
+
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
30
|
+
file_name: import('../..').FileWithNameModel["file_name"];
|
|
31
|
+
file_extension: string;
|
|
32
|
+
};
|
|
33
|
+
bulkAdd(payloads: {
|
|
34
|
+
assetProcedureUuid: AssetProcedure["uuid"];
|
|
35
|
+
file: File;
|
|
36
|
+
}[]): Promise<OptimisticMultipleModelResult<AssetProcedureAttachment>>;
|
|
37
|
+
delete(uuid: AssetProcedureAttachment["uuid"]): Promise<void>;
|
|
38
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AssetProcedureFieldValues, AssetProcedureFieldValuesAttachment, Created, OvermapRootState, Project, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
4
|
+
export declare abstract class AssetProcedureFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
5
|
+
bulkAdd(payloads: {
|
|
6
|
+
fieldValuesUuid: AssetProcedureFieldValues["uuid"];
|
|
7
|
+
fieldIdentifier: string;
|
|
8
|
+
file: File;
|
|
9
|
+
}[], batchSize?: number): Promise<[
|
|
10
|
+
Stored<AssetProcedureFieldValuesAttachment>[],
|
|
11
|
+
Promise<Created<AssetProcedureFieldValuesAttachment>[]>[]
|
|
12
|
+
]>;
|
|
13
|
+
bulkDelete(uuids: AssetProcedureFieldValuesAttachment["uuid"][]): Promise<void>;
|
|
14
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SerializedFieldValues } from '@overmap-ai/forms';
|
|
2
|
+
import { Asset, AssetProcedureFields, AssetProcedureFieldValues, AssetProcedureInstance, Created, OvermapRootState, Payload, Project, Stored, UUID } from '../../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
5
|
+
import { BaseApiService } from './BaseApiService';
|
|
6
|
+
export declare abstract class AssetProcedureFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
+
add(payload: Payload<AssetProcedureFieldValues>): OptimisticModelResult<AssetProcedureFieldValues>;
|
|
8
|
+
bulkAdd(payload: {
|
|
9
|
+
values: SerializedFieldValues;
|
|
10
|
+
payloads: {
|
|
11
|
+
values: SerializedFieldValues;
|
|
12
|
+
asset: Asset["uuid"];
|
|
13
|
+
fields_revision: AssetProcedureFields["uuid"];
|
|
14
|
+
asset_procedure_instance: AssetProcedureInstance["uuid"];
|
|
15
|
+
published_at: string;
|
|
16
|
+
}[];
|
|
17
|
+
}, batchSize?: number): [Stored<AssetProcedureFieldValues>[], Promise<Created<AssetProcedureFieldValues>[]>[]];
|
|
18
|
+
update(payload: UUID<Partial<Payload<AssetProcedureFieldValues>>>): OptimisticModelResult<AssetProcedureFieldValues>;
|
|
19
|
+
delete(uuid: AssetProcedureFieldValues["uuid"]): Promise<void>;
|
|
20
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AssetProcedureFields, AssetProcedureFieldsAttachment, Organization, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
5
|
+
export declare abstract class AssetProcedureFieldsAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
+
bulkAdd(payloads: {
|
|
7
|
+
fieldsRevisionUuid: AssetProcedureFields["uuid"];
|
|
8
|
+
fieldIdentifier: string;
|
|
9
|
+
file: File;
|
|
10
|
+
}[]): Promise<OptimisticMultipleModelResult<AssetProcedureFieldsAttachment>>;
|
|
11
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AssetProcedureFields, Organization, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
|
+
export declare abstract class AssetProcedureFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
+
add(payload: Payload<AssetProcedureFields>): OptimisticModelResult<AssetProcedureFields>;
|
|
7
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AssetProcedureInstance, OvermapRootState, Payload, Project, UUID } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
|
+
export declare abstract class AssetProcedureInstanceService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
+
add(payload: Payload<AssetProcedureInstance>): OptimisticModelResult<AssetProcedureInstance>;
|
|
7
|
+
update(payload: UUID<Partial<Payload<AssetProcedureInstance>>>): OptimisticModelResult<AssetProcedureInstance>;
|
|
8
|
+
remove(uuid: AssetProcedureInstance["uuid"]): Promise<undefined>;
|
|
9
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AssetProcedure, Organization, OvermapRootState, Payload, UUID } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
|
+
export declare abstract class AssetProcedureService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
+
add(payload: Payload<AssetProcedure>): OptimisticModelResult<AssetProcedure>;
|
|
7
|
+
update(payload: UUID<Partial<Payload<AssetProcedure>>>): OptimisticModelResult<AssetProcedure>;
|
|
8
|
+
remove(uuid: AssetProcedure["uuid"]): Promise<undefined>;
|
|
9
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
10
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Asset,
|
|
1
|
+
import { Asset, AssetType, Created, 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 AssetService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<Asset>): OptimisticModelResult<Asset>;
|
|
7
|
-
update(payload:
|
|
8
|
-
remove(
|
|
9
|
-
bulkAdd(payloads: Omit<Payload<Asset>, "asset_type" | "project">[],
|
|
10
|
-
refreshStore(
|
|
7
|
+
update(payload: UUID<Partial<Payload<Asset>>>): OptimisticModelResult<Asset>;
|
|
8
|
+
remove(uuid: Asset["uuid"]): Promise<undefined>;
|
|
9
|
+
bulkAdd(payloads: Omit<Payload<Asset>, "asset_type" | "project">[], assetTypeUuid: AssetType["uuid"], projectUuid: Project["uuid"], batchSize: number): Promise<Created<Asset>[]>[];
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AssetStageCompletion, OvermapRootState, Payload } from '../../typings';
|
|
1
|
+
import { AssetStageCompletion, OvermapRootState, Payload, Project } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class AssetStageCompletionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<AssetStageCompletion>): OptimisticModelResult<AssetStageCompletion>;
|
|
7
|
-
delete(
|
|
7
|
+
delete(uuid: AssetStageCompletion["uuid"]): Promise<undefined>;
|
|
8
8
|
bulkAdd(payloads: Payload<AssetStageCompletion>[]): OptimisticMultipleModelResult<AssetStageCompletion>;
|
|
9
|
-
bulkDelete(
|
|
10
|
-
refreshStore(
|
|
9
|
+
bulkDelete(uuids: AssetStageCompletion["uuid"][]): Promise<undefined>;
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AssetStage,
|
|
1
|
+
import { AssetProcedure, AssetStage, Organization, OvermapRootState, Payload, UUID } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class AssetStageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
bulkAdd(stagesToSubmit: Omit<Payload<AssetStage>, "
|
|
7
|
-
bulkUpdate(stagesToUpdate: AssetStage[],
|
|
8
|
-
bulkDelete(
|
|
9
|
-
update(payload:
|
|
10
|
-
refreshStore(
|
|
6
|
+
bulkAdd(stagesToSubmit: Omit<Payload<AssetStage>, "asset_procedure">[], assetProcedureUuid: string): OptimisticMultipleModelResult<AssetStage>;
|
|
7
|
+
bulkUpdate(stagesToUpdate: AssetStage[], assetProcedureUuid: AssetProcedure["uuid"]): Promise<AssetStage[]>;
|
|
8
|
+
bulkDelete(uuids: AssetStage["uuid"][]): Promise<undefined>;
|
|
9
|
+
update(payload: UUID<Partial<Payload<AssetStage>>>): OptimisticModelResult<AssetStage>;
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<undefined>;
|
|
11
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AssetTypeAttachment, OvermapRootState, Stored } from '../../typings';
|
|
1
|
+
import { AssetType, AssetTypeAttachment, Organization, OvermapRootState, 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 AssetTypeAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK,
|
|
5
|
+
export declare abstract class AssetTypeAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, AssetTypeAttachment> {
|
|
6
6
|
name: string;
|
|
7
7
|
url: string;
|
|
8
8
|
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/addAssetTypeAttachments">;
|
|
@@ -11,7 +11,7 @@ export declare abstract class AssetTypeAttachmentService<TState extends OvermapR
|
|
|
11
11
|
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetTypeAttachments/deleteAssetTypeAttachment">;
|
|
12
12
|
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypeAttachments/setAssetTypeAttachment">;
|
|
13
13
|
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<AssetTypeAttachment> | 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;
|
|
@@ -21,19 +21,19 @@ export declare abstract class AssetTypeAttachmentService<TState extends OvermapR
|
|
|
21
21
|
description: string | undefined;
|
|
22
22
|
asset_type: string;
|
|
23
23
|
}>;
|
|
24
|
-
protected buildAttachmentPayload(data: BuildAttachmentPayloadData
|
|
24
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData): {
|
|
25
25
|
asset_type: string;
|
|
26
|
-
|
|
27
|
-
|
|
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
|
+
assetTypeUuid: AssetType["uuid"];
|
|
35
35
|
file: File;
|
|
36
36
|
}[]): Promise<OptimisticMultipleModelResult<AssetTypeAttachment>>;
|
|
37
|
-
delete(
|
|
38
|
-
refreshStore(
|
|
37
|
+
delete(uuid: AssetTypeAttachment["uuid"]): Promise<void>;
|
|
38
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
39
39
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AssetTypeFieldValuesAttachment, Created, OvermapRootState, Stored } from '../../typings';
|
|
1
|
+
import { AssetTypeFieldValues, AssetTypeFieldValuesAttachment, Created, OvermapRootState, Project, Stored } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { BaseUploadService } from './BaseUploadService';
|
|
4
4
|
export declare abstract class AssetTypeFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
5
5
|
bulkAdd(payloads: {
|
|
6
|
-
|
|
6
|
+
fieldValuesUuid: AssetTypeFieldValues["uuid"];
|
|
7
7
|
fieldIdentifier: string;
|
|
8
8
|
file: File;
|
|
9
9
|
}[], batchSize?: number): Promise<[Stored<AssetTypeFieldValuesAttachment>[], Promise<Created<AssetTypeFieldValuesAttachment>[]>[]]>;
|
|
10
|
-
bulkDelete(
|
|
11
|
-
refreshStore(
|
|
10
|
+
bulkDelete(uuids: AssetTypeFieldValuesAttachment["uuid"][]): Promise<void>;
|
|
11
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
12
12
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AssetTypeFieldValues, Created,
|
|
1
|
+
import { SerializedFieldValues } from '@overmap-ai/forms';
|
|
2
|
+
import { Asset, AssetTypeFields, AssetTypeFieldValues, Created, OvermapRootState, Payload, Project, Stored, UUID } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { OptimisticModelResult } from '../typings';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class AssetTypeFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
7
|
add(payload: Payload<AssetTypeFieldValues>): OptimisticModelResult<AssetTypeFieldValues>;
|
|
8
8
|
bulkAdd(payload: {
|
|
9
|
-
values:
|
|
9
|
+
values: SerializedFieldValues;
|
|
10
10
|
payloads: {
|
|
11
|
-
values:
|
|
12
|
-
asset:
|
|
13
|
-
fields_revision:
|
|
11
|
+
values: SerializedFieldValues;
|
|
12
|
+
asset: Asset["uuid"];
|
|
13
|
+
fields_revision: AssetTypeFields["uuid"];
|
|
14
14
|
published_at: string;
|
|
15
15
|
}[];
|
|
16
16
|
}, batchSize?: number): [Stored<AssetTypeFieldValues>[], Promise<Created<AssetTypeFieldValues>[]>[]];
|
|
17
|
-
update(payload:
|
|
18
|
-
delete(
|
|
19
|
-
refreshStore(
|
|
17
|
+
update(payload: UUID<Partial<Payload<AssetTypeFieldValues>>>): OptimisticModelResult<AssetTypeFieldValues>;
|
|
18
|
+
delete(uuid: AssetTypeFieldValues["uuid"]): Promise<void>;
|
|
19
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<void>;
|
|
20
20
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AssetTypeFieldsAttachment, OvermapRootState } from '../../typings';
|
|
1
|
+
import { AssetTypeFields, AssetTypeFieldsAttachment, 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 AssetTypeFieldsAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
6
|
bulkAdd(payloads: {
|
|
7
|
-
|
|
7
|
+
fieldsRevisionUuid: AssetTypeFields["uuid"];
|
|
8
8
|
fieldIdentifier: string;
|
|
9
9
|
file: File;
|
|
10
10
|
}[]): Promise<OptimisticMultipleModelResult<AssetTypeFieldsAttachment>>;
|
|
11
|
-
refreshStore(organization:
|
|
11
|
+
refreshStore(organization: Organization["uuid"]): Promise<void>;
|
|
12
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AssetTypeFields, OvermapRootState, Payload } from '../../typings';
|
|
1
|
+
import { AssetTypeFields, 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 AssetTypeFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<AssetTypeFields>): OptimisticModelResult<AssetTypeFields>;
|
|
7
|
-
refreshStore(
|
|
7
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
8
8
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AssetType,
|
|
1
|
+
import { AssetType, 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 AssetTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<AssetType>): OptimisticModelResult<AssetType>;
|
|
7
|
-
update(payload:
|
|
8
|
-
delete(
|
|
9
|
-
refreshStore(
|
|
7
|
+
update(payload: UUID<Partial<Payload<AssetType>>>): OptimisticModelResult<AssetType>;
|
|
8
|
+
delete(uuid: AssetType["uuid"]): Promise<undefined>;
|
|
9
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
10
10
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { ActionCreatorWithPayload } from '@reduxjs/toolkit';
|
|
2
|
-
import { Attachment, FileModelPayload,
|
|
2
|
+
import { Attachment, FileModelPayload, OvermapRootState, OvermapSelectorWithArgs, Stored, Submitted, User, UUIDModel } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
5
5
|
import { BaseUploadService } from './BaseUploadService';
|
|
6
6
|
export interface AttachmentPayload extends FileModelPayload {
|
|
7
|
-
|
|
7
|
+
uuid: UUIDModel["uuid"];
|
|
8
8
|
description: Attachment["description"];
|
|
9
9
|
}
|
|
10
|
-
export interface BuildOfflineAttachmentData
|
|
10
|
+
export interface BuildOfflineAttachmentData {
|
|
11
11
|
file: File;
|
|
12
12
|
file_sha1: string;
|
|
13
13
|
submitted_at: string;
|
|
14
|
-
created_by?:
|
|
14
|
+
created_by?: User["id"];
|
|
15
15
|
description?: string;
|
|
16
|
-
|
|
16
|
+
modelUuid: UUIDModel["uuid"];
|
|
17
17
|
}
|
|
18
|
-
export interface BuildAttachmentPayloadData
|
|
19
|
-
|
|
18
|
+
export interface BuildAttachmentPayloadData extends AttachmentPayload {
|
|
19
|
+
modelUuid: UUIDModel["uuid"];
|
|
20
20
|
}
|
|
21
|
-
export declare abstract class BaseAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>,
|
|
21
|
+
export declare abstract class BaseAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>, TAttachment extends Attachment> extends BaseUploadService<TState, TSDK> {
|
|
22
22
|
abstract readonly name: string;
|
|
23
23
|
abstract readonly url: string;
|
|
24
|
-
abstract readonly addAttachments: ActionCreatorWithPayload<
|
|
25
|
-
abstract readonly updateAttachments: ActionCreatorWithPayload<
|
|
24
|
+
abstract readonly addAttachments: ActionCreatorWithPayload<Stored<TAttachment>[]>;
|
|
25
|
+
abstract readonly updateAttachments: ActionCreatorWithPayload<Stored<TAttachment>[]>;
|
|
26
26
|
abstract readonly removeAttachments: ActionCreatorWithPayload<string[]>;
|
|
27
27
|
abstract readonly setAttachment: ActionCreatorWithPayload<Stored<TAttachment>>;
|
|
28
28
|
abstract readonly removeAttachment: ActionCreatorWithPayload<string>;
|
|
29
29
|
abstract readonly selectAttachment: OvermapSelectorWithArgs<string, Stored<TAttachment> | undefined>;
|
|
30
|
-
protected abstract buildOfflineAttachment(data: BuildOfflineAttachmentData
|
|
31
|
-
protected abstract buildAttachmentPayload(data: BuildAttachmentPayloadData
|
|
30
|
+
protected abstract buildOfflineAttachment(data: BuildOfflineAttachmentData): Submitted<TAttachment>;
|
|
31
|
+
protected abstract buildAttachmentPayload(data: BuildAttachmentPayloadData): AttachmentPayload;
|
|
32
32
|
_bulkAdd(payloads: {
|
|
33
|
-
|
|
33
|
+
modelUuid: UUIDModel["uuid"];
|
|
34
34
|
file: File;
|
|
35
35
|
}[]): Promise<OptimisticMultipleModelResult<TAttachment>>;
|
|
36
|
-
_delete(
|
|
36
|
+
_delete(uuid: UUIDModel["uuid"]): Promise<void>;
|
|
37
37
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Category,
|
|
1
|
+
import { Category, 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 CategoryService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<Category>): OptimisticModelResult<Category>;
|
|
7
|
-
update(payload:
|
|
8
|
-
remove(
|
|
9
|
-
refreshStore(
|
|
7
|
+
update(payload: UUID<Partial<Payload<Category>>>): OptimisticModelResult<Category>;
|
|
8
|
+
remove(uuid: Category["uuid"]): Promise<undefined>;
|
|
9
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<undefined>;
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DocumentAttachment, OvermapRootState, Stored } from '../../typings';
|
|
1
|
+
import { Document, DocumentAttachment, Organization, 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 DocumentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK,
|
|
5
|
+
export declare abstract class DocumentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, DocumentAttachment> {
|
|
6
6
|
name: string;
|
|
7
7
|
url: string;
|
|
8
8
|
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/addDocumentAttachments">;
|
|
@@ -11,7 +11,7 @@ export declare abstract class DocumentAttachmentService<TState extends OvermapRo
|
|
|
11
11
|
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "documentAttachments/deleteDocumentAttachment">;
|
|
12
12
|
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>, "documentAttachments/setDocumentAttachment">;
|
|
13
13
|
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<DocumentAttachment> | 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;
|
|
@@ -21,20 +21,20 @@ export declare abstract class DocumentAttachmentService<TState extends OvermapRo
|
|
|
21
21
|
description: string | undefined;
|
|
22
22
|
document: string;
|
|
23
23
|
}>;
|
|
24
|
-
protected buildAttachmentPayload(data: BuildAttachmentPayloadData
|
|
24
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData): {
|
|
25
25
|
document: string;
|
|
26
|
-
|
|
27
|
-
|
|
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
|
+
documentUuid: Document["uuid"];
|
|
35
35
|
file: File;
|
|
36
36
|
}[]): Promise<OptimisticMultipleModelResult<DocumentAttachment>>;
|
|
37
|
-
delete(
|
|
37
|
+
delete(uuid: DocumentAttachment["uuid"]): Promise<void>;
|
|
38
38
|
private makeReadable;
|
|
39
|
-
refreshStore(
|
|
39
|
+
refreshStore(projectUuid: Project["uuid"], organizationUuid: Organization["uuid"]): Promise<void>;
|
|
40
40
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Document, MovePosition,
|
|
1
|
+
import { Document, MovePosition, Organization, 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 DocumentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<Document>): OptimisticModelResult<Document>;
|
|
7
|
-
update(payload:
|
|
8
|
-
move(
|
|
9
|
-
delete(
|
|
10
|
-
refreshStore(
|
|
7
|
+
update(payload: UUID<Partial<Payload<Document>>>): OptimisticModelResult<Document>;
|
|
8
|
+
move(documentUuid: Document["uuid"], targetDocumentUuid: Document["uuid"] | null, position: MovePosition): Promise<Document[]>;
|
|
9
|
+
delete(uuid: Document["uuid"]): Promise<Document[]>;
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"], organizationUuid: Organization["uuid"]): Promise<void>;
|
|
11
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EmailDomain, OvermapRootState } from '../../typings';
|
|
1
|
+
import { EmailDomain, Organization, OvermapRootState } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export declare abstract class EmailDomainsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
|
-
add(
|
|
5
|
+
add(organizationUuid: Organization["uuid"], email: string): Promise<undefined>;
|
|
6
6
|
remove(emailDomain: EmailDomain): Promise<undefined>;
|
|
7
|
-
refreshStore(
|
|
7
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<undefined>;
|
|
8
8
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FormRevisionAttachment, OvermapRootState } from '../../typings';
|
|
1
|
+
import { FormRevision, FormRevisionAttachment, 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 FormRevisionAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
6
|
bulkAdd(payloads: {
|
|
7
|
-
|
|
7
|
+
revisionUuid: FormRevision["uuid"];
|
|
8
8
|
fieldIdentifier: string;
|
|
9
9
|
file: File;
|
|
10
10
|
}[]): Promise<OptimisticMultipleModelResult<FormRevisionAttachment>>;
|
|
11
|
-
refreshStore(
|
|
11
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
12
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FormRevision, FormRevisionPayload, OvermapRootState } from '../../typings';
|
|
1
|
+
import { FormRevision, FormRevisionPayload, Organization, OvermapRootState } from '../../typings';
|
|
2
2
|
import { BaseSDK } from '../base';
|
|
3
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
4
|
import { BaseUploadService } from './BaseUploadService';
|
|
5
5
|
export declare abstract class FormRevisionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
6
|
add(payload: FormRevisionPayload): OptimisticModelResult<FormRevision>;
|
|
7
|
-
refreshStore(
|
|
7
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
8
8
|
}
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Created, Form, FormRevision, OvermapRootState, Payload, Stored } from '../../typings';
|
|
1
|
+
import { Created, Form, FormRevision, Organization, OvermapRootState, Payload, Stored } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { BaseUploadService } from './BaseUploadService';
|
|
5
|
-
/**
|
|
6
|
-
* Finds and separates image files from form revision fields. The image attribute is deleted from the field objects and
|
|
7
|
-
* is returned separately from the image files as they are stored in a different table.
|
|
8
|
-
*/
|
|
9
|
-
export declare const separateImageFromFields: (fields: ISerializedField[]) => Promise<{
|
|
10
|
-
fields: ISerializedField[];
|
|
11
|
-
images: Record<string, File>;
|
|
12
|
-
}>;
|
|
13
4
|
export declare abstract class FormService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
14
5
|
add(payload: Payload<Form>, initialRevision: Pick<FormRevision, "title" | "description" | "fields">): [Stored<Form>, Stored<FormRevision>, Promise<Created<FormRevision>>];
|
|
15
|
-
delete(
|
|
16
|
-
refreshStore(
|
|
6
|
+
delete(uuid: Form["uuid"]): Promise<undefined>;
|
|
7
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
17
8
|
}
|