@overmap-ai/core 1.0.78-improvements.1 → 1.0.78-issue-update-typing-fix.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.
- package/README.md +0 -0
- package/dist/constants/defaults.d.ts +1 -2
- package/dist/enums/access.d.ts +0 -5
- package/dist/enums/asset.d.ts +8 -0
- package/dist/enums/index.d.ts +2 -1
- package/dist/enums/issue.d.ts +7 -6
- package/dist/enums/procedures.d.ts +11 -0
- package/dist/overmap-core.js +10986 -7208
- package/dist/overmap-core.umd.cjs +10 -11
- package/dist/sdk/base.d.ts +6 -2
- package/dist/sdk/constants.d.ts +4 -0
- package/dist/sdk/errors.d.ts +5 -0
- package/dist/sdk/index.d.ts +6 -1
- package/dist/sdk/middleware/OfflineAnalyticsMiddleware.d.ts +6 -0
- package/dist/sdk/middleware/OfflineMiddleware.d.ts +13 -0
- package/dist/sdk/middleware/RateLimitingMiddleware.d.ts +6 -0
- package/dist/sdk/middleware/constants.d.ts +1 -0
- package/dist/sdk/middleware/index.d.ts +5 -0
- package/dist/sdk/middleware/utils.d.ts +2 -0
- package/dist/sdk/outbox/globals.d.ts +2 -0
- package/dist/sdk/{classes → outbox}/index.d.ts +1 -0
- package/dist/sdk/performRequest.d.ts +6 -0
- package/dist/sdk/services/AgentService.d.ts +3 -2
- package/dist/sdk/services/AssetAttachmentService.d.ts +25 -36
- package/dist/sdk/services/AssetCommentService.d.ts +28 -0
- package/dist/sdk/services/AssetService.d.ts +25 -7
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +25 -35
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +28 -10
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +23 -11
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +28 -11
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +21 -4
- package/dist/sdk/services/AssetTypeIdentifierService.d.ts +28 -0
- package/dist/sdk/services/AssetTypeIdentifierValueService.d.ts +28 -0
- package/dist/sdk/services/AssetTypeService.d.ts +22 -5
- 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 +7 -3
- package/dist/sdk/services/DocumentAttachmentService.d.ts +27 -35
- package/dist/sdk/services/DocumentService.d.ts +23 -7
- package/dist/sdk/services/EmailDomainsService.d.ts +22 -5
- package/dist/sdk/services/FileService.d.ts +8 -26
- package/dist/sdk/services/FormIdentifierService.d.ts +28 -0
- package/dist/sdk/services/FormIdentifierValueService.d.ts +27 -0
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +28 -11
- package/dist/sdk/services/FormRevisionService.d.ts +21 -4
- package/dist/sdk/services/FormService.d.ts +25 -6
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +28 -11
- package/dist/sdk/services/FormSubmissionService.d.ts +22 -5
- package/dist/sdk/services/GeoImageService.d.ts +29 -9
- package/dist/sdk/services/IssueAssociationService.d.ts +24 -6
- package/dist/sdk/services/IssueAttachmentService.d.ts +25 -36
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +25 -36
- package/dist/sdk/services/IssueCommentService.d.ts +23 -6
- package/dist/sdk/services/IssueService.d.ts +25 -6
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +25 -36
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +28 -11
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +22 -5
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +28 -11
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +22 -5
- package/dist/sdk/services/IssueTypeIdentifierService.d.ts +28 -0
- package/dist/sdk/services/IssueTypeIdentifierValueService.d.ts +27 -0
- package/dist/sdk/services/IssueTypeService.d.ts +22 -5
- package/dist/sdk/services/IssueTypeStatusService.d.ts +28 -0
- package/dist/sdk/services/IssueUpdateService.d.ts +174 -5
- package/dist/sdk/services/JWTAuthService.d.ts +1 -1
- package/dist/sdk/services/OrganizationAccessService.d.ts +25 -7
- package/dist/sdk/services/OrganizationService.d.ts +24 -7
- 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 +27 -7
- package/dist/sdk/services/ProjectAttachmentService.d.ts +25 -35
- package/dist/sdk/services/ProjectFileService.d.ts +30 -12
- package/dist/sdk/services/ProjectService.d.ts +23 -12
- package/dist/sdk/services/TeamMembershipService.d.ts +28 -0
- package/dist/sdk/services/TeamService.d.ts +22 -8
- package/dist/sdk/services/UserService.d.ts +26 -5
- package/dist/sdk/services/index.d.ts +33 -16
- package/dist/sdk/typings.d.ts +33 -59
- package/dist/sdk/utils.d.ts +2 -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 +3 -1
- package/dist/store/index.d.ts +1 -0
- package/dist/store/reducers.d.ts +90 -48
- package/dist/store/selectors/SelectorBuilder.d.ts +24 -0
- package/dist/store/selectors/hooks.d.ts +13 -0
- package/dist/store/selectors/index.d.ts +3 -0
- package/dist/store/selectors/utils.d.ts +1 -0
- package/dist/store/slices/agentsSlice.d.ts +12 -19
- package/dist/store/slices/assetAttachmentSlice.d.ts +13 -39
- package/dist/store/slices/assetCommentSlice.d.ts +23 -0
- package/dist/store/slices/assetSlice.d.ts +42 -55
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +12 -38
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +41 -54
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +41 -53
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +41 -53
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +41 -53
- package/dist/store/slices/assetTypeIdentifierSlice.d.ts +22 -0
- package/dist/store/slices/assetTypeIdentifierValueSlice.d.ts +23 -0
- package/dist/store/slices/assetTypeSlice.d.ts +13 -39
- package/dist/store/slices/assetTypeStatusSlice.d.ts +118 -0
- package/dist/store/slices/documentAttachmentSlice.d.ts +13 -39
- package/dist/store/slices/documentSlice.d.ts +19 -111
- package/dist/store/slices/emailDomainsSlice.d.ts +48 -35
- package/dist/store/slices/fileSlice.d.ts +0 -3
- package/dist/store/slices/formIdentifierSlice.d.ts +22 -0
- package/dist/store/slices/formIdentifierValueSlice.d.ts +23 -0
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +109 -37
- package/dist/store/slices/formRevisionSlice.d.ts +42 -42
- package/dist/store/slices/formSlice.d.ts +44 -43
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +14 -38
- package/dist/store/slices/formSubmissionSlice.d.ts +11 -39
- package/dist/store/slices/geoImageSlice.d.ts +43 -55
- package/dist/store/slices/index.d.ts +30 -16
- package/dist/store/slices/issueAssociationSlice.d.ts +46 -57
- package/dist/store/slices/issueAttachmentSlice.d.ts +13 -39
- package/dist/store/slices/issueCommentAttachmentSlice.d.ts +13 -39
- package/dist/store/slices/issueCommentSlice.d.ts +13 -27
- package/dist/store/slices/issueSlice.d.ts +17 -29
- package/dist/store/slices/issueTypeAttachmentSlice.d.ts +12 -38
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +41 -54
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +41 -53
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +41 -53
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +41 -53
- package/dist/store/slices/issueTypeIdentifierSlice.d.ts +22 -0
- package/dist/store/slices/issueTypeIdentifierValueSlice.d.ts +23 -0
- package/dist/store/slices/issueTypeSlice.d.ts +13 -26
- package/dist/store/slices/issueTypeStatusSlice.d.ts +118 -0
- package/dist/store/slices/issueUpdateSlice.d.ts +243 -27
- package/dist/store/slices/organizationAccessSlice.d.ts +18 -20
- package/dist/store/slices/organizationSlice.d.ts +42 -60
- package/dist/store/slices/outboxSlice.d.ts +6 -7
- package/dist/store/slices/procedureFieldValuesSlice.d.ts +118 -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 +120 -0
- package/dist/store/slices/procedureStepCommentSlice.d.ts +120 -0
- package/dist/store/slices/procedureStepDefaultAssigneeSlice.d.ts +118 -0
- package/dist/store/slices/procedureStepDefaultReviewerSlice.d.ts +118 -0
- package/dist/store/slices/procedureStepEventSlice.d.ts +120 -0
- package/dist/store/slices/procedureStepFieldValuesAttachmentSlice.d.ts +118 -0
- package/dist/store/slices/procedureStepFieldValuesReviewSlice.d.ts +122 -0
- package/dist/store/slices/procedureStepFieldValuesSlice.d.ts +120 -0
- package/dist/store/slices/procedureStepFieldsAttachmentSlice.d.ts +118 -0
- package/dist/store/slices/procedureStepFieldsSlice.d.ts +216 -0
- package/dist/store/slices/procedureStepReviewerSlice.d.ts +120 -0
- package/dist/store/slices/procedureStepSlice.d.ts +119 -0
- package/dist/store/slices/procedureTypeAttachmentSlice.d.ts +98 -0
- package/dist/store/slices/procedureTypeFieldValuesAttachmentSlice.d.ts +118 -0
- package/dist/store/slices/procedureTypeFieldsAttachmentSlice.d.ts +118 -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 +18 -23
- package/dist/store/slices/projectAttachmentSlice.d.ts +14 -40
- package/dist/store/slices/projectFileSlice.d.ts +43 -70
- package/dist/store/slices/projectSlice.d.ts +45 -60
- package/dist/store/slices/teamMembershipSlice.d.ts +23 -0
- package/dist/store/slices/teamSlice.d.ts +13 -25
- package/dist/store/slices/userSlice.d.ts +111 -51
- package/dist/store/store.d.ts +4 -14
- package/dist/store/typings.d.ts +18 -1
- package/dist/typings/files.d.ts +32 -18
- package/dist/typings/index.d.ts +0 -3
- package/dist/typings/models/agents.d.ts +2 -1
- package/dist/typings/models/assets.d.ts +38 -67
- package/dist/typings/models/base.d.ts +22 -13
- package/dist/typings/models/documents.d.ts +9 -4
- package/dist/typings/models/emailDomain.d.ts +2 -1
- package/dist/typings/models/emailVerification.d.ts +7 -5
- package/dist/typings/models/fields.d.ts +7 -7
- package/dist/typings/models/forms.d.ts +18 -12
- package/dist/typings/models/geoImages.d.ts +8 -8
- package/dist/typings/models/index.d.ts +1 -4
- package/dist/typings/models/issues.d.ts +67 -38
- package/dist/typings/models/organizations.d.ts +4 -5
- package/dist/typings/models/procedures.d.ts +105 -0
- package/dist/typings/models/projects.d.ts +11 -10
- package/dist/typings/models/teams.d.ts +8 -5
- package/dist/typings/models/users.d.ts +4 -3
- package/dist/utils/file.d.ts +7 -11
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/models/assets.d.ts +2 -0
- 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 +4 -0
- package/dist/utils/models/issues.d.ts +2 -0
- package/dist/utils/utils.d.ts +0 -7
- package/dist/utils/uuid.d.ts +7 -0
- package/package.json +36 -54
- package/dist/enums/licenses.d.ts +0 -14
- package/dist/sdk/services/AssetProcedureAttachmentService.d.ts +0 -40
- package/dist/sdk/services/AssetProcedureFieldValuesAttachmentService.d.ts +0 -16
- package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +0 -22
- package/dist/sdk/services/AssetProcedureFieldsAttachmentService.d.ts +0 -13
- package/dist/sdk/services/AssetProcedureFieldsService.d.ts +0 -9
- package/dist/sdk/services/AssetProcedureInstanceService.d.ts +0 -11
- 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 -12
- package/dist/sdk/services/AssetStageCompletionService.d.ts +0 -12
- package/dist/sdk/services/AssetStageService.d.ts +0 -12
- package/dist/sdk/services/BaseAttachmentService.d.ts +0 -38
- package/dist/sdk/services/BaseUploadService.d.ts +0 -10
- package/dist/sdk/services/CategoryService.d.ts +0 -11
- package/dist/sdk/services/LicenseService.d.ts +0 -14
- package/dist/store/slices/assetProcedureAttachmentSlice.d.ts +0 -48
- package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +0 -131
- package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +0 -131
- package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +0 -130
- package/dist/store/slices/assetProcedureFieldsSlice.d.ts +0 -131
- package/dist/store/slices/assetProcedureInstanceSlice.d.ts +0 -132
- package/dist/store/slices/assetProcedureSlice.d.ts +0 -131
- package/dist/store/slices/assetProcedureStepFieldValuesAttachmentSlice.d.ts +0 -131
- package/dist/store/slices/assetProcedureStepFieldValuesSlice.d.ts +0 -132
- package/dist/store/slices/assetProcedureStepFieldsAttachmentSlice.d.ts +0 -130
- package/dist/store/slices/assetProcedureStepFieldsSlice.d.ts +0 -214
- package/dist/store/slices/assetProcedureStepSlice.d.ts +0 -132
- package/dist/store/slices/assetStageCompletionSlice.d.ts +0 -122
- package/dist/store/slices/assetStageSlice.d.ts +0 -132
- package/dist/store/slices/categorySlice.d.ts +0 -111
- package/dist/store/slices/licenseSlice.d.ts +0 -25
- package/dist/typings/colors.d.ts +0 -8
- package/dist/typings/json.d.ts +0 -6
- package/dist/typings/memoization.d.ts +0 -1
- package/dist/typings/models/attachments.d.ts +0 -31
- package/dist/typings/models/categories.d.ts +0 -8
- package/dist/typings/models/issueTypes.d.ts +0 -7
- package/dist/typings/models/license.d.ts +0 -13
- package/dist/typings/models/store.d.ts +0 -0
- package/dist/typings/search.d.ts +0 -23
- package/dist/utils/coordinates.d.ts +0 -4
- package/dist/utils/offline.d.ts +0 -13
- /package/dist/sdk/{classes → outbox}/OutboxCoordinator.d.ts +0 -0
- /package/dist/sdk/{classes → outbox}/OutboxCoordinator.spec.d.ts +0 -0
|
@@ -1,85 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RequiredFileModel } from '../files';
|
|
2
|
+
import { AbbreviationModel, ColorModel, CreatedByModel, GeometryModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { Organization } from './organizations';
|
|
5
|
+
import { Project } from './projects';
|
|
6
|
+
import { AssetStatusType } from '../../enums';
|
|
7
|
+
export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, GeometryModel, IndexedModel {
|
|
8
|
+
asset_type: AssetType["uuid"];
|
|
6
9
|
label: string | null;
|
|
7
|
-
description
|
|
8
|
-
project:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
name?: string | null;
|
|
18
|
-
description?: string | null;
|
|
19
|
-
}
|
|
20
|
-
export interface AssetProcedureInstance extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IndexedModel {
|
|
21
|
-
asset_procedure: string;
|
|
22
|
-
asset_type: string;
|
|
23
|
-
project: string;
|
|
24
|
-
}
|
|
25
|
-
export interface AssetStage extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
|
|
26
|
-
asset_procedure: string;
|
|
27
|
-
name?: string | null;
|
|
28
|
-
description?: string | null;
|
|
29
|
-
priority: number;
|
|
30
|
-
}
|
|
31
|
-
export interface AssetStageCompletion extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
32
|
-
asset: string;
|
|
33
|
-
stage: string;
|
|
34
|
-
asset_procedure_instance: string;
|
|
10
|
+
description: string | null;
|
|
11
|
+
project: Project["uuid"];
|
|
12
|
+
status: AssetTypeStatus["uuid"];
|
|
13
|
+
}
|
|
14
|
+
export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
15
|
+
organization: Organization["uuid"];
|
|
16
|
+
name: string;
|
|
17
|
+
description: string | null;
|
|
18
|
+
order: number;
|
|
19
|
+
default_status: AssetTypeStatus["uuid"] | null;
|
|
35
20
|
}
|
|
36
|
-
export type CompletedStagesMapping = Record<string, Record<string, string>>;
|
|
37
21
|
export interface AssetTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
38
|
-
asset_type:
|
|
22
|
+
asset_type: AssetType["uuid"];
|
|
39
23
|
}
|
|
40
24
|
export interface AssetTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
41
|
-
fields_revision:
|
|
25
|
+
fields_revision: AssetTypeFields["uuid"];
|
|
42
26
|
}
|
|
43
27
|
export interface AssetTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
44
|
-
fields_revision:
|
|
45
|
-
asset:
|
|
28
|
+
fields_revision: AssetTypeFields["uuid"];
|
|
29
|
+
asset: Asset["uuid"];
|
|
46
30
|
}
|
|
47
31
|
export interface AssetTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
48
|
-
field_values:
|
|
32
|
+
field_values: AssetTypeFieldValues["uuid"];
|
|
49
33
|
}
|
|
50
|
-
export interface
|
|
51
|
-
|
|
34
|
+
export interface AssetTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
35
|
+
asset_type: AssetType["uuid"];
|
|
52
36
|
}
|
|
53
|
-
export interface
|
|
54
|
-
|
|
37
|
+
export interface AssetTypeIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
|
|
38
|
+
asset: Asset["uuid"];
|
|
39
|
+
asset_type_identifier: AssetTypeIdentifier["uuid"];
|
|
55
40
|
}
|
|
56
|
-
export interface
|
|
57
|
-
|
|
58
|
-
asset_procedure_instance: string;
|
|
59
|
-
asset: string;
|
|
41
|
+
export interface AssetAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
42
|
+
asset: Asset["uuid"];
|
|
60
43
|
}
|
|
61
|
-
export interface
|
|
62
|
-
|
|
44
|
+
export interface AssetTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
45
|
+
asset_type: AssetType["uuid"];
|
|
63
46
|
}
|
|
64
|
-
export interface
|
|
65
|
-
|
|
66
|
-
name
|
|
67
|
-
|
|
47
|
+
export interface AssetTypeStatus extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
|
|
48
|
+
asset_type: AssetType["uuid"];
|
|
49
|
+
name: string;
|
|
50
|
+
type: AssetStatusType;
|
|
68
51
|
order: number;
|
|
69
52
|
}
|
|
70
|
-
export interface
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
export interface AssetProcedureStepFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
75
|
-
fields_revision: string;
|
|
76
|
-
}
|
|
77
|
-
export interface AssetProcedureStepFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
78
|
-
fields_revision: string;
|
|
79
|
-
asset_procedure_instance: string;
|
|
80
|
-
asset_procedure_step: string;
|
|
81
|
-
asset: string;
|
|
82
|
-
}
|
|
83
|
-
export interface AssetProcedureStepFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
84
|
-
field_values: string;
|
|
53
|
+
export interface AssetComment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
54
|
+
asset: Asset["uuid"];
|
|
55
|
+
content: string;
|
|
85
56
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { MultiPoint, Point } from 'geojson';
|
|
2
|
-
import { COMMON_AUTO_FIELDS } from '../../utils';
|
|
3
|
-
import { CSSColor } from '../colors';
|
|
1
|
+
import { Geometry, MultiPoint, Point, Polygon } from 'geojson';
|
|
4
2
|
import { User } from './users';
|
|
3
|
+
import { COMMON_AUTO_FIELDS } from '../../utils';
|
|
5
4
|
export type UUID<T> = T & {
|
|
6
5
|
uuid: string;
|
|
7
6
|
};
|
|
@@ -54,22 +53,14 @@ export interface TimestampedModel extends Model {
|
|
|
54
53
|
created_at: string;
|
|
55
54
|
updated_at: string;
|
|
56
55
|
}
|
|
57
|
-
export interface OptionalFileModel {
|
|
58
|
-
file_sha1?: string | null;
|
|
59
|
-
file?: string | null;
|
|
60
|
-
objectURL?: string;
|
|
61
|
-
}
|
|
62
|
-
export interface OwnedByOrganization {
|
|
63
|
-
organization_owner: string;
|
|
64
|
-
}
|
|
65
56
|
export interface IconModel {
|
|
66
57
|
icon: string;
|
|
67
58
|
}
|
|
68
59
|
export interface ColorModel {
|
|
69
|
-
color:
|
|
60
|
+
color: string;
|
|
70
61
|
}
|
|
71
62
|
export interface CreatedByModel {
|
|
72
|
-
created_by
|
|
63
|
+
created_by: User["id"] | null;
|
|
73
64
|
}
|
|
74
65
|
export interface IndexedModel {
|
|
75
66
|
index: number;
|
|
@@ -80,10 +71,28 @@ export interface BoundableModel {
|
|
|
80
71
|
export interface CanvasBoundableModel {
|
|
81
72
|
canvas_bounds?: MultiPoint;
|
|
82
73
|
}
|
|
74
|
+
export interface PolygonBoundedModel {
|
|
75
|
+
bounds: Polygon;
|
|
76
|
+
}
|
|
83
77
|
export interface MarkableModel {
|
|
84
78
|
geo_marker?: Point;
|
|
85
79
|
}
|
|
86
80
|
export interface CanvasMarkableModel {
|
|
87
81
|
canvas_marker?: Point;
|
|
88
82
|
}
|
|
83
|
+
export interface IdentifierModel {
|
|
84
|
+
name: string;
|
|
85
|
+
}
|
|
86
|
+
export interface IdentifierValueModel {
|
|
87
|
+
value: string;
|
|
88
|
+
}
|
|
89
|
+
export interface GeometryModel {
|
|
90
|
+
geometry: Geometry;
|
|
91
|
+
}
|
|
92
|
+
export interface AbbreviationModel {
|
|
93
|
+
abbr: string;
|
|
94
|
+
}
|
|
95
|
+
export interface TreeModel<TId extends string | number | symbol> {
|
|
96
|
+
parent: TId | null;
|
|
97
|
+
}
|
|
89
98
|
export {};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
import { RequiredFileModel } from '../files';
|
|
1
2
|
import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
|
+
import { Organization } from './organizations';
|
|
4
|
+
import { Project } from './projects';
|
|
2
5
|
export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
|
|
3
6
|
title: string | null;
|
|
4
7
|
description: string | null;
|
|
5
8
|
content: string | null;
|
|
6
|
-
parent_document:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
parent_document: Document["uuid"] | null;
|
|
10
|
+
project: Project["uuid"] | null;
|
|
11
|
+
organization: Organization["uuid"] | null;
|
|
12
|
+
}
|
|
13
|
+
export interface DocumentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
14
|
+
document: Document["uuid"];
|
|
10
15
|
}
|
|
11
16
|
export type MovePosition = "left" | "right" | "left-child" | "right-child";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { UUIDModel } from './base';
|
|
2
|
-
import {
|
|
2
|
+
import { Organization } from './organizations';
|
|
3
|
+
import { Project } from './projects';
|
|
4
|
+
import { RegistrationPayload, User } from './users';
|
|
3
5
|
export type EmailVerificationPayload = undefined | RegistrationPayload | Omit<RegistrationPayload, "username" | "email">;
|
|
4
6
|
export interface EmailVerificationReturn {
|
|
5
7
|
username?: string;
|
|
6
|
-
project?:
|
|
8
|
+
project?: Project["uuid"];
|
|
7
9
|
}
|
|
8
10
|
export declare enum VerificationCodeType {
|
|
9
11
|
USER_REGISTRATION = 0,
|
|
@@ -16,7 +18,7 @@ export declare enum VerificationCodeType {
|
|
|
16
18
|
export interface VerificationCode extends UUIDModel {
|
|
17
19
|
verification_code: string;
|
|
18
20
|
verification_type: VerificationCodeType;
|
|
19
|
-
organization?:
|
|
20
|
-
project?:
|
|
21
|
-
user?:
|
|
21
|
+
organization?: Organization["uuid"];
|
|
22
|
+
project?: Project["uuid"];
|
|
23
|
+
user?: User["id"];
|
|
22
24
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { SerializedFieldSection, SerializedFieldValues } from '@overmap-ai/forms';
|
|
2
|
-
import {
|
|
1
|
+
import { SerializedField, SerializedFieldSection, SerializedFieldValues } from '@overmap-ai/forms';
|
|
2
|
+
import { RequiredFileModel } from '../files';
|
|
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
|
|
12
|
-
field_identifier:
|
|
11
|
+
export interface FieldsAttachmentModel extends RequiredFileModel {
|
|
12
|
+
field_identifier: SerializedField["identifier"];
|
|
13
13
|
}
|
|
14
|
-
export interface FieldValuesAttachmentModel extends
|
|
15
|
-
field_identifier:
|
|
14
|
+
export interface FieldValuesAttachmentModel extends RequiredFileModel {
|
|
15
|
+
field_identifier: SerializedField["identifier"];
|
|
16
16
|
}
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
import { CreatedByModel, IndexedModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
1
|
+
import { CreatedByModel, IdentifierModel, IdentifierValueModel, IndexedModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
2
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { Organization } from './organizations';
|
|
4
|
+
export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
5
|
+
organization: Organization["uuid"];
|
|
6
|
+
name: string;
|
|
7
|
+
description: string | null;
|
|
5
8
|
}
|
|
6
9
|
export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
7
|
-
form:
|
|
8
|
-
title: string;
|
|
9
|
-
description?: string;
|
|
10
|
+
form: Form["uuid"];
|
|
10
11
|
}
|
|
11
12
|
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
12
13
|
export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
|
|
13
|
-
form_revision:
|
|
14
|
-
|
|
15
|
-
issue?: string | null;
|
|
16
|
-
asset?: string | null;
|
|
14
|
+
form_revision: FormRevision["uuid"];
|
|
15
|
+
form: Form["uuid"];
|
|
17
16
|
}
|
|
18
17
|
export interface FormSubmissionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
|
|
19
|
-
form_submission:
|
|
18
|
+
form_submission: FormSubmission["uuid"];
|
|
20
19
|
}
|
|
21
20
|
export interface FormRevisionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
22
|
-
form_revision:
|
|
21
|
+
form_revision: FormRevision["uuid"];
|
|
22
|
+
}
|
|
23
|
+
export interface FormIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
24
|
+
form: Form["uuid"];
|
|
25
|
+
}
|
|
26
|
+
export interface FormIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
|
|
27
|
+
form_submission: FormSubmission["uuid"];
|
|
28
|
+
form_identifier: FormIdentifier["uuid"];
|
|
23
29
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, Payload, SubmittedAtModel, UUIDModel } from './base';
|
|
1
|
+
import { RequiredFileModel } from '../files';
|
|
2
|
+
import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { Project } from './projects';
|
|
4
|
-
export interface GeoImage extends UUIDModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel,
|
|
5
|
-
title
|
|
6
|
-
description
|
|
4
|
+
export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, RequiredFileModel, IndexedModel {
|
|
5
|
+
title: string | null;
|
|
6
|
+
description: string | null;
|
|
7
7
|
project: Project["uuid"];
|
|
8
|
-
direction
|
|
9
|
-
original_date
|
|
8
|
+
direction: number | null;
|
|
9
|
+
original_date: string | null;
|
|
10
10
|
}
|
|
11
|
-
export type GeoImagePayload = Omit<Payload<GeoImage>, "file_name" | "file_sha1" | "
|
|
11
|
+
export type GeoImagePayload = Omit<Payload<GeoImage>, "file_name" | "file_sha1" | "file_url" | "file_type" | "file_extension"> & {
|
|
12
12
|
file: File;
|
|
13
13
|
};
|
|
14
14
|
export type BulkGeoImagePayload = Omit<GeoImagePayload, "project">;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * from './agents';
|
|
2
2
|
export * from './assets';
|
|
3
|
-
export * from './attachments';
|
|
4
3
|
export * from './base';
|
|
5
|
-
export * from './categories';
|
|
6
4
|
export * from './documents';
|
|
7
5
|
export * from './emailDomain';
|
|
8
6
|
export * from './emailVerification';
|
|
@@ -10,9 +8,8 @@ export * from './fields';
|
|
|
10
8
|
export * from './forms';
|
|
11
9
|
export * from './geoImages';
|
|
12
10
|
export * from './issues';
|
|
13
|
-
export * from './issueTypes';
|
|
14
|
-
export * from './license';
|
|
15
11
|
export * from './organizations';
|
|
12
|
+
export * from './procedures';
|
|
16
13
|
export * from './projects';
|
|
17
14
|
export * from './teams';
|
|
18
15
|
export * from './users';
|
|
@@ -1,60 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
1
|
+
import { RequiredFileModel } from '../files';
|
|
2
|
+
import { Asset } from './assets';
|
|
3
|
+
import { AbbreviationModel, CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
4
4
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
5
|
+
import { Organization } from './organizations';
|
|
6
|
+
import { Project } from './projects';
|
|
5
7
|
import { User } from './users';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
import { IssuePriority, IssueStatusType, IssueUpdateChange } from '../../enums';
|
|
9
|
+
export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
|
|
10
|
+
title: string | null;
|
|
11
|
+
description: string | null;
|
|
9
12
|
priority: IssuePriority;
|
|
10
|
-
status:
|
|
11
|
-
assigned_to
|
|
12
|
-
due_date
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
project: string;
|
|
13
|
+
status: IssueTypeStatus["uuid"];
|
|
14
|
+
assigned_to: User["id"] | null;
|
|
15
|
+
due_date: string | null;
|
|
16
|
+
issue_type: IssueType["uuid"];
|
|
17
|
+
project: Project["uuid"];
|
|
16
18
|
}
|
|
17
19
|
export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel {
|
|
18
|
-
issue:
|
|
20
|
+
issue: Issue["uuid"];
|
|
19
21
|
content: string;
|
|
20
|
-
author
|
|
22
|
+
author: User["id"];
|
|
21
23
|
}
|
|
22
24
|
export interface IssueUpdateChangeTypes {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
assigned_to: {
|
|
25
|
+
[IssueUpdateChange.STATUS]: {
|
|
26
|
+
name: IssueTypeStatus["name"];
|
|
27
|
+
color: IssueTypeStatus["color"];
|
|
28
|
+
uuid: IssueTypeStatus["uuid"];
|
|
29
|
+
};
|
|
30
|
+
[IssueUpdateChange.PRIORITY]: IssuePriority;
|
|
31
|
+
[IssueUpdateChange.DESCRIPTION]: string;
|
|
32
|
+
[IssueUpdateChange.TITLE]: string;
|
|
33
|
+
[IssueUpdateChange.ASSIGNED_TO]: {
|
|
33
34
|
full_name: string;
|
|
34
35
|
id: User["id"];
|
|
35
36
|
} | null;
|
|
36
|
-
|
|
37
|
+
[IssueUpdateChange.DUE_DATE]: string | null;
|
|
37
38
|
}
|
|
38
|
-
export interface IssueUpdate extends UUIDModel, CreatedByModel {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel, TimestampedModel {
|
|
40
|
+
issue: Issue["uuid"];
|
|
41
|
+
changes: Partial<{
|
|
42
|
+
[K in IssueUpdateChange]: IssueUpdateChangeTypes[K];
|
|
43
|
+
}>;
|
|
42
44
|
}
|
|
43
|
-
export interface IssueAssociation extends UUIDModel, SubmittedAtModel, CreatedByModel {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
asset?: string;
|
|
45
|
+
export interface IssueAssociation extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
46
|
+
issue: Issue["uuid"];
|
|
47
|
+
asset: Asset["uuid"];
|
|
47
48
|
}
|
|
48
49
|
export interface IssueTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
49
|
-
issue_type:
|
|
50
|
+
issue_type: IssueType["uuid"];
|
|
50
51
|
}
|
|
51
52
|
export interface IssueTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
52
|
-
fields_revision:
|
|
53
|
+
fields_revision: IssueTypeFields["uuid"];
|
|
53
54
|
}
|
|
54
55
|
export interface IssueTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
55
|
-
fields_revision:
|
|
56
|
-
issue:
|
|
56
|
+
fields_revision: IssueTypeFields["uuid"];
|
|
57
|
+
issue: Issue["uuid"];
|
|
57
58
|
}
|
|
58
59
|
export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
59
|
-
field_values:
|
|
60
|
+
field_values: IssueTypeFieldValues["uuid"];
|
|
61
|
+
}
|
|
62
|
+
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel, AbbreviationModel {
|
|
63
|
+
name: string;
|
|
64
|
+
description: string | null;
|
|
65
|
+
organization: Organization["uuid"];
|
|
66
|
+
default_status: IssueTypeStatus["uuid"] | null;
|
|
67
|
+
}
|
|
68
|
+
export interface IssueTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
69
|
+
issue_type: IssueType["uuid"];
|
|
70
|
+
}
|
|
71
|
+
export interface IssueTypeIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
|
|
72
|
+
issue: Issue["uuid"];
|
|
73
|
+
issue_type_identifier: IssueTypeIdentifier["uuid"];
|
|
74
|
+
}
|
|
75
|
+
export interface IssueAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
76
|
+
issue: Issue["uuid"];
|
|
77
|
+
}
|
|
78
|
+
export interface IssueTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
79
|
+
issue_type: IssueType["uuid"];
|
|
80
|
+
}
|
|
81
|
+
export interface IssueCommentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
82
|
+
issue_comment: IssueComment["uuid"];
|
|
83
|
+
}
|
|
84
|
+
export interface IssueTypeStatus extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
|
|
85
|
+
issue_type: IssueType["uuid"];
|
|
86
|
+
name: string;
|
|
87
|
+
type: IssueStatusType;
|
|
88
|
+
order: number;
|
|
60
89
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { OrganizationAccessLevel } from '../../enums';
|
|
2
|
-
import {
|
|
2
|
+
import { TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { User } from './users';
|
|
4
|
-
export interface Organization extends UUIDModel,
|
|
4
|
+
export interface Organization extends UUIDModel, TimestampedModel {
|
|
5
5
|
name: string;
|
|
6
|
-
has_access: boolean;
|
|
7
6
|
}
|
|
8
|
-
export interface OrganizationAccess extends UUIDModel {
|
|
7
|
+
export interface OrganizationAccess extends UUIDModel, TimestampedModel {
|
|
9
8
|
user: User["id"];
|
|
10
|
-
organization:
|
|
9
|
+
organization: Organization["uuid"];
|
|
11
10
|
access_level: OrganizationAccessLevel;
|
|
12
11
|
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { SerializedCondition } from '@overmap-ai/forms';
|
|
2
|
+
import { RequiredFileModel } from '../files';
|
|
3
|
+
import { Asset, AssetType } from './assets';
|
|
4
|
+
import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
5
|
+
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
6
|
+
import { Organization } from './organizations';
|
|
7
|
+
import { Project } from './projects';
|
|
8
|
+
import { User } from './users';
|
|
9
|
+
import { ProcedureStepEventType, ProcedureStepFieldValuesReviewType } from '../../enums';
|
|
10
|
+
export interface ProcedureType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
organization: Organization["uuid"];
|
|
14
|
+
}
|
|
15
|
+
export interface ProcedureTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
16
|
+
procedure_type: ProcedureType["uuid"];
|
|
17
|
+
}
|
|
18
|
+
export interface ProcedureStep extends UUIDModel, TimestampedModel, ColorModel, SubmittedAtModel, CreatedByModel {
|
|
19
|
+
procedure_type: ProcedureType["uuid"];
|
|
20
|
+
name: string;
|
|
21
|
+
order: number;
|
|
22
|
+
}
|
|
23
|
+
export interface ProcedureStepFields extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, FieldsModel {
|
|
24
|
+
procedure_step: ProcedureStep["uuid"];
|
|
25
|
+
field_conditions?: SerializedCondition[] | null;
|
|
26
|
+
}
|
|
27
|
+
export interface ProcedureTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
28
|
+
procedure_type: ProcedureType["uuid"];
|
|
29
|
+
}
|
|
30
|
+
export interface ProcedureTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
31
|
+
fields_revision: ProcedureTypeFields["uuid"];
|
|
32
|
+
}
|
|
33
|
+
export interface ProcedureFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
34
|
+
fields_revision: ProcedureTypeFields["uuid"];
|
|
35
|
+
procedure: Procedure["uuid"];
|
|
36
|
+
}
|
|
37
|
+
export interface ProcedureFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
38
|
+
field_values: ProcedureFieldValues["uuid"];
|
|
39
|
+
}
|
|
40
|
+
export interface ProcedureStepFieldsAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, FieldsAttachmentModel {
|
|
41
|
+
fields_revision: ProcedureStepFields["uuid"];
|
|
42
|
+
}
|
|
43
|
+
export interface Procedure extends UUIDModel, TimestampedModel, SubmittedAtModel, IndexedModel, CreatedByModel {
|
|
44
|
+
procedure_type: ProcedureType["uuid"];
|
|
45
|
+
project: Project["uuid"];
|
|
46
|
+
asset: Asset["uuid"];
|
|
47
|
+
procedure_initiative: ProcedureInitiative["uuid"] | null;
|
|
48
|
+
}
|
|
49
|
+
export interface ProcedureStepAssignee extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
50
|
+
procedure: Procedure["uuid"];
|
|
51
|
+
procedure_step: ProcedureStep["uuid"];
|
|
52
|
+
user: User["id"];
|
|
53
|
+
}
|
|
54
|
+
export interface ProcedureStepComment extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
55
|
+
procedure: Procedure["uuid"];
|
|
56
|
+
procedure_step: ProcedureStep["uuid"];
|
|
57
|
+
content: string;
|
|
58
|
+
}
|
|
59
|
+
export type ProcedureStepEventTypeValueMapping = {
|
|
60
|
+
[ProcedureStepEventType.ADD_ASSIGNEE]: number;
|
|
61
|
+
[ProcedureStepEventType.REMOVE_ASSIGNEE]: number;
|
|
62
|
+
[ProcedureStepEventType.ADD_REVIEWER]: number;
|
|
63
|
+
[ProcedureStepEventType.REMOVE_REVIEWER]: number;
|
|
64
|
+
};
|
|
65
|
+
export type ProcedureEventEventTypeValueDiscriminator = {
|
|
66
|
+
[TType in ProcedureStepEventType]: {
|
|
67
|
+
type: TType;
|
|
68
|
+
value: ProcedureStepEventTypeValueMapping[TType];
|
|
69
|
+
};
|
|
70
|
+
}[ProcedureStepEventType];
|
|
71
|
+
export type ProcedureStepEvent = UUIDModel & TimestampedModel & CreatedByModel & ProcedureEventEventTypeValueDiscriminator & {
|
|
72
|
+
procedure: Procedure["uuid"];
|
|
73
|
+
procedure_step: ProcedureStep["uuid"];
|
|
74
|
+
};
|
|
75
|
+
export interface ProcedureStepFieldValues extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, FieldValuesModel {
|
|
76
|
+
procedure: Procedure["uuid"];
|
|
77
|
+
procedure_step: ProcedureStep["uuid"];
|
|
78
|
+
fields_revision: ProcedureStepFields["uuid"];
|
|
79
|
+
}
|
|
80
|
+
export interface ProcedureStepFieldValuesAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, FieldsAttachmentModel {
|
|
81
|
+
field_values: ProcedureStepFieldValues["uuid"];
|
|
82
|
+
}
|
|
83
|
+
export interface ProcedureStepFieldValuesReview extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
84
|
+
field_values: ProcedureStepFieldValues["uuid"];
|
|
85
|
+
content: string;
|
|
86
|
+
type: ProcedureStepFieldValuesReviewType;
|
|
87
|
+
}
|
|
88
|
+
export interface ProcedureStepReviewer extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
89
|
+
procedure: Procedure["uuid"];
|
|
90
|
+
procedure_step: ProcedureStep["uuid"];
|
|
91
|
+
user: User["id"];
|
|
92
|
+
}
|
|
93
|
+
export interface ProcedureStepDefaultAssignee extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
94
|
+
procedure_step: ProcedureStep["uuid"];
|
|
95
|
+
user: User["id"];
|
|
96
|
+
}
|
|
97
|
+
export interface ProcedureStepDefaultReviewer extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
98
|
+
procedure_step: ProcedureStep["uuid"];
|
|
99
|
+
user: User["id"];
|
|
100
|
+
}
|
|
101
|
+
export interface ProcedureInitiative extends UUIDModel, TimestampedModel, SubmittedAtModel, IndexedModel, CreatedByModel {
|
|
102
|
+
procedure_type: ProcedureType["uuid"];
|
|
103
|
+
project: Project["uuid"];
|
|
104
|
+
asset_type: AssetType["uuid"];
|
|
105
|
+
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { RequiredFileModel } from '../files';
|
|
2
|
+
import { BoundableModel, CanvasBoundableModel, CreatedByModel, PolygonBoundedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
|
+
import { Organization, OrganizationAccess } from './organizations';
|
|
4
4
|
import { User } from './users';
|
|
5
|
-
export interface Project extends UUIDModel,
|
|
5
|
+
export interface Project extends UUIDModel, TimestampedModel, PolygonBoundedModel, CreatedByModel {
|
|
6
6
|
name: string;
|
|
7
|
-
|
|
8
|
-
issues_count?: number;
|
|
9
|
-
form_submissions_count?: number;
|
|
7
|
+
organization: Organization["uuid"];
|
|
10
8
|
}
|
|
11
|
-
export interface ProjectFile extends UUIDModel, SubmittedAtModel,
|
|
9
|
+
export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, RequiredFileModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
|
|
12
10
|
z_index: number;
|
|
13
11
|
project: Project["uuid"];
|
|
14
12
|
}
|
|
15
|
-
export interface ProjectAccess extends UUIDModel {
|
|
13
|
+
export interface ProjectAccess extends UUIDModel, CreatedByModel, TimestampedModel {
|
|
16
14
|
user: User["id"];
|
|
17
15
|
project: Project["uuid"];
|
|
18
|
-
|
|
16
|
+
organization_access: OrganizationAccess["uuid"];
|
|
17
|
+
}
|
|
18
|
+
export interface ProjectAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
19
|
+
project: Project["uuid"];
|
|
19
20
|
}
|