@overmap-ai/core 1.0.71-fields.13 → 1.0.71-fields.15
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/defaults.d.ts +2 -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 +126 -328
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +133 -334
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/base.d.ts +8 -6
- package/dist/sdk/classes/OutboxCoordinator.d.ts +4 -4
- package/dist/sdk/classes/index.d.ts +1 -1
- package/dist/sdk/errors.d.ts +3 -1
- package/dist/sdk/globals.d.ts +7 -5
- package/dist/sdk/index.d.ts +6 -6
- package/dist/sdk/sdk.d.ts +6 -5
- package/dist/sdk/services/AgentService.d.ts +6 -10
- package/dist/sdk/services/AssetAttachmentService.d.ts +18 -19
- package/dist/sdk/services/AssetService.d.ts +5 -4
- package/dist/sdk/services/AssetStageCompletionService.d.ts +5 -4
- package/dist/sdk/services/AssetStageService.d.ts +5 -4
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +17 -18
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +4 -3
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +6 -5
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +5 -4
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +5 -4
- package/dist/sdk/services/AssetTypeService.d.ts +5 -4
- package/dist/sdk/services/BaseApiService.d.ts +5 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +8 -7
- package/dist/sdk/services/BaseAuthService.d.ts +5 -4
- package/dist/sdk/services/BaseService.d.ts +7 -5
- package/dist/sdk/services/BaseUploadService.d.ts +5 -4
- package/dist/sdk/services/CategoryService.d.ts +5 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +17 -18
- package/dist/sdk/services/DocumentService.d.ts +5 -4
- package/dist/sdk/services/EmailDomainsService.d.ts +4 -3
- package/dist/sdk/services/EmailVerificationService.d.ts +4 -3
- package/dist/sdk/services/FileService.d.ts +5 -4
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +5 -4
- package/dist/sdk/services/FormRevisionService.d.ts +5 -4
- package/dist/sdk/services/FormService.d.ts +5 -4
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +5 -4
- package/dist/sdk/services/FormSubmissionService.d.ts +6 -5
- package/dist/sdk/services/GeoImageService.d.ts +5 -4
- package/dist/sdk/services/IssueAssociationService.d.ts +5 -4
- package/dist/sdk/services/IssueAttachmentService.d.ts +17 -18
- package/dist/sdk/services/IssueCommentService.d.ts +5 -4
- package/dist/sdk/services/IssueService.d.ts +5 -4
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +5 -4
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +5 -4
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +5 -4
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +5 -4
- package/dist/sdk/services/IssueTypeService.d.ts +5 -4
- package/dist/sdk/services/IssueUpdateService.d.ts +4 -3
- package/dist/sdk/services/JWTAuthService.d.ts +7 -6
- package/dist/sdk/services/LicenseService.d.ts +4 -3
- package/dist/sdk/services/OrganizationAccessService.d.ts +4 -3
- package/dist/sdk/services/OrganizationService.d.ts +4 -3
- package/dist/sdk/services/ProjectAccessService.d.ts +4 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +17 -18
- package/dist/sdk/services/ProjectFileService.d.ts +5 -4
- package/dist/sdk/services/ProjectService.d.ts +4 -3
- package/dist/sdk/services/TeamService.d.ts +5 -4
- package/dist/sdk/services/UserService.d.ts +4 -3
- package/dist/sdk/services/WorkspaceService.d.ts +5 -4
- package/dist/sdk/services/index.d.ts +45 -45
- package/dist/sdk/typings.d.ts +9 -8
- package/dist/store/adapter.d.ts +12 -11
- package/dist/store/index.d.ts +2 -2
- package/dist/store/migrations.d.ts +2 -1
- package/dist/store/slices/agentsSlice.d.ts +11 -10
- package/dist/store/slices/assetAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/assetSlice.d.ts +35 -24
- package/dist/store/slices/assetStageCompletionSlice.d.ts +33 -22
- package/dist/store/slices/assetStageSlice.d.ts +36 -25
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +35 -24
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +35 -24
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +35 -24
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +43 -32
- package/dist/store/slices/assetTypeSlice.d.ts +16 -21
- package/dist/store/slices/authSlice.d.ts +10 -9
- package/dist/store/slices/categorySlice.d.ts +30 -16
- package/dist/store/slices/documentAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/documentSlice.d.ts +30 -13
- package/dist/store/slices/emailDomainsSlice.d.ts +29 -15
- package/dist/store/slices/fileSlice.d.ts +7 -6
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/formRevisionSlice.d.ts +37 -26
- package/dist/store/slices/formSlice.d.ts +35 -21
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/formSubmissionSlice.d.ts +16 -21
- package/dist/store/slices/geoImageSlice.d.ts +16 -21
- package/dist/store/slices/index.d.ts +46 -46
- package/dist/store/slices/issueAssociationSlice.d.ts +35 -24
- package/dist/store/slices/issueAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/issueCommentSlice.d.ts +13 -18
- package/dist/store/slices/issueSlice.d.ts +13 -18
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +35 -24
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +35 -24
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +35 -24
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +43 -32
- package/dist/store/slices/issueTypeSlice.d.ts +12 -14
- package/dist/store/slices/issueUpdateSlice.d.ts +13 -18
- package/dist/store/slices/licenseSlice.d.ts +10 -9
- package/dist/store/slices/organizationAccessSlice.d.ts +11 -13
- package/dist/store/slices/organizationSlice.d.ts +27 -10
- package/dist/store/slices/outboxSlice.d.ts +15 -15
- package/dist/store/slices/projectAccessSlice.d.ts +11 -17
- package/dist/store/slices/projectAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/projectFileSlice.d.ts +33 -16
- package/dist/store/slices/projectSlice.d.ts +10 -24
- package/dist/store/slices/rehydratedSlice.d.ts +7 -6
- package/dist/store/slices/teamSlice.d.ts +12 -14
- package/dist/store/slices/userSlice.d.ts +14 -13
- package/dist/store/slices/versioningSlice.d.ts +3 -2
- package/dist/store/slices/workspaceSlice.d.ts +31 -17
- package/dist/store/store.d.ts +7 -7
- package/dist/typings/index.d.ts +6 -6
- package/dist/typings/models/access.d.ts +3 -2
- package/dist/typings/models/agents.d.ts +3 -2
- package/dist/typings/models/assets.d.ts +5 -4
- package/dist/typings/models/attachments.d.ts +3 -2
- package/dist/typings/models/base.d.ts +3 -2
- package/dist/typings/models/categories.d.ts +3 -2
- package/dist/typings/models/documents.d.ts +2 -1
- package/dist/typings/models/emailDomain.d.ts +2 -1
- package/dist/typings/models/emailVerification.d.ts +3 -2
- package/dist/typings/models/fields.d.ts +3 -2
- package/dist/typings/models/forms.d.ts +4 -3
- package/dist/typings/models/geoImages.d.ts +4 -3
- package/dist/typings/models/index.d.ts +22 -22
- package/dist/typings/models/issueTypes.d.ts +3 -2
- package/dist/typings/models/issues.d.ts +9 -8
- package/dist/typings/models/license.d.ts +3 -2
- package/dist/typings/models/organizations.d.ts +2 -1
- package/dist/typings/models/projects.d.ts +4 -3
- package/dist/typings/models/store.d.ts +3 -3
- package/dist/typings/models/teams.d.ts +4 -3
- package/dist/typings/models/users.d.ts +2 -1
- package/dist/typings/models/workspace.d.ts +2 -1
- package/dist/typings/search.d.ts +1 -1
- package/dist/typings/store.d.ts +2 -1
- package/dist/utils/async/DeferredPromise.d.ts +1 -1
- package/dist/utils/colors.d.ts +2 -1
- package/dist/utils/coordinates.d.ts +3 -2
- package/dist/utils/file.d.ts +2 -1
- package/dist/utils/forms.d.ts +2 -1
- package/dist/utils/index.d.ts +10 -10
- package/dist/utils/offline.d.ts +2 -1
- package/dist/utils/utils.d.ts +2 -1
- package/package.json +18 -20
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseUploadService } from
|
|
4
|
-
import { ISerializedField } from
|
|
1
|
+
import { Created, Form, FormRevision, OvermapRootState, Payload, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
4
|
+
import { ISerializedField } from '@overmap-ai/forms';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Finds and separates image files from form revision fields. The image attribute is deleted from the field objects and
|
|
7
8
|
* is returned separately from the image files as they are stored in a different table.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseUploadService } from
|
|
4
|
-
import
|
|
1
|
+
import { FormSubmissionAttachment, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
4
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
5
|
+
|
|
5
6
|
export declare abstract class FormSubmissionAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
7
|
bulkAdd(payloads: {
|
|
7
8
|
submissionId: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { BaseUploadService } from
|
|
5
|
-
import { FieldValue } from
|
|
1
|
+
import { FormSubmission, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { OptimisticModelResult } from '../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
5
|
+
import { FieldValue } from '@overmap-ai/forms';
|
|
6
|
+
|
|
6
7
|
export declare const separateFilesFromValues: (values: Record<string, FieldValue>) => {
|
|
7
8
|
values: Record<string, FieldValue>;
|
|
8
9
|
files: Record<string, File[]>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { BaseUploadService } from
|
|
1
|
+
import { BulkGeoImagePayload, GeoImage, GeoImagePayload, Offline, OvermapRootState } from '../../typings';
|
|
2
|
+
import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
5
|
+
|
|
5
6
|
export declare abstract class GeoImageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
7
|
add(payload: GeoImagePayload): Promise<OptimisticModelResult<GeoImage>>;
|
|
7
8
|
bulkAdd(payloads: BulkGeoImagePayload[], projectId: number): Promise<OptimisticMultipleModelResult<GeoImage>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { BaseApiService } from
|
|
1
|
+
import { IssueAssociation, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { OptimisticModelResult } from '../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
|
+
|
|
5
6
|
export declare abstract class IssueAssociationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<IssueAssociation>): OptimisticModelResult<IssueAssociation>;
|
|
7
8
|
delete(id: string): Promise<void>;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}> {
|
|
1
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
2
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
3
|
+
import { IssueAttachment, OvermapRootState, Stored } from '../../typings';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
6
|
+
export declare abstract class IssueAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, IssueAttachment> {
|
|
8
7
|
name: string;
|
|
9
8
|
url: string;
|
|
10
|
-
addAttachments: import(
|
|
11
|
-
updateAttachments: import(
|
|
12
|
-
removeAttachments: import(
|
|
13
|
-
removeAttachment: import(
|
|
14
|
-
setAttachment: import(
|
|
15
|
-
selectAttachment: import('
|
|
16
|
-
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('
|
|
9
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/addIssueAttachments">;
|
|
10
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/updateIssueAttachments">;
|
|
11
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "issueAttachments/deleteIssueAttachments">;
|
|
12
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "issueAttachments/deleteIssueAttachment">;
|
|
13
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<IssueAttachment>, "issueAttachments/setIssueAttachment">;
|
|
14
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<IssueAttachment> | undefined>;
|
|
15
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../..').Offline<{
|
|
17
16
|
file: string;
|
|
18
17
|
file_sha1: string;
|
|
19
18
|
created_by: number | undefined;
|
|
@@ -26,10 +25,10 @@ export declare abstract class IssueAttachmentService<TState extends OvermapRootS
|
|
|
26
25
|
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
|
|
27
26
|
issue: string;
|
|
28
27
|
modelId: string;
|
|
29
|
-
offline_id:
|
|
30
|
-
description:
|
|
31
|
-
file_sha1:
|
|
32
|
-
file_name:
|
|
28
|
+
offline_id: import('../..').OfflineModel["offline_id"];
|
|
29
|
+
description: import('../..').Attachment["description"];
|
|
30
|
+
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
31
|
+
file_name: import('../..').FileWithNameModel["file_name"];
|
|
33
32
|
file_extension: string;
|
|
34
33
|
};
|
|
35
34
|
bulkAdd(payloads: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { IssueComment, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { OptimisticModelResult } from '../typings';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
5
6
|
export declare abstract class IssueCommentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Omit<Payload<IssueComment>, "author">): OptimisticModelResult<IssueComment>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<IssueComment>>>): OptimisticModelResult<IssueComment>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { OptimisticModelResult } from '../typings';
|
|
2
|
+
import { Issue, Offline, OvermapRootState, Payload } from '../../typings';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
5
6
|
export declare abstract class IssueService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<Issue>): OptimisticModelResult<Issue>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<Issue>>>): OptimisticModelResult<Issue>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseUploadService } from
|
|
4
|
-
import
|
|
1
|
+
import { IssueTypeFieldValuesAttachment, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
4
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
5
|
+
|
|
5
6
|
export declare abstract class IssueTypeFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
7
|
bulkAdd(payloads: {
|
|
7
8
|
fieldValuesId: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { IssueTypeFieldValues, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
5
|
+
|
|
5
6
|
export declare abstract class IssueTypeFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<IssueTypeFieldValues>): OptimisticModelResult<IssueTypeFieldValues>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<IssueTypeFieldValues>>>): OptimisticModelResult<IssueTypeFieldValues>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseUploadService } from
|
|
4
|
-
import
|
|
1
|
+
import { IssueTypeFieldsAttachment, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
4
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
5
|
+
|
|
5
6
|
export declare abstract class IssueTypeFieldsAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
7
|
bulkAdd(payloads: {
|
|
7
8
|
fieldsRevisionId: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import { OptimisticModelResult } from
|
|
1
|
+
import { IssueTypeFields, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
5
|
+
|
|
5
6
|
export declare abstract class IssueTypeFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<IssueTypeFields>): OptimisticModelResult<IssueTypeFields>;
|
|
7
8
|
refreshStore(organizationId: number): Promise<void>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { OptimisticModelResult } from '../typings';
|
|
2
|
+
import { IssueType, Offline, OvermapRootState, Payload } from '../../typings';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
5
6
|
export declare abstract class IssueTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<IssueType>): OptimisticModelResult<IssueType>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<IssueType>>>): OptimisticModelResult<IssueType>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
export declare abstract class IssueUpdateService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
6
|
refreshStore(projectId: number): Promise<void>;
|
|
6
7
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
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
8
|
* Handles login, logout and renewing tokens
|
|
8
9
|
*/
|
|
@@ -32,5 +33,5 @@ export declare abstract class JWTService<TState extends BaseState, TSDK extends
|
|
|
32
33
|
getAuthHeader(): string;
|
|
33
34
|
prepareAuth(): Promise<undefined>;
|
|
34
35
|
handleUnauthorized(request: request.SuperAgentRequest, response: request.Response): Promise<void>;
|
|
35
|
-
initAuth(payload: object): Promise<
|
|
36
|
+
initAuth(payload: object): Promise<void>;
|
|
36
37
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { License, OvermapRootState, Project, Transaction } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
export declare abstract class LicenseService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
6
|
getLicense(license: License): Promise<License>;
|
|
6
7
|
pauseLicense(license: License): Promise<License>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { OrganizationAccess, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* Handles the creation of OrganizationAccess Service
|
|
6
7
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { Organization, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
export declare abstract class OrganizationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
6
|
create(name: string): Promise<Organization>;
|
|
6
7
|
update(organization: Organization): Promise<Organization>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { OvermapRootState, ProjectAccess } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* Handles the creation of ProjectAccess Service
|
|
6
7
|
*/
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}> {
|
|
1
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
2
|
+
import { OvermapRootState, ProjectAttachment, Stored } from '../../typings';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
6
|
+
export declare abstract class ProjectAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, number, ProjectAttachment> {
|
|
8
7
|
name: string;
|
|
9
8
|
url: string;
|
|
10
|
-
addAttachments: import(
|
|
11
|
-
updateAttachments: import(
|
|
12
|
-
removeAttachments: import(
|
|
13
|
-
removeAttachment: import(
|
|
14
|
-
setAttachment: import(
|
|
15
|
-
selectAttachment: import('
|
|
16
|
-
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<number>): import('
|
|
9
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/addProjectAttachments">;
|
|
10
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/updateProjectAttachments">;
|
|
11
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "projectAttachments/deleteProjectAttachments">;
|
|
12
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "projectAttachments/deleteProjectAttachment">;
|
|
13
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>, "projectAttachments/setProjectAttachment">;
|
|
14
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, ProjectAttachment | undefined>;
|
|
15
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<number>): import('../..').Offline<{
|
|
17
16
|
file: string;
|
|
18
17
|
file_sha1: string;
|
|
19
18
|
created_by: number | undefined;
|
|
@@ -26,10 +25,10 @@ export declare abstract class ProjectAttachmentService<TState extends OvermapRoo
|
|
|
26
25
|
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<number>): {
|
|
27
26
|
project: number;
|
|
28
27
|
modelId: number;
|
|
29
|
-
offline_id:
|
|
30
|
-
description:
|
|
31
|
-
file_sha1:
|
|
32
|
-
file_name:
|
|
28
|
+
offline_id: import('../..').OfflineModel["offline_id"];
|
|
29
|
+
description: import('../..').Attachment["description"];
|
|
30
|
+
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
31
|
+
file_name: import('../..').FileWithNameModel["file_name"];
|
|
33
32
|
file_extension: string;
|
|
34
33
|
};
|
|
35
34
|
bulkAdd(payloads: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { OvermapRootState, ProjectFile } from '../../typings';
|
|
2
|
+
import { OptimisticGenericResult } from '../typings';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Handles creation and caching of ProjectFiles
|
|
7
8
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { OvermapRootState, Payload, Project } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
interface JoinProjectResponse {
|
|
5
6
|
username: string;
|
|
6
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { Offline, OvermapRootState, Payload, Team, User } from '../../typings';
|
|
2
|
+
import { OptimisticModelResult } from '../typings';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
5
6
|
export declare abstract class TeamService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<Team>): OptimisticModelResult<Team>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<Team>>>): OptimisticModelResult<Team>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BaseApiService } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { BaseApiService } from './BaseApiService';
|
|
2
|
+
import { OvermapRootState } from '../../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
export declare abstract class UserService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
6
|
refreshStore(projectId: number, organizationId: number): Promise<void>;
|
|
6
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { OptimisticModelResult } from '../typings';
|
|
2
|
+
import { Offline, OvermapRootState, Payload, Workspace } from '../../typings';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
5
6
|
export declare abstract class WorkspaceService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<Workspace>): OptimisticModelResult<Workspace>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<Workspace>>>): OptimisticModelResult<Workspace>;
|
|
@@ -1,45 +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
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export * from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
43
|
-
export * from
|
|
44
|
-
export * from
|
|
45
|
-
export * from
|
|
1
|
+
export * from './JWTAuthService';
|
|
2
|
+
export * from './BaseApiService';
|
|
3
|
+
export * from './CategoryService';
|
|
4
|
+
export * from './AssetService';
|
|
5
|
+
export * from './AssetStageCompletionService';
|
|
6
|
+
export * from './AssetStageService';
|
|
7
|
+
export * from './AssetAttachmentService';
|
|
8
|
+
export * from './AssetTypeService';
|
|
9
|
+
export * from './AssetTypeAttachmentService';
|
|
10
|
+
export * from './IssueCommentService';
|
|
11
|
+
export * from './IssueUpdateService';
|
|
12
|
+
export * from './IssueAttachmentService';
|
|
13
|
+
export * from './IssueService';
|
|
14
|
+
export * from './IssueTypeService';
|
|
15
|
+
export * from './ProjectAccessService';
|
|
16
|
+
export * from './ProjectFileService';
|
|
17
|
+
export * from './ProjectAttachmentService';
|
|
18
|
+
export * from './ProjectService';
|
|
19
|
+
export * from './FormService';
|
|
20
|
+
export * from './FormSubmissionService';
|
|
21
|
+
export * from './WorkspaceService';
|
|
22
|
+
export * from './OrganizationAccessService';
|
|
23
|
+
export * from './FileService';
|
|
24
|
+
export * from './EmailVerificationService';
|
|
25
|
+
export * from './EmailDomainsService';
|
|
26
|
+
export * from './OrganizationService';
|
|
27
|
+
export * from './LicenseService';
|
|
28
|
+
export * from './DocumentService';
|
|
29
|
+
export * from './DocumentAttachmentService';
|
|
30
|
+
export * from './AgentService';
|
|
31
|
+
export * from './TeamService';
|
|
32
|
+
export * from './UserService';
|
|
33
|
+
export * from './GeoImageService';
|
|
34
|
+
export * from './IssueAssociationService';
|
|
35
|
+
export * from './FormRevisionAttachmentService';
|
|
36
|
+
export * from './FormSubmissionAttachmentService';
|
|
37
|
+
export * from './FormRevisionService';
|
|
38
|
+
export * from './AssetTypeFieldsAttachmentService';
|
|
39
|
+
export * from './AssetTypeFieldsService';
|
|
40
|
+
export * from './AssetTypeFieldValuesService';
|
|
41
|
+
export * from './AssetTypeFieldValuesAttachmentService';
|
|
42
|
+
export * from './IssueTypeFieldsAttachmentService';
|
|
43
|
+
export * from './IssueTypeFieldsService';
|
|
44
|
+
export * from './IssueTypeFieldValuesAttachmentService';
|
|
45
|
+
export * from './IssueTypeFieldValuesService';
|
package/dist/sdk/typings.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import request from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { default as request } from 'superagent';
|
|
2
|
+
import { HttpMethod } from '../enums';
|
|
3
|
+
import { BaseState, Created, Model, Stored, Submitted } from '../typings';
|
|
4
|
+
import { DeferredPromise } from '../utils';
|
|
5
|
+
import { GetS3UrlResponse, GetS3UrlSuccessResponse } from './services';
|
|
6
|
+
import { BaseSDK } from './base';
|
|
7
|
+
import { Store } from '@reduxjs/toolkit';
|
|
8
|
+
|
|
9
|
+
export type OvermapSDKConstructor<TState extends BaseState, TSDK extends BaseSDK<TState>> = new (store: Store<TState>) => TSDK;
|
|
9
10
|
export interface TokenPair {
|
|
10
11
|
accessToken: string;
|
|
11
12
|
refreshToken: string;
|
package/dist/store/adapter.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { PayloadAction } from
|
|
2
|
-
import
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { ModelState } from './typings';
|
|
3
|
+
|
|
3
4
|
export interface OvermapModelAdapter<TModel> {
|
|
4
|
-
addOne:
|
|
5
|
-
addMany:
|
|
6
|
-
setOne:
|
|
7
|
-
setMany:
|
|
8
|
-
updateOne:
|
|
9
|
-
updateMany:
|
|
10
|
-
deleteOne:
|
|
11
|
-
deleteMany:
|
|
12
|
-
initialize:
|
|
5
|
+
addOne: (state: ModelState<TModel>, action: PayloadAction<TModel>) => void;
|
|
6
|
+
addMany: (state: ModelState<TModel>, action: PayloadAction<TModel[]>) => void;
|
|
7
|
+
setOne: (state: ModelState<TModel>, action: PayloadAction<TModel>) => void;
|
|
8
|
+
setMany: (state: ModelState<TModel>, action: PayloadAction<TModel[]>) => void;
|
|
9
|
+
updateOne: (state: ModelState<TModel>, action: PayloadAction<TModel>) => void;
|
|
10
|
+
updateMany: (state: ModelState<TModel>, action: PayloadAction<TModel[]>) => void;
|
|
11
|
+
deleteOne: (state: ModelState<TModel>, action: PayloadAction<string>) => void;
|
|
12
|
+
deleteMany: (state: ModelState<TModel>, action: PayloadAction<string[]>) => void;
|
|
13
|
+
initialize: (state: ModelState<TModel>, action: PayloadAction<TModel[]>) => void;
|
|
13
14
|
getInitialState: <TState extends object>(state: TState) => TState & ModelState<TModel>;
|
|
14
15
|
}
|
|
15
16
|
export declare function createModelAdapter<TModel>(computeModelId: (model: TModel) => string): OvermapModelAdapter<TModel>;
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './store';
|
|
2
|
+
export * from './slices';
|