@overmap-ai/core 1.0.74-gcs.2 → 1.0.74-geojson-layers.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/overmap-core.js +3559 -2978
  2. package/dist/overmap-core.umd.cjs +10 -10
  3. package/dist/sdk/services/AssetAttachmentService.d.ts +1 -1
  4. package/dist/sdk/services/AssetProcedureAttachmentService.d.ts +39 -0
  5. package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +3 -3
  6. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +1 -1
  7. package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +3 -3
  8. package/dist/sdk/services/BaseAttachmentService.d.ts +1 -1
  9. package/dist/sdk/services/DocumentAttachmentService.d.ts +1 -1
  10. package/dist/sdk/services/EmailDomainsService.d.ts +8 -0
  11. package/dist/sdk/services/FormService.d.ts +0 -9
  12. package/dist/sdk/services/FormSubmissionService.d.ts +0 -5
  13. package/dist/sdk/services/GeoJsonFeatureService.d.ts +10 -0
  14. package/dist/sdk/services/GeoJsonLayerService.d.ts +10 -0
  15. package/dist/sdk/services/IssueAttachmentService.d.ts +1 -1
  16. package/dist/sdk/services/IssueCommentAttachmentService.d.ts +1 -1
  17. package/dist/sdk/services/IssueTypeAttachmentService.d.ts +1 -1
  18. package/dist/sdk/services/LicenseService.d.ts +13 -0
  19. package/dist/sdk/services/OrganizationAccessService.d.ts +0 -3
  20. package/dist/sdk/services/ProjectAccessService.d.ts +0 -3
  21. package/dist/sdk/services/ProjectAttachmentService.d.ts +1 -1
  22. package/dist/sdk/services/ProjectService.d.ts +1 -1
  23. package/dist/sdk/services/TeamService.d.ts +3 -3
  24. package/dist/sdk/services/index.d.ts +5 -0
  25. package/dist/store/adapters/modelAdapter.d.ts +12 -12
  26. package/dist/store/slices/agentsSlice.d.ts +5 -5
  27. package/dist/store/slices/assetAttachmentSlice.d.ts +16 -10
  28. package/dist/store/slices/assetProcedureAttachmentSlice.d.ts +47 -0
  29. package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +16 -10
  30. package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +16 -10
  31. package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +16 -10
  32. package/dist/store/slices/assetProcedureFieldsSlice.d.ts +30 -24
  33. package/dist/store/slices/assetProcedureInstanceSlice.d.ts +16 -10
  34. package/dist/store/slices/assetProcedureSlice.d.ts +16 -10
  35. package/dist/store/slices/assetSlice.d.ts +16 -10
  36. package/dist/store/slices/assetStageCompletionSlice.d.ts +14 -8
  37. package/dist/store/slices/assetStageSlice.d.ts +16 -10
  38. package/dist/store/slices/assetTypeAttachmentSlice.d.ts +16 -10
  39. package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +16 -10
  40. package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +16 -10
  41. package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +16 -10
  42. package/dist/store/slices/assetTypeFieldsSlice.d.ts +30 -24
  43. package/dist/store/slices/assetTypeSlice.d.ts +16 -10
  44. package/dist/store/slices/categorySlice.d.ts +8 -5
  45. package/dist/store/slices/documentAttachmentSlice.d.ts +16 -10
  46. package/dist/store/slices/emailDomainsSlice.d.ts +42 -0
  47. package/dist/store/slices/formRevisionAttachmentSlice.d.ts +16 -10
  48. package/dist/store/slices/formRevisionSlice.d.ts +24 -18
  49. package/dist/store/slices/formSlice.d.ts +10 -7
  50. package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +16 -10
  51. package/dist/store/slices/formSubmissionSlice.d.ts +16 -10
  52. package/dist/store/slices/geoImageSlice.d.ts +16 -10
  53. package/dist/store/slices/geoJsonFeatureSlice.d.ts +68 -0
  54. package/dist/store/slices/geoJsonLayerSlice.d.ts +68 -0
  55. package/dist/store/slices/index.d.ts +5 -0
  56. package/dist/store/slices/issueAssociationSlice.d.ts +16 -10
  57. package/dist/store/slices/issueAttachmentSlice.d.ts +16 -10
  58. package/dist/store/slices/issueCommentAttachmentSlice.d.ts +16 -10
  59. package/dist/store/slices/issueCommentSlice.d.ts +13 -7
  60. package/dist/store/slices/issueSlice.d.ts +13 -7
  61. package/dist/store/slices/issueTypeAttachmentSlice.d.ts +16 -10
  62. package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +16 -10
  63. package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +16 -10
  64. package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +16 -10
  65. package/dist/store/slices/issueTypeFieldsSlice.d.ts +30 -24
  66. package/dist/store/slices/issueTypeSlice.d.ts +9 -6
  67. package/dist/store/slices/issueUpdateSlice.d.ts +13 -7
  68. package/dist/store/slices/licenseSlice.d.ts +24 -0
  69. package/dist/store/slices/organizationAccessSlice.d.ts +7 -4
  70. package/dist/store/slices/organizationSlice.d.ts +20 -13
  71. package/dist/store/slices/projectAccessSlice.d.ts +11 -5
  72. package/dist/store/slices/projectAttachmentSlice.d.ts +16 -10
  73. package/dist/store/slices/projectFileSlice.d.ts +16 -10
  74. package/dist/store/slices/projectSlice.d.ts +18 -12
  75. package/dist/store/slices/teamSlice.d.ts +10 -7
  76. package/dist/store/slices/userSlice.d.ts +31 -15
  77. package/dist/store/store.d.ts +5 -0
  78. package/dist/store/typings.d.ts +2 -2
  79. package/dist/typings/models/assets.d.ts +3 -5
  80. package/dist/typings/models/attachments.d.ts +3 -0
  81. package/dist/typings/models/base.d.ts +56 -12
  82. package/dist/typings/models/fields.d.ts +4 -4
  83. package/dist/typings/models/forms.d.ts +1 -2
  84. package/dist/typings/models/geo.d.ts +11 -12
  85. package/dist/typings/models/geoImages.d.ts +1 -2
  86. package/dist/typings/models/index.d.ts +1 -0
  87. package/dist/typings/models/issues.d.ts +5 -45
  88. package/dist/typings/models/license.d.ts +13 -0
  89. package/dist/typings/models/organizations.d.ts +2 -1
  90. package/dist/typings/models/projects.d.ts +5 -5
  91. package/dist/typings/models/store.d.ts +6 -1
  92. package/dist/typings/models/teams.d.ts +2 -2
  93. package/dist/typings/models/users.d.ts +7 -8
  94. package/package.json +3 -3
