@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
package/dist/sdk/base.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { FileService } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { FileService } from './services';
|
|
2
|
+
import { SDKRequest } from './typings';
|
|
3
|
+
import { BaseState } from '../typings';
|
|
4
|
+
import { ActionCreatorWithPayload, Store, UnknownAction } from '@reduxjs/toolkit';
|
|
5
|
+
import { ResultAction } from '@redux-offline/redux-offline/lib/types';
|
|
6
|
+
|
|
5
7
|
export declare abstract class BaseSDK<TState extends BaseState> {
|
|
6
|
-
readonly store:
|
|
8
|
+
readonly store: Store<TState, UnknownAction | ResultAction | ActionCreatorWithPayload<any, any>>;
|
|
7
9
|
abstract readonly files: FileService<TState, BaseSDK<TState>>;
|
|
8
|
-
protected constructor(store:
|
|
10
|
+
protected constructor(store: Store<TState>);
|
|
9
11
|
enqueueRequest<TResult>(requestDetails: SDKRequest, host: string, serviceName: string): Promise<TResult>;
|
|
10
12
|
private _enqueueRequest;
|
|
11
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { DepGraph } from 'dependency-graph';
|
|
2
|
+
import { FullOfflineAction } from '../../store';
|
|
3
|
+
import { Outbox } from '@redux-offline/redux-offline/lib/types';
|
|
4
|
+
|
|
5
5
|
export declare class OutboxCoordinator {
|
|
6
6
|
graph: DepGraph<FullOfflineAction>;
|
|
7
7
|
requestAttemptCounter: Record<string, number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './OutboxCoordinator';
|
package/dist/sdk/errors.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import request from
|
|
1
|
+
import { default as request } from 'superagent';
|
|
2
|
+
|
|
2
3
|
export interface APIErrorOptions {
|
|
3
4
|
response?: request.Response;
|
|
4
5
|
innerError?: unknown;
|
|
5
6
|
message?: string;
|
|
6
7
|
discard?: boolean;
|
|
7
8
|
}
|
|
9
|
+
export declare const UNKNOWN_ERROR_MESSAGE = "An unknown error occurred";
|
|
8
10
|
export declare class APIError extends Error {
|
|
9
11
|
status: number;
|
|
10
12
|
response: request.Response | undefined;
|
package/dist/sdk/globals.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Store, UnknownAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { BaseState } from '../typings';
|
|
3
|
+
import { BaseSDK } from './base';
|
|
4
|
+
import { ResultAction } from '@redux-offline/redux-offline/lib/types';
|
|
5
|
+
|
|
6
|
+
export declare function setClientStore<TState extends BaseState>(store: Store<TState>): void;
|
|
7
|
+
export declare function getClientStore(): Store<BaseState, UnknownAction | ResultAction> | undefined;
|
|
6
8
|
export declare function setClientSDK<TState extends BaseState>(sdkCtor: BaseSDK<TState>): void;
|
|
7
9
|
export declare function getClientSDK(): BaseSDK<BaseState> | undefined;
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from './classes';
|
|
2
|
+
export * from './errors';
|
|
3
|
+
export * from './base';
|
|
4
|
+
export * from './sdk';
|
|
5
|
+
export * from './services';
|
|
6
|
+
export * from './typings';
|
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { BaseSDK } from './base';
|
|
2
|
+
import { BaseState } from '../typings';
|
|
3
|
+
import { OvermapSDKConstructor } from './typings';
|
|
4
|
+
import { Store } from '@reduxjs/toolkit';
|
|
5
|
+
|
|
6
|
+
export declare const initSDK: <TState extends BaseState, TSDK extends BaseSDK<TState>>(store: Store<TState>, sdk: OvermapSDKConstructor<TState, TSDK>) => TSDK;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { AgentUserConversation, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
export declare abstract class AgentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
|
-
startConversation(prompt: string): Promise<AgentUserConversation>;
|
|
6
|
-
|
|
7
|
-
* Prompt the agent with a message.
|
|
8
|
-
* @param prompt The message to prompt the agent with.
|
|
9
|
-
* @param conversationId If continuing an existing message, the UUID of that conversation.
|
|
10
|
-
*/
|
|
11
|
-
continueConversation(prompt: string, conversationId: AgentUserConversation["offline_id"]): Promise<void>;
|
|
6
|
+
startConversation(prompt: string, projectId: number): Promise<AgentUserConversation>;
|
|
7
|
+
continueConversation(prompt: string, conversationId: AgentUserConversation["offline_id"], projectId: number): Promise<void>;
|
|
12
8
|
fetchDetails(conversationId: AgentUserConversation["offline_id"]): Promise<void>;
|
|
13
9
|
rate(responseId: string, rating: 1 | 5): Promise<undefined>;
|
|
14
10
|
refreshStore(projectId: number): Promise<void>;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}> {
|
|
1
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
2
|
+
import { AssetAttachment, OvermapRootState, Stored } from '../../typings';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
6
|
+
export declare abstract class AssetAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetAttachment> {
|
|
8
7
|
name: string;
|
|
9
8
|
url: string;
|
|
10
|
-
initializeAttachments: import(
|
|
11
|
-
addAttachments: import(
|
|
12
|
-
updateAttachments: import(
|
|
13
|
-
removeAttachments: import(
|
|
14
|
-
removeAttachment: import(
|
|
15
|
-
setAttachment: import(
|
|
16
|
-
selectAttachment: import('
|
|
17
|
-
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('
|
|
9
|
+
initializeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/initializeAssetAttachments">;
|
|
10
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/addAssetAttachments">;
|
|
11
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/updateAssetAttachments">;
|
|
12
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetAttachments/deleteAssetAttachments">;
|
|
13
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetAttachments/deleteAssetAttachment">;
|
|
14
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>, "assetAttachments/setAssetAttachment">;
|
|
15
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<AssetAttachment> | undefined>;
|
|
16
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../..').Offline<{
|
|
18
17
|
file: string;
|
|
19
18
|
file_sha1: string;
|
|
20
19
|
created_by: number | undefined;
|
|
@@ -27,10 +26,10 @@ export declare abstract class AssetAttachmentService<TState extends OvermapRootS
|
|
|
27
26
|
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
|
|
28
27
|
asset: string;
|
|
29
28
|
modelId: string;
|
|
30
|
-
offline_id:
|
|
31
|
-
description:
|
|
32
|
-
file_sha1:
|
|
33
|
-
file_name:
|
|
29
|
+
offline_id: import('../..').OfflineModel["offline_id"];
|
|
30
|
+
description: import('../..').Attachment["description"];
|
|
31
|
+
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
32
|
+
file_name: import('../..').FileWithNameModel["file_name"];
|
|
34
33
|
file_extension: string;
|
|
35
34
|
};
|
|
36
35
|
bulkAdd(payloads: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { Asset, Created, 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 AssetService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<Asset>): OptimisticModelResult<Asset>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<Asset>>>): OptimisticModelResult<Asset>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
|
|
2
|
+
import { AssetStageCompletion, OvermapRootState, Payload } from '../../typings';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
5
6
|
export declare abstract class AssetStageCompletionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<AssetStageCompletion>): OptimisticModelResult<AssetStageCompletion>;
|
|
7
8
|
delete(id: string): Promise<undefined>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
4
|
-
import { OptimisticModelResult, OptimisticMultipleModelResult } from
|
|
1
|
+
import { AssetStage, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
|
|
5
|
+
|
|
5
6
|
export declare abstract class AssetStageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
bulkAdd(stagesToSubmit: Omit<Payload<AssetStage>, "asset_type">[], assetTypeId: string): OptimisticMultipleModelResult<AssetStage>;
|
|
7
8
|
bulkUpdate(stagesToUpdate: AssetStage[], assetTypeId: string): Promise<AssetStage[]>;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}> {
|
|
1
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
2
|
+
import { AssetTypeAttachment, OvermapRootState, Stored } from '../../typings';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
6
|
+
export declare abstract class AssetTypeAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetTypeAttachment> {
|
|
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<AssetTypeAttachment>[], "assetTypeAttachments/addAssetTypeAttachments">;
|
|
10
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/updateAssetTypeAttachments">;
|
|
11
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetTypeAttachments/deleteAssetTypeAttachments">;
|
|
12
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetTypeAttachments/deleteAssetTypeAttachment">;
|
|
13
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypeAttachments/setAssetTypeAttachment">;
|
|
14
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<AssetTypeAttachment> | 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 AssetTypeAttachmentService<TState extends OvermapR
|
|
|
26
25
|
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
|
|
27
26
|
asset_type: 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,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseUploadService } from
|
|
1
|
+
import { AssetTypeFieldValuesAttachment, Created, OvermapRootState, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
4
|
+
|
|
4
5
|
export declare abstract class AssetTypeFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
5
6
|
bulkAdd(payloads: {
|
|
6
7
|
fieldValuesId: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
5
|
-
import { FieldValue } from
|
|
1
|
+
import { AssetTypeFieldValues, Created, Offline, OvermapRootState, Payload, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
5
|
+
import { FieldValue } from '@overmap-ai/forms';
|
|
6
|
+
|
|
6
7
|
export declare abstract class AssetTypeFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
8
|
add(payload: Payload<AssetTypeFieldValues>): OptimisticModelResult<AssetTypeFieldValues>;
|
|
8
9
|
bulkAdd(payload: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseUploadService } from
|
|
4
|
-
import
|
|
1
|
+
import { AssetTypeFieldsAttachment, 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 AssetTypeFieldsAttachmentService<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 { AssetTypeFields, 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 AssetTypeFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<AssetTypeFields>): OptimisticModelResult<AssetTypeFields>;
|
|
7
8
|
refreshStore(projectId: number): Promise<void>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { AssetType, 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 AssetTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<AssetType>): OptimisticModelResult<AssetType>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<AssetType>>>): OptimisticModelResult<AssetType>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseAuthService } from
|
|
4
|
-
import { BaseService } from
|
|
1
|
+
import { BaseSDK } from '../base';
|
|
2
|
+
import { BaseState } from '../../typings';
|
|
3
|
+
import { BaseAuthService } from './BaseAuthService';
|
|
4
|
+
import { BaseService } from './BaseService';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Abstract base class for building a service that can enqueue API requests
|
|
7
8
|
*/
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ActionCreatorWithPayload } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { BaseUploadService } from
|
|
1
|
+
import { ActionCreatorWithPayload } from '@reduxjs/toolkit';
|
|
2
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
3
|
+
import { Attachment, FileModelPayload, OfflineModel, OvermapRootState, OvermapSelectorWithArgs, Stored, Submitted } from '../../typings';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
6
|
+
|
|
6
7
|
export interface AttachmentPayload extends FileModelPayload {
|
|
7
8
|
offline_id: OfflineModel["offline_id"];
|
|
8
9
|
description: Attachment["description"];
|
|
@@ -18,7 +19,7 @@ export interface BuildOfflineAttachmentData<TModelId> {
|
|
|
18
19
|
export interface BuildAttachmentPayloadData<TModelId> extends AttachmentPayload {
|
|
19
20
|
modelId: TModelId;
|
|
20
21
|
}
|
|
21
|
-
export declare abstract class BaseAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>, TModelId extends string | number, TAttachment extends Attachment
|
|
22
|
+
export declare abstract class BaseAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>, TModelId extends string | number, TAttachment extends Attachment> extends BaseUploadService<TState, TSDK> {
|
|
22
23
|
abstract readonly name: string;
|
|
23
24
|
abstract readonly url: string;
|
|
24
25
|
abstract readonly addAttachments: ActionCreatorWithPayload<Submitted<TAttachment>[]>;
|
|
@@ -28,7 +29,7 @@ export declare abstract class BaseAttachmentService<TState extends OvermapRootSt
|
|
|
28
29
|
abstract readonly removeAttachment: ActionCreatorWithPayload<string>;
|
|
29
30
|
abstract readonly selectAttachment: OvermapSelectorWithArgs<string, Stored<TAttachment> | undefined>;
|
|
30
31
|
protected abstract buildOfflineAttachment(data: BuildOfflineAttachmentData<TModelId>): Stored<TAttachment>;
|
|
31
|
-
protected abstract buildAttachmentPayload(data: BuildAttachmentPayloadData<TModelId>):
|
|
32
|
+
protected abstract buildAttachmentPayload(data: BuildAttachmentPayloadData<TModelId>): AttachmentPayload;
|
|
32
33
|
_bulkAdd(payloads: {
|
|
33
34
|
modelId: TModelId;
|
|
34
35
|
file: File;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Response, SuperAgentRequest } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { BaseService } from
|
|
1
|
+
import { Response, SuperAgentRequest } from 'superagent';
|
|
2
|
+
import { BaseState } from '../../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { BaseService } from './BaseService';
|
|
5
|
+
|
|
5
6
|
export declare abstract class BaseAuthService<TStore extends BaseState, TSDK extends BaseSDK<TStore>> extends BaseService<TStore, TSDK> {
|
|
6
7
|
protected constructor(sdk: TSDK);
|
|
7
8
|
abstract initAuth(payload: object): Promise<void>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { ActionCreatorWithPayload, UnknownAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseState } from '../../typings';
|
|
4
|
+
import { SDKRequest } from '../typings';
|
|
5
|
+
import { ResultAction } from '@redux-offline/redux-offline/lib/types';
|
|
6
|
+
|
|
5
7
|
export declare const CLASS_NAME_TO_SERVICE: Record<string, BaseService<BaseState, BaseSDK<BaseState>>>;
|
|
6
8
|
/**
|
|
7
9
|
* Abstract base class for building a service that can enqueue API requests
|
|
@@ -11,5 +13,5 @@ export declare abstract class BaseService<TStore extends BaseState, TSDK extends
|
|
|
11
13
|
abstract readonly host: string;
|
|
12
14
|
protected constructor(sdk: TSDK);
|
|
13
15
|
protected enqueueRequest<TResult>(requestDetails: SDKRequest): Promise<TResult>;
|
|
14
|
-
protected dispatch(action:
|
|
16
|
+
protected dispatch(action: UnknownAction | ResultAction | ActionCreatorWithPayload<any, any>): void;
|
|
15
17
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BaseApiService } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { BaseApiService } from './BaseApiService';
|
|
2
|
+
import { PresignedUrlsResponse } from '../typings';
|
|
3
|
+
import { FilePayload, OvermapRootState } from '../../typings';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
5
6
|
export declare abstract class BaseUploadService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
protected getNumberOfAttachmentsWithSha1(sha1: string): number;
|
|
7
8
|
protected processPresignedUrls(presignedUrls: PresignedUrlsResponse): Record<string, Promise<undefined>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { Category, 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 CategoryService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<Category>): OptimisticModelResult<Category>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<Category>>>): OptimisticModelResult<Category>;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}> {
|
|
1
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
2
|
+
import { DocumentAttachment, OvermapRootState, Stored } from '../../typings';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
6
|
+
export declare abstract class DocumentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, DocumentAttachment> {
|
|
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<DocumentAttachment>[], "documentAttachments/addDocumentAttachments">;
|
|
10
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/updateDocumentAttachments">;
|
|
11
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "documentAttachments/deleteDocumentAttachments">;
|
|
12
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "documentAttachments/deleteDocumentAttachment">;
|
|
13
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>, "documentAttachments/setDocumentAttachment">;
|
|
14
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<DocumentAttachment> | 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 DocumentAttachmentService<TState extends OvermapRo
|
|
|
26
25
|
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
|
|
27
26
|
document: 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 { Document, MovePosition, 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 DocumentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<Document>): OptimisticModelResult<Document>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<Document>>>): OptimisticModelResult<Document>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { EmailDomain, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
export declare abstract class EmailDomainsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
6
|
add(orgId: number, email: string): Promise<undefined>;
|
|
6
7
|
remove(emailDomain: EmailDomain): Promise<undefined>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BaseApiService } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { BaseApiService } from './BaseApiService';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { EmailVerificationPayload, EmailVerificationReturn, OvermapRootState, VerificationCode } from '../../typings';
|
|
4
|
+
|
|
4
5
|
export declare abstract class EmailVerificationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
6
|
getVerificationCode(verificationCode: string): Promise<VerificationCode>;
|
|
6
7
|
validateVerificationCode(verificationCode: string, payload?: EmailVerificationPayload | undefined): Promise<EmailVerificationReturn>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BaseApiService } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { BaseApiService } from './BaseApiService';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseState } from '../../typings';
|
|
4
|
+
|
|
4
5
|
export interface GetS3UrlSuccessResponse {
|
|
5
6
|
url: string;
|
|
6
7
|
fields: Record<string, string>;
|
|
@@ -43,6 +44,6 @@ export declare abstract class FileService<TState extends BaseState, TSDK extends
|
|
|
43
44
|
* @param downloadedName (Optional) The name to give the file after download. Set to the name of an attachment, for
|
|
44
45
|
* example.
|
|
45
46
|
*/
|
|
46
|
-
fetchFileFromUrl(url: string, expectedSha1: string, downloadedName?: string
|
|
47
|
+
fetchFileFromUrl(url: string, expectedSha1: string, downloadedName?: string): Promise<File>;
|
|
47
48
|
}
|
|
48
49
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseUploadService } from
|
|
4
|
-
import
|
|
1
|
+
import { FormRevisionAttachment, 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 FormRevisionAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
7
|
bulkAdd(payloads: {
|
|
7
8
|
revisionId: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseUploadService } from
|
|
4
|
-
import
|
|
1
|
+
import { FormRevision, FormRevisionPayload, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
5
|
+
|
|
5
6
|
export declare abstract class FormRevisionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
7
|
add(payload: FormRevisionPayload): OptimisticModelResult<FormRevision>;
|
|
7
8
|
refreshStore(projectId: number, organizationId: number): Promise<void>;
|