@overmap-ai/core 1.0.71-project-file-improvements.3 → 1.0.71-remove-login-timeout.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/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 +290 -452
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +299 -460
- 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 +13 -12
- 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 +13 -12
- 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 +7 -6
- 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 +13 -12
- 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/FormService.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 +13 -12
- package/dist/sdk/services/IssueCommentService.d.ts +5 -4
- package/dist/sdk/services/IssueService.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 +13 -12
- package/dist/sdk/services/ProjectFileService.d.ts +9 -8
- 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 +34 -34
- 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/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 +38 -38
- 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/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 +56 -44
- 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 +3 -2
- 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/forms.d.ts +4 -3
- package/dist/typings/models/geoImages.d.ts +5 -4
- package/dist/typings/models/index.d.ts +21 -21
- package/dist/typings/models/issueTypes.d.ts +3 -2
- package/dist/typings/models/issues.d.ts +7 -6
- 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 +5 -7
- package/dist/typings/models/store.d.ts +3 -3
- package/dist/typings/models/teams.d.ts +4 -3
- package/dist/typings/models/users.d.ts +2 -1
- package/dist/typings/models/workspace.d.ts +2 -1
- package/dist/typings/search.d.ts +1 -1
- package/dist/typings/store.d.ts +2 -1
- package/dist/utils/async/DeferredPromise.d.ts +1 -1
- package/dist/utils/colors.d.ts +2 -1
- package/dist/utils/coordinates.d.ts +3 -2
- package/dist/utils/file.d.ts +2 -1
- package/dist/utils/forms.d.ts +2 -1
- package/dist/utils/index.d.ts +10 -10
- package/dist/utils/offline.d.ts +2 -1
- package/dist/utils/utils.d.ts +2 -1
- package/package.json +18 -20
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import request from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { BaseAuthService } from
|
|
1
|
+
import { default as request } from 'superagent';
|
|
2
|
+
import { BaseState } from '../../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
import { TokenPair } from '../typings';
|
|
5
|
+
import { BaseAuthService } from './BaseAuthService';
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* Handles login, logout and renewing tokens
|
|
8
9
|
*/
|
|
@@ -32,5 +33,5 @@ export declare abstract class JWTService<TState extends BaseState, TSDK extends
|
|
|
32
33
|
getAuthHeader(): string;
|
|
33
34
|
prepareAuth(): Promise<undefined>;
|
|
34
35
|
handleUnauthorized(request: request.SuperAgentRequest, response: request.Response): Promise<void>;
|
|
35
|
-
initAuth(payload: object): Promise<
|
|
36
|
+
initAuth(payload: object): Promise<void>;
|
|
36
37
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { License, OvermapRootState, Project, Transaction } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
export declare abstract class LicenseService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
6
|
getLicense(license: License): Promise<License>;
|
|
6
7
|
pauseLicense(license: License): Promise<License>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { OrganizationAccess, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* Handles the creation of OrganizationAccess Service
|
|
6
7
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { Organization, OvermapRootState } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
export declare abstract class OrganizationService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
6
|
create(name: string): Promise<Organization>;
|
|
6
7
|
update(organization: Organization): Promise<Organization>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { OvermapRootState, ProjectAccess } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* Handles the creation of ProjectAccess Service
|
|
6
7
|
*/
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { BaseAttachmentService } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { AttachmentModel } from
|
|
1
|
+
import { BaseAttachmentService } from './BaseAttachmentService';
|
|
2
|
+
import { OvermapRootState, ProjectAttachment, Stored } from '../../typings';
|
|
3
|
+
import { OptimisticMultipleModelResult } from '../typings';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
import { AttachmentModel } from '../../enums';
|
|
6
|
+
|
|
6
7
|
export declare abstract class ProjectAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, number, ProjectAttachment> {
|
|
7
8
|
attachmentModel: AttachmentModel;
|
|
8
|
-
initializeAttachments: import(
|
|
9
|
-
addAttachments: import(
|
|
10
|
-
updateAttachments: import(
|
|
11
|
-
removeAttachments: import(
|
|
12
|
-
removeAttachment: import(
|
|
13
|
-
setAttachment: import(
|
|
14
|
-
selectAttachment: import('
|
|
9
|
+
initializeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/initializeProjectAttachments">;
|
|
10
|
+
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/addProjectAttachments">;
|
|
11
|
+
updateAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/updateProjectAttachments">;
|
|
12
|
+
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "projectAttachments/deleteProjectAttachments">;
|
|
13
|
+
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "projectAttachments/deleteProjectAttachment">;
|
|
14
|
+
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>, "projectAttachments/setProjectAttachment">;
|
|
15
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, ProjectAttachment | undefined>;
|
|
15
16
|
private buildOfflineAttachment;
|
|
16
17
|
attachFilesToProject(files: File[], projectId: number): Promise<OptimisticMultipleModelResult<ProjectAttachment>>;
|
|
17
18
|
deleteProjectAttachment(attachmentId: string): Promise<void>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { OvermapRootState, ProjectFile } from '../../typings';
|
|
2
|
+
import { OptimisticGenericResult } from '../typings';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Handles creation and caching of ProjectFiles
|
|
7
8
|
*/
|
|
8
|
-
export declare abstract class ProjectFileService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
delete(
|
|
9
|
+
export declare abstract class ProjectFileService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
10
|
+
saveExisting(file: ProjectFile): Promise<ProjectFile>;
|
|
11
|
+
saveActive(): OptimisticGenericResult<ProjectFile>;
|
|
12
|
+
delete(projectFileId: string): Promise<undefined>;
|
|
12
13
|
refreshStore(projectId: number): Promise<void>;
|
|
13
14
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseApiService } from
|
|
3
|
-
import
|
|
1
|
+
import { OvermapRootState, Payload, Project } from '../../typings';
|
|
2
|
+
import { BaseApiService } from './BaseApiService';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
interface JoinProjectResponse {
|
|
5
6
|
username: string;
|
|
6
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { Offline, OvermapRootState, Payload, Team, User } from '../../typings';
|
|
2
|
+
import { OptimisticModelResult } from '../typings';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
5
6
|
export declare abstract class TeamService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<Team>): OptimisticModelResult<Team>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<Team>>>): OptimisticModelResult<Team>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BaseApiService } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { BaseApiService } from './BaseApiService';
|
|
2
|
+
import { OvermapRootState } from '../../typings';
|
|
3
|
+
import { BaseSDK } from '../base';
|
|
4
|
+
|
|
4
5
|
export declare abstract class UserService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
6
|
refreshStore(projectId: number, organizationId: number): Promise<void>;
|
|
6
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseApiService } from
|
|
4
|
-
import
|
|
1
|
+
import { OptimisticModelResult } from '../typings';
|
|
2
|
+
import { Offline, OvermapRootState, Payload, Workspace } from '../../typings';
|
|
3
|
+
import { BaseApiService } from './BaseApiService';
|
|
4
|
+
import { BaseSDK } from '../base';
|
|
5
|
+
|
|
5
6
|
export declare abstract class WorkspaceService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
7
|
add(payload: Payload<Workspace>): OptimisticModelResult<Workspace>;
|
|
7
8
|
update(payload: Offline<Partial<Payload<Workspace>>>): OptimisticModelResult<Workspace>;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
1
|
+
export * from './JWTAuthService';
|
|
2
|
+
export * from './BaseApiService';
|
|
3
|
+
export * from './CategoryService';
|
|
4
|
+
export * from './AssetService';
|
|
5
|
+
export * from './AssetStageCompletionService';
|
|
6
|
+
export * from './AssetStageService';
|
|
7
|
+
export * from './AssetAttachmentService';
|
|
8
|
+
export * from './AssetTypeService';
|
|
9
|
+
export * from './AssetTypeAttachmentService';
|
|
10
|
+
export * from './IssueCommentService';
|
|
11
|
+
export * from './IssueUpdateService';
|
|
12
|
+
export * from './IssueAttachmentService';
|
|
13
|
+
export * from './IssueService';
|
|
14
|
+
export * from './IssueTypeService';
|
|
15
|
+
export * from './ProjectAccessService';
|
|
16
|
+
export * from './ProjectFileService';
|
|
17
|
+
export * from './ProjectAttachmentService';
|
|
18
|
+
export * from './ProjectService';
|
|
19
|
+
export * from './FormService';
|
|
20
|
+
export * from './FormSubmissionService';
|
|
21
|
+
export * from './WorkspaceService';
|
|
22
|
+
export * from './OrganizationAccessService';
|
|
23
|
+
export * from './FileService';
|
|
24
|
+
export * from './EmailVerificationService';
|
|
25
|
+
export * from './EmailDomainsService';
|
|
26
|
+
export * from './OrganizationService';
|
|
27
|
+
export * from './LicenseService';
|
|
28
|
+
export * from './DocumentService';
|
|
29
|
+
export * from './DocumentAttachmentService';
|
|
30
|
+
export * from './AgentService';
|
|
31
|
+
export * from './TeamService';
|
|
32
|
+
export * from './UserService';
|
|
33
|
+
export * from './GeoImageService';
|
|
34
|
+
export * from './IssueAssociationService';
|
package/dist/sdk/typings.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import request from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { default as request } from 'superagent';
|
|
2
|
+
import { HttpMethod } from '../enums';
|
|
3
|
+
import { BaseState, Created, Model, Stored, Submitted } from '../typings';
|
|
4
|
+
import { DeferredPromise } from '../utils';
|
|
5
|
+
import { GetS3UrlResponse, GetS3UrlSuccessResponse } from './services';
|
|
6
|
+
import { BaseSDK } from './base';
|
|
7
|
+
import { Store } from '@reduxjs/toolkit';
|
|
8
|
+
|
|
9
|
+
export type OvermapSDKConstructor<TState extends BaseState, TSDK extends BaseSDK<TState>> = new (store: Store<TState>) => TSDK;
|
|
9
10
|
export interface TokenPair {
|
|
10
11
|
accessToken: string;
|
|
11
12
|
refreshToken: string;
|
package/dist/store/adapter.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { PayloadAction } from
|
|
2
|
-
import
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { ModelState } from './typings';
|
|
3
|
+
|
|
3
4
|
export interface OvermapModelAdapter<TModel> {
|
|
4
|
-
addOne:
|
|
5
|
-
addMany:
|
|
6
|
-
setOne:
|
|
7
|
-
setMany:
|
|
8
|
-
updateOne:
|
|
9
|
-
updateMany:
|
|
10
|
-
deleteOne:
|
|
11
|
-
deleteMany:
|
|
12
|
-
initialize:
|
|
5
|
+
addOne: (state: ModelState<TModel>, action: PayloadAction<TModel>) => void;
|
|
6
|
+
addMany: (state: ModelState<TModel>, action: PayloadAction<TModel[]>) => void;
|
|
7
|
+
setOne: (state: ModelState<TModel>, action: PayloadAction<TModel>) => void;
|
|
8
|
+
setMany: (state: ModelState<TModel>, action: PayloadAction<TModel[]>) => void;
|
|
9
|
+
updateOne: (state: ModelState<TModel>, action: PayloadAction<TModel>) => void;
|
|
10
|
+
updateMany: (state: ModelState<TModel>, action: PayloadAction<TModel[]>) => void;
|
|
11
|
+
deleteOne: (state: ModelState<TModel>, action: PayloadAction<string>) => void;
|
|
12
|
+
deleteMany: (state: ModelState<TModel>, action: PayloadAction<string[]>) => void;
|
|
13
|
+
initialize: (state: ModelState<TModel>, action: PayloadAction<TModel[]>) => void;
|
|
13
14
|
getInitialState: <TState extends object>(state: TState) => TState & ModelState<TModel>;
|
|
14
15
|
}
|
|
15
16
|
export declare function createModelAdapter<TModel>(computeModelId: (model: TModel) => string): OvermapModelAdapter<TModel>;
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './store';
|
|
2
|
+
export * from './slices';
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { AgentUserConversation, OvermapRootState, OvermapSelector } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
|
|
4
5
|
export type AgentsState = ModelState<AgentUserConversation>;
|
|
5
|
-
export declare const agentsSlice: import(
|
|
6
|
-
initializeConversations:
|
|
6
|
+
export declare const agentsSlice: import('@reduxjs/toolkit').Slice<ModelState<AgentUserConversation>, {
|
|
7
|
+
initializeConversations: (state: ModelState<AgentUserConversation>, action: {
|
|
7
8
|
payload: AgentUserConversation[];
|
|
8
9
|
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
addConversation:
|
|
11
|
+
addConversation: (state: ModelState<AgentUserConversation>, action: {
|
|
11
12
|
payload: AgentUserConversation;
|
|
12
13
|
type: string;
|
|
13
14
|
}) => void;
|
|
14
|
-
setConversation:
|
|
15
|
+
setConversation: (state: ModelState<AgentUserConversation>, action: {
|
|
15
16
|
payload: AgentUserConversation;
|
|
16
17
|
type: string;
|
|
17
18
|
}) => void;
|
|
18
|
-
updateConversation:
|
|
19
|
+
updateConversation: (state: ModelState<AgentUserConversation>, action: {
|
|
19
20
|
payload: AgentUserConversation;
|
|
20
21
|
type: string;
|
|
21
22
|
}) => void;
|
|
22
|
-
}, "agents"
|
|
23
|
-
export declare const initializeConversations: import(
|
|
23
|
+
}, "agents", "agents", import('@reduxjs/toolkit').SliceSelectors<ModelState<AgentUserConversation>>>;
|
|
24
|
+
export declare const initializeConversations: import('@reduxjs/toolkit').ActionCreatorWithPayload<AgentUserConversation[], "agents/initializeConversations">, addConversation: import('@reduxjs/toolkit').ActionCreatorWithPayload<AgentUserConversation, "agents/addConversation">, setConversation: import('@reduxjs/toolkit').ActionCreatorWithPayload<AgentUserConversation, "agents/setConversation">, updateConversation: import('@reduxjs/toolkit').ActionCreatorWithPayload<AgentUserConversation, "agents/updateConversation">;
|
|
24
25
|
export declare const selectConversationMapping: (state: OvermapRootState) => Record<string, AgentUserConversation>;
|
|
25
26
|
export declare const selectConversations: OvermapSelector<AgentUserConversation[]>;
|
|
26
27
|
export declare const selectConversation: (args: string) => (state: OvermapRootState) => AgentUserConversation | undefined;
|
|
@@ -1,46 +1,41 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { ModelState } from '../typings';
|
|
3
|
+
import { AssetAttachment, OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
4
|
+
|
|
4
5
|
export type AssetAttachmentState = ModelState<Stored<AssetAttachment>>;
|
|
5
|
-
export declare const assetAttachmentSlice: import(
|
|
6
|
-
initializeAssetAttachments:
|
|
6
|
+
export declare const assetAttachmentSlice: import('@reduxjs/toolkit').Slice<ModelState<Stored<AssetAttachment>>, {
|
|
7
|
+
initializeAssetAttachments: (state: ModelState<Stored<AssetAttachment>>, action: {
|
|
7
8
|
payload: Stored<AssetAttachment>[];
|
|
8
9
|
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
addAssetAttachment:
|
|
11
|
+
addAssetAttachment: (state: ModelState<Stored<AssetAttachment>>, action: {
|
|
11
12
|
payload: Stored<AssetAttachment>;
|
|
12
13
|
type: string;
|
|
13
14
|
}) => void;
|
|
14
|
-
addAssetAttachments:
|
|
15
|
+
addAssetAttachments: (state: ModelState<Stored<AssetAttachment>>, action: {
|
|
15
16
|
payload: Stored<AssetAttachment>[];
|
|
16
17
|
type: string;
|
|
17
18
|
}) => void;
|
|
18
|
-
setAssetAttachment:
|
|
19
|
+
setAssetAttachment: (state: ModelState<Stored<AssetAttachment>>, action: {
|
|
19
20
|
payload: Stored<AssetAttachment>;
|
|
20
21
|
type: string;
|
|
21
22
|
}) => void;
|
|
22
|
-
setAssetAttachments:
|
|
23
|
+
setAssetAttachments: (state: ModelState<Stored<AssetAttachment>>, action: {
|
|
23
24
|
payload: Stored<AssetAttachment>[];
|
|
24
25
|
type: string;
|
|
25
26
|
}) => void;
|
|
26
|
-
updateAssetAttachment:
|
|
27
|
+
updateAssetAttachment: (state: ModelState<Stored<AssetAttachment>>, action: {
|
|
27
28
|
payload: Stored<AssetAttachment>;
|
|
28
29
|
type: string;
|
|
29
30
|
}) => void;
|
|
30
|
-
updateAssetAttachments:
|
|
31
|
+
updateAssetAttachments: (state: ModelState<Stored<AssetAttachment>>, action: {
|
|
31
32
|
payload: Stored<AssetAttachment>[];
|
|
32
33
|
type: string;
|
|
33
34
|
}) => void;
|
|
34
|
-
deleteAssetAttachment:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
deleteAssetAttachments: <TState_8 extends ModelState<Stored<AssetAttachment>>>(state: TState_8, action: {
|
|
39
|
-
payload: string[];
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
}, "assetAttachments">;
|
|
43
|
-
export declare const initializeAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/initializeAssetAttachments">, addAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>, "assetAttachments/addAssetAttachment">, addAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/addAssetAttachments">, setAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>, "assetAttachments/setAssetAttachment">, setAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/setAssetAttachments">, updateAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>, "assetAttachments/updateAssetAttachment">, updateAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/updateAssetAttachments">, deleteAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetAttachments/deleteAssetAttachment">, deleteAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetAttachments/deleteAssetAttachments">;
|
|
35
|
+
deleteAssetAttachment: (state: ModelState<Stored<AssetAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
36
|
+
deleteAssetAttachments: (state: ModelState<Stored<AssetAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
37
|
+
}, "assetAttachments", "assetAttachments", import('@reduxjs/toolkit').SliceSelectors<ModelState<Stored<AssetAttachment>>>>;
|
|
38
|
+
export declare const initializeAssetAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/initializeAssetAttachments">, addAssetAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>, "assetAttachments/addAssetAttachment">, addAssetAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/addAssetAttachments">, setAssetAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>, "assetAttachments/setAssetAttachment">, setAssetAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/setAssetAttachments">, updateAssetAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>, "assetAttachments/updateAssetAttachment">, updateAssetAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetAttachment>[], "assetAttachments/updateAssetAttachments">, deleteAssetAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetAttachments/deleteAssetAttachment">, deleteAssetAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetAttachments/deleteAssetAttachments">;
|
|
44
39
|
export declare const selectAssetAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<AssetAttachment>>;
|
|
45
40
|
export declare const selectAssetAttachments: OvermapSelector<Stored<AssetAttachment>[]>;
|
|
46
41
|
export declare const selectAssetAttachmentById: OvermapSelectorWithArgs<string, Stored<AssetAttachment> | undefined>;
|
|
@@ -1,51 +1,62 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { Asset, OvermapRootState, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
|
|
4
5
|
export type AssetState = ModelState<Stored<Asset>>;
|
|
5
|
-
export declare const assetSlice: import(
|
|
6
|
-
initializeAssets:
|
|
6
|
+
export declare const assetSlice: import('@reduxjs/toolkit').Slice<AssetState, {
|
|
7
|
+
initializeAssets: (state: ModelState<Stored<Asset>>, action: {
|
|
7
8
|
payload: Stored<Asset>[];
|
|
8
9
|
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
addAsset:
|
|
11
|
+
addAsset: (state: ModelState<Stored<Asset>>, action: {
|
|
11
12
|
payload: Stored<Asset>;
|
|
12
13
|
type: string;
|
|
13
14
|
}) => void;
|
|
14
|
-
addAssets:
|
|
15
|
+
addAssets: (state: ModelState<Stored<Asset>>, action: {
|
|
15
16
|
payload: Stored<Asset>[];
|
|
16
17
|
type: string;
|
|
17
18
|
}) => void;
|
|
18
|
-
setAsset:
|
|
19
|
+
setAsset: (state: ModelState<Stored<Asset>>, action: {
|
|
19
20
|
payload: Stored<Asset>;
|
|
20
21
|
type: string;
|
|
21
22
|
}) => void;
|
|
22
|
-
setAssets:
|
|
23
|
+
setAssets: (state: ModelState<Stored<Asset>>, action: {
|
|
23
24
|
payload: Stored<Asset>[];
|
|
24
25
|
type: string;
|
|
25
26
|
}) => void;
|
|
26
|
-
updateAsset:
|
|
27
|
+
updateAsset: (state: ModelState<Stored<Asset>>, action: {
|
|
27
28
|
payload: Stored<Asset>;
|
|
28
29
|
type: string;
|
|
29
30
|
}) => void;
|
|
30
|
-
updateAssets:
|
|
31
|
+
updateAssets: (state: ModelState<Stored<Asset>>, action: {
|
|
31
32
|
payload: Stored<Asset>[];
|
|
32
33
|
type: string;
|
|
33
34
|
}) => void;
|
|
34
|
-
deleteAsset:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
deleteAssets: <TState_8 extends ModelState<Stored<Asset>>>(state: TState_8, action: {
|
|
39
|
-
payload: string[];
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
}, "assets">;
|
|
43
|
-
export declare const initializeAssets: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Asset>[], "assets/initializeAssets">, addAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Asset>, "assets/addAsset">, addAssets: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Asset>[], "assets/addAssets">, updateAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Asset>, "assets/updateAsset">, updateAssets: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Asset>[], "assets/updateAssets">, deleteAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assets/deleteAsset">, deleteAssets: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assets/deleteAssets">, setAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Asset>, "assets/setAsset">, setAssets: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Asset>[], "assets/setAssets">;
|
|
35
|
+
deleteAsset: (state: ModelState<Stored<Asset>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
36
|
+
deleteAssets: (state: ModelState<Stored<Asset>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
37
|
+
}, "assets", "assets", import('@reduxjs/toolkit').SliceSelectors<AssetState>>;
|
|
38
|
+
export declare const initializeAssets: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Asset>[], "assets/initializeAssets">, addAsset: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Asset>, "assets/addAsset">, addAssets: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Asset>[], "assets/addAssets">, updateAsset: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Asset>, "assets/updateAsset">, updateAssets: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Asset>[], "assets/updateAssets">, deleteAsset: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assets/deleteAsset">, deleteAssets: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assets/deleteAssets">, setAsset: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Asset>, "assets/setAsset">, setAssets: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Asset>[], "assets/setAssets">;
|
|
44
39
|
export declare const selectAssetsMapping: (state: OvermapRootState) => Record<string, Stored<Asset>>;
|
|
45
|
-
export declare const selectAssets: ((state: OvermapRootState) => Stored<Asset>[]) &
|
|
46
|
-
clearCache: () => void;
|
|
47
|
-
}> & {
|
|
40
|
+
export declare const selectAssets: ((state: OvermapRootState) => Stored<Asset>[]) & {
|
|
48
41
|
clearCache: () => void;
|
|
42
|
+
resultsCount: () => number;
|
|
43
|
+
resetResultsCount: () => void;
|
|
44
|
+
} & {
|
|
45
|
+
resultFunc: (resultFuncArgs_0: Record<string, Stored<Asset>>) => Stored<Asset>[];
|
|
46
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Stored<Asset>>) => Stored<Asset>[]) & {
|
|
47
|
+
clearCache: () => void;
|
|
48
|
+
resultsCount: () => number;
|
|
49
|
+
resetResultsCount: () => void;
|
|
50
|
+
};
|
|
51
|
+
lastResult: () => Stored<Asset>[];
|
|
52
|
+
dependencies: [(state: OvermapRootState) => Record<string, Stored<Asset>>];
|
|
53
|
+
recomputations: () => number;
|
|
54
|
+
resetRecomputations: () => void;
|
|
55
|
+
dependencyRecomputations: () => number;
|
|
56
|
+
resetDependencyRecomputations: () => void;
|
|
57
|
+
} & {
|
|
58
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
59
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
49
60
|
};
|
|
50
61
|
export declare const selectAssetsOfAssetType: OvermapSelectorWithArgs<string, Asset[]>;
|
|
51
62
|
export declare const selectAssetById: OvermapSelectorWithArgs<string, Asset | undefined>;
|