@@ -1,41 +1,47 @@
1
1
  import { MultiPoint } from 'geojson';
2
2
  import { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, ProjectFile, Stored } from '../../typings';
3
3
  import { ModelState } from '../typings';
4
- export interface ProjectFileState extends ModelState<Stored<ProjectFile>> {
4
+ export interface ProjectFileState extends ModelState<ProjectFile["uuid"], Stored<ProjectFile>> {
5
5
  activeProjectFileId: string | null;
6
6
  isImportingProjectFile: boolean;
7
7
  }
8
8
  export declare const projectFileSlice: import('@reduxjs/toolkit').Slice<ProjectFileState, {
9
- initializeProjectFiles: (state: ModelState<Stored<ProjectFile>>, action: {
9
+ initializeProjectFiles: (state: ModelState<string, Stored<ProjectFile>>, action: {
10
10
  payload: Stored<ProjectFile>[];
11
11
  type: string;
12
12
  }) => void;
13
- setProjectFile: (state: ModelState<Stored<ProjectFile>>, action: {
13
+ setProjectFile: (state: ModelState<string, Stored<ProjectFile>>, action: {
14
14
  payload: Stored<ProjectFile>;
15
15
  type: string;
16
16
  }) => void;
17
- setProjectFiles: (state: ModelState<Stored<ProjectFile>>, action: {
17
+ setProjectFiles: (state: ModelState<string, Stored<ProjectFile>>, action: {
18
18
  payload: Stored<ProjectFile>[];
19
19
  type: string;
20
20
  }) => void;
21
- addProjectFile: (state: ModelState<Stored<ProjectFile>>, action: {
21
+ addProjectFile: (state: ModelState<string, Stored<ProjectFile>>, action: {
22
22
  payload: Stored<ProjectFile>;
23
23
  type: string;
24
24
  }) => void;
25
- addProjectFiles: (state: ModelState<Stored<ProjectFile>>, action: {
25
+ addProjectFiles: (state: ModelState<string, Stored<ProjectFile>>, action: {
26
26
  payload: Stored<ProjectFile>[];
27
27
  type: string;
28
28
  }) => void;
29
- updateProjectFile: (state: ModelState<Stored<ProjectFile>>, action: {
29
+ updateProjectFile: (state: ModelState<string, Stored<ProjectFile>>, action: {
30
30
  payload: Stored<ProjectFile>;
31
31
  type: string;
32
32
  }) => void;
33
- updateProjectFiles: (state: ModelState<Stored<ProjectFile>>, action: {
33
+ updateProjectFiles: (state: ModelState<string, Stored<ProjectFile>>, action: {
34
34
  payload: Stored<ProjectFile>[];
35
35
  type: string;
36
36
  }) => void;
37
- deleteProjectFile: (state: ModelState<Stored<ProjectFile>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
38
- deleteProjectFiles: (state: ModelState<Stored<ProjectFile>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
37
+ deleteProjectFile: (state: ModelState<string, Stored<ProjectFile>>, action: {
38
+ payload: string;
39
+ type: string;
40
+ }) => void;
41
+ deleteProjectFiles: (state: ModelState<string, Stored<ProjectFile>>, action: {
42
+ payload: string[];
43
+ type: string;
44
+ }) => void;
39
45
  setIsImportingProjectFile: (state: import('immer').WritableDraft<ProjectFileState>, action: {
40
46
  payload: boolean;
41
47
  }) => void;
@@ -1,39 +1,45 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
2
  import { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Project, User } from '../../typings';
3
3
  import { ModelState } from '../typings';
4
- export interface ProjectState extends ModelState<Project> {
4
+ export interface ProjectState extends ModelState<Project["uuid"], Project> {
5
5
  }
6
6
  export declare const projectSlice: import('@reduxjs/toolkit').Slice<ProjectState, {
7
- initializeProjects: (state: ModelState<Project>, action: {
7
+ initializeProjects: (state: ModelState<string, Project>, action: {
8
8
  payload: Project[];
9
9
  type: string;
10
10
  }) => void;
11
- setProjects: (state: ModelState<Project>, action: {
11
+ setProjects: (state: ModelState<string, Project>, action: {
12
12
  payload: Project[];
13
13
  type: string;
14
14
  }) => void;
15
- setProject: (state: ModelState<Project>, action: {
15
+ setProject: (state: ModelState<string, Project>, action: {
16
16
  payload: Project;
17
17
  type: string;
18
18
  }) => void;
19
- addProjects: (state: ModelState<Project>, action: {
19
+ addProjects: (state: ModelState<string, Project>, action: {
20
20
  payload: Project[];
21
21
  type: string;
22
22
  }) => void;
23
- addProject: (state: ModelState<Project>, action: {
23
+ addProject: (state: ModelState<string, Project>, action: {
24
24
  payload: Project;
25
25
  type: string;
26
26
  }) => void;
27
- updateProjects: (state: ModelState<Project>, action: {
27
+ updateProjects: (state: ModelState<string, Project>, action: {
28
28
  payload: Project[];
29
29
  type: string;
30
30
  }) => void;
31
- updateProject: (state: ModelState<Project>, action: {
31
+ updateProject: (state: ModelState<string, Project>, action: {
32
32
  payload: Project;
33
33
  type: string;
34
34
  }) => void;
35
- deleteProject: (state: ModelState<Project>, action: PayloadAction<string>) => void;
36
- deleteProjects: (state: ModelState<Project>, action: PayloadAction<string[]>) => void;
35
+ deleteProject: (state: ModelState<string, Project>, action: {
36
+ payload: string;
37
+ type: string;
38
+ }) => void;
39
+ deleteProjects: (state: ModelState<string, Project>, action: {
40
+ payload: string[];
41
+ type: string;
42
+ }) => void;
37
43
  acceptProjectInvite: (state: import('immer').WritableDraft<ProjectState>, action: PayloadAction<Project["uuid"]>) => void;
38
44
  }, "projects", "projects", import('@reduxjs/toolkit').SliceSelectors<ProjectState>>;
39
45
  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">;
@@ -61,6 +67,6 @@ export declare const selectProjects: ((state: OvermapRootState) => Project[]) &
61
67
  memoize: typeof import('reselect').weakMapMemoize;
62
68
  };
63
69
  export declare const selectProjectById: OvermapSelectorWithArgs<Project["uuid"], Project | undefined>;
64
- export declare const selectProjectUsersIds: OvermapSelector<User["uuid"][]>;
65
- export declare const selectProjectUsersAsMapping: OvermapSelector<Record<User["uuid"], User>>;
70
+ export declare const selectProjectUsersIds: OvermapSelector<User["id"][]>;
71
+ export declare const selectProjectUsersAsMapping: OvermapSelector<Record<User["id"], User>>;
66
72
  export declare const selectSortedProjectUsers: OvermapSelector<User[]>;
@@ -1,24 +1,27 @@
1
1
  import { Organization, OvermapSelector, OvermapSelectorWithArgs, Stored, Team, User } from '../../typings';
2
2
  import { ModelState } from '../typings';
3
- export type TeamState = ModelState<Stored<Team>>;
3
+ export type TeamState = ModelState<Team["uuid"], Stored<Team>>;
4
4
  export declare const teamSlice: import('@reduxjs/toolkit').Slice<TeamState, {
5
- setTeam: (state: ModelState<Stored<Team>>, action: {
5
+ setTeam: (state: ModelState<string, Stored<Team>>, action: {
6
6
  payload: Stored<Team>;
7
7
  type: string;
8
8
  }) => void;
9
- initializeTeams: (state: ModelState<Stored<Team>>, action: {
9
+ initializeTeams: (state: ModelState<string, Stored<Team>>, action: {
10
10
  payload: Stored<Team>[];
11
11
  type: string;
12
12
  }) => void;
13
- addTeam: (state: ModelState<Stored<Team>>, action: {
13
+ addTeam: (state: ModelState<string, Stored<Team>>, action: {
14
14
  payload: Stored<Team>;
15
15
  type: string;
16
16
  }) => void;
17
- updateTeam: (state: ModelState<Stored<Team>>, action: {
17
+ updateTeam: (state: ModelState<string, Stored<Team>>, action: {
18
18
  payload: Stored<Team>;
19
19
  type: string;
20
20
  }) => void;
21
- deleteTeam: (state: ModelState<Stored<Team>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
21
+ deleteTeam: (state: ModelState<string, Stored<Team>>, action: {
22
+ payload: string;
23
+ type: string;
24
+ }) => void;
22
25
  }, "teams", "teams", import('@reduxjs/toolkit').SliceSelectors<TeamState>>;
23
26
  export declare const setTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>, "teams/setTeam">, initializeTeams: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>[], "teams/initializeTeams">, addTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>, "teams/addTeam">, updateTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>, "teams/updateTeam">, deleteTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "teams/deleteTeam">;
24
27
  export declare const selectTeamsMapping: OvermapSelector<TeamState["instances"]>;
@@ -26,5 +29,5 @@ export declare const selectTeams: OvermapSelector<Stored<Team>[]>;
26
29
  export declare const selectTeamById: OvermapSelectorWithArgs<Team["uuid"], Stored<Team> | undefined>;
27
30
  export declare const selectTeamsByIds: OvermapSelectorWithArgs<Team["uuid"][], Stored<Team>[]>;
28
31
  export declare const selectTeamsOfOrganization: OvermapSelectorWithArgs<Organization["uuid"], Stored<Team>[]>;
29
- export declare const selectTeamsOfUser: OvermapSelectorWithArgs<User["uuid"], Stored<Team>[]>;
32
+ export declare const selectTeamsOfUser: OvermapSelectorWithArgs<User["id"], Stored<Team>[]>;
30
33
  export declare const teamReducer: import('redux').Reducer<TeamState>;
@@ -1,46 +1,62 @@
1
1
  import { PayloadAction } 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
+ export interface UserState extends ModelState<User["id"], User> {
5
5
  currentUser: User | null;
6
6
  }
7
7
  export declare const userSlice: import('@reduxjs/toolkit').Slice<UserState, {
8
- initializeUsers: (state: ModelState<User>, action: {
8
+ initializeUsers: (state: ModelState<number, User>, action: {
9
9
  payload: User[];
10
10
  type: string;
11
11
  }) => void;
12
- setUsers: (state: ModelState<User>, action: {
12
+ setUsers: (state: ModelState<number, User>, action: {
13
13
  payload: User[];
14
14
  type: string;
15
15
  }) => void;
16
- setUser: (state: ModelState<User>, action: {
16
+ setUser: (state: ModelState<number, User>, action: {
17
17
  payload: User;
18
18
  type: string;
19
19
  }) => void;
20
- addUsers: (state: ModelState<User>, action: {
20
+ addUsers: (state: ModelState<number, User>, action: {
21
21
  payload: User[];
22
22
  type: string;
23
23
  }) => void;
24
- addUser: (state: ModelState<User>, action: {
24
+ addUser: (state: ModelState<number, User>, action: {
25
25
  payload: User;
26
26
  type: string;
27
27
  }) => void;
28
- updateUsers: (state: ModelState<User>, action: {
28
+ updateUsers: (state: ModelState<number, User>, action: {
29
29
  payload: User[];
30
30
  type: string;
31
31
  }) => void;
32
- updateUser: (state: ModelState<User>, action: {
32
+ updateUser: (state: ModelState<number, User>, action: {
33
33
  payload: User;
34
34
  type: string;
35
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;
36
+ deleteUser: (state: ModelState<number, User>, action: {
37
+ payload: number;
38
+ type: string;
39
+ }) => void;
40
+ deleteUsers: (state: ModelState<number, User>, action: {
41
+ payload: number[];
42
+ type: string;
43
+ }) => void;
44
+ removeUser: (state: ModelState<number, User>, action: {
45
+ payload: number;
46
+ type: string;
47
+ }) => void;
39
48
  setCurrentUser: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<User | null>) => void;
49
+ setProfilePicture: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<{
50
+ file?: string;
51
+ file_sha1?: string;
52
+ }>) => void;
40
53
  }, "users", "users", import('@reduxjs/toolkit').SliceSelectors<UserState>>;
41
- 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">;
54
+ 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<number, "users/deleteUser">, deleteUsers: import('@reduxjs/toolkit').ActionCreatorWithPayload<number[], "users/deleteUsers">, removeUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "users/removeUser">, setCurrentUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<User | null, "users/setCurrentUser">, setProfilePicture: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
55
+ file?: string;
56
+ file_sha1?: string;
57
+ }, "users/setProfilePicture">;
42
58
  export declare const userReducer: import('redux').Reducer<UserState>;
43
59
  export declare const selectCurrentUser: (state: OvermapRootState) => User | null;
44
- export declare const selectUsersMapping: (state: OvermapRootState) => Record<string, User>;
45
- export declare const selectUserById: OvermapSelectorWithArgs<User["uuid"], User | undefined>;
46
- export declare const selectUsersByIds: (args: string[]) => (state: OvermapRootState) => User[];
60
+ export declare const selectUsersMapping: (state: OvermapRootState) => Record<number, User>;
61
+ export declare const selectUserById: OvermapSelectorWithArgs<User["id"], User | undefined>;
62
+ export declare const selectUsersByIds: (args: number[]) => (state: OvermapRootState) => User[];
@@ -33,6 +33,8 @@ export declare const overmapReducers: {
33
33
  formSubmissionAttachmentReducer: Reducer<import('./slices').FormSubmissionAttachmentState>;
34
34
  formSubmissionReducer: Reducer<import('./slices').FormSubmissionState>;
35
35
  userReducer: Reducer<import('./slices').UserState>;
36
+ emailDomainsReducer: Reducer<import('./slices').EmailDomainState>;
37
+ licenseReducer: Reducer<import('./slices').LicenseState>;
36
38
  documentsReducer: Reducer<import('./slices').DocumentState>;
37
39
  documentAttachmentReducer: Reducer<import('./slices').DocumentAttachmentState>;
38
40
  teamReducer: Reducer<import('./slices').TeamState>;
@@ -41,6 +43,8 @@ export declare const overmapReducers: {
41
43
  issueCommentAttachmentReducer: Reducer<import('./slices').IssueCommentAttachmentState>;
42
44
  issueUpdateReducer: Reducer<import('./slices').IssueUpdateState>;
43
45
  geoImageReducer: Reducer<import('./slices').GeoImageSliceState>;
46
+ geoJsonFeatureReducer: Reducer<import('./slices').GeoJsonFeatureState>;
47
+ geoJsonLayerReducer: Reducer<import('./slices').GeoJsonLayerState>;
44
48
  issueAssociationReducer: Reducer<import('./slices').IssueAssociationSliceState>;
45
49
  issueTypeFieldsReducer: Reducer<import('./slices').IssueTypeFieldsState>;
46
50
  issueTypeFieldValuesReducer: Reducer<import('./slices').IssueTypeFieldValuesState>;
@@ -56,6 +60,7 @@ export declare const overmapReducers: {
56
60
  assetProcedureFieldValuesReducer: Reducer<import('./slices').AssetProcedureFieldValuesState>;
57
61
  assetProcedureFieldsAttachmentReducer: Reducer<import('./slices').AssetProcedureFieldsAttachmentState>;
58
62
  assetProcedureFieldValuesAttachmentReducer: Reducer<import('./slices').AssetProcedureFieldValuesAttachmentState>;
63
+ assetProcedureAttachmentReducer: Reducer<import('./slices').AssetProcedureAttachmentState>;
59
64
  };
60
65
  export declare const resetStore = "RESET";
61
66
  export declare const overmapRootReducer: Reducer<OvermapRootState>;
@@ -1,5 +1,5 @@
1
- export interface ModelState<TModel> {
2
- instances: Record<string, TModel>;
1
+ export interface ModelState<TId extends number | string | symbol, TModel> {
2
+ instances: Record<TId, TModel>;
3
3
  }
4
4
  export interface SelectionState<TSelection> {
5
5
  selection: TSelection[];
@@ -1,7 +1,5 @@
1
- import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
2
- import { ColorModel, CreatedByModel, IconModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
1
+ import { CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
2
  import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
4
- import { CanvasMarkableModel, MarkableModel } from './geo';
5
3
  export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
6
4
  asset_type: string;
7
5
  label: string | null;
@@ -35,7 +33,7 @@ export interface AssetStageCompletion extends UUIDModel, TimestampedModel, Submi
35
33
  asset_procedure_instance: string;
36
34
  }
37
35
  export type CompletedStagesMapping = Record<string, Record<string, string>>;
38
- export interface AssetTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
36
+ export interface AssetTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
39
37
  asset_type: string;
40
38
  }
41
39
  export interface AssetTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
@@ -48,7 +46,7 @@ export interface AssetTypeFieldValues extends UUIDModel, SubmittedAtModel, Times
48
46
  export interface AssetTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
49
47
  field_values: string;
50
48
  }
51
- export interface AssetProcedureFields<TFields extends BaseSerializedObject = ISerializedField> extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
49
+ export interface AssetProcedureFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
52
50
  asset_procedure: string;
53
51
  }
54
52
  export interface AssetProcedureFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
@@ -19,6 +19,9 @@ export interface AssetAttachment extends Attachment {
19
19
  export interface AssetTypeAttachment extends Attachment {
20
20
  asset_type: string;
21
21
  }
22
+ export interface AssetProcedureAttachment extends Attachment {
23
+ asset_procedure: string;
24
+ }
22
25
  export interface ProjectAttachment extends Attachment {
23
26
  project: string;
24
27
  }
@@ -1,9 +1,50 @@
1
1
  import { IconType } from '@overmap-ai/blocks';
2
+ import { MultiPoint, Point } from 'geojson';
3
+ import { COMMON_AUTO_FIELDS } from '../../utils';
2
4
  import { CSSColor } from '../colors';
3
- import { CommonAutoFields } from './issues';
4
5
  import { User } from './users';
6
+ export type UUID<T> = T & {
7
+ uuid: string;
8
+ };
9
+ export type UUIDModelMapping<TModel extends UUIDModel> = Record<TModel["uuid"], TModel>;
10
+ type FilteredKeys<T> = {
11
+ [P in keyof T]: T[P] extends never ? never : P;
12
+ }[keyof T];
13
+ type ExcludeNeverFields<O> = {
14
+ [K in FilteredKeys<O>]: O[K];
15
+ };
16
+ type PropertyUndefined<T> = {
17
+ [P in keyof T]?: T[P];
18
+ };
19
+ export type CommonAutoFields = (typeof COMMON_AUTO_FIELDS)[number];
20
+ /**
21
+ * Represents a model instance that has been submitted to the backend. Some properties (depending on which model, but in
22
+ * all cases, the `offline_id`) are guaranteed to be set.
23
+ */
24
+ export type Submitted<TModel> = Omit<TModel, CommonAutoFields> & PropertyUndefined<ExcludeNeverFields<{
25
+ created_at: "created_at" extends keyof TModel ? undefined : never;
26
+ updated_at: "updated_at" extends keyof TModel ? undefined : never;
27
+ index: "index" extends keyof TModel ? undefined : never;
28
+ revision: "revision" extends keyof TModel ? undefined : never;
29
+ }>>;
30
+ /**
31
+ * Represents a model instance that has been submitted to the backend, accepted, then downloaded. Created models
32
+ * typically have additional properties that are only known once it has been processed and accepted by the API, such as
33
+ * the `created_at` timestamp, which is the time at which the data was written to the database.
34
+ */
35
+ export type Created<TModel> = TModel;
36
+ /**
37
+ * Model instances that are stored in the Redux store can be already-created (and will likely be gotten with the initial
38
+ * data load), or to-be-created. In the former case, you will get a `Created<TModel>`. In the latter case, you will get
39
+ * a `Submitted<TModel>`.
40
+ */
41
+ export type Stored<TModel> = Created<TModel> | Submitted<TModel>;
42
+ export type Payload<TModel> = Omit<TModel, CommonAutoFields | "uuid" | "id" | "submitted_at" | "created_by">;
5
43
  export interface Model {
6
44
  }
45
+ export interface IdModel extends Model {
46
+ id: number;
47
+ }
7
48
  export interface UUIDModel extends Model {
8
49
  uuid: string;
9
50
  }
@@ -14,16 +55,6 @@ export interface TimestampedModel extends Model {
14
55
  created_at: string;
15
56
  updated_at: string;
16
57
  }
17
- export type UUID<T> = T & {
18
- uuid: string;
19
- };
20
- export type UUIDModelMapping<TModel extends UUIDModel> = Record<TModel["uuid"], TModel>;
21
- export type Payload<TModel> = Omit<TModel, CommonAutoFields | "uuid" | "id" | "submitted_at" | "created_by">;
22
- export interface FileObject {
23
- file_sha1: string;
24
- file: string;
25
- objectURL?: string;
26
- }
27
58
  export interface OptionalFileModel {
28
59
  file_sha1?: string | null;
29
60
  file?: string | null;
@@ -39,8 +70,21 @@ export interface ColorModel {
39
70
  color: CSSColor;
40
71
  }
41
72
  export interface CreatedByModel {
42
- created_by?: User["uuid"] | null;
73
+ created_by?: User["id"] | null;
43
74
  }
44
75
  export interface IndexedModel {
45
76
  index: number;
46
77
  }
78
+ export interface BoundableModel {
79
+ bounds?: MultiPoint;
80
+ }
81
+ export interface CanvasBoundableModel {
82
+ canvas_bounds?: MultiPoint;
83
+ }
84
+ export interface MarkableModel {
85
+ geo_marker?: Point;
86
+ }
87
+ export interface CanvasMarkableModel {
88
+ canvas_marker?: Point;
89
+ }
90
+ export {};
@@ -1,12 +1,12 @@
1
- import { BaseSerializedObject, FieldValue, ISerializedField } from '@overmap-ai/forms';
1
+ import { SerializedFieldSection, SerializedFieldValues } from '@overmap-ai/forms';
2
2
  import { FileWithNameModel } from '../files';
3
- export interface FieldsModel<TFields extends BaseSerializedObject = ISerializedField> {
4
- fields: TFields[];
3
+ export interface FieldsModel {
4
+ fields: SerializedFieldSection[];
5
5
  revision: number;
6
6
  }
7
7
  export interface FieldValuesModel {
8
8
  published_at?: string | null;
9
- values: Record<string, FieldValue>;
9
+ values: SerializedFieldValues;
10
10
  }
11
11
  export interface FieldsAttachmentModel extends FileWithNameModel {
12
12
  field_identifier: string;
@@ -1,10 +1,9 @@
1
- import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
2
1
  import { CreatedByModel, IndexedModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
2
  import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
4
3
  export interface Form extends UUIDModel, SubmittedAtModel, CreatedByModel {
5
4
  organization: string;
6
5
  }
7
- export interface FormRevision<TFields extends BaseSerializedObject = ISerializedField> extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
6
+ export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
8
7
  form: string;
9
8
  title: string;
10
9
  description?: string;
@@ -1,13 +1,12 @@
1
- import { MultiPoint, Point } from 'geojson';
2
- export interface BoundableModel {
3
- bounds?: MultiPoint;
4
- }
5
- export interface CanvasBoundableModel {
6
- canvas_bounds?: MultiPoint;
7
- }
8
- export interface MarkableModel {
9
- geo_marker?: Point;
10
- }
11
- export interface CanvasMarkableModel {
12
- canvas_marker?: Point;
1
+ import { Geometry } from 'geojson';
2
+ import { CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
+ import { Project } from './projects';
4
+ export interface GeoJsonLayer extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
5
+ name?: string | null;
6
+ project: Project["uuid"];
7
+ }
8
+ export interface GeoJsonFeature extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
9
+ geojson_layer: GeoJsonLayer["uuid"];
10
+ properties: object;
11
+ geometry: Geometry;
13
12
  }
@@ -1,6 +1,5 @@
1
1
  import { FileWithNameModel } from '../files';
2
- import { CreatedByModel, IndexedModel, Payload, SubmittedAtModel, UUIDModel } from './base';
3
- import { CanvasMarkableModel, MarkableModel } from './geo';
2
+ import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, Payload, SubmittedAtModel, UUIDModel } from './base';
4
3
  import { Project } from './projects';
5
4
  export interface GeoImage extends UUIDModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel, IndexedModel {
6
5
  title?: string;
@@ -12,6 +12,7 @@ export * from './geo';
12
12
  export * from './geoImages';
13
13
  export * from './issues';
14
14
  export * from './issueTypes';
15
+ export * from './license';
15
16
  export * from './organizations';
16
17
  export * from './projects';
17
18
  export * from './store';
@@ -1,53 +1,14 @@
1
- import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
2
1
  import { IssuePriority, IssueStatus, IssueUpdateChange } from '../../enums';
3
- import { COMMON_AUTO_FIELDS } from '../../utils';
4
2
  import { CSSColor } from '../colors';
5
- import { CreatedByModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
+ import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
6
4
  import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
7
- import { CanvasMarkableModel, MarkableModel } from './geo';
8
5
  import { User } from './users';
9
- type FilteredKeys<T> = {
10
- [P in keyof T]: T[P] extends never ? never : P;
11
- }[keyof T];
12
- type ExcludeNeverFields<O> = {
13
- [K in FilteredKeys<O>]: O[K];
14
- };
15
- type PropertyUndefined<T> = {
16
- [P in keyof T]?: T[P];
17
- };
18
- export type CommonAutoFields = (typeof COMMON_AUTO_FIELDS)[number];
19
- /**
20
- * Represents a model instance that has been submitted to the backend. Some properties (depending on which model, but in
21
- * all cases, the `offline_id`) are guaranteed to be set.
22
- */
23
- export type Submitted<TModel> = Omit<TModel, CommonAutoFields> & PropertyUndefined<ExcludeNeverFields<{
24
- created_at: "created_at" extends keyof TModel ? undefined : never;
25
- updated_at: "updated_at" extends keyof TModel ? undefined : never;
26
- index: "index" extends keyof TModel ? undefined : never;
27
- revision: "revision" extends keyof TModel ? undefined : never;
28
- }>>;
29
- /**
30
- * Represents a model instance that has been submitted to the backend, accepted, then downloaded. Created models
31
- * typically have additional properties that are only known once it has been processed and accepted by the API, such as
32
- * the `created_at` timestamp, which is the time at which the data was written to the database.
33
- */
34
- export type Created<TModel> = TModel;
35
- /**
36
- * Model instances that are stored in the Redux store can be already-created (and will likely be gotten with the initial
37
- * data load), or to-be-created. In the former case, you will get a `Created<TModel>`. In the latter case, you will get
38
- * a `Submitted<TModel>`.
39
- */
40
- export type Stored<TModel> = Created<TModel> | Submitted<TModel>;
41
- /**
42
- * Represents the properties you can always expect on any object representing an issue. These are the minimal details
43
- * required when creating an issue.
44
- */
45
6
  export interface Issue extends UUIDModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
46
7
  title?: string | null;
47
8
  description?: string | null;
48
9
  priority: IssuePriority;
49
10
  status: IssueStatus;
50
- assigned_to?: string | null;
11
+ assigned_to?: User["id"] | null;
51
12
  due_date?: string | Date | null;
52
13
  category?: string | null;
53
14
  issue_type: string;
@@ -56,7 +17,7 @@ export interface Issue extends UUIDModel, SubmittedAtModel, CreatedByModel, Mark
56
17
  export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel {
57
18
  issue: string;
58
19
  content: string;
59
- author?: string;
20
+ author?: number;
60
21
  }
61
22
  export interface IssueUpdateChangeTypes {
62
23
  status: IssueStatus;
@@ -70,7 +31,7 @@ export interface IssueUpdateChangeTypes {
70
31
  title: string;
71
32
  assigned_to: {
72
33
  full_name: string;
73
- uuid: User["uuid"];
34
+ id: User["id"];
74
35
  } | null;
75
36
  due_date: string;
76
37
  }
@@ -84,7 +45,7 @@ export interface IssueAssociation extends UUIDModel, SubmittedAtModel, CreatedBy
84
45
  issue?: string;
85
46
  asset?: string;
86
47
  }
87
- export interface IssueTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
48
+ export interface IssueTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
88
49
  issue_type: string;
89
50
  }
90
51
  export interface IssueTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
@@ -97,4 +58,3 @@ export interface IssueTypeFieldValues extends UUIDModel, SubmittedAtModel, Times
97
58
  export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
98
59
  field_values: string;
99
60
  }
100
- export {};
@@ -0,0 +1,13 @@
1
+ import { LicenseLevel, LicenseStatus } from '../../enums';
2
+ import { OwnedByOrganization, UUIDModel } from './base';
3
+ export interface Transaction {
4
+ id: string;
5
+ }
6
+ export interface License extends UUIDModel, OwnedByOrganization {
7
+ project: string | null;
8
+ level: LicenseLevel;
9
+ status: LicenseStatus;
10
+ is_special: boolean;
11
+ is_active: boolean;
12
+ next_billing_date: Date;
13
+ }
@@ -1,11 +1,12 @@
1
1
  import { OrganizationAccessLevel } from '../../enums';
2
2
  import { CreatedByModel, UUIDModel } from './base';
3
+ import { User } from './users';
3
4
  export interface Organization extends UUIDModel, CreatedByModel {
4
5
  name: string;
5
6
  has_access: boolean;
6
7
  }
7
8
  export interface OrganizationAccess extends UUIDModel {
8
- user: string;
9
+ user: User["id"];
9
10
  organization: string;
10
11
  access_level: OrganizationAccessLevel;
11
12
  }
@@ -1,7 +1,7 @@
1
1
  import { ProjectAccessLevel } from '../../enums';
2
2
  import { FileWithNameModel } from '../files';
3
- import { OwnedByOrganization, SubmittedAtModel, UUIDModel } from './base';
4
- import { BoundableModel, CanvasBoundableModel } from './geo';
3
+ import { BoundableModel, CanvasBoundableModel, OwnedByOrganization, SubmittedAtModel, UUIDModel } from './base';
4
+ import { User } from './users';
5
5
  export interface Project extends UUIDModel, BoundableModel, CanvasBoundableModel, OwnedByOrganization {
6
6
  name: string;
7
7
  invited?: boolean;
@@ -10,10 +10,10 @@ export interface Project extends UUIDModel, BoundableModel, CanvasBoundableModel
10
10
  }
11
11
  export interface ProjectFile extends UUIDModel, SubmittedAtModel, FileWithNameModel, BoundableModel, CanvasBoundableModel {
12
12
  z_index: number;
13
- project: string;
13
+ project: Project["uuid"];
14
14
  }
15
15
  export interface ProjectAccess extends UUIDModel {
16
- user: string;
17
- project: string;
16
+ user: User["id"];
17
+ project: Project["uuid"];
18
18
  access_level: ProjectAccessLevel;
19
19
  }