@overmap-ai/core 1.0.71-mapbox.1 → 1.0.71-mapbox.10
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/constants/array.d.ts +1 -0
- package/dist/constants/defaults.d.ts +1 -1
- package/dist/constants/index.d.ts +3 -3
- package/dist/enums/index.d.ts +5 -5
- package/dist/index.d.ts +6 -6
- package/dist/overmap-core.js +6004 -7169
- package/dist/overmap-core.umd.cjs +12 -7861
- package/dist/sdk/base.d.ts +7 -6
- package/dist/sdk/classes/OutboxCoordinator.d.ts +3 -4
- package/dist/sdk/classes/index.d.ts +1 -1
- package/dist/sdk/errors.d.ts +2 -1
- package/dist/sdk/globals.d.ts +6 -5
- package/dist/sdk/index.d.ts +6 -6
- package/dist/sdk/sdk.d.ts +5 -5
- package/dist/sdk/services/AgentService.d.ts +5 -10
- package/dist/sdk/services/AssetAttachmentService.d.ts +38 -16
- package/dist/sdk/services/AssetService.d.ts +5 -5
- package/dist/sdk/services/AssetStageCompletionService.d.ts +4 -4
- package/dist/sdk/services/AssetStageService.d.ts +5 -7
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +37 -16
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +12 -0
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +20 -0
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +12 -0
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +8 -0
- package/dist/sdk/services/AssetTypeService.d.ts +5 -5
- package/dist/sdk/services/BaseApiService.d.ts +4 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +21 -23
- package/dist/sdk/services/BaseAuthService.d.ts +4 -4
- package/dist/sdk/services/BaseService.d.ts +6 -5
- package/dist/sdk/services/BaseUploadService.d.ts +5 -4
- package/dist/sdk/services/CategoryService.d.ts +4 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +36 -16
- package/dist/sdk/services/DocumentService.d.ts +4 -4
- package/dist/sdk/services/EmailDomainsService.d.ts +3 -3
- package/dist/sdk/services/EmailVerificationService.d.ts +3 -3
- package/dist/sdk/services/FileService.d.ts +4 -4
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +12 -0
- package/dist/sdk/services/FormRevisionService.d.ts +8 -0
- package/dist/sdk/services/FormService.d.ts +14 -17
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +13 -0
- package/dist/sdk/services/FormSubmissionService.d.ts +11 -31
- package/dist/sdk/services/GeoImageService.d.ts +4 -4
- package/dist/sdk/services/IssueAssociationService.d.ts +5 -5
- package/dist/sdk/services/IssueAttachmentService.d.ts +37 -16
- package/dist/sdk/services/IssueCommentService.d.ts +4 -4
- package/dist/sdk/services/IssueService.d.ts +4 -7
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +13 -0
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +10 -0
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +12 -0
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +8 -0
- package/dist/sdk/services/IssueTypeService.d.ts +4 -4
- package/dist/sdk/services/IssueUpdateService.d.ts +3 -3
- package/dist/sdk/services/JWTAuthService.d.ts +6 -6
- package/dist/sdk/services/LicenseService.d.ts +3 -3
- package/dist/sdk/services/OrganizationAccessService.d.ts +3 -3
- package/dist/sdk/services/OrganizationService.d.ts +3 -3
- package/dist/sdk/services/ProjectAccessService.d.ts +3 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +37 -16
- package/dist/sdk/services/ProjectFileService.d.ts +4 -4
- package/dist/sdk/services/ProjectService.d.ts +3 -3
- package/dist/sdk/services/TeamService.d.ts +4 -4
- package/dist/sdk/services/UserService.d.ts +3 -3
- package/dist/sdk/services/WorkspaceService.d.ts +4 -4
- package/dist/sdk/services/index.d.ts +45 -34
- package/dist/sdk/typings.d.ts +8 -8
- package/dist/store/adapter.d.ts +11 -11
- package/dist/store/index.d.ts +2 -2
- package/dist/store/migrations.d.ts +1 -1
- package/dist/store/slices/agentsSlice.d.ts +10 -10
- package/dist/store/slices/assetAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/assetSlice.d.ts +34 -24
- package/dist/store/slices/assetStageCompletionSlice.d.ts +32 -23
- package/dist/store/slices/assetStageSlice.d.ts +35 -26
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +62 -0
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeSlice.d.ts +15 -21
- package/dist/store/slices/authSlice.d.ts +9 -9
- package/dist/store/slices/categorySlice.d.ts +29 -17
- package/dist/store/slices/documentAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/documentSlice.d.ts +29 -13
- package/dist/store/slices/emailDomainsSlice.d.ts +28 -15
- package/dist/store/slices/fileSlice.d.ts +6 -6
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/formRevisionSlice.d.ts +36 -27
- package/dist/store/slices/formSlice.d.ts +32 -26
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/formSubmissionSlice.d.ts +15 -27
- package/dist/store/slices/geoImageSlice.d.ts +36 -22
- package/dist/store/slices/index.d.ts +46 -38
- package/dist/store/slices/issueAssociationSlice.d.ts +34 -24
- package/dist/store/slices/issueAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/issueCommentSlice.d.ts +12 -18
- package/dist/store/slices/issueSlice.d.ts +12 -24
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +63 -0
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +62 -0
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +62 -0
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +64 -0
- package/dist/store/slices/issueTypeSlice.d.ts +11 -14
- package/dist/store/slices/issueUpdateSlice.d.ts +12 -18
- package/dist/store/slices/licenseSlice.d.ts +9 -9
- package/dist/store/slices/organizationAccessSlice.d.ts +10 -13
- package/dist/store/slices/organizationSlice.d.ts +26 -10
- package/dist/store/slices/outboxSlice.d.ts +14 -15
- package/dist/store/slices/projectAccessSlice.d.ts +10 -17
- package/dist/store/slices/projectAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/projectFileSlice.d.ts +62 -31
- package/dist/store/slices/projectSlice.d.ts +9 -24
- package/dist/store/slices/rehydratedSlice.d.ts +6 -6
- package/dist/store/slices/teamSlice.d.ts +11 -14
- package/dist/store/slices/userSlice.d.ts +13 -13
- package/dist/store/slices/versioningSlice.d.ts +2 -2
- package/dist/store/slices/workspaceSlice.d.ts +30 -17
- package/dist/store/store.d.ts +14 -7
- package/dist/typings/files.d.ts +8 -4
- package/dist/typings/index.d.ts +6 -6
- package/dist/typings/models/access.d.ts +2 -2
- package/dist/typings/models/agents.d.ts +2 -12
- package/dist/typings/models/assets.d.ts +19 -4
- package/dist/typings/models/attachments.d.ts +2 -7
- package/dist/typings/models/base.d.ts +2 -5
- package/dist/typings/models/categories.d.ts +2 -2
- package/dist/typings/models/documents.d.ts +1 -1
- package/dist/typings/models/emailDomain.d.ts +1 -1
- package/dist/typings/models/emailVerification.d.ts +2 -2
- package/dist/typings/models/fields.d.ts +16 -0
- package/dist/typings/models/forms.d.ts +13 -30
- package/dist/typings/models/geo.d.ts +5 -14
- package/dist/typings/models/geoImages.d.ts +3 -3
- package/dist/typings/models/index.d.ts +22 -21
- package/dist/typings/models/issueTypes.d.ts +2 -2
- package/dist/typings/models/issues.d.ts +21 -6
- package/dist/typings/models/license.d.ts +2 -2
- package/dist/typings/models/organizations.d.ts +1 -1
- package/dist/typings/models/projects.d.ts +3 -3
- package/dist/typings/models/store.d.ts +10 -3
- package/dist/typings/models/teams.d.ts +3 -3
- package/dist/typings/models/users.d.ts +1 -1
- package/dist/typings/models/workspace.d.ts +1 -1
- package/dist/typings/search.d.ts +1 -1
- package/dist/typings/store.d.ts +1 -1
- package/dist/utils/async/DeferredPromise.d.ts +1 -1
- package/dist/utils/coordinates.d.ts +3 -3
- package/dist/utils/file.d.ts +2 -2
- package/dist/utils/forms.d.ts +1 -1
- package/dist/utils/index.d.ts +9 -10
- package/dist/utils/offline.d.ts +1 -1
- package/dist/utils/optimization.d.ts +1 -0
- package/dist/utils/utils.d.ts +1 -1
- package/package.json +42 -45
- package/dist/enums/ui.d.ts +0 -36
- package/dist/overmap-core.js.map +0 -1
- package/dist/overmap-core.umd.cjs.map +0 -1
- package/dist/utils/colors.d.ts +0 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { BaseState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export interface GetS3UrlSuccessResponse {
|
|
5
5
|
url: string;
|
|
6
6
|
fields: Record<string, string>;
|
|
@@ -43,6 +43,6 @@ export declare abstract class FileService<TState extends BaseState, TSDK extends
|
|
|
43
43
|
* @param downloadedName (Optional) The name to give the file after download. Set to the name of an attachment, for
|
|
44
44
|
* example.
|
|
45
45
|
*/
|
|
46
|
-
fetchFileFromUrl(url: string, expectedSha1: string, downloadedName?: string
|
|
46
|
+
fetchFileFromUrl(url: string, expectedSha1: string, downloadedName?: string): Promise<File>;
|
|
47
47
|
}
|
|
48
48
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormRevisionAttachment, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
5
|
+
export declare abstract class FormRevisionAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
+
bulkAdd(payloads: {
|
|
7
|
+
revisionId: string;
|
|
8
|
+
fieldIdentifier: string;
|
|
9
|
+
file: File;
|
|
10
|
+
}[]): Promise<OptimisticMultipleModelResult<FormRevisionAttachment>>;
|
|
11
|
+
refreshStore(organizationId: number): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormRevision, FormRevisionPayload, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
5
|
+
export declare abstract class FormRevisionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
+
add(payload: FormRevisionPayload): OptimisticModelResult<FormRevision>;
|
|
7
|
+
refreshStore(organizationId: number): Promise<void>;
|
|
8
|
+
}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ISerializedField } from '@overmap-ai/forms';
|
|
2
|
+
import { Created, Form, FormRevision, OvermapRootState, Payload, Stored } from '../../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
5
|
+
/**
|
|
6
|
+
* Finds and separates image files from form revision fields. The image attribute is deleted from the field objects and
|
|
7
|
+
* is returned separately from the image files as they are stored in a different table.
|
|
8
|
+
*/
|
|
9
|
+
export declare const separateImageFromFields: (fields: ISerializedField[]) => Promise<{
|
|
10
|
+
fields: ISerializedField[];
|
|
11
|
+
images: Record<string, File>;
|
|
12
|
+
}>;
|
|
5
13
|
export declare abstract class FormService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
-
|
|
7
|
-
private add;
|
|
8
|
-
addForOrganization(organizationId: number, initialRevision: FormRevisionPayload): Promise<[Stored<Form>, Stored<FormRevision<ISerializedField>>, Stored<FormRevisionAttachment>[], Promise<Created<FormRevision<ISerializedField>>>, Promise<Created<FormRevisionAttachment>[]>]>;
|
|
9
|
-
addForProject(projectId: number, initialRevision: FormRevisionPayload): Promise<[Stored<Form>, Stored<FormRevision<ISerializedField>>, Stored<FormRevisionAttachment>[], Promise<Created<FormRevision<ISerializedField>>>, Promise<Created<FormRevisionAttachment>[]>]>;
|
|
10
|
-
addForIssueType(issueTypeId: string, initialRevision: FormRevisionPayload): Promise<[Stored<Form>, Stored<FormRevision<ISerializedField>>, Stored<FormRevisionAttachment>[], Promise<Created<FormRevision<ISerializedField>>>, Promise<Created<FormRevisionAttachment>[]>]>;
|
|
11
|
-
addForAssetType(assetTypeId: string, initialRevision: FormRevisionPayload): Promise<[Stored<Form>, Stored<FormRevision<ISerializedField>>, Stored<FormRevisionAttachment>[], Promise<Created<FormRevision<ISerializedField>>>, Promise<Created<FormRevisionAttachment>[]>]>;
|
|
12
|
-
createRevision(formId: string, revision: FormRevisionPayload): Promise<[
|
|
13
|
-
Stored<FormRevision>,
|
|
14
|
-
Stored<FormRevisionAttachment>[],
|
|
15
|
-
Promise<Created<FormRevision>>,
|
|
16
|
-
Promise<Created<FormRevisionAttachment>[]>
|
|
17
|
-
]>;
|
|
14
|
+
add(payload: Payload<Form>, initialRevision: Pick<FormRevision, "title" | "description" | "fields">): [Stored<Form>, Stored<FormRevision>, Promise<Created<FormRevision>>];
|
|
18
15
|
delete(id: string): Promise<undefined>;
|
|
19
|
-
refreshStore(
|
|
16
|
+
refreshStore(organizationId: number): Promise<void>;
|
|
20
17
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FormSubmissionAttachment, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
5
|
+
export declare abstract class FormSubmissionAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
+
bulkAdd(payloads: {
|
|
7
|
+
submissionId: string;
|
|
8
|
+
fieldIdentifier: string;
|
|
9
|
+
file: File;
|
|
10
|
+
}[]): Promise<OptimisticMultipleModelResult<FormSubmissionAttachment>>;
|
|
11
|
+
bulkDelete(attachmentsIds: string[]): Promise<void>;
|
|
12
|
+
refreshStore(projectId: number): Promise<void>;
|
|
13
|
+
}
|
|
@@ -1,35 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
1
|
+
import { FieldValue } from '@overmap-ai/forms';
|
|
2
|
+
import { FormSubmission, Offline, OvermapRootState, Payload } from '../../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
5
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
6
|
+
export declare const separateFilesFromValues: (values: Record<string, FieldValue>) => {
|
|
7
|
+
values: Record<string, FieldValue>;
|
|
8
|
+
files: Record<string, File[]>;
|
|
9
|
+
};
|
|
11
10
|
export declare abstract class FormSubmissionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
add(payload: Payload<FormSubmission>): Promise<[
|
|
15
|
-
Stored<FormSubmission>,
|
|
16
|
-
Stored<FormSubmissionAttachment>[],
|
|
17
|
-
Promise<Created<FormSubmission>>,
|
|
18
|
-
Promise<Created<FormSubmissionAttachment>[]>
|
|
19
|
-
]>;
|
|
20
|
-
bulkAdd(args: {
|
|
21
|
-
formRevision: string;
|
|
22
|
-
commonFieldValues: Record<string, FieldValue>;
|
|
23
|
-
fieldValuesByAsset: Record<string, Record<string, FieldValue>>;
|
|
24
|
-
}, batchSize: number): Promise<Promise<BulkAddRequestReturnValue>[]>;
|
|
25
|
-
update(payload: Offline<Partial<Payload<FormSubmission>>>): Promise<[
|
|
26
|
-
Stored<FormSubmission>,
|
|
27
|
-
Stored<FormSubmissionAttachment>[],
|
|
28
|
-
Promise<Created<FormSubmission>>,
|
|
29
|
-
Promise<Created<FormSubmissionAttachment>[]>,
|
|
30
|
-
Promise<void>
|
|
31
|
-
]>;
|
|
11
|
+
add(payload: Payload<FormSubmission>): OptimisticModelResult<FormSubmission>;
|
|
12
|
+
update(payload: Offline<Partial<Payload<FormSubmission>>>): OptimisticModelResult<FormSubmission>;
|
|
32
13
|
delete(id: string): Promise<undefined>;
|
|
33
14
|
refreshStore(projectId: number): Promise<void>;
|
|
34
15
|
}
|
|
35
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { BaseUploadService } from
|
|
1
|
+
import { BulkGeoImagePayload, GeoImage, GeoImagePayload, Offline, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
5
5
|
export declare abstract class GeoImageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
6
|
add(payload: GeoImagePayload): Promise<OptimisticModelResult<GeoImage>>;
|
|
7
7
|
bulkAdd(payloads: BulkGeoImagePayload[], projectId: number): Promise<OptimisticMultipleModelResult<GeoImage>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
export declare abstract class IssueAssociationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends
|
|
1
|
+
import { IssueAssociation, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
|
+
export declare abstract class IssueAssociationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<IssueAssociation>): OptimisticModelResult<IssueAssociation>;
|
|
7
7
|
delete(id: string): Promise<void>;
|
|
8
8
|
refreshStore(projectId: number): Promise<void>;
|
|
@@ -1,18 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { AttachmentModel } from "../../enums";
|
|
1
|
+
import { IssueAttachment, OvermapRootState, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
6
5
|
export declare abstract class IssueAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, IssueAttachment> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
addAttachments: import(
|
|
10
|
-
updateAttachments: import(
|
|
11
|
-
removeAttachments: import(
|
|
12
|
-
removeAttachment: import(
|
|
13
|
-
setAttachment: import(
|
|
14
|
-
selectAttachment: import('
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/addIssueAttachments">;
|
|
9
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/updateIssueAttachments">;
|
|
10
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "issueAttachments/deleteIssueAttachments">;
|
|
11
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "issueAttachments/deleteIssueAttachment">;
|
|
12
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueAttachment>, "issueAttachments/setIssueAttachment">;
|
|
13
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<IssueAttachment> | undefined>;
|
|
14
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../..').Offline<{
|
|
15
|
+
file: string;
|
|
16
|
+
file_sha1: string;
|
|
17
|
+
created_by: number | undefined;
|
|
18
|
+
file_name: string;
|
|
19
|
+
file_type: string;
|
|
20
|
+
submitted_at: string;
|
|
21
|
+
description: string | undefined;
|
|
22
|
+
issue: string;
|
|
23
|
+
}>;
|
|
24
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
|
|
25
|
+
issue: string;
|
|
26
|
+
modelId: string;
|
|
27
|
+
offline_id: import('../..').OfflineModel["offline_id"];
|
|
28
|
+
description: import('../..').Attachment["description"];
|
|
29
|
+
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
30
|
+
file_name: import('../..').FileWithNameModel["file_name"];
|
|
31
|
+
file_extension: string;
|
|
32
|
+
};
|
|
33
|
+
bulkAdd(payloads: {
|
|
34
|
+
issueId: string;
|
|
35
|
+
file: File;
|
|
36
|
+
}[]): Promise<OptimisticMultipleModelResult<IssueAttachment>>;
|
|
37
|
+
delete(id: string): Promise<void>;
|
|
38
|
+
refreshStore(projectId: number): Promise<void>;
|
|
18
39
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { IssueComment, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class IssueCommentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Omit<Payload<IssueComment>, "author">): OptimisticModelResult<IssueComment>;
|
|
7
7
|
update(payload: Offline<Partial<Payload<IssueComment>>>): OptimisticModelResult<IssueComment>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
/**
|
|
6
|
-
* Handles CRUD operations on issues
|
|
7
|
-
*/
|
|
1
|
+
import { Issue, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
8
5
|
export declare abstract class IssueService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
9
6
|
add(payload: Payload<Issue>): OptimisticModelResult<Issue>;
|
|
10
7
|
update(payload: Offline<Partial<Payload<Issue>>>): OptimisticModelResult<Issue>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IssueTypeFieldValuesAttachment, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
5
|
+
export declare abstract class IssueTypeFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
+
bulkAdd(payloads: {
|
|
7
|
+
fieldValuesId: string;
|
|
8
|
+
fieldIdentifier: string;
|
|
9
|
+
file: File;
|
|
10
|
+
}[]): Promise<OptimisticMultipleModelResult<IssueTypeFieldValuesAttachment>>;
|
|
11
|
+
bulkDelete(attachmentsIds: string[]): Promise<void>;
|
|
12
|
+
refreshStore(projectId: number): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IssueTypeFieldValues, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
|
+
export declare abstract class IssueTypeFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
+
add(payload: Payload<IssueTypeFieldValues>): OptimisticModelResult<IssueTypeFieldValues>;
|
|
7
|
+
update(payload: Offline<Partial<Payload<IssueTypeFieldValues>>>): OptimisticModelResult<IssueTypeFieldValues>;
|
|
8
|
+
delete(id: string): Promise<void>;
|
|
9
|
+
refreshStore(projectId: number): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IssueTypeFieldsAttachment, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
5
|
+
export declare abstract class IssueTypeFieldsAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
+
bulkAdd(payloads: {
|
|
7
|
+
fieldsRevisionId: string;
|
|
8
|
+
fieldIdentifier: string;
|
|
9
|
+
file: File;
|
|
10
|
+
}[]): Promise<OptimisticMultipleModelResult<IssueTypeFieldsAttachment>>;
|
|
11
|
+
refreshStore(organizationId: number): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IssueTypeFields, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
|
+
export declare abstract class IssueTypeFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
+
add(payload: Payload<IssueTypeFields>): OptimisticModelResult<IssueTypeFields>;
|
|
7
|
+
refreshStore(organizationId: number): Promise<void>;
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { IssueType, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class IssueTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<IssueType>): OptimisticModelResult<IssueType>;
|
|
7
7
|
update(payload: Offline<Partial<Payload<IssueType>>>): OptimisticModelResult<IssueType>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export declare abstract class IssueUpdateService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
5
|
refreshStore(projectId: number): Promise<void>;
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import request from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { BaseAuthService } from
|
|
1
|
+
import { default as request } from 'superagent';
|
|
2
|
+
import { BaseState } from '../../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { TokenPair } from '../typings';
|
|
5
|
+
import { BaseAuthService } from './BaseAuthService';
|
|
6
6
|
/**
|
|
7
7
|
* Handles login, logout and renewing tokens
|
|
8
8
|
*/
|
|
@@ -32,5 +32,5 @@ export declare abstract class JWTService<TState extends BaseState, TSDK extends
|
|
|
32
32
|
getAuthHeader(): string;
|
|
33
33
|
prepareAuth(): Promise<undefined>;
|
|
34
34
|
handleUnauthorized(request: request.SuperAgentRequest, response: request.Response): Promise<void>;
|
|
35
|
-
initAuth(payload: object): Promise<
|
|
35
|
+
initAuth(payload: object): Promise<void>;
|
|
36
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { License, OvermapRootState, Project, Transaction } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export declare abstract class LicenseService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
5
|
getLicense(license: License): Promise<License>;
|
|
6
6
|
pauseLicense(license: License): Promise<License>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { OrganizationAccess, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
/**
|
|
5
5
|
* Handles the creation of OrganizationAccess Service
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { Organization, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export declare abstract class OrganizationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
5
|
create(name: string): Promise<Organization>;
|
|
6
6
|
update(organization: Organization): Promise<Organization>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { OvermapRootState, ProjectAccess } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
/**
|
|
5
5
|
* Handles the creation of ProjectAccess Service
|
|
6
6
|
*/
|
|
@@ -1,18 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { AttachmentModel } from "../../enums";
|
|
1
|
+
import { OvermapRootState, ProjectAttachment, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
6
5
|
export declare abstract class ProjectAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, number, ProjectAttachment> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
addAttachments: import(
|
|
10
|
-
updateAttachments: import(
|
|
11
|
-
removeAttachments: import(
|
|
12
|
-
removeAttachment: import(
|
|
13
|
-
setAttachment: import(
|
|
14
|
-
selectAttachment: import('
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/addProjectAttachments">;
|
|
9
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/updateProjectAttachments">;
|
|
10
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "projectAttachments/deleteProjectAttachments">;
|
|
11
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "projectAttachments/deleteProjectAttachment">;
|
|
12
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>, "projectAttachments/setProjectAttachment">;
|
|
13
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, ProjectAttachment | undefined>;
|
|
14
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<number>): import('../..').Offline<{
|
|
15
|
+
file: string;
|
|
16
|
+
file_sha1: string;
|
|
17
|
+
created_by: number | undefined;
|
|
18
|
+
file_name: string;
|
|
19
|
+
file_type: string;
|
|
20
|
+
submitted_at: string;
|
|
21
|
+
description: string | undefined;
|
|
22
|
+
project: number;
|
|
23
|
+
}>;
|
|
24
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<number>): {
|
|
25
|
+
project: number;
|
|
26
|
+
modelId: number;
|
|
27
|
+
offline_id: import('../..').OfflineModel["offline_id"];
|
|
28
|
+
description: import('../..').Attachment["description"];
|
|
29
|
+
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
30
|
+
file_name: import('../..').FileWithNameModel["file_name"];
|
|
31
|
+
file_extension: string;
|
|
32
|
+
};
|
|
33
|
+
bulkAdd(payloads: {
|
|
34
|
+
projectId: number;
|
|
35
|
+
file: File;
|
|
36
|
+
}[]): Promise<OptimisticMultipleModelResult<ProjectAttachment>>;
|
|
37
|
+
delete(attachmentId: string): Promise<void>;
|
|
38
|
+
refreshStore(projectId: number): Promise<void>;
|
|
18
39
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { OvermapRootState, ProjectFile } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticGenericResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
/**
|
|
6
6
|
* Handles creation and caching of ProjectFiles
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { OvermapRootState, Payload, Project } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
interface JoinProjectResponse {
|
|
5
5
|
username: string;
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { Offline, OvermapRootState, Payload, Team, User } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class TeamService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<Team>): OptimisticModelResult<Team>;
|
|
7
7
|
update(payload: Offline<Partial<Payload<Team>>>): OptimisticModelResult<Team>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export declare abstract class UserService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
5
|
refreshStore(projectId: number, organizationId: number): Promise<void>;
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { Offline, OvermapRootState, Payload, Workspace } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class WorkspaceService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<Workspace>): OptimisticModelResult<Workspace>;
|
|
7
7
|
update(payload: Offline<Partial<Payload<Workspace>>>): OptimisticModelResult<Workspace>;
|
|
@@ -1,34 +1,45 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
1
|
+
export * from './AgentService';
|
|
2
|
+
export * from './AssetAttachmentService';
|
|
3
|
+
export * from './AssetService';
|
|
4
|
+
export * from './AssetStageCompletionService';
|
|
5
|
+
export * from './AssetStageService';
|
|
6
|
+
export * from './AssetTypeAttachmentService';
|
|
7
|
+
export * from './AssetTypeFieldsAttachmentService';
|
|
8
|
+
export * from './AssetTypeFieldsService';
|
|
9
|
+
export * from './AssetTypeFieldValuesAttachmentService';
|
|
10
|
+
export * from './AssetTypeFieldValuesService';
|
|
11
|
+
export * from './AssetTypeService';
|
|
12
|
+
export * from './BaseApiService';
|
|
13
|
+
export * from './CategoryService';
|
|
14
|
+
export * from './DocumentAttachmentService';
|
|
15
|
+
export * from './DocumentService';
|
|
16
|
+
export * from './EmailDomainsService';
|
|
17
|
+
export * from './EmailVerificationService';
|
|
18
|
+
export * from './FileService';
|
|
19
|
+
export * from './FormRevisionAttachmentService';
|
|
20
|
+
export * from './FormRevisionService';
|
|
21
|
+
export * from './FormService';
|
|
22
|
+
export * from './FormSubmissionAttachmentService';
|
|
23
|
+
export * from './FormSubmissionService';
|
|
24
|
+
export * from './GeoImageService';
|
|
25
|
+
export * from './IssueAssociationService';
|
|
26
|
+
export * from './IssueAttachmentService';
|
|
27
|
+
export * from './IssueCommentService';
|
|
28
|
+
export * from './IssueService';
|
|
29
|
+
export * from './IssueTypeFieldsAttachmentService';
|
|
30
|
+
export * from './IssueTypeFieldsService';
|
|
31
|
+
export * from './IssueTypeFieldValuesAttachmentService';
|
|
32
|
+
export * from './IssueTypeFieldValuesService';
|
|
33
|
+
export * from './IssueTypeService';
|
|
34
|
+
export * from './IssueUpdateService';
|
|
35
|
+
export * from './JWTAuthService';
|
|
36
|
+
export * from './LicenseService';
|
|
37
|
+
export * from './OrganizationAccessService';
|
|
38
|
+
export * from './OrganizationService';
|
|
39
|
+
export * from './ProjectAccessService';
|
|
40
|
+
export * from './ProjectAttachmentService';
|
|
41
|
+
export * from './ProjectFileService';
|
|
42
|
+
export * from './ProjectService';
|
|
43
|
+
export * from './TeamService';
|
|
44
|
+
export * from './UserService';
|
|
45
|
+
export * from './WorkspaceService';
|