@overmap-ai/core 1.0.79-project-folder.1 → 1.0.80-clean-ups.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/README.md +0 -0
- package/dist/constants/array.d.ts +0 -1
- package/dist/constants/index.d.ts +0 -1
- package/dist/constants/offline.d.ts +2 -0
- package/dist/enums/asset.d.ts +8 -0
- package/dist/enums/index.d.ts +2 -1
- package/dist/enums/issue.d.ts +14 -13
- package/dist/enums/procedures.d.ts +11 -0
- package/dist/overmap-core.js +11108 -8624
- package/dist/overmap-core.umd.cjs +10 -11
- package/dist/sdk/base.d.ts +6 -2
- package/dist/sdk/constants.d.ts +3 -3
- package/dist/sdk/errors.d.ts +5 -0
- package/dist/sdk/index.d.ts +2 -0
- package/dist/sdk/performRequest.d.ts +6 -0
- package/dist/sdk/services/AgentService.d.ts +1 -0
- package/dist/sdk/services/AssetAttachmentService.d.ts +23 -24
- package/dist/sdk/services/AssetCommentService.d.ts +28 -0
- package/dist/sdk/services/AssetService.d.ts +22 -4
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +23 -24
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +26 -8
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +21 -9
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +26 -9
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +19 -2
- package/dist/sdk/services/AssetTypeIdentifierService.d.ts +20 -3
- package/dist/sdk/services/AssetTypeIdentifierValueService.d.ts +22 -5
- package/dist/sdk/services/AssetTypeService.d.ts +20 -3
- package/dist/sdk/services/AssetTypeStatusService.d.ts +28 -0
- package/dist/sdk/services/BaseModelApiService.d.ts +27 -0
- package/dist/sdk/services/BaseOfflineFileModelApiService.d.ts +17 -0
- package/dist/sdk/services/BaseOfflineModelApiService.d.ts +27 -0
- package/dist/sdk/services/BaseService.d.ts +6 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +25 -24
- package/dist/sdk/services/DocumentService.d.ts +21 -4
- package/dist/sdk/services/EmailDomainsService.d.ts +20 -3
- package/dist/sdk/services/FileService.d.ts +7 -25
- package/dist/sdk/services/FormIdentifierService.d.ts +20 -3
- package/dist/sdk/services/FormIdentifierValueService.d.ts +20 -4
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +26 -9
- package/dist/sdk/services/FormRevisionService.d.ts +19 -2
- package/dist/sdk/services/FormService.d.ts +23 -4
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +26 -9
- package/dist/sdk/services/FormSubmissionService.d.ts +20 -3
- package/dist/sdk/services/GeoImageService.d.ts +27 -7
- package/dist/sdk/services/IssueAssociationService.d.ts +22 -4
- package/dist/sdk/services/IssueAttachmentService.d.ts +23 -24
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +23 -24
- package/dist/sdk/services/IssueCommentService.d.ts +21 -4
- package/dist/sdk/services/IssueService.d.ts +23 -4
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +23 -24
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +26 -9
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +20 -3
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +26 -9
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +20 -3
- package/dist/sdk/services/IssueTypeIdentifierService.d.ts +20 -3
- package/dist/sdk/services/IssueTypeIdentifierValueService.d.ts +20 -4
- package/dist/sdk/services/IssueTypePriorityService.d.ts +28 -0
- package/dist/sdk/services/IssueTypeService.d.ts +20 -3
- package/dist/sdk/services/IssueTypeStatusService.d.ts +28 -0
- package/dist/sdk/services/IssueUpdateService.d.ts +173 -2
- package/dist/sdk/services/OrganizationAccessService.d.ts +20 -3
- package/dist/sdk/services/OrganizationService.d.ts +19 -2
- package/dist/sdk/services/ProcdureInitiativeService.d.ts +28 -0
- package/dist/sdk/services/ProcedureFieldValuesAttachmentService.d.ts +31 -0
- package/dist/sdk/services/ProcedureFieldValuesService.d.ts +29 -0
- package/dist/sdk/services/ProcedureService.d.ts +30 -0
- package/dist/sdk/services/ProcedureStepAssigneeService.d.ts +29 -0
- package/dist/sdk/services/ProcedureStepCommentService.d.ts +28 -0
- package/dist/sdk/services/ProcedureStepDefaultAssigneeService.d.ts +27 -0
- package/dist/sdk/services/ProcedureStepDefaultReviewerService.d.ts +27 -0
- package/dist/sdk/services/ProcedureStepEventService.d.ts +24 -0
- package/dist/sdk/services/ProcedureStepFieldValuesAttachmentService.d.ts +31 -0
- package/dist/sdk/services/ProcedureStepFieldValuesReviewService.d.ts +28 -0
- package/dist/sdk/services/ProcedureStepFieldValuesService.d.ts +29 -0
- package/dist/sdk/services/ProcedureStepFieldsAttachmentService.d.ts +30 -0
- package/dist/sdk/services/ProcedureStepFieldsService.d.ts +27 -0
- package/dist/sdk/services/ProcedureStepReviewerService.d.ts +29 -0
- package/dist/sdk/services/ProcedureStepService.d.ts +28 -0
- package/dist/sdk/services/ProcedureTypeAttachmentService.d.ts +30 -0
- package/dist/sdk/services/ProcedureTypeFieldsAttachmentService.d.ts +30 -0
- package/dist/sdk/services/ProcedureTypeFieldsService.d.ts +26 -0
- package/dist/sdk/services/ProcedureTypeService.d.ts +28 -0
- package/dist/sdk/services/ProjectAccessService.d.ts +22 -5
- package/dist/sdk/services/ProjectAttachmentService.d.ts +23 -24
- package/dist/sdk/services/ProjectCommentService.d.ts +28 -0
- package/dist/sdk/services/ProjectFileService.d.ts +28 -7
- package/dist/sdk/services/ProjectService.d.ts +21 -4
- package/dist/sdk/services/TeamMembershipService.d.ts +19 -2
- package/dist/sdk/services/TeamService.d.ts +20 -3
- package/dist/sdk/services/UserService.d.ts +23 -2
- package/dist/sdk/services/index.d.ts +28 -16
- package/dist/sdk/typings.d.ts +46 -61
- package/dist/sdk/utils.d.ts +3 -0
- package/dist/store/adapters/modelAdapter.d.ts +13 -14
- package/dist/store/adapters/selectionAdapter.d.ts +9 -10
- package/dist/store/adapters/typings.d.ts +20 -3
- package/dist/store/constants.d.ts +0 -1
- package/dist/store/reducers.d.ts +75 -51
- package/dist/store/selectors/index.d.ts +1 -0
- package/dist/store/selectors/utils.d.ts +1 -0
- package/dist/store/slices/agentsSlice.d.ts +10 -37
- package/dist/store/slices/assetAttachmentSlice.d.ts +10 -36
- package/dist/store/slices/assetCommentSlice.d.ts +23 -0
- package/dist/store/slices/assetSlice.d.ts +36 -55
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +10 -36
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +35 -54
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +35 -53
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +35 -53
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +35 -53
- package/dist/store/slices/assetTypeIdentifierSlice.d.ts +10 -36
- package/dist/store/slices/assetTypeIdentifierValueSlice.d.ts +10 -36
- package/dist/store/slices/assetTypeSlice.d.ts +11 -38
- package/dist/store/slices/assetTypeStatusSlice.d.ts +119 -0
- package/dist/store/slices/documentAttachmentSlice.d.ts +10 -36
- package/dist/store/slices/documentSlice.d.ts +17 -24
- package/dist/store/slices/emailDomainsSlice.d.ts +38 -55
- package/dist/store/slices/fileSlice.d.ts +0 -3
- package/dist/store/slices/formIdentifierSlice.d.ts +10 -36
- package/dist/store/slices/formIdentifierValueSlice.d.ts +10 -36
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +109 -36
- package/dist/store/slices/formRevisionSlice.d.ts +35 -53
- package/dist/store/slices/formSlice.d.ts +35 -53
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +12 -37
- package/dist/store/slices/formSubmissionSlice.d.ts +19 -37
- package/dist/store/slices/geoImageSlice.d.ts +35 -53
- package/dist/store/slices/index.d.ts +25 -17
- package/dist/store/slices/issueAssociationSlice.d.ts +37 -54
- package/dist/store/slices/issueAttachmentSlice.d.ts +10 -36
- package/dist/store/slices/issueCommentAttachmentSlice.d.ts +10 -36
- package/dist/store/slices/issueCommentSlice.d.ts +10 -36
- package/dist/store/slices/issueSlice.d.ts +10 -37
- package/dist/store/slices/issueTypeAttachmentSlice.d.ts +11 -37
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +35 -54
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +35 -53
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +35 -53
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +35 -53
- package/dist/store/slices/issueTypeIdentifierSlice.d.ts +10 -36
- package/dist/store/slices/issueTypeIdentifierValueSlice.d.ts +10 -36
- package/dist/store/slices/issueTypePrioritySlice.d.ts +119 -0
- package/dist/store/slices/issueTypeSlice.d.ts +11 -42
- package/dist/store/slices/issueTypeStatusSlice.d.ts +119 -0
- package/dist/store/slices/issueUpdateSlice.d.ts +243 -37
- package/dist/store/slices/organizationAccessSlice.d.ts +10 -36
- package/dist/store/slices/organizationSlice.d.ts +35 -53
- package/dist/store/slices/outboxSlice.d.ts +6 -7
- package/dist/store/slices/procedureFieldValuesSlice.d.ts +119 -0
- package/dist/store/slices/procedureInitiativeSlice.d.ts +23 -0
- package/dist/store/slices/procedureSlice.d.ts +26 -0
- package/dist/store/slices/procedureStepAssigneeSlice.d.ts +121 -0
- package/dist/store/slices/procedureStepCommentSlice.d.ts +121 -0
- package/dist/store/slices/procedureStepDefaultAssigneeSlice.d.ts +119 -0
- package/dist/store/slices/procedureStepDefaultReviewerSlice.d.ts +119 -0
- package/dist/store/slices/procedureStepEventSlice.d.ts +121 -0
- package/dist/store/slices/procedureStepFieldValuesAttachmentSlice.d.ts +119 -0
- package/dist/store/slices/procedureStepFieldValuesReviewSlice.d.ts +123 -0
- package/dist/store/slices/procedureStepFieldValuesSlice.d.ts +121 -0
- package/dist/store/slices/procedureStepFieldsAttachmentSlice.d.ts +119 -0
- package/dist/store/slices/procedureStepFieldsSlice.d.ts +218 -0
- package/dist/store/slices/procedureStepReviewerSlice.d.ts +121 -0
- package/dist/store/slices/procedureStepSlice.d.ts +120 -0
- package/dist/store/slices/procedureTypeAttachmentSlice.d.ts +99 -0
- package/dist/store/slices/procedureTypeFieldValuesAttachmentSlice.d.ts +119 -0
- package/dist/store/slices/procedureTypeFieldsAttachmentSlice.d.ts +119 -0
- package/dist/store/slices/procedureTypeFieldsSlice.d.ts +23 -0
- package/dist/store/slices/procedureTypeSlice.d.ts +22 -0
- package/dist/store/slices/projectAccessSlice.d.ts +10 -36
- package/dist/store/slices/projectAttachmentSlice.d.ts +12 -38
- package/dist/store/slices/projectCommentSlice.d.ts +23 -0
- package/dist/store/slices/projectFileSlice.d.ts +37 -69
- package/dist/store/slices/projectSlice.d.ts +35 -53
- package/dist/store/slices/teamMembershipSlice.d.ts +10 -36
- package/dist/store/slices/teamSlice.d.ts +10 -37
- package/dist/store/slices/userSlice.d.ts +38 -63
- package/dist/store/store.d.ts +7 -14
- package/dist/store/typings.d.ts +18 -1
- package/dist/typings/index.d.ts +0 -1
- package/dist/typings/models/agents.d.ts +1 -2
- package/dist/typings/models/assets.d.ts +18 -67
- package/dist/typings/models/base.d.ts +19 -4
- package/dist/typings/models/documents.d.ts +4 -6
- package/dist/typings/models/fields.d.ts +4 -4
- package/dist/typings/models/forms.d.ts +10 -2
- package/dist/typings/models/geoImages.d.ts +7 -8
- package/dist/typings/models/index.d.ts +1 -1
- package/dist/typings/models/issues.d.ts +47 -32
- package/dist/typings/models/procedures.d.ts +105 -0
- package/dist/typings/models/projects.d.ts +11 -11
- package/dist/typings/models/teams.d.ts +2 -3
- package/dist/typings/models/users.d.ts +1 -3
- package/dist/utils/file.d.ts +7 -12
- package/dist/utils/models/assets.d.ts +2 -4
- package/dist/utils/models/base.d.ts +2 -0
- package/dist/utils/models/documents.d.ts +4 -0
- package/dist/utils/models/index.d.ts +3 -1
- package/dist/utils/models/issues.d.ts +3 -0
- package/dist/utils/optimization.d.ts +0 -1
- package/dist/utils/utils.d.ts +0 -8
- package/dist/utils/uuid.d.ts +2 -1
- package/package.json +35 -42
- package/dist/constants/defaults.d.ts +0 -3
- package/dist/enums/attachments.d.ts +0 -7
- package/dist/sdk/services/AssetProcedureService.d.ts +0 -11
- package/dist/sdk/services/AssetProcedureStepFieldValuesAttachmentService.d.ts +0 -16
- package/dist/sdk/services/AssetProcedureStepFieldValuesService.d.ts +0 -23
- package/dist/sdk/services/AssetProcedureStepFieldsAttachmentService.d.ts +0 -13
- package/dist/sdk/services/AssetProcedureStepFieldsService.d.ts +0 -11
- package/dist/sdk/services/AssetProcedureStepService.d.ts +0 -11
- package/dist/sdk/services/AssetProcedureTypeAttachmentService.d.ts +0 -31
- package/dist/sdk/services/AssetProcedureTypeFieldValuesAttachmentService.d.ts +0 -16
- package/dist/sdk/services/AssetProcedureTypeFieldValuesService.d.ts +0 -22
- package/dist/sdk/services/AssetProcedureTypeFieldsAttachmentService.d.ts +0 -13
- package/dist/sdk/services/AssetProcedureTypeFieldsService.d.ts +0 -9
- package/dist/sdk/services/AssetProcedureTypeService.d.ts +0 -11
- package/dist/sdk/services/AssetStageCompletionService.d.ts +0 -12
- package/dist/sdk/services/AssetStageService.d.ts +0 -11
- package/dist/sdk/services/BaseAttachmentService.d.ts +0 -32
- package/dist/sdk/services/BaseUploadService.d.ts +0 -10
- package/dist/sdk/services/CategoryService.d.ts +0 -11
- package/dist/sdk/services/ProjectFolderService.d.ts +0 -11
- package/dist/store/migrations.d.ts +0 -2
- package/dist/store/slices/assetProcedureSlice.d.ts +0 -139
- package/dist/store/slices/assetProcedureStepFieldValuesAttachmentSlice.d.ts +0 -138
- package/dist/store/slices/assetProcedureStepFieldValuesSlice.d.ts +0 -139
- package/dist/store/slices/assetProcedureStepFieldsAttachmentSlice.d.ts +0 -137
- package/dist/store/slices/assetProcedureStepFieldsSlice.d.ts +0 -228
- package/dist/store/slices/assetProcedureStepSlice.d.ts +0 -140
- package/dist/store/slices/assetProcedureTypeAttachmentSlice.d.ts +0 -48
- package/dist/store/slices/assetProcedureTypeFieldValuesAttachmentSlice.d.ts +0 -138
- package/dist/store/slices/assetProcedureTypeFieldValuesSlice.d.ts +0 -138
- package/dist/store/slices/assetProcedureTypeFieldsAttachmentSlice.d.ts +0 -137
- package/dist/store/slices/assetProcedureTypeFieldsSlice.d.ts +0 -49
- package/dist/store/slices/assetProcedureTypeSlice.d.ts +0 -49
- package/dist/store/slices/assetStageCompletionSlice.d.ts +0 -137
- package/dist/store/slices/assetStageSlice.d.ts +0 -139
- package/dist/store/slices/categorySlice.d.ts +0 -138
- package/dist/store/slices/projectFolderSlice.d.ts +0 -138
- package/dist/store/slices/versioningSlice.d.ts +0 -8
- package/dist/typings/files.d.ts +0 -26
- package/dist/typings/models/categories.d.ts +0 -7
- package/dist/utils/forms.d.ts +0 -2
- package/dist/utils/models/projectFolders.d.ts +0 -4
|
@@ -1,67 +1,31 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { User } from '../../typings';
|
|
2
|
+
import { Profile, User } from '../../typings';
|
|
3
3
|
import { OvermapRootState, OvermapSelectorWithArgs } from '../typings';
|
|
4
4
|
import { ModelState } from '../adapters';
|
|
5
5
|
export interface UserState extends ModelState<User["id"], User> {
|
|
6
6
|
currentUser: User | null;
|
|
7
7
|
}
|
|
8
8
|
export declare const userSlice: import('@reduxjs/toolkit').Slice<UserState, {
|
|
9
|
-
initializeUsers: (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
payload: User;
|
|
19
|
-
type: string;
|
|
20
|
-
}) => void;
|
|
21
|
-
addUsers: (state: ModelState<number, User>, action: {
|
|
22
|
-
payload: User[];
|
|
23
|
-
type: string;
|
|
24
|
-
}) => void;
|
|
25
|
-
addUser: (state: ModelState<number, User>, action: {
|
|
26
|
-
payload: User;
|
|
27
|
-
type: string;
|
|
28
|
-
}) => void;
|
|
29
|
-
updateUsers: (state: ModelState<number, User>, action: {
|
|
30
|
-
payload: User[];
|
|
31
|
-
type: string;
|
|
32
|
-
}) => void;
|
|
33
|
-
updateUser: (state: ModelState<number, User>, action: {
|
|
34
|
-
payload: User;
|
|
35
|
-
type: string;
|
|
36
|
-
}) => void;
|
|
37
|
-
deleteUser: (state: ModelState<number, User>, action: {
|
|
38
|
-
payload: number;
|
|
39
|
-
type: string;
|
|
40
|
-
}) => void;
|
|
41
|
-
deleteUsers: (state: ModelState<number, User>, action: {
|
|
42
|
-
payload: number[];
|
|
43
|
-
type: string;
|
|
44
|
-
}) => void;
|
|
9
|
+
initializeUsers: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').InitializePayloadAction<User>>;
|
|
10
|
+
setUsers: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').SetManyPayloadAction<User>>;
|
|
11
|
+
setUser: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').SetOnePayloadAction<User>>;
|
|
12
|
+
addUsers: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').AddManyPayloadAction<User>>;
|
|
13
|
+
addUser: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').AddOnePayloadAction<User>>;
|
|
14
|
+
updateUsers: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').UpdateManyPayloadAction<User>>;
|
|
15
|
+
updateUser: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').UpdateOnePayloadAction<User>>;
|
|
16
|
+
deleteUser: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').DeleteOnePayloadAction<number>>;
|
|
17
|
+
deleteUsers: import('@reduxjs/toolkit').CaseReducer<UserState, import('..').DeleteManyPayloadAction<number>>;
|
|
45
18
|
setCurrentUser: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<User | null>) => void;
|
|
46
|
-
|
|
47
|
-
file?: string;
|
|
48
|
-
file_sha1?: string;
|
|
49
|
-
}>) => void;
|
|
19
|
+
setCurrentUserProfile: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<Profile>) => void;
|
|
50
20
|
}, "users", "users", import('@reduxjs/toolkit').SliceSelectors<UserState>>;
|
|
51
|
-
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">, setCurrentUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<User | null, "users/setCurrentUser">,
|
|
52
|
-
file?: string;
|
|
53
|
-
file_sha1?: string;
|
|
54
|
-
}, "users/setProfilePicture">;
|
|
21
|
+
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">, setCurrentUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<User | null, "users/setCurrentUser">, setCurrentUserProfile: import('@reduxjs/toolkit').ActionCreatorWithPayload<Profile, "users/setCurrentUserProfile">;
|
|
55
22
|
export declare const userReducer: import('redux').Reducer<UserState>;
|
|
56
23
|
export declare const selectCurrentUser: (state: OvermapRootState) => User | null;
|
|
57
24
|
export declare const selectUsersMapping: (state: OvermapRootState) => Record<number, User>;
|
|
58
25
|
export declare const selectUsers: ((state: {
|
|
59
|
-
versioning: import('./versioningSlice').VersioningState;
|
|
60
|
-
categoryReducer: import('./categorySlice').CategoryState;
|
|
61
26
|
assetReducer: import('./assetSlice').AssetState;
|
|
62
27
|
assetAttachmentReducer: import('./assetAttachmentSlice').AssetAttachmentState;
|
|
63
|
-
|
|
64
|
-
assetStageReducer: import('./assetStageSlice').AssetStageState;
|
|
28
|
+
assetCommentReducer: import('./assetCommentSlice').AssetCommentState;
|
|
65
29
|
assetTypeReducer: import('./assetTypeSlice').AssetTypeState;
|
|
66
30
|
assetTypeAttachmentReducer: import('./assetTypeAttachmentSlice').AssetTypeAttachmentState;
|
|
67
31
|
issueReducer: import('./issueSlice').IssueState;
|
|
@@ -71,10 +35,30 @@ export declare const selectUsers: ((state: {
|
|
|
71
35
|
organizationReducer: import('./organizationSlice').OrganizationState;
|
|
72
36
|
projectReducer: import('./projectSlice').ProjectState;
|
|
73
37
|
projectAttachmentReducer: import('./projectAttachmentSlice').ProjectAttachmentState;
|
|
38
|
+
projectCommentReducer: import('./projectCommentSlice').ProjectCommentState;
|
|
74
39
|
projectAccessReducer: import('./projectAccessSlice').ProjectAccessState;
|
|
75
40
|
organizationAccessReducer: import('./organizationAccessSlice').OrganizationAccessState;
|
|
76
41
|
projectFileReducer: import('./projectFileSlice').ProjectFileState;
|
|
77
|
-
|
|
42
|
+
procedureTypeReducer: import('./procedureTypeSlice').ProcedureTypeState;
|
|
43
|
+
procedureInitiativeReducer: import('./procedureInitiativeSlice').ProcedureInitiativeState;
|
|
44
|
+
procedureReducer: import('./procedureSlice').ProcedureState;
|
|
45
|
+
procedureTypeFieldsReducer: import('./procedureTypeFieldsSlice').ProcedureTypeFieldsState;
|
|
46
|
+
procedureFieldValuesReducer: import('./procedureFieldValuesSlice').ProcedureFieldValuesState;
|
|
47
|
+
procedureTypeAttachmentReducer: import('./procedureTypeAttachmentSlice').ProcedureTypeAttachmentState;
|
|
48
|
+
procedureTypeFieldsAttachmentReducer: import('./procedureTypeFieldsAttachmentSlice').ProcedureTypeFieldsAttachmentState;
|
|
49
|
+
procedureFieldValuesAttachmentReducer: import('./procedureTypeFieldValuesAttachmentSlice').ProcedureFieldValuesAttachmentState;
|
|
50
|
+
procedureStepFieldsAttachmentReducer: import('./procedureStepFieldsAttachmentSlice').ProcedureStepFieldsAttachmentState;
|
|
51
|
+
procedureStepFieldsReducer: import('./procedureStepFieldsSlice').ProcedureStepFieldsState;
|
|
52
|
+
procedureStepFieldValuesAttachmentReducer: import('./procedureStepFieldValuesAttachmentSlice').ProcedureStepFieldValuesAttachmentState;
|
|
53
|
+
procedureStepFieldValuesReducer: import('./procedureStepFieldValuesSlice').ProcedureStepFieldValuesState;
|
|
54
|
+
procedureStepFieldValuesReviewReducer: import('./procedureStepFieldValuesReviewSlice').ProcedureStepFieldValuesReviewState;
|
|
55
|
+
procedureStepAssigneeReducer: import('./procedureStepAssigneeSlice').ProcedureStepAssigneeState;
|
|
56
|
+
procedureStepCommentReducer: import('./procedureStepCommentSlice').ProcedureStepCommentState;
|
|
57
|
+
procedureStepDefaultAssigneeReducer: import('./procedureStepDefaultAssigneeSlice').ProcedureStepDefaultAssigneeState;
|
|
58
|
+
procedureStepDefaultReviewerReducer: import('./procedureStepDefaultReviewerSlice').ProcedureStepDefaultReviewerState;
|
|
59
|
+
procedureStepEventReducer: import('./procedureStepEventSlice').ProcedureStepEventState;
|
|
60
|
+
procedureStepReviewerReducer: import('./procedureStepReviewerSlice').ProcedureStepReviewerState;
|
|
61
|
+
procedureStepReducer: import('./procedureStepSlice').ProcedureStepState;
|
|
78
62
|
rehydratedReducer: import('./rehydratedSlice').RehydratedState;
|
|
79
63
|
formReducer: import('./formSlice').FormState;
|
|
80
64
|
formRevisionReducer: import('./formRevisionSlice').FormRevisionState;
|
|
@@ -100,24 +84,15 @@ export declare const selectUsers: ((state: {
|
|
|
100
84
|
issueTypeFieldValuesAttachmentReducer: import('./issueTypeFieldValuesAttachmentSlice').IssueTypeFieldValuesAttachmentState;
|
|
101
85
|
issueTypeIdentifierReducer: import('./issueTypeIdentifierSlice').IssueTypeIdentifierState;
|
|
102
86
|
issueTypeIdentifierValueReducer: import('./issueTypeIdentifierValueSlice').IssueTypeIdentifierValueState;
|
|
87
|
+
issueTypePriorityReducer: import('./issueTypePrioritySlice').IssueTypePriorityState;
|
|
88
|
+
issueTypeStatusReducer: import('./issueTypeStatusSlice').IssueTypeStatusState;
|
|
103
89
|
assetTypeFieldsReducer: import('./assetTypeFieldsSlice').AssetTypeFieldsState;
|
|
104
90
|
assetTypeFieldValuesReducer: import('./assetTypeFieldValuesSlice').AssetTypeFieldValuesState;
|
|
105
91
|
assetTypeFieldsAttachmentReducer: import('./assetTypeFieldsAttachmentSlice').AssetTypeFieldsAttachmentState;
|
|
106
92
|
assetTypeFieldValuesAttachmentReducer: import('./assetTypeFieldValuesAttachmentSlice').AssetTypeFieldValuesAttachmentState;
|
|
107
93
|
assetTypeIdentifierReducer: import('./assetTypeIdentifierSlice').AssetTypeIdentifierState;
|
|
108
94
|
assetTypeIdentifierValueReducer: import('./assetTypeIdentifierValueSlice').AssetTypeIdentifierValueState;
|
|
109
|
-
|
|
110
|
-
assetProcedureReducer: import('./assetProcedureSlice').AssetProcedureState;
|
|
111
|
-
assetProcedureTypeFieldsReducer: import('./assetProcedureTypeFieldsSlice').AssetProcedureTypeFieldsState;
|
|
112
|
-
assetProcedureFieldValuesReducer: import('./assetProcedureTypeFieldValuesSlice').AssetProcedureTypeFieldValuesState;
|
|
113
|
-
assetProcedureTypeFieldsAttachmentReducer: import('./assetProcedureTypeFieldsAttachmentSlice').AssetProcedureTypeFieldsAttachmentState;
|
|
114
|
-
assetProcedureTypeFieldValuesAttachmentReducer: import('./assetProcedureTypeFieldValuesAttachmentSlice').AssetProcedureTypeFieldValuesAttachmentState;
|
|
115
|
-
assetProcedureTypeAttachmentReducer: import('./assetProcedureTypeAttachmentSlice').AssetProcedureTypeAttachmentState;
|
|
116
|
-
assetProcedureStepFieldsAttachmentReducer: import('./assetProcedureStepFieldsAttachmentSlice').AssetProcedureStepFieldsAttachmentState;
|
|
117
|
-
assetProcedureStepFieldsReducer: import('./assetProcedureStepFieldsSlice').AssetProcedureStepFieldsState;
|
|
118
|
-
assetProcedureStepFieldValuesAttachmentReducer: import('./assetProcedureStepFieldValuesAttachmentSlice').AssetProcedureStepFieldValuesAttachmentState;
|
|
119
|
-
assetProcedureStepFieldValuesReducer: import('./assetProcedureStepFieldValuesSlice').AssetProcedureStepFieldValuesState;
|
|
120
|
-
assetProcedureStepReducer: import('./assetProcedureStepSlice').AssetProcedureStepState;
|
|
95
|
+
assetTypeStatusReducer: import('./assetTypeStatusSlice').AssetTypeStatusState;
|
|
121
96
|
teamMembershipReducer: import('./teamMembershipSlice').TeamMembershipState;
|
|
122
97
|
outboxReducer: import('./outboxSlice').OutboxState;
|
|
123
98
|
fileReducer: import('./fileSlice').FileState;
|
|
@@ -146,4 +121,4 @@ export declare const selectUsers: ((state: {
|
|
|
146
121
|
memoize: typeof import('reselect').weakMapMemoize;
|
|
147
122
|
};
|
|
148
123
|
export declare const selectUserById: OvermapSelectorWithArgs<User["id"], User | undefined>;
|
|
149
|
-
export declare const selectUsersByIds: (
|
|
124
|
+
export declare const selectUsersByIds: (uuids: number[]) => (state: any) => User[];
|
package/dist/store/store.d.ts
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
import { Config
|
|
1
|
+
import { Config } from '@redux-offline/redux-offline/lib/types';
|
|
2
2
|
import { default as request } from 'superagent';
|
|
3
|
-
import { BaseState } from './typings';
|
|
4
|
-
import { BaseSDK
|
|
5
|
-
export interface FullOfflineMetadata extends OfflineMetadata {
|
|
6
|
-
effect: OfflineMetaEffect;
|
|
7
|
-
}
|
|
8
|
-
export interface FullOfflineAction extends OfflineAction {
|
|
9
|
-
meta: {
|
|
10
|
-
offline: FullOfflineMetadata;
|
|
11
|
-
};
|
|
12
|
-
payload: RequestDetails;
|
|
13
|
-
}
|
|
3
|
+
import { BaseState, FullOfflineAction } from './typings';
|
|
4
|
+
import { BaseSDK } from '../sdk';
|
|
14
5
|
export declare const enqueue: Config["queue"]["enqueue"];
|
|
15
6
|
export declare const dequeue: Config["queue"]["dequeue"];
|
|
16
7
|
/**
|
|
17
8
|
* Enhancer for the Redux store that adds offline support and needed middleware for overmap.
|
|
18
9
|
* Add to your store's `enhancers` array.
|
|
19
10
|
*/
|
|
20
|
-
export declare const overmapEnhancer: (
|
|
21
|
-
|
|
11
|
+
export declare const overmapEnhancer: (createStore: typeof import('redux').createStore) => <T extends {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>(reducer: (state: T, action: any) => T, preloadedState: T, enhancer: import('redux').StoreEnhancer<T>) => import('redux').Store<T>;
|
|
14
|
+
export declare function performRequestFromAction(action: FullOfflineAction, client: BaseSDK<BaseState>, signal?: AbortSignal): Promise<request.Response>;
|
|
22
15
|
export declare function discard(reason: unknown, action: FullOfflineAction, retries?: number): boolean;
|
package/dist/store/typings.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { OfflineState } from '@redux-offline/redux-offline/lib/types';
|
|
1
|
+
import { OfflineAction, OfflineMetadata, OfflineState } from '@redux-offline/redux-offline/lib/types';
|
|
2
|
+
import { OfflineRequestDetails } from '../sdk';
|
|
2
3
|
import { baseReducer, overmapReducer } from './reducers';
|
|
3
4
|
export type BaseState = ReturnType<typeof baseReducer> & {
|
|
4
5
|
offline: OfflineState;
|
|
@@ -12,3 +13,19 @@ export type OvermapSelectorWithArgs<TArgs, TRet> = SelectorWithArgs<OvermapRootS
|
|
|
12
13
|
export type OvermapSelector<TRet> = Selector<OvermapRootState, TRet>;
|
|
13
14
|
export type Migrator = (state: Partial<OvermapRootState>) => Partial<OvermapRootState>;
|
|
14
15
|
export type Manifest = Record<number, Migrator>;
|
|
16
|
+
export interface OfflineMetaEffect {
|
|
17
|
+
request: OfflineRequestDetails;
|
|
18
|
+
/** An ISO timestamp of when the request was created. */
|
|
19
|
+
timestamp: string;
|
|
20
|
+
BASE_URL: string;
|
|
21
|
+
serviceName: string;
|
|
22
|
+
}
|
|
23
|
+
export interface FullOfflineMetadata extends OfflineMetadata {
|
|
24
|
+
effect: OfflineMetaEffect;
|
|
25
|
+
}
|
|
26
|
+
export interface FullOfflineAction extends OfflineAction {
|
|
27
|
+
meta: {
|
|
28
|
+
offline: FullOfflineMetadata;
|
|
29
|
+
};
|
|
30
|
+
payload: OfflineRequestDetails;
|
|
31
|
+
}
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSONContent } from '@tiptap/core';
|
|
2
|
-
import { OptionalFileModel } from '
|
|
3
|
-
import { TimestampedModel, UUID } from './base';
|
|
2
|
+
import { OptionalFileModel, TimestampedModel, UUID } from './base';
|
|
4
3
|
export interface AgentProfile extends OptionalFileModel {
|
|
5
4
|
/**
|
|
6
5
|
* The name of the agent.
|
|
@@ -1,43 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RequiredFileWithNameModel } from '../files';
|
|
3
|
-
import { AbbreviationModel, ColorModel, CreatedByModel, GeometryModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, SubmittedAtModel, TimestampedModel, TreeModel, UUIDModel } from './base';
|
|
1
|
+
import { AbbreviationModel, ColorModel, CreatedByModel, GeometryModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
4
2
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
5
3
|
import { Organization } from './organizations';
|
|
6
4
|
import { Project } from './projects';
|
|
5
|
+
import { AssetStatusType } from '../../enums';
|
|
7
6
|
export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, GeometryModel, IndexedModel {
|
|
8
7
|
asset_type: AssetType["uuid"];
|
|
9
8
|
label: string | null;
|
|
10
|
-
description
|
|
9
|
+
description: string | null;
|
|
11
10
|
project: Project["uuid"];
|
|
11
|
+
status: AssetTypeStatus["uuid"];
|
|
12
12
|
}
|
|
13
13
|
export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
14
14
|
organization: Organization["uuid"];
|
|
15
15
|
name: string;
|
|
16
|
-
description
|
|
16
|
+
description: string | null;
|
|
17
17
|
order: number;
|
|
18
|
+
default_status: AssetTypeStatus["uuid"] | null;
|
|
18
19
|
}
|
|
19
|
-
export interface AssetProcedureType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
20
|
-
organization: Organization["uuid"];
|
|
21
|
-
name: string;
|
|
22
|
-
description?: string | null;
|
|
23
|
-
}
|
|
24
|
-
export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IndexedModel {
|
|
25
|
-
asset_procedure_type: AssetProcedureType["uuid"];
|
|
26
|
-
asset_type: AssetType["uuid"];
|
|
27
|
-
project: Project["uuid"];
|
|
28
|
-
}
|
|
29
|
-
export interface AssetStage extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
|
|
30
|
-
asset_procedure_type: AssetProcedureType["uuid"];
|
|
31
|
-
name: string;
|
|
32
|
-
description?: string | null;
|
|
33
|
-
priority: number;
|
|
34
|
-
}
|
|
35
|
-
export interface AssetStageCompletion extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
36
|
-
asset: Asset["uuid"];
|
|
37
|
-
asset_stage: AssetStage["uuid"];
|
|
38
|
-
asset_procedure: AssetProcedure["uuid"];
|
|
39
|
-
}
|
|
40
|
-
export type CompletedStagesMapping = Record<Asset["uuid"], Record<AssetStage["uuid"], AssetStageCompletion["submitted_at"]>>;
|
|
41
20
|
export interface AssetTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
42
21
|
asset_type: AssetType["uuid"];
|
|
43
22
|
}
|
|
@@ -51,42 +30,6 @@ export interface AssetTypeFieldValues extends UUIDModel, SubmittedAtModel, Times
|
|
|
51
30
|
export interface AssetTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
52
31
|
field_values: AssetTypeFieldValues["uuid"];
|
|
53
32
|
}
|
|
54
|
-
export interface AssetProcedureTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
55
|
-
asset_procedure_type: AssetProcedureType["uuid"];
|
|
56
|
-
}
|
|
57
|
-
export interface AssetProcedureTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
58
|
-
fields_revision: AssetProcedureTypeFields["uuid"];
|
|
59
|
-
}
|
|
60
|
-
export interface AssetProcedureTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
61
|
-
fields_revision: AssetProcedureTypeFields["uuid"];
|
|
62
|
-
asset_procedure: AssetProcedure["uuid"];
|
|
63
|
-
asset: Asset["uuid"];
|
|
64
|
-
}
|
|
65
|
-
export interface AssetProcedureTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
66
|
-
field_values: AssetProcedureTypeFieldValues["uuid"];
|
|
67
|
-
}
|
|
68
|
-
export interface AssetProcedureStep extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel, TreeModel<string> {
|
|
69
|
-
asset_procedure_type: AssetProcedureType["uuid"];
|
|
70
|
-
name: string;
|
|
71
|
-
description?: string | null;
|
|
72
|
-
order: number;
|
|
73
|
-
}
|
|
74
|
-
export interface AssetProcedureStepFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
75
|
-
asset_procedure_step: AssetProcedureStep["uuid"];
|
|
76
|
-
field_conditions?: SerializedCondition[] | null;
|
|
77
|
-
}
|
|
78
|
-
export interface AssetProcedureStepFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
79
|
-
fields_revision: AssetProcedureStepFields["uuid"];
|
|
80
|
-
}
|
|
81
|
-
export interface AssetProcedureStepFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
82
|
-
fields_revision: AssetProcedureStepFields["uuid"];
|
|
83
|
-
asset_procedure: AssetProcedure["uuid"];
|
|
84
|
-
asset_procedure_step: AssetProcedureStep["uuid"];
|
|
85
|
-
asset: Asset["uuid"];
|
|
86
|
-
}
|
|
87
|
-
export interface AssetProcedureStepFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
88
|
-
field_values: AssetProcedureStepFieldValues["uuid"];
|
|
89
|
-
}
|
|
90
33
|
export interface AssetTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
91
34
|
asset_type: AssetType["uuid"];
|
|
92
35
|
}
|
|
@@ -94,12 +37,20 @@ export interface AssetTypeIdentifierValue extends UUIDModel, SubmittedAtModel, T
|
|
|
94
37
|
asset: Asset["uuid"];
|
|
95
38
|
asset_type_identifier: AssetTypeIdentifier["uuid"];
|
|
96
39
|
}
|
|
97
|
-
export interface AssetAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel,
|
|
40
|
+
export interface AssetAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
98
41
|
asset: Asset["uuid"];
|
|
99
42
|
}
|
|
100
|
-
export interface AssetTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel,
|
|
43
|
+
export interface AssetTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
101
44
|
asset_type: AssetType["uuid"];
|
|
102
45
|
}
|
|
103
|
-
export interface
|
|
104
|
-
|
|
46
|
+
export interface AssetTypeStatus extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
|
|
47
|
+
asset_type: AssetType["uuid"];
|
|
48
|
+
name: string;
|
|
49
|
+
type: AssetStatusType;
|
|
50
|
+
order: number;
|
|
51
|
+
}
|
|
52
|
+
export interface AssetComment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
53
|
+
asset: Asset["uuid"];
|
|
54
|
+
content: string;
|
|
55
|
+
resolved: boolean;
|
|
105
56
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Geometry, MultiPoint, Point } from 'geojson';
|
|
1
|
+
import { Geometry, MultiPoint, Point, Polygon } from 'geojson';
|
|
2
2
|
import { User } from './users';
|
|
3
|
-
import { COMMON_AUTO_FIELDS } from '../../utils';
|
|
4
3
|
export type UUID<T> = T & {
|
|
5
4
|
uuid: string;
|
|
6
5
|
};
|
|
@@ -14,7 +13,7 @@ type ExcludeNeverFields<O> = {
|
|
|
14
13
|
type PropertyUndefined<T> = {
|
|
15
14
|
[P in keyof T]?: T[P];
|
|
16
15
|
};
|
|
17
|
-
export type CommonAutoFields =
|
|
16
|
+
export type CommonAutoFields = "created_at" | "updated_at" | "index" | "revision";
|
|
18
17
|
/**
|
|
19
18
|
* Represents a model instance that has been submitted to the backend. Some properties (depending on which model, but in
|
|
20
19
|
* all cases, the `offline_id`) are guaranteed to be set.
|
|
@@ -60,7 +59,7 @@ export interface ColorModel {
|
|
|
60
59
|
color: string;
|
|
61
60
|
}
|
|
62
61
|
export interface CreatedByModel {
|
|
63
|
-
created_by
|
|
62
|
+
created_by: User["id"] | null;
|
|
64
63
|
}
|
|
65
64
|
export interface IndexedModel {
|
|
66
65
|
index: number;
|
|
@@ -71,6 +70,9 @@ export interface BoundableModel {
|
|
|
71
70
|
export interface CanvasBoundableModel {
|
|
72
71
|
canvas_bounds?: MultiPoint;
|
|
73
72
|
}
|
|
73
|
+
export interface PolygonBoundedModel {
|
|
74
|
+
bounds: Polygon;
|
|
75
|
+
}
|
|
74
76
|
export interface MarkableModel {
|
|
75
77
|
geo_marker?: Point;
|
|
76
78
|
}
|
|
@@ -92,4 +94,17 @@ export interface AbbreviationModel {
|
|
|
92
94
|
export interface TreeModel<TId extends string | number | symbol> {
|
|
93
95
|
parent: TId | null;
|
|
94
96
|
}
|
|
97
|
+
export interface OptionalFileModel extends Model {
|
|
98
|
+
file_url: string | null;
|
|
99
|
+
file_sha1: string | null;
|
|
100
|
+
file_extension: string | null;
|
|
101
|
+
file_name: string | null;
|
|
102
|
+
}
|
|
103
|
+
export interface RequiredFileModel extends Model {
|
|
104
|
+
file_url: NonNullable<OptionalFileModel["file_url"]>;
|
|
105
|
+
file_sha1: NonNullable<OptionalFileModel["file_sha1"]>;
|
|
106
|
+
file_extension: NonNullable<OptionalFileModel["file_extension"]>;
|
|
107
|
+
file_name: NonNullable<OptionalFileModel["file_name"]>;
|
|
108
|
+
file_type: string | null;
|
|
109
|
+
}
|
|
95
110
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
2
|
import { Organization } from './organizations';
|
|
4
3
|
import { Project } from './projects';
|
|
5
4
|
export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
|
|
@@ -7,11 +6,10 @@ export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, T
|
|
|
7
6
|
description: string | null;
|
|
8
7
|
content: string | null;
|
|
9
8
|
parent_document: Document["uuid"] | null;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
organization?: Organization["uuid"];
|
|
9
|
+
project: Project["uuid"] | null;
|
|
10
|
+
organization: Organization["uuid"] | null;
|
|
13
11
|
}
|
|
14
|
-
export interface DocumentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel,
|
|
12
|
+
export interface DocumentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
15
13
|
document: Document["uuid"];
|
|
16
14
|
}
|
|
17
15
|
export type MovePosition = "left" | "right" | "left-child" | "right-child";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { SerializedField, SerializedFieldSection, SerializedFieldValues } from '@overmap-ai/forms';
|
|
2
|
-
import {
|
|
2
|
+
import { RequiredFileModel } from './base';
|
|
3
3
|
export interface FieldsModel {
|
|
4
4
|
fields: SerializedFieldSection[];
|
|
5
5
|
revision: number;
|
|
6
6
|
}
|
|
7
7
|
export interface FieldValuesModel {
|
|
8
|
-
published_at
|
|
8
|
+
published_at: string | null;
|
|
9
9
|
values: SerializedFieldValues;
|
|
10
10
|
}
|
|
11
|
-
export interface FieldsAttachmentModel extends
|
|
11
|
+
export interface FieldsAttachmentModel extends RequiredFileModel {
|
|
12
12
|
field_identifier: SerializedField["identifier"];
|
|
13
13
|
}
|
|
14
|
-
export interface FieldValuesAttachmentModel extends
|
|
14
|
+
export interface FieldValuesAttachmentModel extends RequiredFileModel {
|
|
15
15
|
field_identifier: SerializedField["identifier"];
|
|
16
16
|
}
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
+
import { Asset } from './assets';
|
|
1
2
|
import { CreatedByModel, IdentifierModel, IdentifierValueModel, IndexedModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
4
|
+
import { Issue } from './issues';
|
|
3
5
|
import { Organization } from './organizations';
|
|
6
|
+
import { Project } from './projects';
|
|
4
7
|
export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
5
8
|
organization: Organization["uuid"];
|
|
9
|
+
name: string;
|
|
10
|
+
description: string | null;
|
|
6
11
|
}
|
|
7
12
|
export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
8
13
|
form: Form["uuid"];
|
|
9
|
-
title: string;
|
|
10
|
-
description?: string;
|
|
11
14
|
}
|
|
12
15
|
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
13
16
|
export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
|
|
14
17
|
form_revision: FormRevision["uuid"];
|
|
18
|
+
form: Form["uuid"];
|
|
19
|
+
organization: Organization["uuid"] | null;
|
|
20
|
+
project: Project["uuid"] | null;
|
|
21
|
+
asset: Asset["uuid"] | null;
|
|
22
|
+
issue: Issue["uuid"] | null;
|
|
15
23
|
}
|
|
16
24
|
export interface FormSubmissionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
|
|
17
25
|
form_submission: FormSubmission["uuid"];
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
1
|
+
import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, Payload, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
2
|
import { Project } from './projects';
|
|
4
|
-
export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel,
|
|
5
|
-
title
|
|
6
|
-
description
|
|
3
|
+
export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, RequiredFileModel, IndexedModel {
|
|
4
|
+
title: string | null;
|
|
5
|
+
description: string | null;
|
|
7
6
|
project: Project["uuid"];
|
|
8
|
-
direction
|
|
9
|
-
original_date
|
|
7
|
+
direction: number | null;
|
|
8
|
+
original_date: string | null;
|
|
10
9
|
}
|
|
11
|
-
export type GeoImagePayload = Omit<Payload<GeoImage>, "file_name" | "file_sha1" | "
|
|
10
|
+
export type GeoImagePayload = Omit<Payload<GeoImage>, "file_name" | "file_sha1" | "file_url" | "file_type" | "file_extension"> & {
|
|
12
11
|
file: File;
|
|
13
12
|
};
|
|
14
13
|
export type BulkGeoImagePayload = Omit<GeoImagePayload, "project">;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from './agents';
|
|
2
2
|
export * from './assets';
|
|
3
3
|
export * from './base';
|
|
4
|
-
export * from './categories';
|
|
5
4
|
export * from './documents';
|
|
6
5
|
export * from './emailDomain';
|
|
7
6
|
export * from './emailVerification';
|
|
@@ -10,6 +9,7 @@ export * from './forms';
|
|
|
10
9
|
export * from './geoImages';
|
|
11
10
|
export * from './issues';
|
|
12
11
|
export * from './organizations';
|
|
12
|
+
export * from './procedures';
|
|
13
13
|
export * from './projects';
|
|
14
14
|
export * from './teams';
|
|
15
15
|
export * from './users';
|
|
@@ -1,52 +1,53 @@
|
|
|
1
|
-
import { IssuePriority, IssueStatus, IssueUpdateChange } from '../../enums';
|
|
2
|
-
import { RequiredFileWithNameModel } from '../files';
|
|
3
1
|
import { Asset } from './assets';
|
|
4
|
-
import { AbbreviationModel, CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
5
|
-
import { Category } from './categories';
|
|
2
|
+
import { AbbreviationModel, CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
6
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
7
4
|
import { Organization } from './organizations';
|
|
8
5
|
import { Project } from './projects';
|
|
9
6
|
import { User } from './users';
|
|
7
|
+
import { IssueStatusType, IssuePriorityType, IssueUpdateChange } from '../../enums';
|
|
10
8
|
export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
|
|
11
|
-
title
|
|
12
|
-
description
|
|
13
|
-
priority:
|
|
14
|
-
status:
|
|
15
|
-
assigned_to
|
|
16
|
-
due_date
|
|
17
|
-
category?: Category["uuid"] | null;
|
|
9
|
+
title: string | null;
|
|
10
|
+
description: string | null;
|
|
11
|
+
priority: IssueTypePriority["uuid"];
|
|
12
|
+
status: IssueTypeStatus["uuid"];
|
|
13
|
+
assigned_to: User["id"] | null;
|
|
14
|
+
due_date: string | null;
|
|
18
15
|
issue_type: IssueType["uuid"];
|
|
19
16
|
project: Project["uuid"];
|
|
20
17
|
}
|
|
21
|
-
export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel {
|
|
18
|
+
export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
22
19
|
issue: Issue["uuid"];
|
|
23
20
|
content: string;
|
|
24
|
-
|
|
21
|
+
resolved: boolean;
|
|
25
22
|
}
|
|
26
23
|
export interface IssueUpdateChangeTypes {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
[IssueUpdateChange.STATUS]: {
|
|
25
|
+
name: IssueTypeStatus["name"];
|
|
26
|
+
color: IssueTypeStatus["color"];
|
|
27
|
+
uuid: IssueTypeStatus["uuid"];
|
|
28
|
+
};
|
|
29
|
+
[IssueUpdateChange.PRIORITY]: {
|
|
30
|
+
name: IssueTypePriority["name"];
|
|
31
|
+
color: IssueTypePriority["color"];
|
|
32
|
+
uuid: IssueTypePriority["uuid"];
|
|
33
|
+
};
|
|
34
|
+
[IssueUpdateChange.DESCRIPTION]: string;
|
|
35
|
+
[IssueUpdateChange.TITLE]: string;
|
|
36
|
+
[IssueUpdateChange.ASSIGNED_TO]: {
|
|
37
37
|
full_name: string;
|
|
38
38
|
id: User["id"];
|
|
39
39
|
} | null;
|
|
40
|
-
|
|
40
|
+
[IssueUpdateChange.DUE_DATE]: string | null;
|
|
41
41
|
}
|
|
42
42
|
export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel, TimestampedModel {
|
|
43
43
|
issue: Issue["uuid"];
|
|
44
|
-
changes: Partial<
|
|
44
|
+
changes: Partial<{
|
|
45
|
+
[K in IssueUpdateChange]: IssueUpdateChangeTypes[K];
|
|
46
|
+
}>;
|
|
45
47
|
}
|
|
46
48
|
export interface IssueAssociation extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
asset?: Asset["uuid"];
|
|
49
|
+
issue: Issue["uuid"];
|
|
50
|
+
asset: Asset["uuid"];
|
|
50
51
|
}
|
|
51
52
|
export interface IssueTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
52
53
|
issue_type: IssueType["uuid"];
|
|
@@ -63,8 +64,10 @@ export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtMo
|
|
|
63
64
|
}
|
|
64
65
|
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel, AbbreviationModel {
|
|
65
66
|
name: string;
|
|
66
|
-
description
|
|
67
|
+
description: string | null;
|
|
67
68
|
organization: Organization["uuid"];
|
|
69
|
+
default_status: IssueTypeStatus["uuid"] | null;
|
|
70
|
+
default_priority: IssueTypePriority["uuid"] | null;
|
|
68
71
|
}
|
|
69
72
|
export interface IssueTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
70
73
|
issue_type: IssueType["uuid"];
|
|
@@ -73,12 +76,24 @@ export interface IssueTypeIdentifierValue extends UUIDModel, SubmittedAtModel, T
|
|
|
73
76
|
issue: Issue["uuid"];
|
|
74
77
|
issue_type_identifier: IssueTypeIdentifier["uuid"];
|
|
75
78
|
}
|
|
76
|
-
export interface IssueAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel,
|
|
79
|
+
export interface IssueAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
77
80
|
issue: Issue["uuid"];
|
|
78
81
|
}
|
|
79
|
-
export interface IssueTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel,
|
|
82
|
+
export interface IssueTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
80
83
|
issue_type: IssueType["uuid"];
|
|
81
84
|
}
|
|
82
|
-
export interface IssueCommentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel,
|
|
85
|
+
export interface IssueCommentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
83
86
|
issue_comment: IssueComment["uuid"];
|
|
84
87
|
}
|
|
88
|
+
export interface IssueTypeStatus extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
|
|
89
|
+
issue_type: IssueType["uuid"];
|
|
90
|
+
name: string;
|
|
91
|
+
type: IssueStatusType;
|
|
92
|
+
order: number;
|
|
93
|
+
}
|
|
94
|
+
export interface IssueTypePriority extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
|
|
95
|
+
issue_type: IssueType["uuid"];
|
|
96
|
+
name: string;
|
|
97
|
+
type: IssuePriorityType;
|
|
98
|
+
order: number;
|
|
99
|
+
}
|