@overmap-ai/core 1.0.78-session-auth.3 → 1.0.78-session-auth-dev.2
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/enums/access.d.ts +0 -5
- package/dist/enums/index.d.ts +0 -1
- package/dist/overmap-core.js +3921 -3712
- package/dist/overmap-core.umd.cjs +8 -8
- package/dist/sdk/services/AgentService.d.ts +1 -1
- package/dist/sdk/services/AssetAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureFieldValuesAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureFieldsAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureFieldsService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureInstanceService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureStepFieldValuesAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureStepFieldValuesService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureStepFieldsAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureStepFieldsService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureStepService.d.ts +5 -6
- package/dist/sdk/services/AssetService.d.ts +2 -2
- package/dist/sdk/services/AssetStageCompletionService.d.ts +1 -1
- package/dist/sdk/services/AssetStageService.d.ts +5 -6
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeService.d.ts +1 -1
- package/dist/sdk/services/BaseAuthService.d.ts +1 -1
- package/dist/sdk/services/CategoryService.d.ts +2 -2
- package/dist/sdk/services/DocumentAttachmentService.d.ts +1 -1
- package/dist/sdk/services/DocumentService.d.ts +1 -1
- package/dist/sdk/services/EmailDomainsService.d.ts +1 -1
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +1 -1
- package/dist/sdk/services/FormRevisionService.d.ts +1 -1
- package/dist/sdk/services/FormService.d.ts +1 -1
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +1 -1
- package/dist/sdk/services/FormSubmissionService.d.ts +1 -1
- package/dist/sdk/services/GeoImageService.d.ts +1 -1
- package/dist/sdk/services/IssueAssociationService.d.ts +1 -1
- package/dist/sdk/services/IssueAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueCommentService.d.ts +1 -1
- package/dist/sdk/services/IssueService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeService.d.ts +1 -1
- package/dist/sdk/services/IssueUpdateService.d.ts +2 -2
- package/dist/sdk/services/JWTAuthService.d.ts +1 -1
- package/dist/sdk/services/OrganizationAccessService.d.ts +5 -4
- package/dist/sdk/services/OrganizationService.d.ts +4 -4
- package/dist/sdk/services/ProjectAccessService.d.ts +5 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +2 -2
- package/dist/sdk/services/ProjectFileService.d.ts +1 -4
- package/dist/sdk/services/ProjectService.d.ts +2 -8
- package/dist/sdk/services/TeamMembershipService.d.ts +10 -0
- package/dist/sdk/services/TeamService.d.ts +2 -5
- package/dist/sdk/services/UserService.d.ts +2 -2
- package/dist/sdk/services/index.d.ts +1 -1
- package/dist/store/constants.d.ts +3 -1
- package/dist/store/reducers.d.ts +3 -3
- package/dist/store/slices/agentsSlice.d.ts +21 -1
- package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +1 -1
- package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/assetProcedureFieldsSlice.d.ts +1 -1
- package/dist/store/slices/assetProcedureInstanceSlice.d.ts +1 -1
- package/dist/store/slices/assetProcedureSlice.d.ts +2 -2
- package/dist/store/slices/assetProcedureStepFieldValuesAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/assetProcedureStepFieldValuesSlice.d.ts +1 -1
- package/dist/store/slices/assetProcedureStepFieldsAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/assetProcedureStepFieldsSlice.d.ts +2 -2
- package/dist/store/slices/assetProcedureStepSlice.d.ts +1 -1
- package/dist/store/slices/assetSlice.d.ts +1 -1
- package/dist/store/slices/assetStageCompletionSlice.d.ts +10 -2
- package/dist/store/slices/assetStageSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeSlice.d.ts +2 -1
- package/dist/store/slices/categorySlice.d.ts +24 -4
- package/dist/store/slices/documentSlice.d.ts +1 -1
- package/dist/store/slices/emailDomainsSlice.d.ts +26 -2
- package/dist/store/slices/formRevisionSlice.d.ts +16 -4
- package/dist/store/slices/formSlice.d.ts +19 -6
- package/dist/store/slices/geoImageSlice.d.ts +1 -1
- package/dist/store/slices/index.d.ts +1 -1
- package/dist/store/slices/issueAssociationSlice.d.ts +1 -1
- package/dist/store/slices/issueCommentSlice.d.ts +13 -1
- package/dist/store/slices/issueSlice.d.ts +96 -1
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeSlice.d.ts +23 -3
- package/dist/store/slices/issueUpdateSlice.d.ts +15 -3
- package/dist/store/slices/organizationAccessSlice.d.ts +30 -6
- package/dist/store/slices/organizationSlice.d.ts +2 -8
- package/dist/store/slices/projectAccessSlice.d.ts +27 -6
- package/dist/store/slices/projectFileSlice.d.ts +1 -1
- package/dist/store/slices/projectSlice.d.ts +5 -8
- package/dist/store/slices/teamMembershipSlice.d.ts +49 -0
- package/dist/store/slices/teamSlice.d.ts +21 -6
- package/dist/store/slices/userSlice.d.ts +84 -5
- package/dist/typings/models/index.d.ts +0 -1
- package/dist/typings/models/organizations.d.ts +2 -3
- package/dist/typings/models/projects.d.ts +2 -5
- package/dist/typings/models/teams.d.ts +5 -2
- package/package.json +3 -8
- package/dist/enums/licenses.d.ts +0 -14
- package/dist/sdk/services/LicenseService.d.ts +0 -14
- package/dist/store/slices/licenseSlice.d.ts +0 -25
- package/dist/typings/models/license.d.ts +0 -13
|
@@ -7,5 +7,5 @@ export declare abstract class AgentService<TState extends OvermapRootState, TSDK
|
|
|
7
7
|
continueConversation(prompt: string, conversationUuid: AgentUserConversation["uuid"], projectUuid: Project["uuid"]): Promise<void>;
|
|
8
8
|
fetchDetails(conversationUuid: AgentUserConversation["uuid"]): Promise<void>;
|
|
9
9
|
rate(responseUuid: string, rating: 1 | 5): Promise<undefined>;
|
|
10
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<AgentUserConversation[]>;
|
|
11
11
|
}
|
|
@@ -37,5 +37,5 @@ export declare abstract class AssetAttachmentService<TState extends OvermapRootS
|
|
|
37
37
|
file: File;
|
|
38
38
|
}[]): Promise<OptimisticMultipleModelResult<AssetAttachment>>;
|
|
39
39
|
delete(uuid: AssetAttachment["uuid"]): Promise<void>;
|
|
40
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
40
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<AssetAttachment[]>;
|
|
41
41
|
}
|
|
@@ -36,5 +36,5 @@ export declare abstract class AssetProcedureAttachmentService<TState extends Ove
|
|
|
36
36
|
file: File;
|
|
37
37
|
}[]): Promise<OptimisticMultipleModelResult<AssetProcedureAttachment>>;
|
|
38
38
|
delete(uuid: AssetProcedureAttachment["uuid"]): Promise<void>;
|
|
39
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
39
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<AssetProcedureAttachment[]>;
|
|
40
40
|
}
|
|
@@ -12,5 +12,5 @@ export declare abstract class AssetProcedureFieldValuesAttachmentService<TState
|
|
|
12
12
|
Promise<Created<AssetProcedureFieldValuesAttachment>[]>[]
|
|
13
13
|
]>;
|
|
14
14
|
bulkDelete(uuids: AssetProcedureFieldValuesAttachment["uuid"][]): Promise<void>;
|
|
15
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
15
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<AssetProcedureFieldValuesAttachment[]>;
|
|
16
16
|
}
|
|
@@ -18,5 +18,5 @@ export declare abstract class AssetProcedureFieldValuesService<TState extends Ov
|
|
|
18
18
|
}, batchSize?: number): [Stored<AssetProcedureFieldValues>[], Promise<Created<AssetProcedureFieldValues>[]>[]];
|
|
19
19
|
update(payload: UUID<Partial<Payload<AssetProcedureFieldValues>>>): OptimisticModelResult<AssetProcedureFieldValues>;
|
|
20
20
|
delete(uuid: AssetProcedureFieldValues["uuid"]): Promise<void>;
|
|
21
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
21
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<AssetProcedureFieldValues[]>;
|
|
22
22
|
}
|
|
@@ -9,5 +9,5 @@ export declare abstract class AssetProcedureFieldsAttachmentService<TState exten
|
|
|
9
9
|
fieldIdentifier: string;
|
|
10
10
|
file: File;
|
|
11
11
|
}[]): Promise<OptimisticMultipleModelResult<AssetProcedureFieldsAttachment>>;
|
|
12
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
12
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<AssetProcedureFieldsAttachment[]>;
|
|
13
13
|
}
|
|
@@ -5,5 +5,5 @@ import { OptimisticModelResult } from '../typings';
|
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class AssetProcedureFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
7
|
add(payload: Payload<AssetProcedureFields>): OptimisticModelResult<AssetProcedureFields>;
|
|
8
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
8
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<AssetProcedureFields[]>;
|
|
9
9
|
}
|
|
@@ -7,5 +7,5 @@ export declare abstract class AssetProcedureInstanceService<TState extends Overm
|
|
|
7
7
|
add(payload: Payload<AssetProcedureInstance>): OptimisticModelResult<AssetProcedureInstance>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<AssetProcedureInstance>>>): OptimisticModelResult<AssetProcedureInstance>;
|
|
9
9
|
remove(uuid: AssetProcedureInstance["uuid"]): Promise<undefined>;
|
|
10
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<AssetProcedureInstance[]>;
|
|
11
11
|
}
|
|
@@ -7,5 +7,5 @@ export declare abstract class AssetProcedureService<TState extends OvermapRootSt
|
|
|
7
7
|
add(payload: Payload<AssetProcedure>): OptimisticModelResult<AssetProcedure>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<AssetProcedure>>>): OptimisticModelResult<AssetProcedure>;
|
|
9
9
|
remove(uuid: AssetProcedure["uuid"]): Promise<undefined>;
|
|
10
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<AssetProcedure[]>;
|
|
11
11
|
}
|
|
@@ -12,5 +12,5 @@ export declare abstract class AssetProcedureStepFieldValuesAttachmentService<TSt
|
|
|
12
12
|
Promise<Created<AssetProcedureStepFieldValuesAttachment>[]>[]
|
|
13
13
|
]>;
|
|
14
14
|
bulkDelete(uuids: AssetProcedureStepFieldValuesAttachment["uuid"][]): Promise<void>;
|
|
15
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
15
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<AssetProcedureStepFieldValuesAttachment[]>;
|
|
16
16
|
}
|
|
@@ -19,5 +19,5 @@ export declare abstract class AssetProcedureStepFieldValuesService<TState extend
|
|
|
19
19
|
}, batchSize?: number): [Stored<AssetProcedureStepFieldValues>[], Promise<Created<AssetProcedureStepFieldValues>[]>[]];
|
|
20
20
|
update(payload: UUID<Partial<Payload<AssetProcedureStepFieldValues>>>): OptimisticModelResult<AssetProcedureStepFieldValues>;
|
|
21
21
|
delete(uuid: AssetProcedureStepFieldValues["uuid"]): Promise<void>;
|
|
22
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
22
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<AssetProcedureStepFieldValues[]>;
|
|
23
23
|
}
|
|
@@ -9,5 +9,5 @@ export declare abstract class AssetProcedureStepFieldsAttachmentService<TState e
|
|
|
9
9
|
fieldIdentifier: string;
|
|
10
10
|
file: File;
|
|
11
11
|
}[]): Promise<OptimisticMultipleModelResult<AssetProcedureStepFieldsAttachment>>;
|
|
12
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
12
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<AssetProcedureStepFieldsAttachment[]>;
|
|
13
13
|
}
|
|
@@ -7,5 +7,5 @@ export declare abstract class AssetProcedureStepFieldsService<TState extends Ove
|
|
|
7
7
|
add(payload: Payload<AssetProcedureStepFields>): OptimisticModelResult<AssetProcedureStepFields>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<AssetProcedureStepFields>>>): OptimisticModelResult<AssetProcedureStepFields>;
|
|
9
9
|
delete(uuid: AssetProcedureStepFields["uuid"]): Promise<void>;
|
|
10
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<AssetProcedureStepFields[]>;
|
|
11
11
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import {
|
|
2
|
+
import { AssetProcedureStep, Organization, Payload, UUID } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
|
-
import { OptimisticModelResult
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class AssetProcedureStepService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
-
|
|
8
|
-
bulkUpdate(stepsToUpdate: AssetProcedureStep[], assetProcedureUuid: AssetProcedure["uuid"]): Promise<AssetProcedureStep[]>;
|
|
9
|
-
bulkDelete(uuids: AssetProcedureStep["uuid"][]): Promise<undefined>;
|
|
7
|
+
add(payload: Payload<AssetProcedureStep>): OptimisticModelResult<AssetProcedureStep>;
|
|
10
8
|
update(payload: UUID<Partial<Payload<AssetProcedureStep>>>): OptimisticModelResult<AssetProcedureStep>;
|
|
11
|
-
|
|
9
|
+
delete(uuid: AssetProcedureStep["uuid"]): Promise<void>;
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<AssetProcedureStep[]>;
|
|
12
11
|
}
|
|
@@ -8,6 +8,6 @@ export declare abstract class AssetService<TState extends OvermapRootState, TSDK
|
|
|
8
8
|
update(payload: UUID<Partial<Payload<Asset>>>): OptimisticModelResult<Asset>;
|
|
9
9
|
delete(uuid: Asset["uuid"]): Promise<undefined>;
|
|
10
10
|
bulkAdd(payloads: Omit<Payload<Asset>, "asset_type" | "project">[], assetTypeUuid: AssetType["uuid"], projectUuid: Project["uuid"], batchSize: number): Promise<Created<Asset>[]>[];
|
|
11
|
-
bulkDelete(
|
|
12
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
11
|
+
bulkDelete(uuids: Asset["uuid"][]): Promise<void>;
|
|
12
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<Asset[]>;
|
|
13
13
|
}
|
|
@@ -8,5 +8,5 @@ export declare abstract class AssetStageCompletionService<TState extends Overmap
|
|
|
8
8
|
delete(uuid: AssetStageCompletion["uuid"]): Promise<undefined>;
|
|
9
9
|
bulkAdd(payloads: Payload<AssetStageCompletion>[]): OptimisticMultipleModelResult<AssetStageCompletion>;
|
|
10
10
|
bulkDelete(uuids: AssetStageCompletion["uuid"][]): Promise<undefined>;
|
|
11
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
11
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<AssetStageCompletion[]>;
|
|
12
12
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import {
|
|
2
|
+
import { AssetStage, Organization, Payload, UUID } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
|
-
import { OptimisticModelResult
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class AssetStageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
-
|
|
8
|
-
bulkUpdate(stagesToUpdate: AssetStage[], assetProcedureUuid: AssetProcedure["uuid"]): Promise<AssetStage[]>;
|
|
9
|
-
bulkDelete(uuids: AssetStage["uuid"][]): Promise<undefined>;
|
|
7
|
+
add(payload: Payload<AssetStage>): OptimisticModelResult<AssetStage>;
|
|
10
8
|
update(payload: UUID<Partial<Payload<AssetStage>>>): OptimisticModelResult<AssetStage>;
|
|
11
|
-
|
|
9
|
+
delete(uuid: AssetStage["uuid"]): Promise<void>;
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<AssetStage[]>;
|
|
12
11
|
}
|
|
@@ -36,5 +36,5 @@ export declare abstract class AssetTypeAttachmentService<TState extends OvermapR
|
|
|
36
36
|
file: File;
|
|
37
37
|
}[]): Promise<OptimisticMultipleModelResult<AssetTypeAttachment>>;
|
|
38
38
|
delete(uuid: AssetTypeAttachment["uuid"]): Promise<void>;
|
|
39
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
39
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<AssetTypeAttachment[]>;
|
|
40
40
|
}
|
|
@@ -9,5 +9,5 @@ export declare abstract class AssetTypeFieldValuesAttachmentService<TState exten
|
|
|
9
9
|
file: File;
|
|
10
10
|
}[], batchSize?: number): Promise<[Stored<AssetTypeFieldValuesAttachment>[], Promise<Created<AssetTypeFieldValuesAttachment>[]>[]]>;
|
|
11
11
|
bulkDelete(uuids: AssetTypeFieldValuesAttachment["uuid"][]): Promise<void>;
|
|
12
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
12
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<AssetTypeFieldValuesAttachment[]>;
|
|
13
13
|
}
|
|
@@ -17,5 +17,5 @@ export declare abstract class AssetTypeFieldValuesService<TState extends Overmap
|
|
|
17
17
|
}, batchSize?: number): [Stored<AssetTypeFieldValues>[], Promise<Created<AssetTypeFieldValues>[]>[]];
|
|
18
18
|
update(payload: UUID<Partial<Payload<AssetTypeFieldValues>>>): OptimisticModelResult<AssetTypeFieldValues>;
|
|
19
19
|
delete(uuid: AssetTypeFieldValues["uuid"]): Promise<void>;
|
|
20
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
20
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<AssetTypeFieldValues[]>;
|
|
21
21
|
}
|
|
@@ -9,5 +9,5 @@ export declare abstract class AssetTypeFieldsAttachmentService<TState extends Ov
|
|
|
9
9
|
fieldIdentifier: string;
|
|
10
10
|
file: File;
|
|
11
11
|
}[]): Promise<OptimisticMultipleModelResult<AssetTypeFieldsAttachment>>;
|
|
12
|
-
refreshStore(organization: Organization["uuid"]): Promise<
|
|
12
|
+
refreshStore(organization: Organization["uuid"]): Promise<AssetTypeFieldsAttachment[]>;
|
|
13
13
|
}
|
|
@@ -5,5 +5,5 @@ import { OptimisticModelResult } from '../typings';
|
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class AssetTypeFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
7
|
add(payload: Payload<AssetTypeFields>): OptimisticModelResult<AssetTypeFields>;
|
|
8
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
8
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<AssetTypeFields[]>;
|
|
9
9
|
}
|
|
@@ -7,5 +7,5 @@ export declare abstract class AssetTypeService<TState extends OvermapRootState,
|
|
|
7
7
|
add(payload: Payload<AssetType>): OptimisticModelResult<AssetType>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<AssetType>>>): OptimisticModelResult<AssetType>;
|
|
9
9
|
delete(uuid: AssetType["uuid"]): Promise<undefined>;
|
|
10
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<AssetType[]>;
|
|
11
11
|
}
|
|
@@ -4,7 +4,7 @@ import { BaseSDK } from '../base';
|
|
|
4
4
|
import { BaseService } from './BaseService';
|
|
5
5
|
export declare abstract class BaseAuthService<TStore extends BaseState, TSDK extends BaseSDK<TStore>> extends BaseService<TStore, TSDK> {
|
|
6
6
|
clearAuth(): void;
|
|
7
|
-
|
|
7
|
+
initAuth(payload: object): Promise<void>;
|
|
8
8
|
prepareAuth(): Promise<void>;
|
|
9
9
|
abstract prepareRequest(request: SuperAgentRequest): SuperAgentRequest;
|
|
10
10
|
abstract handleUnauthorized(request: SuperAgentRequest, response: Response): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import { Category,
|
|
2
|
+
import { Category, Organization, Payload, UUID } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { OptimisticModelResult } from '../typings';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
@@ -7,5 +7,5 @@ export declare abstract class CategoryService<TState extends OvermapRootState, T
|
|
|
7
7
|
add(payload: Payload<Category>): OptimisticModelResult<Category>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<Category>>>): OptimisticModelResult<Category>;
|
|
9
9
|
remove(uuid: Category["uuid"]): Promise<undefined>;
|
|
10
|
-
refreshStore(
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<Category[]>;
|
|
11
11
|
}
|
|
@@ -37,5 +37,5 @@ export declare abstract class DocumentAttachmentService<TState extends OvermapRo
|
|
|
37
37
|
}[]): Promise<OptimisticMultipleModelResult<DocumentAttachment>>;
|
|
38
38
|
delete(uuid: DocumentAttachment["uuid"]): Promise<void>;
|
|
39
39
|
private makeReadable;
|
|
40
|
-
refreshStore(projectUuid: Project["uuid"], organizationUuid: Organization["uuid"]): Promise<
|
|
40
|
+
refreshStore(projectUuid: Project["uuid"], organizationUuid: Organization["uuid"]): Promise<DocumentAttachment[]>;
|
|
41
41
|
}
|
|
@@ -8,5 +8,5 @@ export declare abstract class DocumentService<TState extends OvermapRootState, T
|
|
|
8
8
|
update(payload: UUID<Partial<Payload<Document>>>): OptimisticModelResult<Document>;
|
|
9
9
|
move(documentUuid: Document["uuid"], targetDocumentUuid: Document["uuid"] | null, position: MovePosition): Promise<Document[]>;
|
|
10
10
|
delete(uuid: Document["uuid"]): Promise<Document[]>;
|
|
11
|
-
refreshStore(projectUuid: Project["uuid"], organizationUuid: Organization["uuid"]): Promise<
|
|
11
|
+
refreshStore(projectUuid: Project["uuid"], organizationUuid: Organization["uuid"]): Promise<Document[]>;
|
|
12
12
|
}
|
|
@@ -5,5 +5,5 @@ import { BaseApiService } from './BaseApiService';
|
|
|
5
5
|
export declare abstract class EmailDomainsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(organizationUuid: Organization["uuid"], email: string): Promise<undefined>;
|
|
7
7
|
remove(emailDomain: EmailDomain): Promise<undefined>;
|
|
8
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
8
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<EmailDomain[]>;
|
|
9
9
|
}
|
|
@@ -9,5 +9,5 @@ export declare abstract class FormRevisionAttachmentService<TState extends Overm
|
|
|
9
9
|
fieldIdentifier: string;
|
|
10
10
|
file: File;
|
|
11
11
|
}[]): Promise<OptimisticMultipleModelResult<FormRevisionAttachment>>;
|
|
12
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
12
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<FormRevisionAttachment[]>;
|
|
13
13
|
}
|
|
@@ -5,5 +5,5 @@ import { OptimisticModelResult } from '../typings';
|
|
|
5
5
|
import { BaseUploadService } from './BaseUploadService';
|
|
6
6
|
export declare abstract class FormRevisionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
7
7
|
add(payload: FormRevisionPayload): OptimisticModelResult<FormRevision>;
|
|
8
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
8
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<FormRevision[]>;
|
|
9
9
|
}
|
|
@@ -5,5 +5,5 @@ import { BaseUploadService } from './BaseUploadService';
|
|
|
5
5
|
export declare abstract class FormService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<Form>, initialRevision: Pick<FormRevision, "title" | "description" | "fields">): [Stored<Form>, Stored<FormRevision>, Promise<Created<FormRevision>>];
|
|
7
7
|
delete(uuid: Form["uuid"]): Promise<undefined>;
|
|
8
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
8
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<Form[]>;
|
|
9
9
|
}
|
|
@@ -10,5 +10,5 @@ export declare abstract class FormSubmissionAttachmentService<TState extends Ove
|
|
|
10
10
|
file: File;
|
|
11
11
|
}[]): Promise<OptimisticMultipleModelResult<FormSubmissionAttachment>>;
|
|
12
12
|
bulkDelete(uuids: FormSubmissionAttachment["uuid"][]): Promise<void>;
|
|
13
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
13
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<FormSubmissionAttachment[]>;
|
|
14
14
|
}
|
|
@@ -7,5 +7,5 @@ export declare abstract class FormSubmissionService<TState extends OvermapRootSt
|
|
|
7
7
|
add(payload: Payload<FormSubmission>): OptimisticModelResult<FormSubmission>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<FormSubmission>>>): OptimisticModelResult<FormSubmission>;
|
|
9
9
|
delete(uuid: FormSubmission["uuid"]): Promise<undefined>;
|
|
10
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<FormSubmission[]>;
|
|
11
11
|
}
|
|
@@ -8,5 +8,5 @@ export declare abstract class GeoImageService<TState extends OvermapRootState, T
|
|
|
8
8
|
bulkAdd(payloads: BulkGeoImagePayload[], projectUuid: string): Promise<OptimisticMultipleModelResult<GeoImage>>;
|
|
9
9
|
update(payload: UUID<Partial<Pick<GeoImagePayload, "title" | "description">>>): OptimisticModelResult<GeoImage>;
|
|
10
10
|
delete(uuid: GeoImage["uuid"]): Promise<void>;
|
|
11
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
11
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<GeoImage[]>;
|
|
12
12
|
}
|
|
@@ -6,5 +6,5 @@ import { BaseApiService } from './BaseApiService';
|
|
|
6
6
|
export declare abstract class IssueAssociationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
7
|
add(payload: Payload<IssueAssociation>): OptimisticModelResult<IssueAssociation>;
|
|
8
8
|
delete(uuid: IssueAssociation["uuid"]): Promise<void>;
|
|
9
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
9
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<IssueAssociation[]>;
|
|
10
10
|
}
|
|
@@ -37,5 +37,5 @@ export declare abstract class IssueAttachmentService<TState extends OvermapRootS
|
|
|
37
37
|
file: File;
|
|
38
38
|
}[]): Promise<OptimisticMultipleModelResult<IssueAttachment>>;
|
|
39
39
|
delete(uuid: IssueAttachment["uuid"]): Promise<void>;
|
|
40
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
40
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<IssueAttachment[]>;
|
|
41
41
|
}
|
|
@@ -37,5 +37,5 @@ export declare abstract class IssueCommentAttachmentService<TState extends Overm
|
|
|
37
37
|
file: File;
|
|
38
38
|
}[]): Promise<OptimisticMultipleModelResult<IssueCommentAttachment>>;
|
|
39
39
|
delete(uuid: IssueCommentAttachment["uuid"]): Promise<void>;
|
|
40
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
40
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<IssueCommentAttachment[]>;
|
|
41
41
|
}
|
|
@@ -7,5 +7,5 @@ export declare abstract class IssueCommentService<TState extends OvermapRootStat
|
|
|
7
7
|
add(payload: Omit<Payload<IssueComment>, "author">): OptimisticModelResult<IssueComment>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<IssueComment>>>): OptimisticModelResult<IssueComment>;
|
|
9
9
|
remove(uuid: IssueComment["uuid"]): Promise<undefined>;
|
|
10
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<IssueComment[]>;
|
|
11
11
|
}
|
|
@@ -7,5 +7,5 @@ export declare abstract class IssueService<TState extends OvermapRootState, TSDK
|
|
|
7
7
|
add(payload: Payload<Issue>): OptimisticModelResult<Issue>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<Issue>>>): OptimisticModelResult<Issue>;
|
|
9
9
|
remove(uuid: Issue["uuid"]): Promise<undefined>;
|
|
10
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<Issue[]>;
|
|
11
11
|
}
|
|
@@ -37,5 +37,5 @@ export declare abstract class IssueTypeAttachmentService<TState extends OvermapR
|
|
|
37
37
|
file: File;
|
|
38
38
|
}[]): Promise<OptimisticMultipleModelResult<IssueTypeAttachment>>;
|
|
39
39
|
delete(uuid: IssueTypeAttachment["uuid"]): Promise<void>;
|
|
40
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
40
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<IssueTypeAttachment[]>;
|
|
41
41
|
}
|
|
@@ -10,5 +10,5 @@ export declare abstract class IssueTypeFieldValuesAttachmentService<TState exten
|
|
|
10
10
|
file: File;
|
|
11
11
|
}[]): Promise<OptimisticMultipleModelResult<IssueTypeFieldValuesAttachment>>;
|
|
12
12
|
bulkDelete(uuids: IssueTypeFieldValuesAttachment["uuid"][]): Promise<void>;
|
|
13
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
13
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<IssueTypeFieldValuesAttachment[]>;
|
|
14
14
|
}
|
|
@@ -7,5 +7,5 @@ export declare abstract class IssueTypeFieldValuesService<TState extends Overmap
|
|
|
7
7
|
add(payload: Payload<IssueTypeFieldValues>): OptimisticModelResult<IssueTypeFieldValues>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<IssueTypeFieldValues>>>): OptimisticModelResult<IssueTypeFieldValues>;
|
|
9
9
|
delete(uuid: IssueTypeFieldValues["uuid"]): Promise<void>;
|
|
10
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<IssueTypeFieldValues[]>;
|
|
11
11
|
}
|
|
@@ -9,5 +9,5 @@ export declare abstract class IssueTypeFieldsAttachmentService<TState extends Ov
|
|
|
9
9
|
fieldIdentifier: string;
|
|
10
10
|
file: File;
|
|
11
11
|
}[]): Promise<OptimisticMultipleModelResult<IssueTypeFieldsAttachment>>;
|
|
12
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
12
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<IssueTypeFieldsAttachment[]>;
|
|
13
13
|
}
|
|
@@ -5,5 +5,5 @@ import { OptimisticModelResult } from '../typings';
|
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class IssueTypeFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
7
|
add(payload: Payload<IssueTypeFields>): OptimisticModelResult<IssueTypeFields>;
|
|
8
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
8
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<IssueTypeFields[]>;
|
|
9
9
|
}
|
|
@@ -7,5 +7,5 @@ export declare abstract class IssueTypeService<TState extends OvermapRootState,
|
|
|
7
7
|
add(payload: Payload<IssueType>): OptimisticModelResult<IssueType>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<IssueType>>>): OptimisticModelResult<IssueType>;
|
|
9
9
|
delete(uuid: IssueType["uuid"]): Promise<void>;
|
|
10
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<IssueType[]>;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import { Project } from '../../typings';
|
|
2
|
+
import { IssueUpdate, Project } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class IssueUpdateService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
6
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<IssueUpdate[]>;
|
|
7
7
|
}
|
|
@@ -33,5 +33,5 @@ export declare abstract class JWTAuthService<TState extends BaseState, TSDK exte
|
|
|
33
33
|
private getAuthHeader;
|
|
34
34
|
prepareRequest(request: SuperAgentRequest): SuperAgentRequest;
|
|
35
35
|
handleUnauthorized(request: request.SuperAgentRequest, response: request.Response): Promise<void>;
|
|
36
|
-
|
|
36
|
+
initAuth(payload: object): Promise<void>;
|
|
37
37
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import { Organization, OrganizationAccess } from '../../typings';
|
|
2
|
+
import { Organization, OrganizationAccess, Payload, UUID } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
5
|
import { BaseApiService } from './BaseApiService';
|
|
5
6
|
export declare abstract class OrganizationAccessService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
update(
|
|
7
|
-
remove(
|
|
8
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<
|
|
7
|
+
update(payload: UUID<Payload<OrganizationAccess>>): OptimisticModelResult<OrganizationAccess>;
|
|
8
|
+
remove(uuid: OrganizationAccess["uuid"]): Promise<undefined>;
|
|
9
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<OrganizationAccess[]>;
|
|
9
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import { Organization,
|
|
2
|
+
import { Organization, Payload, UUID } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class OrganizationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
|
|
7
|
-
update(
|
|
6
|
+
add(payload: Payload<Organization>): Promise<Organization>;
|
|
7
|
+
update(payload: UUID<Partial<Payload<Organization>>>): Promise<Organization>;
|
|
8
8
|
invite(organizationUuid: Organization["uuid"], email: string): Promise<undefined>;
|
|
9
|
-
refreshStore(
|
|
9
|
+
refreshStore(): Promise<Organization[]>;
|
|
10
10
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import {
|
|
2
|
+
import { Organization, Payload, ProjectAccess, UUID } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
5
|
import { BaseApiService } from './BaseApiService';
|
|
5
6
|
export declare abstract class ProjectAccessService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
|
|
7
|
+
add(payload: Payload<ProjectAccess>): OptimisticModelResult<ProjectAccess>;
|
|
8
|
+
update(payload: UUID<Payload<ProjectAccess>>): OptimisticModelResult<ProjectAccess>;
|
|
7
9
|
remove(uuid: ProjectAccess["uuid"]): Promise<undefined>;
|
|
8
|
-
refreshStore(
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<ProjectAccess[]>;
|
|
9
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import { Project, ProjectAttachment, Stored } from '../../typings';
|
|
2
|
+
import { Organization, Project, ProjectAttachment, Stored } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
5
5
|
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
@@ -36,5 +36,5 @@ export declare abstract class ProjectAttachmentService<TState extends OvermapRoo
|
|
|
36
36
|
file: File;
|
|
37
37
|
}[]): Promise<OptimisticMultipleModelResult<ProjectAttachment>>;
|
|
38
38
|
delete(uuid: ProjectAttachment["uuid"]): Promise<void>;
|
|
39
|
-
refreshStore(
|
|
39
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<ProjectAttachment[]>;
|
|
40
40
|
}
|
|
@@ -3,12 +3,9 @@ import { Project, ProjectFile } from '../../typings';
|
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { OptimisticGenericResult } from '../typings';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
|
-
/**
|
|
7
|
-
* Handles creation and caching of ProjectFiles
|
|
8
|
-
*/
|
|
9
6
|
export declare abstract class ProjectFileService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
10
7
|
saveExisting(file: ProjectFile): Promise<ProjectFile>;
|
|
11
8
|
saveActive(): OptimisticGenericResult<ProjectFile>;
|
|
12
9
|
delete(uuid: ProjectFile["uuid"]): Promise<undefined>;
|
|
13
|
-
refreshStore(projectUuid: Project["uuid"]): Promise<
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"]): Promise<ProjectFile[]>;
|
|
14
11
|
}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import { Payload, Project
|
|
2
|
+
import { Organization, Payload, Project } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
|
-
interface JoinProjectResponse {
|
|
6
|
-
username: string;
|
|
7
|
-
}
|
|
8
5
|
export declare abstract class ProjectService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
9
6
|
add(payload: Payload<Project>): Promise<Project>;
|
|
10
7
|
update(project: Project): Promise<Project>;
|
|
11
8
|
delete(uuid: Project["uuid"]): Promise<void>;
|
|
12
|
-
|
|
13
|
-
joinProject(projectUuid: Project["uuid"], userUuid: User["id"], inviteCode: string): Promise<JoinProjectResponse>;
|
|
14
|
-
acceptInvite(projectUuid: Project["uuid"]): Promise<void>;
|
|
9
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<Project[]>;
|
|
15
10
|
}
|
|
16
|
-
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OvermapRootState } from '../../store';
|
|
2
|
+
import { Organization, Payload, TeamMembership } from '../../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
5
|
+
import { BaseApiService } from './BaseApiService';
|
|
6
|
+
export declare abstract class TeamMembershipService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
+
add(payload: Payload<TeamMembership>): OptimisticModelResult<TeamMembership>;
|
|
8
|
+
delete(uuid: TeamMembership["uuid"]): Promise<undefined>;
|
|
9
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<TeamMembership[]>;
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import { Organization, Payload, Team,
|
|
2
|
+
import { Organization, Payload, Team, UUID } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { OptimisticModelResult } from '../typings';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
@@ -7,8 +7,5 @@ export declare abstract class TeamService<TState extends OvermapRootState, TSDK
|
|
|
7
7
|
add(payload: Payload<Team>): OptimisticModelResult<Team>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<Team>>>): OptimisticModelResult<Team>;
|
|
9
9
|
delete(uuid: Team["uuid"]): Promise<undefined>;
|
|
10
|
-
|
|
11
|
-
addMembers(teamUuid: Team["uuid"], members: User["id"][]): Promise<undefined>;
|
|
12
|
-
removeMembers(teamUuid: Team["uuid"], members: User["id"][]): Promise<undefined>;
|
|
13
|
-
refreshStore(organizationUuid: Organization["uuid"]): Promise<void>;
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<Team[]>;
|
|
14
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OvermapRootState } from '../../store';
|
|
2
|
-
import { Organization,
|
|
2
|
+
import { Organization, User } from '../../typings';
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class UserService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
refreshStore(
|
|
6
|
+
refreshStore(organizationUuid: Organization["uuid"]): Promise<User[]>;
|
|
7
7
|
}
|
|
@@ -47,7 +47,6 @@ export * from './IssueTypeFieldValuesService';
|
|
|
47
47
|
export * from './IssueTypeService';
|
|
48
48
|
export * from './IssueUpdateService';
|
|
49
49
|
export * from './JWTAuthService';
|
|
50
|
-
export * from './LicenseService';
|
|
51
50
|
export * from './OrganizationAccessService';
|
|
52
51
|
export * from './OrganizationService';
|
|
53
52
|
export * from './ProjectAccessService';
|
|
@@ -55,5 +54,6 @@ export * from './ProjectAttachmentService';
|
|
|
55
54
|
export * from './ProjectFileService';
|
|
56
55
|
export * from './ProjectService';
|
|
57
56
|
export * from './SessionAuthService';
|
|
57
|
+
export * from './TeamMembershipService';
|
|
58
58
|
export * from './TeamService';
|
|
59
59
|
export * from './UserService';
|