@overmap-ai/core 1.0.65-org-projs-only.0 → 1.0.65-procedures.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/dist/enums/access.d.ts +8 -0
- package/dist/enums/attachments.d.ts +7 -0
- package/dist/enums/index.d.ts +3 -0
- package/dist/enums/issue.d.ts +9 -0
- package/dist/enums/licenses.d.ts +14 -0
- package/dist/overmap-core.js +1444 -684
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +1440 -680
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/base.d.ts +1 -1
- package/dist/sdk/globals.d.ts +2 -2
- package/dist/sdk/sdk.d.ts +3 -3
- package/dist/sdk/services/AgentService.d.ts +1 -1
- package/dist/sdk/services/AssetAttachmentService.d.ts +3 -2
- package/dist/sdk/services/AssetProcedureCompletionService.d.ts +11 -0
- package/dist/sdk/services/AssetProcedureInstanceService.d.ts +10 -0
- package/dist/sdk/services/AssetProcedureService.d.ts +10 -0
- package/dist/sdk/services/AssetService.d.ts +5 -6
- package/dist/sdk/services/AssetStageCompletionService.d.ts +6 -12
- package/dist/sdk/services/AssetStageService.d.ts +6 -5
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +3 -2
- package/dist/sdk/services/AssetTypeService.d.ts +4 -4
- package/dist/sdk/services/BaseApiService.d.ts +1 -1
- package/dist/sdk/services/BaseAttachmentService.d.ts +3 -2
- package/dist/sdk/services/BaseAuthService.d.ts +1 -1
- package/dist/sdk/services/BaseService.d.ts +2 -2
- package/dist/sdk/services/BaseUploadService.d.ts +2 -2
- package/dist/sdk/services/CategoryService.d.ts +3 -3
- package/dist/sdk/services/DocumentAttachmentService.d.ts +3 -2
- package/dist/sdk/services/DocumentService.d.ts +2 -2
- package/dist/sdk/services/EmailDomainsService.d.ts +1 -1
- package/dist/sdk/services/EmailVerificationService.d.ts +1 -1
- package/dist/sdk/services/FileService.d.ts +1 -1
- package/dist/sdk/services/FormService.d.ts +3 -2
- package/dist/sdk/services/FormSubmissionService.d.ts +2 -3
- package/dist/sdk/services/GeoImageService.d.ts +2 -2
- package/dist/sdk/services/IssueAttachmentService.d.ts +3 -2
- package/dist/sdk/services/IssueCommentService.d.ts +2 -2
- package/dist/sdk/services/IssueService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeService.d.ts +2 -2
- package/dist/sdk/services/IssueUpdateService.d.ts +1 -1
- package/dist/sdk/services/JWTAuthService.d.ts +2 -2
- package/dist/sdk/services/LicenseService.d.ts +1 -1
- package/dist/sdk/services/OrganizationAccessService.d.ts +1 -1
- package/dist/sdk/services/OrganizationService.d.ts +1 -1
- package/dist/sdk/services/ProjectAccessService.d.ts +1 -1
- package/dist/sdk/services/ProjectAttachmentService.d.ts +3 -2
- package/dist/sdk/services/ProjectFileService.d.ts +2 -3
- package/dist/sdk/services/ProjectService.d.ts +1 -2
- package/dist/sdk/services/TeamService.d.ts +2 -2
- package/dist/sdk/services/UserService.d.ts +2 -2
- package/dist/sdk/services/WorkspaceService.d.ts +3 -5
- package/dist/sdk/services/index.d.ts +3 -0
- package/dist/store/slices/assetProcedureCompletionSlice.d.ts +54 -0
- package/dist/store/slices/assetProcedureInstanceSlice.d.ts +54 -0
- package/dist/store/slices/assetProcedureSlice.d.ts +53 -0
- package/dist/store/slices/assetStageCompletionSlice.d.ts +42 -12
- package/dist/store/slices/assetStageSlice.d.ts +22 -11
- package/dist/store/slices/assetTypeSlice.d.ts +27 -3
- package/dist/store/slices/formSlice.d.ts +2 -0
- package/dist/store/slices/index.d.ts +3 -0
- package/dist/store/slices/userSlice.d.ts +13 -33
- package/dist/store/store.d.ts +4 -1
- package/dist/typings/models/access.d.ts +2 -9
- package/dist/typings/models/agents.d.ts +1 -1
- package/dist/typings/models/assets.d.ts +26 -15
- package/dist/typings/models/attachments.d.ts +2 -9
- package/dist/typings/models/base.d.ts +5 -4
- package/dist/typings/models/categories.d.ts +3 -3
- 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/forms.d.ts +3 -2
- package/dist/typings/models/geoImages.d.ts +3 -3
- package/dist/typings/models/issueTypes.d.ts +2 -2
- package/dist/typings/models/issues.d.ts +2 -10
- package/dist/typings/models/license.d.ts +3 -16
- package/dist/typings/models/organizations.d.ts +1 -1
- package/dist/typings/models/projects.d.ts +6 -4
- package/dist/typings/models/store.d.ts +4 -1
- 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 +3 -3
- package/dist/typings/store.d.ts +1 -1
- package/dist/utils/colors.d.ts +0 -2
- package/package.json +1 -1
package/dist/sdk/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileService } from "./services";
|
|
2
2
|
import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
|
|
3
3
|
import { SDKRequest } from "./typings";
|
|
4
|
-
import { BaseState } from "../typings";
|
|
4
|
+
import type { BaseState } from "../typings";
|
|
5
5
|
export declare abstract class BaseSDK<TState extends BaseState> {
|
|
6
6
|
readonly store: ToolkitStore<TState>;
|
|
7
7
|
abstract readonly files: FileService<TState, BaseSDK<TState>>;
|
package/dist/sdk/globals.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
|
|
2
|
-
import { BaseState } from "../typings";
|
|
3
|
-
import { BaseSDK } from "./base";
|
|
2
|
+
import type { BaseState } from "../typings";
|
|
3
|
+
import type { BaseSDK } from "./base";
|
|
4
4
|
export declare function setClientStore<TState extends BaseState>(store: ToolkitStore<TState>): void;
|
|
5
5
|
export declare function getClientStore(): ToolkitStore<BaseState> | undefined;
|
|
6
6
|
export declare function setClientSDK<TState extends BaseState>(sdkCtor: BaseSDK<TState>): void;
|
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseSDK } from "./base";
|
|
1
|
+
import type { BaseSDK } from "./base";
|
|
2
2
|
import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
|
|
3
|
-
import { BaseState } from "../typings";
|
|
4
|
-
import { OvermapSDKConstructor } from "./typings";
|
|
3
|
+
import type { BaseState } from "../typings";
|
|
4
|
+
import type { OvermapSDKConstructor } from "./typings";
|
|
5
5
|
export declare const initSDK: <TState extends BaseState, TSDK extends BaseSDK<TState>>(store: ToolkitStore<TState>, sdk: OvermapSDKConstructor<TState, TSDK>) => TSDK;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentUserConversation, OvermapRootState } from "../../typings";
|
|
1
|
+
import type { AgentUserConversation, OvermapRootState } from "../../typings";
|
|
2
2
|
import { BaseApiService } from "./BaseApiService";
|
|
3
3
|
import type { BaseSDK } from "../base";
|
|
4
4
|
export declare abstract class AgentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
-
import {
|
|
3
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
2
|
+
import type { AssetAttachment, OvermapRootState, Stored } from "../../typings";
|
|
3
|
+
import type { OptimisticMultipleModelResult } from "../typings";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
|
+
import { AttachmentModel } from "../../enums";
|
|
5
6
|
export declare abstract class AssetAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetAttachment> {
|
|
6
7
|
attachmentModel: AttachmentModel;
|
|
7
8
|
initializeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/initializeAssetAttachments">;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AssetProcedureCompletion, OvermapRootState, Payload } from "../../typings";
|
|
2
|
+
import type { BaseSDK } from "../base";
|
|
3
|
+
import { BaseApiService } from "./BaseApiService";
|
|
4
|
+
import type { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
|
|
5
|
+
export declare abstract class AssetProcedureCompletionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
+
add(payload: Payload<AssetProcedureCompletion>): OptimisticModelResult<AssetProcedureCompletion>;
|
|
7
|
+
bulkAdd(payloads: Payload<AssetProcedureCompletion>[]): OptimisticMultipleModelResult<AssetProcedureCompletion>;
|
|
8
|
+
delete(id: string): Promise<undefined>;
|
|
9
|
+
bulkDelete(ids: string[]): Promise<undefined>;
|
|
10
|
+
refreshStore(projectId: number): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetProcedureInstance, Offline, OvermapRootState, Payload } from "../../typings";
|
|
2
|
+
import type { BaseSDK } from "../base";
|
|
3
|
+
import type { OptimisticModelResult } from "../typings";
|
|
4
|
+
import { BaseApiService } from "./BaseApiService";
|
|
5
|
+
export declare abstract class AssetProcedureInstanceService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
+
add(payload: Payload<AssetProcedureInstance>): OptimisticModelResult<AssetProcedureInstance>;
|
|
7
|
+
update(payload: Offline<Partial<Payload<AssetProcedureInstance>>>): OptimisticModelResult<AssetProcedureInstance>;
|
|
8
|
+
remove(assetProcedureInstanceId: string): Promise<undefined>;
|
|
9
|
+
refreshStore(projectId: number): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AssetProcedure, Offline, OvermapRootState, Payload } from "../../typings";
|
|
2
|
+
import type { BaseSDK } from "../base";
|
|
3
|
+
import type { OptimisticModelResult } from "../typings";
|
|
4
|
+
import { BaseApiService } from "./BaseApiService";
|
|
5
|
+
export declare abstract class AssetProcedureService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
+
add(payload: Payload<AssetProcedure>): OptimisticModelResult<AssetProcedure>;
|
|
7
|
+
update(payload: Offline<Partial<Payload<AssetProcedure>>>): OptimisticModelResult<AssetProcedure>;
|
|
8
|
+
remove(assetProcedureId: string): Promise<undefined>;
|
|
9
|
+
refreshStore(organizationId: number): Promise<void>;
|
|
10
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Asset, Created,
|
|
2
|
-
import { OptimisticModelResult } from "../typings";
|
|
1
|
+
import type { Asset, Created, Offline, OvermapRootState, Payload } from "../../typings";
|
|
2
|
+
import type { OptimisticModelResult } from "../typings";
|
|
3
3
|
import { BaseApiService } from "./BaseApiService";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
5
|
export declare abstract class AssetService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
add(
|
|
7
|
-
update(
|
|
6
|
+
add(payload: Payload<Asset>): OptimisticModelResult<Asset>;
|
|
7
|
+
update(payload: Offline<Partial<Payload<Asset>>>): OptimisticModelResult<Asset>;
|
|
8
8
|
remove(assetId: string): Promise<undefined>;
|
|
9
|
-
|
|
10
|
-
bulkAdd(assetsToCreate: Payload<Asset>[], workspaceId: string, assetTypeId: string, batchSize: number): Promise<Created<Asset>[]>[];
|
|
9
|
+
bulkAdd(payloads: Omit<Payload<Asset>, "asset_type">[], assetTypeId: string, batchSize: number): Promise<Created<Asset>[]>[];
|
|
11
10
|
refreshStore(projectId: number): Promise<void>;
|
|
12
11
|
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { OptimisticModelResult } from "../typings";
|
|
2
|
-
import { AssetStageCompletion, OvermapRootState, Payload } from "../../typings";
|
|
1
|
+
import type { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
|
|
2
|
+
import type { AssetStageCompletion, OvermapRootState, Payload } from "../../typings";
|
|
3
3
|
import { BaseApiService } from "./BaseApiService";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
5
|
export declare abstract class AssetStageCompletionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
add(
|
|
6
|
+
add(payload: Payload<AssetStageCompletion>): OptimisticModelResult<AssetStageCompletion>;
|
|
7
|
+
delete(id: string): Promise<undefined>;
|
|
8
|
+
bulkAdd(payloads: Payload<AssetStageCompletion>[]): OptimisticMultipleModelResult<AssetStageCompletion>;
|
|
9
|
+
bulkDelete(ids: string[]): Promise<undefined>;
|
|
7
10
|
refreshStore(projectId: number): Promise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* Creates a collection of AssetStageCompletions, marking the referenced stages as completed for the referenced
|
|
10
|
-
* assets. It's REQUIRED that all assets referenced all have the SAME asset type.
|
|
11
|
-
* @param assetTypeId The ID of the asset type for which we are completing stages (we can only complete
|
|
12
|
-
* stages for one asset type at a time)
|
|
13
|
-
* @param stageCompletions
|
|
14
|
-
*/
|
|
15
|
-
bulkAdd(assetTypeId: string, stageCompletions: Payload<AssetStageCompletion>[]): Promise<void>;
|
|
16
|
-
bulkDelete(stageId: string, assetIds: string[]): Promise<undefined>;
|
|
17
11
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { AssetStage,
|
|
1
|
+
import type { AssetStage, Offline, OvermapRootState, Payload } from "../../typings";
|
|
2
2
|
import { BaseApiService } from "./BaseApiService";
|
|
3
3
|
import type { BaseSDK } from "../base";
|
|
4
|
+
import { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
|
|
4
5
|
export declare abstract class AssetStageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
bulkAdd(stagesToSubmit: Omit<Payload<AssetStage>, "asset_type">[], assetProcedureId: string): OptimisticMultipleModelResult<AssetStage>;
|
|
7
|
+
bulkUpdate(stagesToUpdate: AssetStage[], assetProcedureId: string): Promise<AssetStage[]>;
|
|
7
8
|
bulkDelete(idsToDelete: string[]): Promise<undefined>;
|
|
8
|
-
update(
|
|
9
|
+
update(payload: Offline<Partial<Payload<AssetStage>>>): OptimisticModelResult<AssetStage>;
|
|
9
10
|
linkForm(stageId: string, formId: string): Promise<undefined>;
|
|
10
11
|
unlinkForm(stageId: string, formId: string): Promise<undefined>;
|
|
11
|
-
refreshStore(
|
|
12
|
+
refreshStore(organizationId: number): Promise<undefined>;
|
|
12
13
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
-
import {
|
|
3
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
2
|
+
import type { AssetTypeAttachment, Stored, OvermapRootState } from "../../typings";
|
|
3
|
+
import type { OptimisticMultipleModelResult } from "../typings";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
|
+
import { AttachmentModel } from "../../enums";
|
|
5
6
|
export declare abstract class AssetTypeAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetTypeAttachment> {
|
|
6
7
|
attachmentModel: AttachmentModel;
|
|
7
8
|
initializeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/initializeAssetTypeAttachments">;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AssetType, OvermapRootState, Payload } from "../../typings";
|
|
2
|
-
import { OptimisticModelResult } from "../typings";
|
|
1
|
+
import type { AssetType, Offline, OvermapRootState, Payload } from "../../typings";
|
|
2
|
+
import type { OptimisticModelResult } from "../typings";
|
|
3
3
|
import { BaseApiService } from "./BaseApiService";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
5
|
export declare abstract class AssetTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
add(
|
|
7
|
-
update(
|
|
6
|
+
add(payload: Payload<AssetType>): OptimisticModelResult<AssetType>;
|
|
7
|
+
update(payload: Offline<Partial<Payload<AssetType>>>): OptimisticModelResult<AssetType>;
|
|
8
8
|
delete(assetTypeId: string): Promise<undefined>;
|
|
9
9
|
refreshStore(projectId: number): Promise<void>;
|
|
10
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ActionCreatorWithPayload } from "@reduxjs/toolkit";
|
|
2
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
3
|
-
import {
|
|
2
|
+
import type { OptimisticMultipleModelResult } from "../typings";
|
|
3
|
+
import { AttachmentModel } from "../../enums";
|
|
4
|
+
import type { Attachment, OfflineModel, OvermapRootState, OvermapSelectorWithArgs, Stored, Submitted } from "../../typings";
|
|
4
5
|
import type { BaseSDK } from "../base";
|
|
5
6
|
import { BaseUploadService } from "./BaseUploadService";
|
|
6
7
|
export interface AttachmentPayload {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Response, SuperAgentRequest } from "superagent";
|
|
2
|
-
import { BaseState } from "../../typings";
|
|
2
|
+
import type { BaseState } from "../../typings";
|
|
3
3
|
import type { BaseSDK } from "../base";
|
|
4
4
|
import { BaseService } from "./BaseService";
|
|
5
5
|
export declare abstract class BaseAuthService<TStore extends BaseState, TSDK extends BaseSDK<TStore>> extends BaseService<TStore, TSDK> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyAction } from "@reduxjs/toolkit";
|
|
2
2
|
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseState } from "../../typings";
|
|
4
|
-
import { SDKRequest } from "../typings";
|
|
3
|
+
import type { BaseState } from "../../typings";
|
|
4
|
+
import type { SDKRequest } from "../typings";
|
|
5
5
|
export declare const CLASS_NAME_TO_SERVICE: Record<string, BaseService<BaseState, BaseSDK<BaseState>>>;
|
|
6
6
|
/**
|
|
7
7
|
* Abstract base class for building a service that can enqueue API requests
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { PresignedUrlsResponse } from "../typings";
|
|
3
|
-
import { OvermapRootState } from "../../typings";
|
|
2
|
+
import type { PresignedUrlsResponse } from "../typings";
|
|
3
|
+
import type { OvermapRootState } from "../../typings";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
5
|
export declare abstract class BaseUploadService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
protected getNumberOfAttachmentsWithSha1(sha1: string): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Category, Offline, OvermapRootState, Payload } from "../../typings";
|
|
2
|
-
import { OptimisticModelResult } from "../typings";
|
|
1
|
+
import type { Category, Offline, OvermapRootState, Payload } from "../../typings";
|
|
2
|
+
import type { OptimisticModelResult } from "../typings";
|
|
3
3
|
import { BaseApiService } from "./BaseApiService";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
5
|
/**
|
|
@@ -7,7 +7,7 @@ import type { BaseSDK } from "../base";
|
|
|
7
7
|
* TODO: Support editing and deleting categories
|
|
8
8
|
*/
|
|
9
9
|
export declare abstract class CategoryService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
10
|
-
add(
|
|
10
|
+
add(category: Omit<Payload<Category>, "workspace">, workspaceId: string): OptimisticModelResult<Category>;
|
|
11
11
|
update(category: Offline<Partial<Category>>, workspaceId: string): OptimisticModelResult<Category>;
|
|
12
12
|
remove(category: Category, workspaceId: string): Promise<undefined>;
|
|
13
13
|
refreshStore(projectId: number): Promise<undefined>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
-
import {
|
|
3
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
2
|
+
import type { DocumentAttachment, OvermapRootState, Stored } from "../../typings";
|
|
3
|
+
import type { OptimisticMultipleModelResult } from "../typings";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
|
+
import { AttachmentModel } from "../../enums";
|
|
5
6
|
export declare abstract class DocumentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, DocumentAttachment> {
|
|
6
7
|
attachmentModel: AttachmentModel;
|
|
7
8
|
initializeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/initializeDocumentAttachments">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Document, DocumentPayload, MovePosition, OvermapRootState, Submitted } from "../../typings";
|
|
2
|
-
import { OptimisticModelResult } from "../typings";
|
|
1
|
+
import type { Document, DocumentPayload, MovePosition, OvermapRootState, Submitted } from "../../typings";
|
|
2
|
+
import type { OptimisticModelResult } from "../typings";
|
|
3
3
|
import { BaseApiService } from "./BaseApiService";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
5
|
export declare abstract class DocumentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmailDomain, OvermapRootState } from "../../typings";
|
|
1
|
+
import type { EmailDomain, OvermapRootState } from "../../typings";
|
|
2
2
|
import { BaseApiService } from "./BaseApiService";
|
|
3
3
|
import type { BaseSDK } from "../base";
|
|
4
4
|
export declare abstract class EmailDomainsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
2
|
import type { BaseSDK } from "../base";
|
|
3
|
-
import { EmailVerificationPayload, EmailVerificationReturn, OvermapRootState, VerificationCode } from "../../typings";
|
|
3
|
+
import type { EmailVerificationPayload, EmailVerificationReturn, OvermapRootState, VerificationCode } from "../../typings";
|
|
4
4
|
export declare abstract class EmailVerificationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
5
|
getVerificationCode(verificationCode: string): Promise<VerificationCode>;
|
|
6
6
|
validateVerificationCode(verificationCode: string, payload?: EmailVerificationPayload | undefined): Promise<EmailVerificationReturn>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
2
|
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseState } from "../../typings";
|
|
3
|
+
import type { BaseState } from "../../typings";
|
|
4
4
|
export interface GetS3UrlSuccessResponse {
|
|
5
5
|
url: string;
|
|
6
6
|
fields: Record<string, string>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Form, FormRevision, FormRevisionAttachment, FormRevisionPayload, ISerializedField } from
|
|
2
|
-
import { Created, OvermapRootState, Stored } from "../../typings";
|
|
1
|
+
import type { Created, Form, FormRevision, FormRevisionAttachment, FormRevisionPayload, ISerializedField, OvermapRootState, Stored } from "../../typings";
|
|
3
2
|
import type { BaseSDK } from "../base";
|
|
4
3
|
import { BaseUploadService } from "./BaseUploadService";
|
|
5
4
|
export declare abstract class FormService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
@@ -15,6 +14,8 @@ export declare abstract class FormService<TState extends OvermapRootState, TSDK
|
|
|
15
14
|
Promise<Created<FormRevision>>,
|
|
16
15
|
Promise<Created<FormRevisionAttachment>[]>
|
|
17
16
|
]>;
|
|
17
|
+
favorite(formId: string, projectId: number): Promise<undefined>;
|
|
18
|
+
unfavorite(formId: string, projectId: number): Promise<undefined>;
|
|
18
19
|
delete(formId: string): Promise<undefined>;
|
|
19
20
|
refreshStore(projectId: number): Promise<void>;
|
|
20
21
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FieldValue, FormSubmission, FormSubmissionAttachment, FormSubmissionPayload } from
|
|
2
|
-
import { PresignedUrlsResponse } from "../typings";
|
|
3
|
-
import { Created, Offline, OvermapRootState, Payload, Stored } from "../../typings";
|
|
1
|
+
import type { Created, FieldValue, FormSubmission, FormSubmissionAttachment, FormSubmissionPayload, Offline, OvermapRootState, Payload, Stored } from "../../typings";
|
|
2
|
+
import type { PresignedUrlsResponse } from "../typings";
|
|
4
3
|
import type { BaseSDK } from "../base";
|
|
5
4
|
import { BaseUploadService } from "./BaseUploadService";
|
|
6
5
|
interface BulkAddRequestReturnValue {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BulkGeoImagePayload, GeoImage, GeoImagePayload, Offline, OvermapRootState } from "../../typings";
|
|
2
|
-
import { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
|
|
1
|
+
import type { BulkGeoImagePayload, GeoImage, GeoImagePayload, Offline, OvermapRootState } from "../../typings";
|
|
2
|
+
import type { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
|
|
3
3
|
import type { BaseSDK } from "../base";
|
|
4
4
|
import { BaseUploadService } from "./BaseUploadService";
|
|
5
5
|
export declare abstract class GeoImageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
3
|
-
import {
|
|
2
|
+
import type { OptimisticMultipleModelResult } from "../typings";
|
|
3
|
+
import type { IssueAttachment, OvermapRootState, Stored } from "../../typings";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
|
+
import { AttachmentModel } from "../../enums";
|
|
5
6
|
export declare abstract class IssueAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, IssueAttachment> {
|
|
6
7
|
attachmentModel: AttachmentModel;
|
|
7
8
|
initializeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueAttachment>[], "issueAttachments/initializeIssueAttachments">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IssueComment, OvermapRootState, Payload, Submitted } from "../../typings";
|
|
2
|
-
import { OptimisticModelResult } from "../typings";
|
|
1
|
+
import type { IssueComment, OvermapRootState, Payload, Submitted } from "../../typings";
|
|
2
|
+
import type { OptimisticModelResult } from "../typings";
|
|
3
3
|
import { BaseApiService } from "./BaseApiService";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
5
|
export declare abstract class IssueCommentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OptimisticModelResult } from "../typings";
|
|
2
|
-
import { Issue, IssueType, OvermapRootState, Submitted } from "../../typings";
|
|
1
|
+
import type { OptimisticModelResult } from "../typings";
|
|
2
|
+
import type { Issue, IssueType, OvermapRootState, Submitted } from "../../typings";
|
|
3
3
|
import { BaseApiService } from "./BaseApiService";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OptimisticModelResult } from "../typings";
|
|
2
|
-
import { IssueType, IssueTypePayload, Offline, OvermapRootState } from "../../typings";
|
|
1
|
+
import type { OptimisticModelResult } from "../typings";
|
|
2
|
+
import type { IssueType, IssueTypePayload, Offline, OvermapRootState } from "../../typings";
|
|
3
3
|
import { BaseApiService } from "./BaseApiService";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
5
|
export declare abstract class IssueTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OvermapRootState } from "../../typings";
|
|
1
|
+
import type { OvermapRootState } from "../../typings";
|
|
2
2
|
import { BaseApiService } from "./BaseApiService";
|
|
3
3
|
import type { BaseSDK } from "../base";
|
|
4
4
|
export declare abstract class IssueUpdateService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import request from "superagent";
|
|
2
|
-
import { BaseState } from "../../typings";
|
|
2
|
+
import type { BaseState } from "../../typings";
|
|
3
3
|
import type { BaseSDK } from "../base";
|
|
4
|
-
import { TokenPair } from "../typings";
|
|
4
|
+
import type { TokenPair } from "../typings";
|
|
5
5
|
import { BaseAuthService } from "./BaseAuthService";
|
|
6
6
|
/**
|
|
7
7
|
* Handles login, logout and renewing tokens
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { License, OvermapRootState, Project, Transaction } from "../../typings";
|
|
1
|
+
import type { License, OvermapRootState, Project, Transaction } from "../../typings";
|
|
2
2
|
import { BaseApiService } from "./BaseApiService";
|
|
3
3
|
import type { BaseSDK } from "../base";
|
|
4
4
|
export declare abstract class LicenseService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Organization, OvermapRootState } from "../../typings";
|
|
1
|
+
import type { Organization, OvermapRootState } from "../../typings";
|
|
2
2
|
import { BaseApiService } from "./BaseApiService";
|
|
3
3
|
import type { BaseSDK } from "../base";
|
|
4
4
|
export declare abstract class OrganizationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
-
import {
|
|
3
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
2
|
+
import type { OvermapRootState, ProjectAttachment, Stored } from "../../typings";
|
|
3
|
+
import type { OptimisticMultipleModelResult } from "../typings";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
|
+
import { AttachmentModel } from "../../enums";
|
|
5
6
|
export declare abstract class ProjectAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, number, ProjectAttachment> {
|
|
6
7
|
attachmentModel: AttachmentModel;
|
|
7
8
|
initializeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/initializeProjectAttachments">;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ProjectFile } from
|
|
2
|
-
import { OptimisticGenericResult } from "../typings";
|
|
3
|
-
import { OvermapRootState } from "../../typings";
|
|
1
|
+
import type { OvermapRootState, ProjectFile } from "../../typings";
|
|
2
|
+
import type { OptimisticGenericResult } from "../typings";
|
|
4
3
|
import { BaseApiService } from "./BaseApiService";
|
|
5
4
|
import type { BaseSDK } from "../base";
|
|
6
5
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Project } from
|
|
2
|
-
import { OvermapRootState, Payload } from "../../typings";
|
|
1
|
+
import type { OvermapRootState, Payload, Project } from "../../typings";
|
|
3
2
|
import { BaseApiService } from "./BaseApiService";
|
|
4
3
|
import type { BaseSDK } from "../base";
|
|
5
4
|
interface JoinProjectResponse {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OvermapRootState, Stored, Team, TeamPayload, User } from "../../typings";
|
|
2
|
-
import { OptimisticModelResult } from "../typings";
|
|
1
|
+
import type { OvermapRootState, Stored, Team, TeamPayload, User } from "../../typings";
|
|
2
|
+
import type { OptimisticModelResult } from "../typings";
|
|
3
3
|
import { BaseApiService } from "./BaseApiService";
|
|
4
4
|
import type { BaseSDK } from "../base";
|
|
5
5
|
export declare abstract class TeamService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { OvermapRootState } from "../../typings";
|
|
3
|
-
import { BaseSDK } from "../base";
|
|
2
|
+
import type { OvermapRootState } from "../../typings";
|
|
3
|
+
import type { BaseSDK } from "../base";
|
|
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,11 +1,9 @@
|
|
|
1
|
-
import { Payload } from
|
|
2
|
-
import {
|
|
3
|
-
import { OptimisticModelResult } from "../typings";
|
|
4
|
-
import { OvermapRootState } from "../../typings";
|
|
1
|
+
import type { OvermapRootState, Payload, Workspace } from "../../typings";
|
|
2
|
+
import type { OptimisticModelResult } from "../typings";
|
|
5
3
|
import { BaseApiService } from "./BaseApiService";
|
|
6
4
|
import type { BaseSDK } from "../base";
|
|
7
5
|
export declare abstract class WorkspaceService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
8
|
-
add(
|
|
6
|
+
add(workspace: Payload<Workspace>): OptimisticModelResult<Workspace>;
|
|
9
7
|
update(workspace: Workspace): OptimisticModelResult<Workspace>;
|
|
10
8
|
delete(workspaceId: string): Promise<undefined>;
|
|
11
9
|
refreshStore(projectId: number): Promise<undefined>;
|
|
@@ -32,3 +32,6 @@ export * from "./TeamService";
|
|
|
32
32
|
export * from "./UserService";
|
|
33
33
|
export * from "./GeoImageService";
|
|
34
34
|
export * from "./IssueAssociationService";
|
|
35
|
+
export * from "./AssetProcedureCompletionService";
|
|
36
|
+
export * from "./AssetProcedureInstanceService";
|
|
37
|
+
export * from "./AssetProcedureService";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
+
import type { AssetProcedureCompletion, OvermapRootState, OvermapSelectorWithArgs, Stored } from "../../typings";
|
|
3
|
+
import type { ModelState } from "../typings";
|
|
4
|
+
export type AssetProcedureCompletionState = ModelState<Stored<AssetProcedureCompletion>>;
|
|
5
|
+
export declare const assetProcedureCompletionSlice: import("@reduxjs/toolkit").Slice<AssetProcedureCompletionState, {
|
|
6
|
+
initializeAssetProcedureCompletions: <TState extends ModelState<Stored<AssetProcedureCompletion>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<AssetProcedureCompletion>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addAssetProcedureCompletion: <TState_1 extends ModelState<Stored<AssetProcedureCompletion>>>(state: TState_1, action: {
|
|
11
|
+
payload: Stored<AssetProcedureCompletion>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addAssetProcedureCompletions: <TState_2 extends ModelState<Stored<AssetProcedureCompletion>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<AssetProcedureCompletion>[];
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
setAssetProcedureCompletion: <TState_3 extends ModelState<Stored<AssetProcedureCompletion>>>(state: TState_3, action: {
|
|
19
|
+
payload: Stored<AssetProcedureCompletion>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
setAssetProcedureCompletions: <TState_4 extends ModelState<Stored<AssetProcedureCompletion>>>(state: TState_4, action: {
|
|
23
|
+
payload: Stored<AssetProcedureCompletion>[];
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
updateAssetProcedureCompletion: <TState_5 extends ModelState<Stored<AssetProcedureCompletion>>>(state: TState_5, action: {
|
|
27
|
+
payload: Stored<AssetProcedureCompletion>;
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
updateAssetProcedureCompletions: <TState_6 extends ModelState<Stored<AssetProcedureCompletion>>>(state: TState_6, action: {
|
|
31
|
+
payload: Stored<AssetProcedureCompletion>[];
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
deleteAssetProcedureCompletion: <TState_7 extends ModelState<Stored<AssetProcedureCompletion>>>(state: TState_7, action: {
|
|
35
|
+
payload: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}) => void;
|
|
38
|
+
deleteAssetProcedureCompletions: <TState_8 extends ModelState<Stored<AssetProcedureCompletion>>>(state: TState_8, action: {
|
|
39
|
+
payload: string[];
|
|
40
|
+
type: string;
|
|
41
|
+
}) => void;
|
|
42
|
+
}, "assetProcedureCompletions">;
|
|
43
|
+
export declare const initializeAssetProcedureCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetProcedureCompletion>[], "assetProcedureCompletions/initializeAssetProcedureCompletions">, addAssetProcedureCompletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetProcedureCompletion>, "assetProcedureCompletions/addAssetProcedureCompletion">, addAssetProcedureCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetProcedureCompletion>[], "assetProcedureCompletions/addAssetProcedureCompletions">, updateAssetProcedureCompletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetProcedureCompletion>, "assetProcedureCompletions/updateAssetProcedureCompletion">, updateAssetProcedureCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetProcedureCompletion>[], "assetProcedureCompletions/updateAssetProcedureCompletions">, deleteAssetProcedureCompletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetProcedureCompletions/deleteAssetProcedureCompletion">, deleteAssetProcedureCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetProcedureCompletions/deleteAssetProcedureCompletions">, setAssetProcedureCompletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetProcedureCompletion>, "assetProcedureCompletions/setAssetProcedureCompletion">, setAssetProcedureCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetProcedureCompletion>[], "assetProcedureCompletions/setAssetProcedureCompletions">;
|
|
44
|
+
export declare const assetProcedureCompletionReducer: Reducer<AssetProcedureCompletionState>;
|
|
45
|
+
export declare const selectAssetProcedureCompletionsMapping: (state: OvermapRootState) => Record<string, Stored<AssetProcedureCompletion>>;
|
|
46
|
+
export declare const selectAssetProcedureCompletions: ((state: OvermapRootState) => Stored<AssetProcedureCompletion>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<AssetProcedureCompletion>>) => Stored<AssetProcedureCompletion>[], {
|
|
47
|
+
clearCache: () => void;
|
|
48
|
+
}> & {
|
|
49
|
+
clearCache: () => void;
|
|
50
|
+
};
|
|
51
|
+
export declare const selectAssetProcedureCompletionsOfAsset: OvermapSelectorWithArgs<string, AssetProcedureCompletion[]>;
|
|
52
|
+
export declare const selectAssetProcedureCompletionsOfAssetProcedureInstance: OvermapSelectorWithArgs<string, AssetProcedureCompletion[]>;
|
|
53
|
+
export declare const selectAssetProcedureCompletionById: OvermapSelectorWithArgs<string, AssetProcedureCompletion | undefined>;
|
|
54
|
+
export declare const selectAssetProcedureCompletionsByIds: (args: string[]) => (state: OvermapRootState) => Stored<AssetProcedureCompletion>[];
|