@overmap-ai/core 1.0.74-procedures.3 → 1.0.74-updates.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/overmap-core.js +3596 -3582
- package/dist/overmap-core.umd.cjs +8 -8
- package/dist/sdk/services/AgentService.d.ts +6 -6
- package/dist/sdk/services/AssetAttachmentService.d.ts +10 -10
- package/dist/sdk/services/AssetProcedureFieldValuesAttachmentService.d.ts +4 -4
- package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +7 -7
- package/dist/sdk/services/AssetProcedureFieldsAttachmentService.d.ts +3 -3
- package/dist/sdk/services/AssetProcedureFieldsService.d.ts +2 -2
- package/dist/sdk/services/AssetProcedureInstanceService.d.ts +4 -4
- package/dist/sdk/services/AssetProcedureService.d.ts +4 -4
- 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 +6 -6
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +10 -10
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +4 -4
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +6 -6
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +3 -3
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +2 -2
- package/dist/sdk/services/AssetTypeService.d.ts +4 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +12 -12
- package/dist/sdk/services/CategoryService.d.ts +4 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +10 -10
- package/dist/sdk/services/DocumentService.d.ts +5 -5
- package/dist/sdk/services/EmailDomainsService.d.ts +3 -3
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +3 -3
- package/dist/sdk/services/FormRevisionService.d.ts +2 -2
- package/dist/sdk/services/FormService.d.ts +3 -3
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +4 -4
- package/dist/sdk/services/FormSubmissionService.d.ts +4 -4
- package/dist/sdk/services/GeoImageService.d.ts +5 -5
- package/dist/sdk/services/IssueAssociationService.d.ts +3 -3
- package/dist/sdk/services/IssueAttachmentService.d.ts +10 -10
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +10 -10
- package/dist/sdk/services/IssueCommentService.d.ts +4 -4
- package/dist/sdk/services/IssueService.d.ts +4 -4
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +10 -10
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +4 -4
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +4 -4
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +3 -3
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeService.d.ts +4 -4
- package/dist/sdk/services/IssueUpdateService.d.ts +2 -2
- package/dist/sdk/services/LicenseService.d.ts +2 -2
- package/dist/sdk/services/OrganizationAccessService.d.ts +2 -2
- 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 +12 -12
- package/dist/sdk/services/ProjectFileService.d.ts +3 -3
- package/dist/sdk/services/ProjectService.d.ts +5 -5
- package/dist/sdk/services/TeamService.d.ts +7 -7
- package/dist/sdk/services/UserService.d.ts +1 -1
- package/dist/store/slices/assetProcedureSlice.d.ts +2 -2
- package/dist/store/slices/assetStageSlice.d.ts +1 -1
- package/dist/store/slices/assetTypeSlice.d.ts +1 -1
- package/dist/store/slices/documentSlice.d.ts +2 -2
- package/dist/store/slices/emailDomainsSlice.d.ts +1 -1
- package/dist/store/slices/formSlice.d.ts +1 -1
- package/dist/store/slices/geoImageSlice.d.ts +1 -1
- package/dist/store/slices/issueTypeSlice.d.ts +3 -3
- package/dist/store/slices/licenseSlice.d.ts +2 -2
- package/dist/store/slices/organizationAccessSlice.d.ts +1 -1
- package/dist/store/slices/organizationSlice.d.ts +36 -7
- package/dist/store/slices/projectAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/projectSlice.d.ts +33 -14
- package/dist/store/slices/teamSlice.d.ts +2 -2
- package/dist/store/slices/userSlice.d.ts +36 -8
- package/dist/typings/models/agents.d.ts +2 -2
- package/dist/typings/models/assets.d.ts +20 -20
- package/dist/typings/models/attachments.d.ts +3 -3
- package/dist/typings/models/base.d.ts +7 -7
- package/dist/typings/models/categories.d.ts +3 -3
- package/dist/typings/models/documents.d.ts +4 -4
- package/dist/typings/models/emailDomain.d.ts +3 -3
- package/dist/typings/models/emailVerification.d.ts +5 -5
- package/dist/typings/models/forms.d.ts +8 -8
- package/dist/typings/models/geo.d.ts +4 -1
- package/dist/typings/models/geoImages.d.ts +4 -3
- package/dist/typings/models/index.d.ts +0 -1
- package/dist/typings/models/issueTypes.d.ts +3 -3
- package/dist/typings/models/issues.d.ts +15 -15
- package/dist/typings/models/license.d.ts +3 -3
- package/dist/typings/models/organizations.d.ts +8 -3
- package/dist/typings/models/projects.d.ts +10 -5
- package/dist/typings/models/teams.d.ts +5 -5
- package/dist/typings/models/users.d.ts +3 -3
- package/dist/utils/offline.d.ts +3 -3
- package/dist/utils/utils.d.ts +2 -2
- package/package.json +1 -1
- package/dist/typings/models/access.d.ts +0 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
-
import { License, OvermapSelector, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
2
|
+
import { License, OvermapSelector, OvermapSelectorWithArgs, Project, Stored } from '../../typings';
|
|
3
3
|
import { ModelState } from '../typings';
|
|
4
4
|
export type LicenseState = ModelState<Stored<License>>;
|
|
5
5
|
export declare const licenseSlice: import('@reduxjs/toolkit').Slice<LicenseState, {
|
|
@@ -19,7 +19,7 @@ export declare const licenseSlice: import('@reduxjs/toolkit').Slice<LicenseState
|
|
|
19
19
|
export declare const initializeLicences: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<License>[], "license/initializeLicences">, addLicenses: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<License>[], "license/addLicenses">, updateLicense: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<License>, "license/updateLicense">;
|
|
20
20
|
export declare const selectLicenses: OvermapSelector<Record<string, License>>;
|
|
21
21
|
export declare const selectLicense: OvermapSelectorWithArgs<string, License | undefined>;
|
|
22
|
-
export declare const selectLicenseForProject: OvermapSelectorWithArgs<
|
|
22
|
+
export declare const selectLicenseForProject: OvermapSelectorWithArgs<Project["uuid"], License | undefined>;
|
|
23
23
|
export declare const selectActiveStatusLicenses: OvermapSelector<License[]>;
|
|
24
24
|
export declare const selectLicensesForProjectsMapping: OvermapSelector<Record<number, License>>;
|
|
25
25
|
export declare const licenseReducer: Reducer<LicenseState>;
|
|
@@ -18,5 +18,5 @@ export declare const selectOrganizationAccesses: (state: OvermapRootState) => Re
|
|
|
18
18
|
export declare const selectOrganizationAccessById: OvermapSelectorWithArgs<string, OrganizationAccess | undefined>;
|
|
19
19
|
export declare const selectActiveOrganizationAccess: OvermapSelector<OrganizationAccess | null>;
|
|
20
20
|
export declare const selectOrganizationAccessForUser: OvermapSelectorWithArgs<User, OrganizationAccess | undefined>;
|
|
21
|
-
export declare const selectOrganizationAccessUserMapping: (state: OvermapRootState) => Record<
|
|
21
|
+
export declare const selectOrganizationAccessUserMapping: (state: OvermapRootState) => Record<string, Stored<OrganizationAccess>>;
|
|
22
22
|
export declare const organizationAccessReducer: Reducer<OrganizationAccessState>;
|
|
@@ -1,12 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
2
|
import { License, Organization, OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Project, User } from '../../typings';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
export interface OrganizationState extends ModelState<Organization> {
|
|
5
5
|
}
|
|
6
6
|
export declare const organizationSlice: import('@reduxjs/toolkit').Slice<OrganizationState, {
|
|
7
|
-
|
|
7
|
+
initializeOrganizations: (state: ModelState<Organization>, action: {
|
|
8
|
+
payload: Organization[];
|
|
9
|
+
type: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
setOrganizations: (state: ModelState<Organization>, action: {
|
|
12
|
+
payload: Organization[];
|
|
13
|
+
type: string;
|
|
14
|
+
}) => void;
|
|
15
|
+
setOrganization: (state: ModelState<Organization>, action: {
|
|
16
|
+
payload: Organization;
|
|
17
|
+
type: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
addOrganizations: (state: ModelState<Organization>, action: {
|
|
20
|
+
payload: Organization[];
|
|
21
|
+
type: string;
|
|
22
|
+
}) => void;
|
|
23
|
+
addOrganization: (state: ModelState<Organization>, action: {
|
|
24
|
+
payload: Organization;
|
|
25
|
+
type: string;
|
|
26
|
+
}) => void;
|
|
27
|
+
updateOrganizations: (state: ModelState<Organization>, action: {
|
|
28
|
+
payload: Organization[];
|
|
29
|
+
type: string;
|
|
30
|
+
}) => void;
|
|
31
|
+
updateOrganization: (state: ModelState<Organization>, action: {
|
|
32
|
+
payload: Organization;
|
|
33
|
+
type: string;
|
|
34
|
+
}) => void;
|
|
35
|
+
deleteOrganization: (state: ModelState<Organization>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
36
|
+
deleteOrganizations: (state: ModelState<Organization>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
8
37
|
}, "organizations", "organizations", import('@reduxjs/toolkit').SliceSelectors<OrganizationState>>;
|
|
9
|
-
export declare const setOrganizations: import('@reduxjs/toolkit').ActionCreatorWithPayload<Organization[], "organizations/setOrganizations">;
|
|
38
|
+
export declare const initializeOrganizations: import('@reduxjs/toolkit').ActionCreatorWithPayload<Organization[], "organizations/initializeOrganizations">, setOrganizations: import('@reduxjs/toolkit').ActionCreatorWithPayload<Organization[], "organizations/setOrganizations">, setOrganization: import('@reduxjs/toolkit').ActionCreatorWithPayload<Organization, "organizations/setOrganization">, addOrganizations: import('@reduxjs/toolkit').ActionCreatorWithPayload<Organization[], "organizations/addOrganizations">, addOrganization: import('@reduxjs/toolkit').ActionCreatorWithPayload<Organization, "organizations/addOrganization">, updateOrganizations: import('@reduxjs/toolkit').ActionCreatorWithPayload<Organization[], "organizations/updateOrganizations">, updateOrganization: import('@reduxjs/toolkit').ActionCreatorWithPayload<Organization, "organizations/updateOrganization">, deleteOrganization: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "organizations/deleteOrganization">, deleteOrganizations: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "organizations/deleteOrganizations">;
|
|
10
39
|
export declare const selectOrganizationsMapping: OvermapSelector<Record<number, Organization>>;
|
|
11
40
|
export declare const selectOrganizations: ((state: OvermapRootState) => Organization[]) & {
|
|
12
41
|
clearCache: () => void;
|
|
@@ -31,9 +60,9 @@ export declare const selectOrganizations: ((state: OvermapRootState) => Organiza
|
|
|
31
60
|
};
|
|
32
61
|
export declare const selectOrganizationById: OvermapSelectorWithArgs<number, Organization | undefined>;
|
|
33
62
|
export declare const selectOrganizationsWithAccess: OvermapSelector<Organization[]>;
|
|
34
|
-
export declare const selectOrganizationUsersIds: OvermapSelector<
|
|
63
|
+
export declare const selectOrganizationUsersIds: OvermapSelector<User["uuid"][]>;
|
|
35
64
|
export declare const selectProjectsOfOrganization: OvermapSelectorWithArgs<number, Project[]>;
|
|
36
65
|
export declare const selectLicensesOfOrganization: OvermapSelectorWithArgs<number, License[]>;
|
|
37
|
-
export declare const selectOrganizationUsersAsMapping: OvermapSelector<Record<
|
|
66
|
+
export declare const selectOrganizationUsersAsMapping: OvermapSelector<Record<User["uuid"], User>>;
|
|
38
67
|
export declare const selectSortedOrganizationUsers: OvermapSelector<User[]>;
|
|
39
68
|
export declare const organizationReducer: Reducer<OrganizationState>;
|
|
@@ -38,5 +38,5 @@ export declare const initializeProjectAttachments: import('@reduxjs/toolkit').Ac
|
|
|
38
38
|
export declare const selectProjectAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<ProjectAttachment>>;
|
|
39
39
|
export declare const selectAllProjectAttachments: OvermapSelector<Stored<ProjectAttachment>[]>;
|
|
40
40
|
export declare const selectProjectAttachmentById: OvermapSelectorWithArgs<string, ProjectAttachment | undefined>;
|
|
41
|
-
export declare const selectAttachmentsOfProject: (args:
|
|
41
|
+
export declare const selectAttachmentsOfProject: (args: string) => (state: OvermapRootState) => Stored<ProjectAttachment>[];
|
|
42
42
|
export declare const projectAttachmentReducer: Reducer<ProjectAttachmentState>;
|
|
@@ -1,38 +1,57 @@
|
|
|
1
|
-
import { Reducer } from '@reduxjs/toolkit';
|
|
1
|
+
import { PayloadAction, Reducer } from '@reduxjs/toolkit';
|
|
2
2
|
import { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Project, User } from '../../typings';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
export interface ProjectState extends ModelState<Project> {
|
|
5
5
|
}
|
|
6
6
|
export declare const projectSlice: import('@reduxjs/toolkit').Slice<ProjectState, {
|
|
7
|
-
|
|
7
|
+
initializeProjects: (state: ModelState<Project>, action: {
|
|
8
8
|
payload: Project[];
|
|
9
|
+
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
|
|
11
|
+
setProjects: (state: ModelState<Project>, action: {
|
|
12
|
+
payload: Project[];
|
|
13
|
+
type: string;
|
|
14
|
+
}) => void;
|
|
15
|
+
setProject: (state: ModelState<Project>, action: {
|
|
11
16
|
payload: Project;
|
|
17
|
+
type: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
addProjects: (state: ModelState<Project>, action: {
|
|
20
|
+
payload: Project[];
|
|
21
|
+
type: string;
|
|
12
22
|
}) => void;
|
|
13
|
-
|
|
23
|
+
addProject: (state: ModelState<Project>, action: {
|
|
14
24
|
payload: Project;
|
|
25
|
+
type: string;
|
|
15
26
|
}) => void;
|
|
16
|
-
|
|
17
|
-
payload:
|
|
27
|
+
updateProjects: (state: ModelState<Project>, action: {
|
|
28
|
+
payload: Project[];
|
|
29
|
+
type: string;
|
|
30
|
+
}) => void;
|
|
31
|
+
updateProject: (state: ModelState<Project>, action: {
|
|
32
|
+
payload: Project;
|
|
33
|
+
type: string;
|
|
18
34
|
}) => void;
|
|
35
|
+
deleteProject: (state: ModelState<Project>, action: PayloadAction<string>) => void;
|
|
36
|
+
deleteProjects: (state: ModelState<Project>, action: PayloadAction<string[]>) => void;
|
|
37
|
+
acceptProjectInvite: (state: import('immer').WritableDraft<ProjectState>, action: PayloadAction<Project["uuid"]>) => void;
|
|
19
38
|
}, "projects", "projects", import('@reduxjs/toolkit').SliceSelectors<ProjectState>>;
|
|
20
|
-
export declare const setProjects: import('@reduxjs/toolkit').ActionCreatorWithPayload<Project[], "projects/setProjects">, updateProject: import('@reduxjs/toolkit').ActionCreatorWithPayload<Project, "projects/updateProject">, deleteProject: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
39
|
+
export declare const initializeProjects: import('@reduxjs/toolkit').ActionCreatorWithPayload<Project[], "projects/initializeProjects">, setProjects: import('@reduxjs/toolkit').ActionCreatorWithPayload<Project[], "projects/setProjects">, setProject: import('@reduxjs/toolkit').ActionCreatorWithPayload<Project, "projects/setProject">, addProjects: import('@reduxjs/toolkit').ActionCreatorWithPayload<Project[], "projects/addProjects">, addProject: import('@reduxjs/toolkit').ActionCreatorWithPayload<Project, "projects/addProject">, updateProjects: import('@reduxjs/toolkit').ActionCreatorWithPayload<Project[], "projects/updateProjects">, updateProject: import('@reduxjs/toolkit').ActionCreatorWithPayload<Project, "projects/updateProject">, deleteProject: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "projects/deleteProject">, deleteProjects: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "projects/deleteProjects">, acceptProjectInvite: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "projects/acceptProjectInvite">;
|
|
21
40
|
export declare const projectReducer: Reducer<ProjectState>;
|
|
22
|
-
export declare const selectProjectMapping: OvermapSelector<Record<
|
|
41
|
+
export declare const selectProjectMapping: OvermapSelector<Record<Project["uuid"], Project>>;
|
|
23
42
|
export declare const selectProjects: ((state: OvermapRootState) => Project[]) & {
|
|
24
43
|
clearCache: () => void;
|
|
25
44
|
resultsCount: () => number;
|
|
26
45
|
resetResultsCount: () => void;
|
|
27
46
|
} & {
|
|
28
|
-
resultFunc: (resultFuncArgs_0: Record<
|
|
29
|
-
memoizedResultFunc: ((resultFuncArgs_0: Record<
|
|
47
|
+
resultFunc: (resultFuncArgs_0: Record<string, Project>) => Project[];
|
|
48
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Project>) => Project[]) & {
|
|
30
49
|
clearCache: () => void;
|
|
31
50
|
resultsCount: () => number;
|
|
32
51
|
resetResultsCount: () => void;
|
|
33
52
|
};
|
|
34
53
|
lastResult: () => Project[];
|
|
35
|
-
dependencies: [OvermapSelector<Record<
|
|
54
|
+
dependencies: [OvermapSelector<Record<string, Project>>];
|
|
36
55
|
recomputations: () => number;
|
|
37
56
|
resetRecomputations: () => void;
|
|
38
57
|
dependencyRecomputations: () => number;
|
|
@@ -42,6 +61,6 @@ export declare const selectProjects: ((state: OvermapRootState) => Project[]) &
|
|
|
42
61
|
memoize: typeof import('reselect').weakMapMemoize;
|
|
43
62
|
};
|
|
44
63
|
export declare const selectProjectById: OvermapSelectorWithArgs<number, Project | undefined>;
|
|
45
|
-
export declare const selectProjectUsersIds: OvermapSelector<
|
|
64
|
+
export declare const selectProjectUsersIds: OvermapSelector<User["uuid"][]>;
|
|
46
65
|
export declare const selectProjectUsersAsMapping: OvermapSelector<Record<number, User>>;
|
|
47
66
|
export declare const selectSortedProjectUsers: OvermapSelector<User[]>;
|
|
@@ -26,6 +26,6 @@ export declare const selectTeamsMapping: OvermapSelector<TeamState["instances"]>
|
|
|
26
26
|
export declare const selectTeams: OvermapSelector<Stored<Team>[]>;
|
|
27
27
|
export declare const selectTeamById: OvermapSelectorWithArgs<string, Stored<Team> | undefined>;
|
|
28
28
|
export declare const selectTeamsByIds: OvermapSelectorWithArgs<string[], Stored<Team>[]>;
|
|
29
|
-
export declare const selectTeamsOfOrganization: OvermapSelectorWithArgs<Organization["
|
|
30
|
-
export declare const selectTeamsOfUser: OvermapSelectorWithArgs<User["
|
|
29
|
+
export declare const selectTeamsOfOrganization: OvermapSelectorWithArgs<Organization["uuid"], Stored<Team>[]>;
|
|
30
|
+
export declare const selectTeamsOfUser: OvermapSelectorWithArgs<User["uuid"], Stored<Team>[]>;
|
|
31
31
|
export declare const teamReducer: Reducer<TeamState>;
|
|
@@ -1,25 +1,53 @@
|
|
|
1
1
|
import { PayloadAction, Reducer } from '@reduxjs/toolkit';
|
|
2
2
|
import { OvermapRootState, OvermapSelectorWithArgs, User } from '../../typings';
|
|
3
|
-
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
export interface UserState extends ModelState<User> {
|
|
4
5
|
currentUser: User | null;
|
|
5
|
-
users: Record<number, User>;
|
|
6
6
|
}
|
|
7
7
|
export declare const userSlice: import('@reduxjs/toolkit').Slice<UserState, {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
initializeUsers: (state: ModelState<User>, action: {
|
|
9
|
+
payload: User[];
|
|
10
|
+
type: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
setUsers: (state: ModelState<User>, action: {
|
|
13
|
+
payload: User[];
|
|
14
|
+
type: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
setUser: (state: ModelState<User>, action: {
|
|
17
|
+
payload: User;
|
|
18
|
+
type: string;
|
|
19
|
+
}) => void;
|
|
20
|
+
addUsers: (state: ModelState<User>, action: {
|
|
21
|
+
payload: User[];
|
|
22
|
+
type: string;
|
|
23
|
+
}) => void;
|
|
24
|
+
addUser: (state: ModelState<User>, action: {
|
|
25
|
+
payload: User;
|
|
26
|
+
type: string;
|
|
27
|
+
}) => void;
|
|
28
|
+
updateUsers: (state: ModelState<User>, action: {
|
|
29
|
+
payload: User[];
|
|
30
|
+
type: string;
|
|
31
|
+
}) => void;
|
|
32
|
+
updateUser: (state: ModelState<User>, action: {
|
|
33
|
+
payload: User;
|
|
34
|
+
type: string;
|
|
35
|
+
}) => void;
|
|
36
|
+
deleteUser: (state: ModelState<User>, action: PayloadAction<string>) => void;
|
|
37
|
+
deleteUsers: (state: ModelState<User>, action: PayloadAction<string[]>) => void;
|
|
38
|
+
removeUser: (state: ModelState<User>, action: PayloadAction<string>) => void;
|
|
10
39
|
setCurrentUser: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<User | null>) => void;
|
|
11
40
|
setProfilePicture: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<{
|
|
12
41
|
file?: string;
|
|
13
42
|
file_sha1?: string;
|
|
14
43
|
}>) => void;
|
|
15
|
-
removeUser: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<number>) => void;
|
|
16
44
|
}, "users", "users", import('@reduxjs/toolkit').SliceSelectors<UserState>>;
|
|
17
|
-
export declare const setCurrentUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<User | null, "users/setCurrentUser">, setProfilePicture: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
45
|
+
export declare const initializeUsers: import('@reduxjs/toolkit').ActionCreatorWithPayload<User[], "users/initializeUsers">, setUsers: import('@reduxjs/toolkit').ActionCreatorWithPayload<User[], "users/setUsers">, setUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<User, "users/setUser">, addUsers: import('@reduxjs/toolkit').ActionCreatorWithPayload<User[], "users/addUsers">, addUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<User, "users/addUser">, updateUsers: import('@reduxjs/toolkit').ActionCreatorWithPayload<User[], "users/updateUsers">, updateUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<User, "users/updateUser">, deleteUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "users/deleteUser">, deleteUsers: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "users/deleteUsers">, removeUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "users/removeUser">, setCurrentUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<User | null, "users/setCurrentUser">, setProfilePicture: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
18
46
|
file?: string;
|
|
19
47
|
file_sha1?: string;
|
|
20
|
-
}, "users/setProfilePicture"
|
|
48
|
+
}, "users/setProfilePicture">;
|
|
21
49
|
export declare const userReducer: Reducer<UserState>;
|
|
22
50
|
export declare const selectCurrentUser: (state: OvermapRootState) => User | null;
|
|
23
|
-
export declare const selectUsersMapping: (state: OvermapRootState) => Record<
|
|
51
|
+
export declare const selectUsersMapping: (state: OvermapRootState) => Record<string, User>;
|
|
24
52
|
export declare const selectUserById: OvermapSelectorWithArgs<number, User | undefined>;
|
|
25
53
|
export declare const selectUsersByIds: (args: number[]) => (state: OvermapRootState) => User[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSONContent } from '@tiptap/core';
|
|
2
|
-
import {
|
|
2
|
+
import { OptionalFileModel, TimestampedModel, UUID } from './base';
|
|
3
3
|
export interface AgentProfile extends OptionalFileModel {
|
|
4
4
|
/**
|
|
5
5
|
* The name of the agent.
|
|
@@ -10,7 +10,7 @@ export interface AgentProfile extends OptionalFileModel {
|
|
|
10
10
|
*/
|
|
11
11
|
description: string;
|
|
12
12
|
}
|
|
13
|
-
export interface AgentUserConversation extends
|
|
13
|
+
export interface AgentUserConversation extends UUID<TimestampedModel> {
|
|
14
14
|
profile?: AgentProfile | null;
|
|
15
15
|
tiptap_content?: JSONContent[];
|
|
16
16
|
}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
-
import { ColorModel, CreatedByModel, IconModel, IndexedModel,
|
|
2
|
+
import { ColorModel, CreatedByModel, IconModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
4
|
-
import { CanvasMarkableModel,
|
|
5
|
-
export interface Asset extends
|
|
4
|
+
import { CanvasMarkableModel, GeoJsonModel } from './geo';
|
|
5
|
+
export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, GeoJsonModel, CanvasMarkableModel, IndexedModel {
|
|
6
6
|
asset_type: string;
|
|
7
7
|
label: string | null;
|
|
8
8
|
description?: string;
|
|
9
|
-
project:
|
|
9
|
+
project: string;
|
|
10
10
|
}
|
|
11
|
-
export interface AssetType extends
|
|
12
|
-
organization:
|
|
11
|
+
export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel {
|
|
12
|
+
organization: string;
|
|
13
13
|
name?: string;
|
|
14
14
|
description?: string;
|
|
15
15
|
}
|
|
16
|
-
export interface AssetProcedure extends
|
|
17
|
-
organization:
|
|
16
|
+
export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel {
|
|
17
|
+
organization: string;
|
|
18
18
|
name?: string | null;
|
|
19
19
|
description?: string | null;
|
|
20
20
|
}
|
|
21
|
-
export interface AssetProcedureInstance extends
|
|
21
|
+
export interface AssetProcedureInstance extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IndexedModel {
|
|
22
22
|
asset_procedure: string;
|
|
23
23
|
asset_type: string;
|
|
24
|
-
project:
|
|
24
|
+
project: string;
|
|
25
25
|
}
|
|
26
|
-
export interface AssetStage extends
|
|
26
|
+
export interface AssetStage extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
|
|
27
27
|
asset_procedure: string;
|
|
28
28
|
name?: string | null;
|
|
29
29
|
description?: string | null;
|
|
30
30
|
priority: number;
|
|
31
31
|
}
|
|
32
|
-
export interface AssetStageCompletion extends
|
|
32
|
+
export interface AssetStageCompletion extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
33
33
|
asset: string;
|
|
34
34
|
stage: string;
|
|
35
35
|
asset_procedure_instance: string;
|
|
36
36
|
}
|
|
37
37
|
export type CompletedStagesMapping = Record<string, Record<string, string>>;
|
|
38
|
-
export interface AssetTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends
|
|
38
|
+
export interface AssetTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
39
39
|
asset_type: string;
|
|
40
40
|
}
|
|
41
|
-
export interface AssetTypeFieldsAttachment extends
|
|
41
|
+
export interface AssetTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
42
42
|
fields_revision: string;
|
|
43
43
|
}
|
|
44
|
-
export interface AssetTypeFieldValues extends
|
|
44
|
+
export interface AssetTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
45
45
|
fields_revision: string;
|
|
46
46
|
asset: string;
|
|
47
47
|
}
|
|
48
|
-
export interface AssetTypeFieldValuesAttachment extends
|
|
48
|
+
export interface AssetTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
49
49
|
field_values: string;
|
|
50
50
|
}
|
|
51
|
-
export interface AssetProcedureFields<TFields extends BaseSerializedObject = ISerializedField> extends
|
|
51
|
+
export interface AssetProcedureFields<TFields extends BaseSerializedObject = ISerializedField> extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
52
52
|
asset_procedure: string;
|
|
53
53
|
}
|
|
54
|
-
export interface AssetProcedureFieldsAttachment extends
|
|
54
|
+
export interface AssetProcedureFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
55
55
|
fields_revision: string;
|
|
56
56
|
}
|
|
57
|
-
export interface AssetProcedureFieldValues extends
|
|
57
|
+
export interface AssetProcedureFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
58
58
|
fields_revision: string;
|
|
59
59
|
asset_procedure_instance: string;
|
|
60
60
|
asset: string;
|
|
61
61
|
}
|
|
62
|
-
export interface AssetProcedureFieldValuesAttachment extends
|
|
62
|
+
export interface AssetProcedureFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
63
63
|
field_values: string;
|
|
64
64
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileModel, FileWithNameModel } from '../files';
|
|
2
|
-
import { CreatedByModel,
|
|
3
|
-
export interface Attachment extends
|
|
2
|
+
import { CreatedByModel, SubmittedAtModel, UUIDModel } from './base';
|
|
3
|
+
export interface Attachment extends UUIDModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
|
|
4
4
|
description?: string;
|
|
5
5
|
file_type: string;
|
|
6
6
|
}
|
|
@@ -20,7 +20,7 @@ export interface AssetTypeAttachment extends Attachment {
|
|
|
20
20
|
asset_type: string;
|
|
21
21
|
}
|
|
22
22
|
export interface ProjectAttachment extends Attachment {
|
|
23
|
-
project:
|
|
23
|
+
project: string;
|
|
24
24
|
}
|
|
25
25
|
export interface DocumentAttachment extends Attachment {
|
|
26
26
|
document: string;
|
|
@@ -3,8 +3,8 @@ import { CommonAutoFields } from './issues';
|
|
|
3
3
|
import { User } from './users';
|
|
4
4
|
export interface Model {
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
7
|
-
|
|
6
|
+
export interface UUIDModel extends Model {
|
|
7
|
+
uuid: string;
|
|
8
8
|
}
|
|
9
9
|
export interface SubmittedAtModel extends Model {
|
|
10
10
|
submitted_at: string;
|
|
@@ -13,11 +13,11 @@ export interface TimestampedModel extends Model {
|
|
|
13
13
|
created_at: string;
|
|
14
14
|
updated_at: string;
|
|
15
15
|
}
|
|
16
|
-
export type
|
|
17
|
-
|
|
16
|
+
export type UUID<T> = T & {
|
|
17
|
+
uuid: string;
|
|
18
18
|
};
|
|
19
|
-
export type
|
|
20
|
-
export type Payload<TModel> = Omit<TModel, CommonAutoFields | "
|
|
19
|
+
export type UUIDModelMapping<TModel extends UUIDModel> = Record<TModel["uuid"], TModel>;
|
|
20
|
+
export type Payload<TModel> = Omit<TModel, CommonAutoFields | "uuid" | "id" | "submitted_at" | "created_by">;
|
|
21
21
|
export interface FileObject {
|
|
22
22
|
file_sha1: string;
|
|
23
23
|
file: string;
|
|
@@ -38,7 +38,7 @@ export interface ColorModel {
|
|
|
38
38
|
color: CSSColor;
|
|
39
39
|
}
|
|
40
40
|
export interface CreatedByModel {
|
|
41
|
-
created_by?: User["
|
|
41
|
+
created_by?: User["uuid"] | null;
|
|
42
42
|
}
|
|
43
43
|
export interface IndexedModel {
|
|
44
44
|
index: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CSSColor } from '../colors';
|
|
2
|
-
import { CreatedByModel,
|
|
3
|
-
export interface Category extends
|
|
2
|
+
import { CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
|
+
export interface Category extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
4
4
|
name: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
color: CSSColor;
|
|
7
|
-
project:
|
|
7
|
+
project: string;
|
|
8
8
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ColorModel, CreatedByModel, IconModel,
|
|
2
|
-
export interface Document extends
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
|
+
export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
|
|
3
3
|
title: string | null;
|
|
4
4
|
description: string | null;
|
|
5
5
|
content: string | null;
|
|
6
6
|
parent_document: string | null;
|
|
7
7
|
children_documents: string[];
|
|
8
|
-
project?:
|
|
9
|
-
organization?:
|
|
8
|
+
project?: string;
|
|
9
|
+
organization?: string;
|
|
10
10
|
}
|
|
11
11
|
export type MovePosition = "left" | "right" | "left-child" | "right-child";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UUIDModel } from './base';
|
|
2
2
|
import { RegistrationPayload } from './users';
|
|
3
3
|
export type EmailVerificationPayload = undefined | RegistrationPayload | Omit<RegistrationPayload, "username" | "email">;
|
|
4
4
|
export interface EmailVerificationReturn {
|
|
5
5
|
username?: string;
|
|
6
|
-
project?:
|
|
6
|
+
project?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare enum VerificationCodeType {
|
|
9
9
|
USER_REGISTRATION = 0,
|
|
@@ -13,10 +13,10 @@ export declare enum VerificationCodeType {
|
|
|
13
13
|
ADD_EMAIL_DOMAIN = 8,
|
|
14
14
|
RESET_PASSWORD = 10
|
|
15
15
|
}
|
|
16
|
-
export interface VerificationCode extends
|
|
16
|
+
export interface VerificationCode extends UUIDModel {
|
|
17
17
|
verification_code: string;
|
|
18
18
|
verification_type: VerificationCodeType;
|
|
19
19
|
organization?: number;
|
|
20
|
-
project?:
|
|
21
|
-
user?:
|
|
20
|
+
project?: string;
|
|
21
|
+
user?: string;
|
|
22
22
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
-
import { CreatedByModel, IndexedModel,
|
|
2
|
+
import { CreatedByModel, IndexedModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
4
|
-
export interface Form extends
|
|
5
|
-
organization:
|
|
4
|
+
export interface Form extends UUIDModel, SubmittedAtModel, CreatedByModel {
|
|
5
|
+
organization: string;
|
|
6
6
|
}
|
|
7
|
-
export interface FormRevision<TFields extends BaseSerializedObject = ISerializedField> extends
|
|
7
|
+
export interface FormRevision<TFields extends BaseSerializedObject = ISerializedField> extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
8
8
|
form: string;
|
|
9
9
|
title: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
}
|
|
12
12
|
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
13
|
-
export interface FormSubmission extends
|
|
13
|
+
export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
|
|
14
14
|
form_revision: string;
|
|
15
|
-
project:
|
|
15
|
+
project: string;
|
|
16
16
|
issue?: string | null;
|
|
17
17
|
asset?: string | null;
|
|
18
18
|
}
|
|
19
|
-
export interface FormSubmissionAttachment extends
|
|
19
|
+
export interface FormSubmissionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
|
|
20
20
|
form_submission: string;
|
|
21
21
|
}
|
|
22
|
-
export interface FormRevisionAttachment extends
|
|
22
|
+
export interface FormRevisionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
23
23
|
form_revision: string;
|
|
24
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MultiPoint, Point } from 'geojson';
|
|
1
|
+
import { Geometry, MultiPoint, Point } from 'geojson';
|
|
2
2
|
export interface BoundableModel {
|
|
3
3
|
bounds?: MultiPoint;
|
|
4
4
|
}
|
|
@@ -11,3 +11,6 @@ export interface MarkableModel {
|
|
|
11
11
|
export interface CanvasMarkableModel {
|
|
12
12
|
canvas_marker?: Point;
|
|
13
13
|
}
|
|
14
|
+
export interface GeoJsonModel {
|
|
15
|
+
geo_json?: Geometry;
|
|
16
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FileWithNameModel } from '../files';
|
|
2
|
-
import { CreatedByModel, IndexedModel,
|
|
2
|
+
import { CreatedByModel, IndexedModel, Payload, SubmittedAtModel, UUIDModel } from './base';
|
|
3
3
|
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
4
|
-
|
|
4
|
+
import { Project } from './projects';
|
|
5
|
+
export interface GeoImage extends UUIDModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel, IndexedModel {
|
|
5
6
|
title?: string;
|
|
6
7
|
description?: string;
|
|
7
|
-
project:
|
|
8
|
+
project: Project["uuid"];
|
|
8
9
|
direction?: number;
|
|
9
10
|
original_date?: string;
|
|
10
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ColorModel, CreatedByModel, IconModel,
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, UUIDModel } from './base';
|
|
2
2
|
import { Organization } from './organizations';
|
|
3
|
-
export interface IssueType extends
|
|
3
|
+
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
|
|
4
4
|
name?: string;
|
|
5
5
|
description?: string;
|
|
6
|
-
organization: Organization["
|
|
6
|
+
organization: Organization["uuid"];
|
|
7
7
|
}
|