@overmap-ai/core 1.0.78-session-auth.4 → 1.0.78-status-models.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/enums/access.d.ts +0 -5
- package/dist/enums/index.d.ts +0 -1
- package/dist/enums/issue.d.ts +7 -0
- package/dist/overmap-core.js +7271 -5644
- package/dist/overmap-core.umd.cjs +9 -9
- package/dist/sdk/base.d.ts +2 -2
- package/dist/sdk/constants.d.ts +4 -0
- package/dist/sdk/index.d.ts +4 -1
- package/dist/sdk/middleware/OfflineAnalyticsMiddleware.d.ts +6 -0
- package/dist/sdk/middleware/OfflineMiddleware.d.ts +13 -0
- package/dist/sdk/middleware/RateLimitingMiddleware.d.ts +6 -0
- package/dist/sdk/middleware/constants.d.ts +1 -0
- package/dist/sdk/middleware/index.d.ts +5 -0
- package/dist/sdk/middleware/utils.d.ts +2 -0
- package/dist/sdk/outbox/globals.d.ts +2 -0
- package/dist/sdk/{classes → outbox}/index.d.ts +1 -0
- package/dist/sdk/services/AgentService.d.ts +2 -2
- package/dist/sdk/services/AssetAttachmentService.d.ts +2 -2
- package/dist/sdk/services/AssetProcedureService.d.ts +3 -3
- package/dist/sdk/services/AssetProcedureStepFieldValuesAttachmentService.d.ts +2 -2
- package/dist/sdk/services/AssetProcedureStepFieldValuesService.d.ts +4 -4
- package/dist/sdk/services/AssetProcedureStepFieldsAttachmentService.d.ts +2 -2
- package/dist/sdk/services/AssetProcedureStepFieldsService.d.ts +2 -2
- package/dist/sdk/services/AssetProcedureStepService.d.ts +6 -7
- package/dist/sdk/services/{AssetProcedureAttachmentService.d.ts → AssetProcedureTypeAttachmentService.d.ts} +15 -15
- package/dist/sdk/services/AssetProcedureTypeFieldValuesAttachmentService.d.ts +16 -0
- package/dist/sdk/services/AssetProcedureTypeFieldValuesService.d.ts +22 -0
- package/dist/sdk/services/AssetProcedureTypeFieldsAttachmentService.d.ts +13 -0
- package/dist/sdk/services/AssetProcedureTypeFieldsService.d.ts +9 -0
- package/dist/sdk/services/AssetProcedureTypeService.d.ts +11 -0
- package/dist/sdk/services/AssetService.d.ts +3 -3
- package/dist/sdk/services/AssetStageCompletionService.d.ts +2 -2
- package/dist/sdk/services/AssetStageService.d.ts +6 -7
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +2 -2
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +2 -2
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +2 -2
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +2 -2
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +2 -2
- package/dist/sdk/services/AssetTypeIdentifierService.d.ts +11 -0
- package/dist/sdk/services/AssetTypeIdentifierValueService.d.ts +11 -0
- package/dist/sdk/services/AssetTypeService.d.ts +2 -2
- package/dist/sdk/services/BaseAuthService.d.ts +5 -4
- package/dist/sdk/services/BaseService.d.ts +4 -3
- package/dist/sdk/services/CategoryService.d.ts +3 -3
- package/dist/sdk/services/DocumentAttachmentService.d.ts +3 -3
- package/dist/sdk/services/DocumentService.d.ts +3 -4
- package/dist/sdk/services/EmailDomainsService.d.ts +2 -2
- package/dist/sdk/services/FileService.d.ts +2 -2
- package/dist/sdk/services/FormIdentifierService.d.ts +11 -0
- package/dist/sdk/services/FormIdentifierValueService.d.ts +11 -0
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +2 -2
- package/dist/sdk/services/FormRevisionService.d.ts +2 -2
- package/dist/sdk/services/FormService.d.ts +2 -2
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +3 -3
- package/dist/sdk/services/FormSubmissionService.d.ts +3 -3
- package/dist/sdk/services/GeoImageService.d.ts +2 -2
- package/dist/sdk/services/IssueAssociationService.d.ts +2 -2
- package/dist/sdk/services/IssueAttachmentService.d.ts +2 -2
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +2 -2
- package/dist/sdk/services/IssueCommentService.d.ts +2 -2
- package/dist/sdk/services/IssueService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeIdentifierService.d.ts +11 -0
- package/dist/sdk/services/IssueTypeIdentifierValueService.d.ts +11 -0
- package/dist/sdk/services/IssueTypeService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeStatusService.d.ts +11 -0
- package/dist/sdk/services/IssueUpdateService.d.ts +3 -3
- package/dist/sdk/services/JWTAuthService.d.ts +5 -6
- package/dist/sdk/services/OrganizationAccessService.d.ts +6 -5
- package/dist/sdk/services/OrganizationService.d.ts +5 -5
- package/dist/sdk/services/ProjectAccessService.d.ts +7 -4
- package/dist/sdk/services/ProjectAttachmentService.d.ts +5 -5
- package/dist/sdk/services/ProjectFileService.d.ts +2 -5
- package/dist/sdk/services/ProjectService.d.ts +3 -9
- package/dist/sdk/services/TeamMembershipService.d.ts +11 -0
- package/dist/sdk/services/TeamService.d.ts +3 -6
- package/dist/sdk/services/UserService.d.ts +3 -3
- package/dist/sdk/services/index.d.ts +14 -8
- package/dist/sdk/typings.d.ts +11 -2
- package/dist/store/constants.d.ts +3 -1
- package/dist/store/index.d.ts +1 -0
- package/dist/store/reducers.d.ts +42 -21
- package/dist/store/selectors/SelectorBuilder.d.ts +24 -0
- package/dist/store/selectors/hooks.d.ts +13 -0
- package/dist/store/selectors/index.d.ts +2 -0
- package/dist/store/slices/agentsSlice.d.ts +22 -2
- package/dist/store/slices/assetAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/assetProcedureSlice.d.ts +19 -11
- package/dist/store/slices/assetProcedureStepFieldValuesAttachmentSlice.d.ts +15 -8
- package/dist/store/slices/assetProcedureStepFieldValuesSlice.d.ts +17 -10
- package/dist/store/slices/assetProcedureStepFieldsAttachmentSlice.d.ts +17 -10
- package/dist/store/slices/assetProcedureStepFieldsSlice.d.ts +29 -15
- package/dist/store/slices/assetProcedureStepSlice.d.ts +19 -11
- package/dist/store/slices/assetProcedureTypeAttachmentSlice.d.ts +48 -0
- package/dist/store/slices/assetProcedureTypeFieldValuesAttachmentSlice.d.ts +138 -0
- package/dist/store/slices/assetProcedureTypeFieldValuesSlice.d.ts +138 -0
- package/dist/store/slices/assetProcedureTypeFieldsAttachmentSlice.d.ts +137 -0
- package/dist/store/slices/assetProcedureTypeFieldsSlice.d.ts +49 -0
- package/dist/store/slices/assetProcedureTypeSlice.d.ts +49 -0
- package/dist/store/slices/assetSlice.d.ts +15 -8
- package/dist/store/slices/assetStageCompletionSlice.d.ts +24 -9
- package/dist/store/slices/assetStageSlice.d.ts +18 -11
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +2 -2
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +15 -8
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +15 -8
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +15 -8
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +15 -8
- package/dist/store/slices/assetTypeIdentifierSlice.d.ts +48 -0
- package/dist/store/slices/assetTypeIdentifierValueSlice.d.ts +49 -0
- package/dist/store/slices/assetTypeSlice.d.ts +3 -2
- package/dist/store/slices/categorySlice.d.ts +38 -11
- package/dist/store/slices/documentAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/documentSlice.d.ts +4 -89
- package/dist/store/slices/emailDomainsSlice.d.ts +45 -14
- package/dist/store/slices/formIdentifierSlice.d.ts +48 -0
- package/dist/store/slices/formIdentifierValueSlice.d.ts +49 -0
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/formRevisionSlice.d.ts +30 -11
- package/dist/store/slices/formSlice.d.ts +33 -13
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +3 -2
- package/dist/store/slices/formSubmissionSlice.d.ts +1 -3
- package/dist/store/slices/geoImageSlice.d.ts +17 -10
- package/dist/store/slices/index.d.ts +14 -7
- package/dist/store/slices/issueAssociationSlice.d.ts +19 -12
- package/dist/store/slices/issueAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/issueCommentAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/issueCommentSlice.d.ts +15 -3
- package/dist/store/slices/issueSlice.d.ts +20 -5
- package/dist/store/slices/issueTypeAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +15 -8
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +15 -8
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +15 -8
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +15 -8
- package/dist/store/slices/issueTypeIdentifierSlice.d.ts +48 -0
- package/dist/store/slices/issueTypeIdentifierValueSlice.d.ts +49 -0
- package/dist/store/slices/issueTypeSlice.d.ts +25 -7
- package/dist/store/slices/{assetProcedureFieldsSlice.d.ts → issueTypeStatusSlice.d.ts} +47 -40
- package/dist/store/slices/issueUpdateSlice.d.ts +17 -4
- package/dist/store/slices/organizationAccessSlice.d.ts +37 -13
- package/dist/store/slices/organizationSlice.d.ts +16 -15
- package/dist/store/slices/projectAccessSlice.d.ts +28 -7
- package/dist/store/slices/projectAttachmentSlice.d.ts +2 -2
- package/dist/store/slices/projectFileSlice.d.ts +16 -9
- package/dist/store/slices/projectSlice.d.ts +19 -15
- package/dist/store/slices/teamMembershipSlice.d.ts +49 -0
- package/dist/store/slices/teamSlice.d.ts +22 -7
- package/dist/store/slices/userSlice.d.ts +92 -6
- package/dist/store/store.d.ts +2 -3
- package/dist/typings/index.d.ts +0 -3
- package/dist/typings/models/assets.d.ts +64 -45
- package/dist/typings/models/base.d.ts +23 -7
- package/dist/typings/models/categories.d.ts +4 -5
- package/dist/typings/models/documents.d.ts +13 -5
- package/dist/typings/models/emailDomain.d.ts +2 -1
- package/dist/typings/models/emailVerification.d.ts +7 -5
- package/dist/typings/models/fields.d.ts +3 -3
- package/dist/typings/models/forms.d.ts +15 -10
- package/dist/typings/models/geoImages.d.ts +2 -2
- package/dist/typings/models/index.d.ts +0 -3
- package/dist/typings/models/issues.d.ts +53 -23
- package/dist/typings/models/organizations.d.ts +4 -5
- package/dist/typings/models/projects.d.ts +10 -9
- package/dist/typings/models/teams.d.ts +8 -4
- package/dist/typings/models/users.d.ts +2 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/models/assets.d.ts +4 -0
- package/dist/utils/models/index.d.ts +1 -0
- package/dist/utils/uuid.d.ts +5 -0
- package/package.json +97 -115
- package/dist/enums/licenses.d.ts +0 -14
- package/dist/sdk/services/AssetProcedureFieldValuesAttachmentService.d.ts +0 -16
- package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +0 -22
- package/dist/sdk/services/AssetProcedureFieldsAttachmentService.d.ts +0 -13
- package/dist/sdk/services/AssetProcedureFieldsService.d.ts +0 -9
- package/dist/sdk/services/AssetProcedureInstanceService.d.ts +0 -11
- package/dist/sdk/services/LicenseService.d.ts +0 -14
- package/dist/sdk/services/SessionAuthService.d.ts +0 -14
- package/dist/store/slices/assetProcedureAttachmentSlice.d.ts +0 -48
- package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +0 -131
- package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +0 -131
- package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +0 -130
- package/dist/store/slices/assetProcedureInstanceSlice.d.ts +0 -132
- package/dist/store/slices/licenseSlice.d.ts +0 -25
- package/dist/typings/colors.d.ts +0 -8
- package/dist/typings/json.d.ts +0 -6
- package/dist/typings/memoization.d.ts +0 -1
- package/dist/typings/models/attachments.d.ts +0 -31
- package/dist/typings/models/issueTypes.d.ts +0 -7
- package/dist/typings/models/license.d.ts +0 -13
- package/dist/typings/models/store.d.ts +0 -0
- package/dist/typings/search.d.ts +0 -23
- package/dist/utils/coordinates.d.ts +0 -4
- package/dist/utils/offline.d.ts +0 -13
- /package/dist/sdk/{classes → outbox}/OutboxCoordinator.d.ts +0 -0
- /package/dist/sdk/{classes → outbox}/OutboxCoordinator.spec.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Document, DocumentAttachment, Organization, Project, Stored } from '../../typings';
|
|
1
|
+
import { Document, DocumentAttachment, Organization, Stored } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
6
6
|
export declare abstract class DocumentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, DocumentAttachment> {
|
|
7
7
|
name: string;
|
|
@@ -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(
|
|
40
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<DocumentAttachment[]>;
|
|
41
41
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Document, MovePosition, Organization, Payload, Project, UUID } from '../../typings';
|
|
1
|
+
import { Document, Organization, Payload, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class DocumentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
7
|
add(payload: Payload<Document>): OptimisticModelResult<Document>;
|
|
8
8
|
update(payload: UUID<Partial<Payload<Document>>>): OptimisticModelResult<Document>;
|
|
9
|
-
move(documentUuid: Document["uuid"], targetDocumentUuid: Document["uuid"] | null, position: MovePosition): Promise<Document[]>;
|
|
10
9
|
delete(uuid: Document["uuid"]): Promise<Document[]>;
|
|
11
|
-
refreshStore(
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<Document[]>;
|
|
12
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { EmailDomain, Organization } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
3
|
+
import { OvermapRootState } from '../../store';
|
|
4
4
|
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"], signal?: AbortSignal): Promise<EmailDomain[]>;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseState } from '../../store';
|
|
2
1
|
import { BaseSDK } from '../base';
|
|
2
|
+
import { BaseState } from '../../store';
|
|
3
3
|
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export interface GetS3UrlSuccessResponse {
|
|
5
5
|
url: string;
|
|
@@ -18,7 +18,7 @@ interface DatabaseFileProperties {
|
|
|
18
18
|
file: string;
|
|
19
19
|
}
|
|
20
20
|
export declare abstract class FileService<TState extends BaseState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
21
|
-
|
|
21
|
+
host: string;
|
|
22
22
|
private _dbPromise;
|
|
23
23
|
private renewUploadUrl;
|
|
24
24
|
/**
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormIdentifier, Organization, Payload, UUID } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseApiService } from './BaseApiService';
|
|
6
|
+
export declare abstract class FormIdentifierService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
+
add(payload: Payload<FormIdentifier>): OptimisticModelResult<FormIdentifier>;
|
|
8
|
+
update(payload: UUID<Partial<Payload<FormIdentifier>>>): OptimisticModelResult<FormIdentifier>;
|
|
9
|
+
delete(uuid: FormIdentifier["uuid"]): Promise<undefined>;
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<FormIdentifier[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormIdentifierValue, Organization, Payload, UUID } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseApiService } from './BaseApiService';
|
|
6
|
+
export declare abstract class FormIdentifierValueService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
+
add(payload: Payload<FormIdentifierValue>): OptimisticModelResult<FormIdentifierValue>;
|
|
8
|
+
update(payload: UUID<Partial<Payload<FormIdentifierValue>>>): OptimisticModelResult<FormIdentifierValue>;
|
|
9
|
+
delete(uuid: FormIdentifierValue["uuid"]): Promise<undefined>;
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<FormIdentifierValue[]>;
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { FormRevision, FormRevisionAttachment, Organization } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseUploadService } from './BaseUploadService';
|
|
6
6
|
export declare abstract class FormRevisionAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
7
7
|
bulkAdd(payloads: {
|
|
@@ -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"], signal?: AbortSignal): Promise<FormRevisionAttachment[]>;
|
|
13
13
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { FormRevision, FormRevisionPayload, Organization } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
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"], signal?: AbortSignal): Promise<FormRevision[]>;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { Created, Form, FormRevision, Organization, Payload, Stored } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
3
|
+
import { OvermapRootState } from '../../store';
|
|
4
4
|
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"], signal?: AbortSignal): Promise<Form[]>;
|
|
9
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormSubmission, FormSubmissionAttachment, Project } from '../../typings';
|
|
1
|
+
import { FormSubmission, FormSubmissionAttachment, Organization } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseUploadService } from './BaseUploadService';
|
|
6
6
|
export declare abstract class FormSubmissionAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
7
7
|
bulkAdd(payloads: {
|
|
@@ -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(
|
|
13
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<FormSubmissionAttachment[]>;
|
|
14
14
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormSubmission, Payload, Project, UUID } from '../../typings';
|
|
1
|
+
import { FormSubmission, Organization, Payload, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseUploadService } from './BaseUploadService';
|
|
6
6
|
export declare abstract class FormSubmissionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
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(
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<FormSubmission[]>;
|
|
11
11
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { BulkGeoImagePayload, GeoImage, GeoImagePayload, Project, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseUploadService } from './BaseUploadService';
|
|
6
6
|
export declare abstract class GeoImageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
7
7
|
add(payload: GeoImagePayload): Promise<OptimisticModelResult<GeoImage>>;
|
|
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"], signal?: AbortSignal): Promise<GeoImage[]>;
|
|
12
12
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { IssueAssociation, Payload, Project } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
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"], signal?: AbortSignal): Promise<IssueAssociation[]>;
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { Issue, IssueAttachment, Project, Stored } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
6
6
|
export declare abstract class IssueAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, IssueAttachment> {
|
|
7
7
|
name: string;
|
|
@@ -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"], signal?: AbortSignal): Promise<IssueAttachment[]>;
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { IssueComment, IssueCommentAttachment, Project, Stored } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
6
6
|
export declare abstract class IssueCommentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, IssueCommentAttachment> {
|
|
7
7
|
name: string;
|
|
@@ -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"], signal?: AbortSignal): Promise<IssueCommentAttachment[]>;
|
|
41
41
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { IssueComment, Payload, Project, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class IssueCommentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
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"], signal?: AbortSignal): Promise<IssueComment[]>;
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { Issue, Payload, Project, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class IssueService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, 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"], signal?: AbortSignal): Promise<Issue[]>;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { IssueType, IssueTypeAttachment, Organization, Stored } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
6
6
|
export declare abstract class IssueTypeAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, IssueTypeAttachment> {
|
|
7
7
|
name: string;
|
|
@@ -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"], signal?: AbortSignal): Promise<IssueTypeAttachment[]>;
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { IssueTypeFieldValues, IssueTypeFieldValuesAttachment, Project } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseUploadService } from './BaseUploadService';
|
|
6
6
|
export declare abstract class IssueTypeFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
7
7
|
bulkAdd(payloads: {
|
|
@@ -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"], signal?: AbortSignal): Promise<IssueTypeFieldValuesAttachment[]>;
|
|
14
14
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { IssueTypeFieldValues, Payload, Project, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class IssueTypeFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
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"], signal?: AbortSignal): Promise<IssueTypeFieldValues[]>;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { IssueTypeFields, IssueTypeFieldsAttachment, Organization } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseUploadService } from './BaseUploadService';
|
|
6
6
|
export declare abstract class IssueTypeFieldsAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
7
7
|
bulkAdd(payloads: {
|
|
@@ -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"], signal?: AbortSignal): Promise<IssueTypeFieldsAttachment[]>;
|
|
13
13
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { IssueTypeFields, Organization, Payload } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
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"], signal?: AbortSignal): Promise<IssueTypeFields[]>;
|
|
9
9
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IssueTypeIdentifier, Organization, Payload, UUID } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseApiService } from './BaseApiService';
|
|
6
|
+
export declare abstract class IssueTypeIdentifierService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
+
add(payload: Payload<IssueTypeIdentifier>): OptimisticModelResult<IssueTypeIdentifier>;
|
|
8
|
+
update(payload: UUID<Partial<Payload<IssueTypeIdentifier>>>): OptimisticModelResult<IssueTypeIdentifier>;
|
|
9
|
+
delete(uuid: IssueTypeIdentifier["uuid"]): Promise<undefined>;
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<IssueTypeIdentifier[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IssueTypeIdentifierValue, Payload, Project, UUID } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseApiService } from './BaseApiService';
|
|
6
|
+
export declare abstract class IssueTypeIdentifierValueService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
+
add(payload: Payload<IssueTypeIdentifierValue>): OptimisticModelResult<IssueTypeIdentifierValue>;
|
|
8
|
+
update(payload: UUID<Partial<Payload<IssueTypeIdentifierValue>>>): OptimisticModelResult<IssueTypeIdentifierValue>;
|
|
9
|
+
delete(uuid: IssueTypeIdentifierValue["uuid"]): Promise<undefined>;
|
|
10
|
+
refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<IssueTypeIdentifierValue[]>;
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { IssueType, Organization, Payload, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class IssueTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
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"], signal?: AbortSignal): Promise<IssueType[]>;
|
|
11
11
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IssueTypeStatus, Organization, Payload, UUID } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
|
+
import { BaseApiService } from './BaseApiService';
|
|
6
|
+
export declare abstract class IssueTypeStatusService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
+
add(payload: Payload<IssueTypeStatus>): OptimisticModelResult<IssueTypeStatus>;
|
|
8
|
+
update(payload: UUID<Partial<Payload<IssueTypeStatus>>>): OptimisticModelResult<IssueTypeStatus>;
|
|
9
|
+
delete(uuid: IssueTypeStatus["uuid"]): Promise<void>;
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<IssueTypeStatus[]>;
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Project } from '../../typings';
|
|
1
|
+
import { IssueUpdate, Project } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
3
|
+
import { OvermapRootState } from '../../store';
|
|
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"], signal?: AbortSignal): Promise<IssueUpdate[]>;
|
|
7
7
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { default as request
|
|
2
|
-
import { BaseState } from '../../store';
|
|
1
|
+
import { default as request } from 'superagent';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { TokenPair } from '../typings';
|
|
4
|
+
import { BaseState } from '../../store';
|
|
5
5
|
import { BaseAuthService } from './BaseAuthService';
|
|
6
6
|
/**
|
|
7
7
|
* Handles login, logout and renewing tokens
|
|
8
8
|
*/
|
|
9
|
-
export declare abstract class
|
|
9
|
+
export declare abstract class JWTService<TState extends BaseState, TSDK extends BaseSDK<TState>> extends BaseAuthService<TState, TSDK> {
|
|
10
10
|
protected abstract initTokensUrl: string;
|
|
11
11
|
protected abstract refreshTokensUrl: string;
|
|
12
12
|
protected abstract setTokens: (tokens: TokenPair) => void;
|
|
@@ -28,10 +28,9 @@ export declare abstract class JWTAuthService<TState extends BaseState, TSDK exte
|
|
|
28
28
|
* Attempts to renew tokens
|
|
29
29
|
*/
|
|
30
30
|
renewTokens(): Promise<undefined>;
|
|
31
|
-
|
|
31
|
+
tokenIsExpiringSoon(): boolean;
|
|
32
|
+
getAuthHeader(): string;
|
|
32
33
|
prepareAuth(): Promise<undefined>;
|
|
33
|
-
private getAuthHeader;
|
|
34
|
-
prepareRequest(request: SuperAgentRequest): SuperAgentRequest;
|
|
35
34
|
handleUnauthorized(request: request.SuperAgentRequest, response: request.Response): Promise<void>;
|
|
36
35
|
initAuth(payload: object): Promise<void>;
|
|
37
36
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Organization, OrganizationAccess } from '../../typings';
|
|
1
|
+
import { Organization, OrganizationAccess, Payload, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
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"], signal?: AbortSignal): Promise<OrganizationAccess[]>;
|
|
9
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Organization, Project } from '../../typings';
|
|
1
|
+
import { Organization, Payload, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
3
|
+
import { OvermapRootState } from '../../store';
|
|
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(signal?: AbortSignal): Promise<Organization[]>;
|
|
10
10
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Project, ProjectAccess } from '../../typings';
|
|
1
|
+
import { Organization, Payload, ProjectAccess, Submitted, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
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
|
+
bulkAdd(payloads: Payload<ProjectAccess>[]): (Submitted<ProjectAccess>[] | Promise<ProjectAccess[]>)[];
|
|
9
|
+
update(payload: UUID<Payload<ProjectAccess>>): OptimisticModelResult<ProjectAccess>;
|
|
7
10
|
remove(uuid: ProjectAccess["uuid"]): Promise<undefined>;
|
|
8
|
-
refreshStore(
|
|
11
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<ProjectAccess[]>;
|
|
9
12
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Project, ProjectAttachment, Stored } from '../../typings';
|
|
1
|
+
import { Organization, Project, ProjectAttachment, Stored } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
6
|
-
export declare abstract class ProjectAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK,
|
|
6
|
+
export declare abstract class ProjectAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, ProjectAttachment> {
|
|
7
7
|
name: string;
|
|
8
8
|
url: string;
|
|
9
9
|
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/addProjectAttachments">;
|
|
@@ -11,7 +11,7 @@ export declare abstract class ProjectAttachmentService<TState extends OvermapRoo
|
|
|
11
11
|
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "projectAttachments/deleteProjectAttachments">;
|
|
12
12
|
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "projectAttachments/deleteProjectAttachment">;
|
|
13
13
|
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>, "projectAttachments/setProjectAttachment">;
|
|
14
|
-
selectAttachment: import('../..').OvermapSelectorWithArgs<string, ProjectAttachment | undefined>;
|
|
14
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<ProjectAttachment> | undefined>;
|
|
15
15
|
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
16
16
|
file: string;
|
|
17
17
|
file_sha1: string;
|
|
@@ -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"], signal?: AbortSignal): Promise<ProjectAttachment[]>;
|
|
40
40
|
}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { OvermapRootState } from '../../store';
|
|
2
1
|
import { Project, ProjectFile } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticGenericResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
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"], signal?: AbortSignal): Promise<ProjectFile[]>;
|
|
14
11
|
}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Payload, Project, User } from '../../typings';
|
|
1
|
+
import { Organization, Payload, Project } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
3
|
+
import { OvermapRootState } from '../../store';
|
|
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"], signal?: AbortSignal): Promise<Project[]>;
|
|
15
10
|
}
|
|
16
|
-
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Organization, Payload, Submitted, TeamMembership } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
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
|
+
bulkAdd(payloads: Payload<TeamMembership>[]): (Submitted<TeamMembership>[] | Promise<TeamMembership[]>)[];
|
|
9
|
+
delete(uuid: TeamMembership["uuid"]): Promise<undefined>;
|
|
10
|
+
refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<TeamMembership[]>;
|
|
11
|
+
}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Organization, Payload, Team, User, UUID } from '../../typings';
|
|
1
|
+
import { Organization, Payload, Team, UUID } from '../../typings';
|
|
3
2
|
import { BaseSDK } from '../base';
|
|
4
3
|
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { OvermapRootState } from '../../store';
|
|
5
5
|
import { BaseApiService } from './BaseApiService';
|
|
6
6
|
export declare abstract class TeamService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, 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"], signal?: AbortSignal): Promise<Team[]>;
|
|
14
11
|
}
|