@overmap-ai/core 1.0.71-workspace-settings.9 → 1.0.72-mapbox.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/array.d.ts +1 -0
- package/dist/constants/defaults.d.ts +1 -1
- package/dist/constants/index.d.ts +3 -3
- package/dist/enums/index.d.ts +5 -5
- package/dist/index.d.ts +6 -6
- package/dist/overmap-core.js +6004 -7259
- package/dist/overmap-core.umd.cjs +12 -7951
- package/dist/sdk/base.d.ts +7 -6
- package/dist/sdk/classes/OutboxCoordinator.d.ts +3 -4
- package/dist/sdk/classes/index.d.ts +1 -1
- package/dist/sdk/errors.d.ts +2 -1
- package/dist/sdk/globals.d.ts +6 -5
- package/dist/sdk/index.d.ts +6 -6
- package/dist/sdk/sdk.d.ts +5 -5
- package/dist/sdk/services/AgentService.d.ts +5 -10
- package/dist/sdk/services/AssetAttachmentService.d.ts +38 -16
- package/dist/sdk/services/AssetService.d.ts +5 -5
- package/dist/sdk/services/AssetStageCompletionService.d.ts +4 -4
- package/dist/sdk/services/AssetStageService.d.ts +5 -7
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +37 -16
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +12 -0
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +20 -0
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +12 -0
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +8 -0
- package/dist/sdk/services/AssetTypeService.d.ts +5 -5
- package/dist/sdk/services/BaseApiService.d.ts +4 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +21 -23
- package/dist/sdk/services/BaseAuthService.d.ts +4 -4
- package/dist/sdk/services/BaseService.d.ts +6 -5
- package/dist/sdk/services/BaseUploadService.d.ts +5 -4
- package/dist/sdk/services/CategoryService.d.ts +4 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +36 -16
- package/dist/sdk/services/DocumentService.d.ts +4 -4
- package/dist/sdk/services/EmailDomainsService.d.ts +3 -3
- package/dist/sdk/services/EmailVerificationService.d.ts +3 -3
- package/dist/sdk/services/FileService.d.ts +4 -4
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +12 -0
- package/dist/sdk/services/FormRevisionService.d.ts +8 -0
- package/dist/sdk/services/FormService.d.ts +14 -16
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +13 -0
- package/dist/sdk/services/FormSubmissionService.d.ts +11 -30
- package/dist/sdk/services/GeoImageService.d.ts +4 -4
- package/dist/sdk/services/IssueAssociationService.d.ts +5 -5
- package/dist/sdk/services/IssueAttachmentService.d.ts +37 -16
- package/dist/sdk/services/IssueCommentService.d.ts +4 -4
- package/dist/sdk/services/IssueService.d.ts +4 -7
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +13 -0
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +10 -0
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +12 -0
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +8 -0
- package/dist/sdk/services/IssueTypeService.d.ts +4 -4
- package/dist/sdk/services/IssueUpdateService.d.ts +3 -3
- package/dist/sdk/services/JWTAuthService.d.ts +6 -6
- package/dist/sdk/services/LicenseService.d.ts +3 -3
- package/dist/sdk/services/OrganizationAccessService.d.ts +3 -3
- package/dist/sdk/services/OrganizationService.d.ts +3 -3
- package/dist/sdk/services/ProjectAccessService.d.ts +3 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +37 -16
- package/dist/sdk/services/ProjectFileService.d.ts +4 -4
- package/dist/sdk/services/ProjectService.d.ts +3 -3
- package/dist/sdk/services/TeamService.d.ts +4 -4
- package/dist/sdk/services/UserService.d.ts +3 -3
- package/dist/sdk/services/WorkspaceService.d.ts +4 -4
- package/dist/sdk/services/index.d.ts +45 -34
- package/dist/sdk/typings.d.ts +8 -8
- package/dist/store/adapter.d.ts +11 -11
- package/dist/store/index.d.ts +2 -2
- package/dist/store/migrations.d.ts +1 -1
- package/dist/store/slices/agentsSlice.d.ts +10 -10
- package/dist/store/slices/assetAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/assetSlice.d.ts +34 -24
- package/dist/store/slices/assetStageCompletionSlice.d.ts +32 -23
- package/dist/store/slices/assetStageSlice.d.ts +35 -26
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +62 -0
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeSlice.d.ts +15 -21
- package/dist/store/slices/authSlice.d.ts +9 -9
- package/dist/store/slices/categorySlice.d.ts +29 -17
- package/dist/store/slices/documentAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/documentSlice.d.ts +29 -13
- package/dist/store/slices/emailDomainsSlice.d.ts +28 -15
- package/dist/store/slices/fileSlice.d.ts +6 -6
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/formRevisionSlice.d.ts +36 -27
- package/dist/store/slices/formSlice.d.ts +32 -26
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/formSubmissionSlice.d.ts +15 -27
- package/dist/store/slices/geoImageSlice.d.ts +36 -22
- package/dist/store/slices/index.d.ts +46 -38
- package/dist/store/slices/issueAssociationSlice.d.ts +34 -24
- package/dist/store/slices/issueAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/issueCommentSlice.d.ts +12 -18
- package/dist/store/slices/issueSlice.d.ts +12 -24
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +63 -0
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +62 -0
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +62 -0
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +64 -0
- package/dist/store/slices/issueTypeSlice.d.ts +11 -14
- package/dist/store/slices/issueUpdateSlice.d.ts +12 -18
- package/dist/store/slices/licenseSlice.d.ts +9 -9
- package/dist/store/slices/organizationAccessSlice.d.ts +10 -13
- package/dist/store/slices/organizationSlice.d.ts +25 -10
- package/dist/store/slices/outboxSlice.d.ts +14 -15
- package/dist/store/slices/projectAccessSlice.d.ts +10 -17
- package/dist/store/slices/projectAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/projectFileSlice.d.ts +62 -31
- package/dist/store/slices/projectSlice.d.ts +9 -24
- package/dist/store/slices/rehydratedSlice.d.ts +6 -6
- package/dist/store/slices/teamSlice.d.ts +11 -14
- package/dist/store/slices/userSlice.d.ts +13 -13
- package/dist/store/slices/versioningSlice.d.ts +2 -2
- package/dist/store/slices/workspaceSlice.d.ts +30 -17
- package/dist/store/store.d.ts +14 -7
- package/dist/typings/files.d.ts +8 -4
- package/dist/typings/index.d.ts +6 -6
- package/dist/typings/models/access.d.ts +2 -2
- package/dist/typings/models/agents.d.ts +2 -12
- package/dist/typings/models/assets.d.ts +19 -4
- package/dist/typings/models/attachments.d.ts +2 -7
- package/dist/typings/models/base.d.ts +2 -5
- package/dist/typings/models/categories.d.ts +2 -2
- package/dist/typings/models/documents.d.ts +1 -1
- package/dist/typings/models/emailDomain.d.ts +1 -1
- package/dist/typings/models/emailVerification.d.ts +2 -2
- package/dist/typings/models/fields.d.ts +16 -0
- package/dist/typings/models/forms.d.ts +13 -116
- package/dist/typings/models/geo.d.ts +5 -14
- package/dist/typings/models/geoImages.d.ts +3 -3
- package/dist/typings/models/index.d.ts +22 -21
- package/dist/typings/models/issueTypes.d.ts +2 -2
- package/dist/typings/models/issues.d.ts +21 -6
- package/dist/typings/models/license.d.ts +2 -2
- package/dist/typings/models/organizations.d.ts +1 -1
- package/dist/typings/models/projects.d.ts +3 -3
- package/dist/typings/models/store.d.ts +10 -3
- package/dist/typings/models/teams.d.ts +3 -3
- package/dist/typings/models/users.d.ts +1 -1
- package/dist/typings/models/workspace.d.ts +1 -1
- package/dist/typings/search.d.ts +1 -1
- package/dist/typings/store.d.ts +1 -1
- package/dist/utils/async/DeferredPromise.d.ts +1 -1
- package/dist/utils/coordinates.d.ts +4 -18
- package/dist/utils/file.d.ts +2 -2
- package/dist/utils/forms.d.ts +1 -1
- package/dist/utils/index.d.ts +9 -10
- package/dist/utils/offline.d.ts +1 -1
- package/dist/utils/optimization.d.ts +1 -0
- package/dist/utils/utils.d.ts +1 -7
- package/package.json +46 -53
- package/dist/enums/ui.d.ts +0 -36
- package/dist/overmap-core.js.map +0 -1
- package/dist/overmap-core.umd.cjs.map +0 -1
- package/dist/utils/colors.d.ts +0 -14
package/dist/sdk/base.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { ResultAction } from '@redux-offline/redux-offline/lib/types';
|
|
2
|
+
import { ActionCreatorWithPayload, Store, UnknownAction } from '@reduxjs/toolkit';
|
|
3
|
+
import { BaseState } from '../typings';
|
|
4
|
+
import { FileService } from './services';
|
|
5
|
+
import { SDKRequest } from './typings';
|
|
5
6
|
export declare abstract class BaseSDK<TState extends BaseState> {
|
|
6
|
-
readonly store:
|
|
7
|
+
readonly store: Store<TState, UnknownAction | ResultAction | ActionCreatorWithPayload<any, any>>;
|
|
7
8
|
abstract readonly files: FileService<TState, BaseSDK<TState>>;
|
|
8
|
-
protected constructor(store:
|
|
9
|
+
protected constructor(store: Store<TState>);
|
|
9
10
|
enqueueRequest<TResult>(requestDetails: SDKRequest, host: string, serviceName: string): Promise<TResult>;
|
|
10
11
|
private _enqueueRequest;
|
|
11
12
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { DepGraph } from
|
|
3
|
-
import
|
|
4
|
-
import { Outbox } from "@redux-offline/redux-offline/lib/types";
|
|
1
|
+
import { Outbox } from '@redux-offline/redux-offline/lib/types';
|
|
2
|
+
import { DepGraph } from 'dependency-graph';
|
|
3
|
+
import { FullOfflineAction } from '../../store';
|
|
5
4
|
export declare class OutboxCoordinator {
|
|
6
5
|
graph: DepGraph<FullOfflineAction>;
|
|
7
6
|
requestAttemptCounter: Record<string, number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './OutboxCoordinator';
|
package/dist/sdk/errors.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import request from
|
|
1
|
+
import { default as request } from 'superagent';
|
|
2
2
|
export interface APIErrorOptions {
|
|
3
3
|
response?: request.Response;
|
|
4
4
|
innerError?: unknown;
|
|
5
5
|
message?: string;
|
|
6
6
|
discard?: boolean;
|
|
7
7
|
}
|
|
8
|
+
export declare const UNKNOWN_ERROR_MESSAGE = "An unknown error occurred";
|
|
8
9
|
export declare class APIError extends Error {
|
|
9
10
|
status: number;
|
|
10
11
|
response: request.Response | undefined;
|
package/dist/sdk/globals.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
1
|
+
import { ResultAction } from '@redux-offline/redux-offline/lib/types';
|
|
2
|
+
import { Store, UnknownAction } from '@reduxjs/toolkit';
|
|
3
|
+
import { BaseState } from '../typings';
|
|
4
|
+
import { BaseSDK } from './base';
|
|
5
|
+
export declare function setClientStore<TState extends BaseState>(store: Store<TState>): void;
|
|
6
|
+
export declare function getClientStore(): Store<BaseState, UnknownAction | ResultAction> | undefined;
|
|
6
7
|
export declare function setClientSDK<TState extends BaseState>(sdkCtor: BaseSDK<TState>): void;
|
|
7
8
|
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 './base';
|
|
2
|
+
export * from './classes';
|
|
3
|
+
export * from './errors';
|
|
4
|
+
export * from './sdk';
|
|
5
|
+
export * from './services';
|
|
6
|
+
export * from './typings';
|
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
export declare const initSDK: <TState extends BaseState, TSDK extends BaseSDK<TState>>(store:
|
|
1
|
+
import { Store } from '@reduxjs/toolkit';
|
|
2
|
+
import { BaseState } from '../typings';
|
|
3
|
+
import { BaseSDK } from './base';
|
|
4
|
+
import { OvermapSDKConstructor } from './typings';
|
|
5
|
+
export declare const initSDK: <TState extends BaseState, TSDK extends BaseSDK<TState>>(store: Store<TState>, sdk: OvermapSDKConstructor<TState, TSDK>) => TSDK;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { AgentUserConversation, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
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>;
|
|
5
|
+
startConversation(prompt: string, projectId: number): Promise<AgentUserConversation>;
|
|
6
|
+
continueConversation(prompt: string, conversationId: AgentUserConversation["offline_id"], projectId: number): Promise<void>;
|
|
12
7
|
fetchDetails(conversationId: AgentUserConversation["offline_id"]): Promise<void>;
|
|
13
8
|
rate(responseId: string, rating: 1 | 5): Promise<undefined>;
|
|
14
9
|
refreshStore(projectId: number): Promise<void>;
|
|
@@ -1,18 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { AttachmentModel } from "../../enums";
|
|
1
|
+
import { AssetAttachment, OvermapRootState, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
6
5
|
export declare abstract class AssetAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetAttachment> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
initializeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/initializeAssetAttachments">;
|
|
9
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/addAssetAttachments">;
|
|
10
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/updateAssetAttachments">;
|
|
11
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetAttachments/deleteAssetAttachments">;
|
|
12
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetAttachments/deleteAssetAttachment">;
|
|
13
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>, "assetAttachments/setAssetAttachment">;
|
|
14
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<AssetAttachment> | undefined>;
|
|
15
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../..').Offline<{
|
|
16
|
+
file: string;
|
|
17
|
+
file_sha1: string;
|
|
18
|
+
created_by: number | undefined;
|
|
19
|
+
file_name: string;
|
|
20
|
+
file_type: string;
|
|
21
|
+
submitted_at: string;
|
|
22
|
+
description: string | undefined;
|
|
23
|
+
asset: string;
|
|
24
|
+
}>;
|
|
25
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
|
|
26
|
+
asset: string;
|
|
27
|
+
modelId: string;
|
|
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"];
|
|
32
|
+
file_extension: string;
|
|
33
|
+
};
|
|
34
|
+
bulkAdd(payloads: {
|
|
35
|
+
assetId: string;
|
|
36
|
+
file: File;
|
|
37
|
+
}[]): Promise<OptimisticMultipleModelResult<AssetAttachment>>;
|
|
38
|
+
delete(id: string): Promise<void>;
|
|
39
|
+
refreshStore(projectId: number): Promise<void>;
|
|
18
40
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { Asset, Created, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class AssetService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<Asset>): OptimisticModelResult<Asset>;
|
|
7
7
|
update(payload: Offline<Partial<Payload<Asset>>>): OptimisticModelResult<Asset>;
|
|
8
8
|
remove(id: string): Promise<undefined>;
|
|
9
|
-
bulkAdd(payloads: Omit<Payload<Asset>, "asset_type">[], assetTypeId: string, batchSize: number): Promise<Created<Asset>[]>[];
|
|
9
|
+
bulkAdd(payloads: Omit<Payload<Asset>, "asset_type" | "project">[], assetTypeId: string, projectId: number, batchSize: number): Promise<Created<Asset>[]>[];
|
|
10
10
|
refreshStore(projectId: number): Promise<void>;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { AssetStageCompletion, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class AssetStageCompletionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<AssetStageCompletion>): OptimisticModelResult<AssetStageCompletion>;
|
|
7
7
|
delete(id: string): Promise<undefined>;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { AssetStage, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class AssetStageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
bulkAdd(stagesToSubmit: Omit<Payload<AssetStage>, "asset_type">[], assetTypeId: string): OptimisticMultipleModelResult<AssetStage>;
|
|
7
7
|
bulkUpdate(stagesToUpdate: AssetStage[], assetTypeId: string): Promise<AssetStage[]>;
|
|
8
8
|
bulkDelete(idsToDelete: string[]): Promise<undefined>;
|
|
9
9
|
update(payload: Offline<Partial<Payload<AssetStage>>>): OptimisticModelResult<AssetStage>;
|
|
10
|
-
|
|
11
|
-
unlinkForm(stageId: string, formId: string): Promise<undefined>;
|
|
12
|
-
refreshStore(projectId: number): Promise<undefined>;
|
|
10
|
+
refreshStore(organizationId: number): Promise<undefined>;
|
|
13
11
|
}
|
|
@@ -1,18 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { AttachmentModel } from "../../enums";
|
|
1
|
+
import { AssetTypeAttachment, OvermapRootState, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
6
5
|
export declare abstract class AssetTypeAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, AssetTypeAttachment> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
addAttachments: import(
|
|
10
|
-
updateAttachments: import(
|
|
11
|
-
removeAttachments: import(
|
|
12
|
-
removeAttachment: import(
|
|
13
|
-
setAttachment: import(
|
|
14
|
-
selectAttachment: import('
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/addAssetTypeAttachments">;
|
|
9
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/updateAssetTypeAttachments">;
|
|
10
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetTypeAttachments/deleteAssetTypeAttachments">;
|
|
11
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetTypeAttachments/deleteAssetTypeAttachment">;
|
|
12
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypeAttachments/setAssetTypeAttachment">;
|
|
13
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<AssetTypeAttachment> | undefined>;
|
|
14
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../..').Offline<{
|
|
15
|
+
file: string;
|
|
16
|
+
file_sha1: string;
|
|
17
|
+
created_by: number | undefined;
|
|
18
|
+
file_name: string;
|
|
19
|
+
file_type: string;
|
|
20
|
+
submitted_at: string;
|
|
21
|
+
description: string | undefined;
|
|
22
|
+
asset_type: string;
|
|
23
|
+
}>;
|
|
24
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
|
|
25
|
+
asset_type: string;
|
|
26
|
+
modelId: string;
|
|
27
|
+
offline_id: import('../..').OfflineModel["offline_id"];
|
|
28
|
+
description: import('../..').Attachment["description"];
|
|
29
|
+
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
30
|
+
file_name: import('../..').FileWithNameModel["file_name"];
|
|
31
|
+
file_extension: string;
|
|
32
|
+
};
|
|
33
|
+
bulkAdd(payloads: {
|
|
34
|
+
assetTypeId: string;
|
|
35
|
+
file: File;
|
|
36
|
+
}[]): Promise<OptimisticMultipleModelResult<AssetTypeAttachment>>;
|
|
37
|
+
delete(attachmentId: string): Promise<void>;
|
|
38
|
+
refreshStore(organizationId: number): Promise<void>;
|
|
18
39
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AssetTypeFieldValuesAttachment, Created, OvermapRootState, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
4
|
+
export declare abstract class AssetTypeFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
5
|
+
bulkAdd(payloads: {
|
|
6
|
+
fieldValuesId: string;
|
|
7
|
+
fieldIdentifier: string;
|
|
8
|
+
file: File;
|
|
9
|
+
}[], batchSize?: number): Promise<[Stored<AssetTypeFieldValuesAttachment>[], Promise<Created<AssetTypeFieldValuesAttachment>[]>[]]>;
|
|
10
|
+
bulkDelete(ids: string[]): Promise<void>;
|
|
11
|
+
refreshStore(projectId: number): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FieldValue } from '@overmap-ai/forms';
|
|
2
|
+
import { AssetTypeFieldValues, Created, Offline, OvermapRootState, Payload, Stored } from '../../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { OptimisticModelResult } from '../typings';
|
|
5
|
+
import { BaseApiService } from './BaseApiService';
|
|
6
|
+
export declare abstract class AssetTypeFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
+
add(payload: Payload<AssetTypeFieldValues>): OptimisticModelResult<AssetTypeFieldValues>;
|
|
8
|
+
bulkAdd(payload: {
|
|
9
|
+
values: Record<string, FieldValue>;
|
|
10
|
+
payloads: {
|
|
11
|
+
values: Record<string, FieldValue>;
|
|
12
|
+
asset: string;
|
|
13
|
+
fields_revision: string;
|
|
14
|
+
published_at: string;
|
|
15
|
+
}[];
|
|
16
|
+
}, batchSize?: number): [Stored<AssetTypeFieldValues>[], Promise<Created<AssetTypeFieldValues>[]>[]];
|
|
17
|
+
update(payload: Offline<Partial<Payload<AssetTypeFieldValues>>>): OptimisticModelResult<AssetTypeFieldValues>;
|
|
18
|
+
delete(id: string): Promise<void>;
|
|
19
|
+
refreshStore(projectId: number): Promise<void>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AssetTypeFieldsAttachment, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
5
|
+
export declare abstract class AssetTypeFieldsAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
+
bulkAdd(payloads: {
|
|
7
|
+
fieldsRevisionId: string;
|
|
8
|
+
fieldIdentifier: string;
|
|
9
|
+
file: File;
|
|
10
|
+
}[]): Promise<OptimisticMultipleModelResult<AssetTypeFieldsAttachment>>;
|
|
11
|
+
refreshStore(organization: number): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AssetTypeFields, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
|
+
export declare abstract class AssetTypeFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
+
add(payload: Payload<AssetTypeFields>): OptimisticModelResult<AssetTypeFields>;
|
|
7
|
+
refreshStore(organizationId: number): Promise<void>;
|
|
8
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { AssetType, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class AssetTypeService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<AssetType>): OptimisticModelResult<AssetType>;
|
|
7
7
|
update(payload: Offline<Partial<Payload<AssetType>>>): OptimisticModelResult<AssetType>;
|
|
8
8
|
delete(assetTypeId: string): Promise<undefined>;
|
|
9
|
-
refreshStore(
|
|
9
|
+
refreshStore(organizationId: number): Promise<void>;
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseAuthService } from
|
|
4
|
-
import { BaseService } from
|
|
1
|
+
import { BaseState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseAuthService } from './BaseAuthService';
|
|
4
|
+
import { BaseService } from './BaseService';
|
|
5
5
|
/**
|
|
6
6
|
* Abstract base class for building a service that can enqueue API requests
|
|
7
7
|
*/
|
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
import { ActionCreatorWithPayload } from
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
export interface AttachmentPayload {
|
|
1
|
+
import { ActionCreatorWithPayload } from '@reduxjs/toolkit';
|
|
2
|
+
import { Attachment, FileModelPayload, OfflineModel, OvermapRootState, OvermapSelectorWithArgs, Stored, Submitted } from '../../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
5
|
+
import { BaseUploadService } from './BaseUploadService';
|
|
6
|
+
export interface AttachmentPayload extends FileModelPayload {
|
|
8
7
|
offline_id: OfflineModel["offline_id"];
|
|
9
|
-
name: Attachment["file_name"];
|
|
10
|
-
sha1: Attachment["file_sha1"];
|
|
11
8
|
description: Attachment["description"];
|
|
12
9
|
}
|
|
13
|
-
export interface FilePayload {
|
|
14
|
-
sha1: Attachment["file_sha1"];
|
|
15
|
-
file_type: string;
|
|
16
|
-
extension: string;
|
|
17
|
-
size: number;
|
|
18
|
-
}
|
|
19
10
|
export interface BuildOfflineAttachmentData<TModelId> {
|
|
20
11
|
file: File;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
file_sha1: string;
|
|
13
|
+
submitted_at: string;
|
|
14
|
+
created_by?: number;
|
|
24
15
|
description?: string;
|
|
25
16
|
modelId: TModelId;
|
|
26
17
|
}
|
|
18
|
+
export interface BuildAttachmentPayloadData<TModelId> extends AttachmentPayload {
|
|
19
|
+
modelId: TModelId;
|
|
20
|
+
}
|
|
27
21
|
export declare abstract class BaseAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>, TModelId extends string | number, TAttachment extends Attachment> extends BaseUploadService<TState, TSDK> {
|
|
28
|
-
abstract readonly
|
|
29
|
-
abstract readonly
|
|
22
|
+
abstract readonly name: string;
|
|
23
|
+
abstract readonly url: string;
|
|
30
24
|
abstract readonly addAttachments: ActionCreatorWithPayload<Submitted<TAttachment>[]>;
|
|
31
25
|
abstract readonly updateAttachments: ActionCreatorWithPayload<Submitted<TAttachment>[]>;
|
|
32
26
|
abstract readonly removeAttachments: ActionCreatorWithPayload<string[]>;
|
|
33
27
|
abstract readonly setAttachment: ActionCreatorWithPayload<Stored<TAttachment>>;
|
|
34
28
|
abstract readonly removeAttachment: ActionCreatorWithPayload<string>;
|
|
35
29
|
abstract readonly selectAttachment: OvermapSelectorWithArgs<string, Stored<TAttachment> | undefined>;
|
|
36
|
-
protected
|
|
37
|
-
protected
|
|
38
|
-
|
|
30
|
+
protected abstract buildOfflineAttachment(data: BuildOfflineAttachmentData<TModelId>): Stored<TAttachment>;
|
|
31
|
+
protected abstract buildAttachmentPayload(data: BuildAttachmentPayloadData<TModelId>): AttachmentPayload;
|
|
32
|
+
_bulkAdd(payloads: {
|
|
33
|
+
modelId: TModelId;
|
|
34
|
+
file: File;
|
|
35
|
+
}[]): Promise<OptimisticMultipleModelResult<TAttachment>>;
|
|
36
|
+
_delete(attachmendId: string): Promise<void>;
|
|
39
37
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
export declare abstract class BaseAuthService<TStore extends BaseState, TSDK extends BaseSDK<TStore>> extends BaseService<TStore, TSDK> {
|
|
6
6
|
protected constructor(sdk: TSDK);
|
|
7
7
|
abstract initAuth(payload: object): Promise<void>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { ResultAction } from '@redux-offline/redux-offline/lib/types';
|
|
2
|
+
import { ActionCreatorWithPayload, UnknownAction } from '@reduxjs/toolkit';
|
|
3
|
+
import { BaseState } from '../../typings';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
import { SDKRequest } from '../typings';
|
|
5
6
|
export declare const CLASS_NAME_TO_SERVICE: Record<string, BaseService<BaseState, BaseSDK<BaseState>>>;
|
|
6
7
|
/**
|
|
7
8
|
* Abstract base class for building a service that can enqueue API requests
|
|
@@ -11,5 +12,5 @@ export declare abstract class BaseService<TStore extends BaseState, TSDK extends
|
|
|
11
12
|
abstract readonly host: string;
|
|
12
13
|
protected constructor(sdk: TSDK);
|
|
13
14
|
protected enqueueRequest<TResult>(requestDetails: SDKRequest): Promise<TResult>;
|
|
14
|
-
protected dispatch(action:
|
|
15
|
+
protected dispatch(action: UnknownAction | ResultAction | ActionCreatorWithPayload<any, any>): void;
|
|
15
16
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { FilePayload, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { PresignedUrlsResponse } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
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;
|
|
7
7
|
protected processPresignedUrls(presignedUrls: PresignedUrlsResponse): Record<string, Promise<undefined>>;
|
|
8
|
+
protected getFilePayload(file: File): Promise<FilePayload>;
|
|
8
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { Category, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class CategoryService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<Category>): OptimisticModelResult<Category>;
|
|
7
7
|
update(payload: Offline<Partial<Payload<Category>>>): OptimisticModelResult<Category>;
|
|
@@ -1,20 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { AttachmentModel } from "../../enums";
|
|
1
|
+
import { DocumentAttachment, OvermapRootState, Stored } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
6
5
|
export declare abstract class DocumentAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, string, DocumentAttachment> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
addAttachments: import(
|
|
10
|
-
updateAttachments: import(
|
|
11
|
-
removeAttachments: import(
|
|
12
|
-
removeAttachment: import(
|
|
13
|
-
setAttachment: import(
|
|
14
|
-
selectAttachment: import('
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/addDocumentAttachments">;
|
|
9
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/updateDocumentAttachments">;
|
|
10
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "documentAttachments/deleteDocumentAttachments">;
|
|
11
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "documentAttachments/deleteDocumentAttachment">;
|
|
12
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>, "documentAttachments/setDocumentAttachment">;
|
|
13
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<DocumentAttachment> | undefined>;
|
|
14
|
+
protected buildOfflineAttachment(data: BuildOfflineAttachmentData<string>): import('../..').Offline<{
|
|
15
|
+
file: string;
|
|
16
|
+
file_sha1: string;
|
|
17
|
+
created_by: number | undefined;
|
|
18
|
+
file_name: string;
|
|
19
|
+
file_type: string;
|
|
20
|
+
submitted_at: string;
|
|
21
|
+
description: string | undefined;
|
|
22
|
+
document: string;
|
|
23
|
+
}>;
|
|
24
|
+
protected buildAttachmentPayload(data: BuildAttachmentPayloadData<string>): {
|
|
25
|
+
document: string;
|
|
26
|
+
modelId: string;
|
|
27
|
+
offline_id: import('../..').OfflineModel["offline_id"];
|
|
28
|
+
description: import('../..').Attachment["description"];
|
|
29
|
+
file_sha1: import('../..').FileWithNameModel["file_sha1"];
|
|
30
|
+
file_name: import('../..').FileWithNameModel["file_name"];
|
|
31
|
+
file_extension: string;
|
|
32
|
+
};
|
|
33
|
+
bulkAdd(payloads: {
|
|
34
|
+
documentId: string;
|
|
35
|
+
file: File;
|
|
36
|
+
}[]): Promise<OptimisticMultipleModelResult<DocumentAttachment>>;
|
|
37
|
+
delete(id: string): Promise<void>;
|
|
18
38
|
private makeReadable;
|
|
19
39
|
refreshStore(projectId: number, organizationId: number): Promise<void>;
|
|
20
40
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { Document, MovePosition, Offline, OvermapRootState, Payload } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { OptimisticModelResult } from '../typings';
|
|
4
|
+
import { BaseApiService } from './BaseApiService';
|
|
5
5
|
export declare abstract class DocumentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
6
|
add(payload: Payload<Document>): OptimisticModelResult<Document>;
|
|
7
7
|
update(payload: Offline<Partial<Payload<Document>>>): OptimisticModelResult<Document>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { EmailDomain, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
4
|
export declare abstract class EmailDomainsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
5
|
add(orgId: number, email: string): Promise<undefined>;
|
|
6
6
|
remove(emailDomain: EmailDomain): Promise<undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { EmailVerificationPayload, EmailVerificationReturn, OvermapRootState, VerificationCode } from '../../typings';
|
|
2
|
+
import { BaseSDK } from '../base';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
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>;
|