@overmap-ai/core 1.0.78-view-sets-cleanup.3 → 1.0.78-workflows.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/defaults.d.ts +1 -2
- package/dist/enums/asset.d.ts +8 -0
- package/dist/enums/index.d.ts +2 -0
- package/dist/enums/issue.d.ts +7 -5
- package/dist/enums/workflows.d.ts +5 -0
- package/dist/overmap-core.js +11119 -6871
- package/dist/overmap-core.umd.cjs +11 -11
- package/dist/sdk/base.d.ts +6 -2
- package/dist/sdk/constants.d.ts +4 -5
- package/dist/sdk/errors.d.ts +5 -0
- package/dist/sdk/index.d.ts +5 -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 +2 -1
- package/dist/sdk/services/AssetAttachmentService.d.ts +25 -27
- package/dist/sdk/services/AssetProcedureService.d.ts +23 -6
- package/dist/sdk/services/AssetProcedureStepFieldValuesAttachmentService.d.ts +20 -3
- package/dist/sdk/services/AssetProcedureStepFieldValuesService.d.ts +22 -12
- package/dist/sdk/services/AssetProcedureStepFieldsAttachmentService.d.ts +20 -3
- package/dist/sdk/services/AssetProcedureStepFieldsService.d.ts +21 -4
- package/dist/sdk/services/AssetProcedureStepService.d.ts +21 -4
- package/dist/sdk/services/AssetProcedureTypeAttachmentService.d.ts +39 -0
- package/dist/sdk/services/AssetProcedureTypeFieldValuesAttachmentService.d.ts +33 -0
- package/dist/sdk/services/AssetProcedureTypeFieldValuesService.d.ts +33 -0
- package/dist/sdk/services/AssetProcedureTypeFieldsAttachmentService.d.ts +30 -0
- package/dist/sdk/services/AssetProcedureTypeFieldsService.d.ts +26 -0
- package/dist/sdk/services/AssetProcedureTypeService.d.ts +28 -0
- package/dist/sdk/services/AssetService.d.ts +23 -5
- package/dist/sdk/services/AssetStageCompletionService.d.ts +21 -4
- package/dist/sdk/services/AssetStageService.d.ts +21 -4
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +25 -26
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +20 -3
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +22 -10
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +21 -4
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +20 -3
- 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 +21 -4
- package/dist/sdk/services/AssetTypeStatusService.d.ts +28 -0
- package/dist/sdk/services/BaseModelApiService.d.ts +27 -0
- package/dist/sdk/services/BaseOfflineAttachmentModelService.d.ts +23 -0
- package/dist/sdk/services/BaseOfflineModelApiService.d.ts +27 -0
- package/dist/sdk/services/BaseService.d.ts +5 -3
- package/dist/sdk/services/CategoryService.d.ts +22 -5
- package/dist/sdk/services/DocumentAttachmentService.d.ts +25 -26
- package/dist/sdk/services/DocumentService.d.ts +22 -5
- package/dist/sdk/services/EmailDomainsService.d.ts +21 -4
- package/dist/sdk/services/FileService.d.ts +5 -1
- package/dist/sdk/services/FormIdentifierService.d.ts +28 -0
- package/dist/sdk/services/FormIdentifierValueService.d.ts +28 -0
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +20 -3
- package/dist/sdk/services/FormRevisionService.d.ts +20 -3
- package/dist/sdk/services/FormService.d.ts +20 -3
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +22 -5
- package/dist/sdk/services/FormSubmissionService.d.ts +22 -5
- package/dist/sdk/services/GeoImageService.d.ts +22 -5
- package/dist/sdk/services/IssueAssociationService.d.ts +21 -4
- package/dist/sdk/services/IssueAttachmentService.d.ts +25 -27
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +25 -27
- package/dist/sdk/services/IssueCommentService.d.ts +22 -5
- package/dist/sdk/services/IssueService.d.ts +23 -5
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +25 -27
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +20 -3
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +21 -4
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +20 -3
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +21 -4
- package/dist/sdk/services/IssueTypeIdentifierService.d.ts +28 -0
- package/dist/sdk/services/IssueTypeIdentifierValueService.d.ts +28 -0
- package/dist/sdk/services/IssueTypeService.d.ts +21 -4
- package/dist/sdk/services/IssueTypeStatusService.d.ts +28 -0
- package/dist/sdk/services/IssueUpdateService.d.ts +186 -3
- package/dist/sdk/services/JWTAuthService.d.ts +1 -1
- package/dist/sdk/services/OrganizationAccessService.d.ts +21 -4
- package/dist/sdk/services/OrganizationService.d.ts +20 -3
- package/dist/sdk/services/ProjectAccessService.d.ts +24 -6
- package/dist/sdk/services/ProjectAttachmentService.d.ts +25 -26
- package/dist/sdk/services/ProjectFileService.d.ts +20 -3
- package/dist/sdk/services/ProjectService.d.ts +22 -5
- package/dist/sdk/services/TeamMembershipService.d.ts +22 -4
- package/dist/sdk/services/TeamService.d.ts +21 -4
- package/dist/sdk/services/UserService.d.ts +24 -3
- package/dist/sdk/services/WorkflowService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepAssigneeService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepCommentAttachmentService.d.ts +39 -0
- package/dist/sdk/services/WorkflowStepCommentService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepCompletionService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepFieldValuesAttachmentService.d.ts +31 -0
- package/dist/sdk/services/WorkflowStepFieldValuesService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepFieldsAttachmentService.d.ts +30 -0
- package/dist/sdk/services/WorkflowStepFieldsService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepReviewRequestService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepReviewService.d.ts +28 -0
- package/dist/sdk/services/WorkflowStepService.d.ts +28 -0
- package/dist/sdk/services/WorkflowTypeService.d.ts +28 -0
- package/dist/sdk/services/index.d.ts +30 -6
- package/dist/sdk/typings.d.ts +15 -58
- package/dist/sdk/utils.d.ts +2 -0
- package/dist/store/adapters/modelAdapter.d.ts +13 -14
- package/dist/store/adapters/typings.d.ts +19 -0
- package/dist/store/reducers.d.ts +81 -18
- 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 +11 -38
- package/dist/store/slices/assetAttachmentSlice.d.ts +11 -37
- package/dist/store/slices/assetProcedureSlice.d.ts +118 -41
- package/dist/store/slices/assetProcedureStepFieldValuesAttachmentSlice.d.ts +38 -44
- package/dist/store/slices/assetProcedureStepFieldValuesSlice.d.ts +40 -45
- package/dist/store/slices/assetProcedureStepFieldsAttachmentSlice.d.ts +38 -43
- package/dist/store/slices/assetProcedureStepFieldsSlice.d.ts +65 -49
- package/dist/store/slices/assetProcedureStepSlice.d.ts +42 -47
- package/dist/store/slices/assetProcedureTypeAttachmentSlice.d.ts +105 -0
- package/dist/store/slices/assetProcedureTypeFieldValuesAttachmentSlice.d.ts +125 -0
- package/dist/store/slices/assetProcedureTypeFieldValuesSlice.d.ts +126 -0
- package/dist/store/slices/assetProcedureTypeFieldsAttachmentSlice.d.ts +125 -0
- package/dist/store/slices/assetProcedureTypeFieldsSlice.d.ts +23 -0
- package/dist/store/slices/assetProcedureTypeSlice.d.ts +22 -0
- package/dist/store/slices/assetSlice.d.ts +39 -45
- package/dist/store/slices/assetStageCompletionSlice.d.ts +38 -44
- package/dist/store/slices/assetStageSlice.d.ts +41 -47
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +11 -37
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +38 -44
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +38 -43
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +38 -43
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +38 -43
- 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 +11 -38
- package/dist/store/slices/assetTypeStatusSlice.d.ts +125 -0
- package/dist/store/slices/categorySlice.d.ts +38 -44
- package/dist/store/slices/documentAttachmentSlice.d.ts +11 -37
- package/dist/store/slices/documentSlice.d.ts +17 -24
- package/dist/store/slices/emailDomainsSlice.d.ts +40 -44
- 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 +116 -37
- package/dist/store/slices/formRevisionSlice.d.ts +38 -43
- package/dist/store/slices/formSlice.d.ts +38 -43
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +13 -38
- package/dist/store/slices/formSubmissionSlice.d.ts +12 -40
- package/dist/store/slices/geoImageSlice.d.ts +38 -43
- package/dist/store/slices/index.d.ts +27 -6
- package/dist/store/slices/issueAssociationSlice.d.ts +38 -43
- package/dist/store/slices/issueAttachmentSlice.d.ts +11 -37
- package/dist/store/slices/issueCommentAttachmentSlice.d.ts +11 -37
- package/dist/store/slices/issueCommentSlice.d.ts +11 -37
- package/dist/store/slices/issueSlice.d.ts +11 -38
- package/dist/store/slices/issueTypeAttachmentSlice.d.ts +12 -38
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +38 -44
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +38 -43
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +38 -43
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +38 -43
- 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 +12 -43
- package/dist/store/slices/issueTypeStatusSlice.d.ts +125 -0
- package/dist/store/slices/issueUpdateSlice.d.ts +262 -38
- package/dist/store/slices/organizationAccessSlice.d.ts +11 -37
- package/dist/store/slices/organizationSlice.d.ts +38 -43
- package/dist/store/slices/outboxSlice.d.ts +6 -7
- package/dist/store/slices/projectAccessSlice.d.ts +11 -37
- package/dist/store/slices/projectAttachmentSlice.d.ts +13 -39
- package/dist/store/slices/projectFileSlice.d.ts +39 -45
- package/dist/store/slices/projectSlice.d.ts +38 -43
- package/dist/store/slices/teamMembershipSlice.d.ts +11 -37
- package/dist/store/slices/teamSlice.d.ts +11 -38
- package/dist/store/slices/userSlice.d.ts +38 -44
- package/dist/store/slices/workflowSlice.d.ts +23 -0
- package/dist/store/slices/workflowStepAssigneeSlice.d.ts +127 -0
- package/dist/store/slices/workflowStepCommentAttachmentSlice.d.ts +22 -0
- package/dist/store/slices/workflowStepCommentSlice.d.ts +126 -0
- package/dist/store/slices/workflowStepCompletionSlice.d.ts +126 -0
- package/dist/store/slices/workflowStepFieldValuesAttachmentSlice.d.ts +125 -0
- package/dist/store/slices/workflowStepFieldValuesSlice.d.ts +127 -0
- package/dist/store/slices/workflowStepFieldsAttachmentSlice.d.ts +125 -0
- package/dist/store/slices/workflowStepFieldsSlice.d.ts +230 -0
- package/dist/store/slices/workflowStepReviewRequestSlice.d.ts +126 -0
- package/dist/store/slices/workflowStepReviewSlice.d.ts +126 -0
- package/dist/store/slices/workflowStepSlice.d.ts +125 -0
- package/dist/store/slices/workflowTypeSlice.d.ts +22 -0
- package/dist/store/store.d.ts +4 -14
- package/dist/store/typings.d.ts +18 -1
- package/dist/typings/files.d.ts +15 -14
- package/dist/typings/index.d.ts +0 -3
- package/dist/typings/models/agents.d.ts +2 -1
- package/dist/typings/models/assets.d.ts +80 -51
- package/dist/typings/models/base.d.ts +19 -13
- package/dist/typings/models/categories.d.ts +5 -6
- package/dist/typings/models/documents.d.ts +6 -3
- 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 +15 -10
- package/dist/typings/models/geoImages.d.ts +7 -7
- package/dist/typings/models/index.d.ts +1 -2
- package/dist/typings/models/issues.d.ts +67 -31
- package/dist/typings/models/organizations.d.ts +1 -1
- package/dist/typings/models/projects.d.ts +8 -4
- package/dist/typings/models/teams.d.ts +4 -4
- package/dist/typings/models/users.d.ts +4 -2
- package/dist/typings/models/workflows.d.ts +67 -0
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/models/assets.d.ts +5 -0
- package/dist/utils/models/documents.d.ts +4 -0
- package/dist/utils/models/index.d.ts +3 -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 +35 -49
- 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/BaseAttachmentService.d.ts +0 -38
- package/dist/sdk/services/BaseUploadService.d.ts +0 -10
- 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 -49
- package/dist/store/slices/assetProcedureInstanceSlice.d.ts +0 -132
- 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/issueTypes.d.ts +0 -7
- 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,114 @@
|
|
|
1
1
|
import { SerializedCondition } from '@overmap-ai/forms';
|
|
2
|
-
import {
|
|
2
|
+
import { RequiredFileWithNameModel } from '../files';
|
|
3
|
+
import { AbbreviationModel, ColorModel, CreatedByModel, GeometryModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, SubmittedAtModel, TimestampedModel, TreeModel, UUIDModel } from './base';
|
|
3
4
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
import { Organization } from './organizations';
|
|
6
|
+
import { Project } from './projects';
|
|
7
|
+
import { AssetStatusType } from '../../enums';
|
|
8
|
+
export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, GeometryModel, IndexedModel {
|
|
9
|
+
asset_type: AssetType["uuid"];
|
|
6
10
|
label: string | null;
|
|
7
|
-
description
|
|
8
|
-
project:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
description: string | null;
|
|
12
|
+
project: Project["uuid"];
|
|
13
|
+
status: AssetTypeStatus["uuid"];
|
|
14
|
+
}
|
|
15
|
+
export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
16
|
+
organization: Organization["uuid"];
|
|
17
|
+
name: string;
|
|
18
|
+
description: string | null;
|
|
19
|
+
order: number;
|
|
20
|
+
default_status: AssetTypeStatus["uuid"] | null;
|
|
14
21
|
}
|
|
15
|
-
export interface
|
|
16
|
-
organization:
|
|
17
|
-
name
|
|
18
|
-
description
|
|
22
|
+
export interface AssetProcedureType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
23
|
+
organization: Organization["uuid"];
|
|
24
|
+
name: string;
|
|
25
|
+
description: string | null;
|
|
19
26
|
}
|
|
20
|
-
export interface
|
|
21
|
-
|
|
22
|
-
asset_type:
|
|
23
|
-
project:
|
|
27
|
+
export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IndexedModel {
|
|
28
|
+
asset_procedure_type: AssetProcedureType["uuid"];
|
|
29
|
+
asset_type: AssetType["uuid"];
|
|
30
|
+
project: Project["uuid"];
|
|
24
31
|
}
|
|
25
32
|
export interface AssetStage extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
|
|
26
|
-
|
|
27
|
-
name
|
|
28
|
-
description
|
|
33
|
+
asset_procedure_type: AssetProcedureType["uuid"];
|
|
34
|
+
name: string;
|
|
35
|
+
description: string | null;
|
|
29
36
|
priority: number;
|
|
30
37
|
}
|
|
31
38
|
export interface AssetStageCompletion extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
32
|
-
asset:
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
asset: Asset["uuid"];
|
|
40
|
+
asset_stage: AssetStage["uuid"];
|
|
41
|
+
asset_procedure: AssetProcedure["uuid"];
|
|
35
42
|
}
|
|
36
|
-
export type CompletedStagesMapping = Record<
|
|
43
|
+
export type CompletedStagesMapping = Record<Asset["uuid"], Record<AssetStage["uuid"], AssetStageCompletion["submitted_at"]>>;
|
|
37
44
|
export interface AssetTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
38
|
-
asset_type:
|
|
45
|
+
asset_type: AssetType["uuid"];
|
|
39
46
|
}
|
|
40
47
|
export interface AssetTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
41
|
-
fields_revision:
|
|
48
|
+
fields_revision: AssetTypeFields["uuid"];
|
|
42
49
|
}
|
|
43
50
|
export interface AssetTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
44
|
-
fields_revision:
|
|
45
|
-
asset:
|
|
51
|
+
fields_revision: AssetTypeFields["uuid"];
|
|
52
|
+
asset: Asset["uuid"];
|
|
46
53
|
}
|
|
47
54
|
export interface AssetTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
48
|
-
field_values:
|
|
55
|
+
field_values: AssetTypeFieldValues["uuid"];
|
|
49
56
|
}
|
|
50
|
-
export interface
|
|
51
|
-
|
|
57
|
+
export interface AssetProcedureTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
58
|
+
asset_procedure_type: AssetProcedureType["uuid"];
|
|
52
59
|
}
|
|
53
|
-
export interface
|
|
54
|
-
fields_revision:
|
|
60
|
+
export interface AssetProcedureTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
61
|
+
fields_revision: AssetProcedureTypeFields["uuid"];
|
|
55
62
|
}
|
|
56
|
-
export interface
|
|
57
|
-
fields_revision:
|
|
58
|
-
|
|
59
|
-
asset:
|
|
63
|
+
export interface AssetProcedureTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
64
|
+
fields_revision: AssetProcedureTypeFields["uuid"];
|
|
65
|
+
asset_procedure: AssetProcedure["uuid"];
|
|
66
|
+
asset: Asset["uuid"];
|
|
60
67
|
}
|
|
61
|
-
export interface
|
|
62
|
-
field_values:
|
|
68
|
+
export interface AssetProcedureTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
69
|
+
field_values: AssetProcedureTypeFieldValues["uuid"];
|
|
63
70
|
}
|
|
64
|
-
export interface AssetProcedureStep extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
|
|
65
|
-
|
|
66
|
-
name
|
|
67
|
-
description
|
|
71
|
+
export interface AssetProcedureStep extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel, TreeModel<string> {
|
|
72
|
+
asset_procedure_type: AssetProcedureType["uuid"];
|
|
73
|
+
name: string;
|
|
74
|
+
description: string | null;
|
|
68
75
|
order: number;
|
|
69
76
|
}
|
|
70
77
|
export interface AssetProcedureStepFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
71
|
-
asset_procedure_step:
|
|
78
|
+
asset_procedure_step: AssetProcedureStep["uuid"];
|
|
72
79
|
field_conditions?: SerializedCondition[] | null;
|
|
73
80
|
}
|
|
74
81
|
export interface AssetProcedureStepFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
75
|
-
fields_revision:
|
|
82
|
+
fields_revision: AssetProcedureStepFields["uuid"];
|
|
76
83
|
}
|
|
77
84
|
export interface AssetProcedureStepFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
78
|
-
fields_revision:
|
|
79
|
-
|
|
80
|
-
asset_procedure_step:
|
|
81
|
-
asset:
|
|
85
|
+
fields_revision: AssetProcedureStepFields["uuid"];
|
|
86
|
+
asset_procedure: AssetProcedure["uuid"];
|
|
87
|
+
asset_procedure_step: AssetProcedureStep["uuid"];
|
|
88
|
+
asset: Asset["uuid"];
|
|
82
89
|
}
|
|
83
90
|
export interface AssetProcedureStepFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
84
|
-
field_values:
|
|
91
|
+
field_values: AssetProcedureStepFieldValues["uuid"];
|
|
92
|
+
}
|
|
93
|
+
export interface AssetTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
94
|
+
asset_type: AssetType["uuid"];
|
|
95
|
+
}
|
|
96
|
+
export interface AssetTypeIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
|
|
97
|
+
asset: Asset["uuid"];
|
|
98
|
+
asset_type_identifier: AssetTypeIdentifier["uuid"];
|
|
99
|
+
}
|
|
100
|
+
export interface AssetAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
|
|
101
|
+
asset: Asset["uuid"];
|
|
102
|
+
}
|
|
103
|
+
export interface AssetTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
|
|
104
|
+
asset_type: AssetType["uuid"];
|
|
105
|
+
}
|
|
106
|
+
export interface AssetProcedureTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
|
|
107
|
+
asset_procedure_type: AssetProcedureType["uuid"];
|
|
108
|
+
}
|
|
109
|
+
export interface AssetTypeStatus extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
|
|
110
|
+
asset_type: AssetType["uuid"];
|
|
111
|
+
name: string;
|
|
112
|
+
type: AssetStatusType;
|
|
113
|
+
order: number;
|
|
85
114
|
}
|
|
@@ -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 } 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;
|
|
@@ -86,4 +77,19 @@ export interface MarkableModel {
|
|
|
86
77
|
export interface CanvasMarkableModel {
|
|
87
78
|
canvas_marker?: Point;
|
|
88
79
|
}
|
|
80
|
+
export interface IdentifierModel {
|
|
81
|
+
name: string;
|
|
82
|
+
}
|
|
83
|
+
export interface IdentifierValueModel {
|
|
84
|
+
value: string;
|
|
85
|
+
}
|
|
86
|
+
export interface GeometryModel {
|
|
87
|
+
geometry: Geometry;
|
|
88
|
+
}
|
|
89
|
+
export interface AbbreviationModel {
|
|
90
|
+
abbr: string;
|
|
91
|
+
}
|
|
92
|
+
export interface TreeModel<TId extends string | number | symbol> {
|
|
93
|
+
parent: TId | null;
|
|
94
|
+
}
|
|
89
95
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export interface Category extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
1
|
+
import { ColorModel, CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
|
+
import { Project } from './projects';
|
|
3
|
+
export interface Category extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, ColorModel {
|
|
4
4
|
name: string;
|
|
5
|
-
description
|
|
6
|
-
|
|
7
|
-
project: string;
|
|
5
|
+
description: string | null;
|
|
6
|
+
project: Project["uuid"];
|
|
8
7
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RequiredFileWithNameModel } from '../files';
|
|
1
2
|
import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
3
|
import { Organization } from './organizations';
|
|
3
4
|
import { Project } from './projects';
|
|
@@ -6,8 +7,10 @@ export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, T
|
|
|
6
7
|
description: string | null;
|
|
7
8
|
content: string | null;
|
|
8
9
|
parent_document: Document["uuid"] | null;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
project: Project["uuid"] | null;
|
|
11
|
+
organization: Organization["uuid"] | null;
|
|
12
|
+
}
|
|
13
|
+
export interface DocumentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
|
|
14
|
+
document: Document["uuid"];
|
|
12
15
|
}
|
|
13
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 { RequiredFileWithNameModel } 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 RequiredFileWithNameModel {
|
|
12
|
+
field_identifier: SerializedField["identifier"];
|
|
13
13
|
}
|
|
14
|
-
export interface FieldValuesAttachmentModel extends
|
|
15
|
-
field_identifier:
|
|
14
|
+
export interface FieldValuesAttachmentModel extends RequiredFileWithNameModel {
|
|
15
|
+
field_identifier: SerializedField["identifier"];
|
|
16
16
|
}
|
|
@@ -1,23 +1,28 @@
|
|
|
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
|
+
import { Organization } from './organizations';
|
|
3
4
|
export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
4
|
-
organization:
|
|
5
|
+
organization: Organization["uuid"];
|
|
5
6
|
}
|
|
6
7
|
export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
7
|
-
form:
|
|
8
|
+
form: Form["uuid"];
|
|
8
9
|
title: string;
|
|
9
|
-
description
|
|
10
|
+
description: string | null;
|
|
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
|
-
project: string;
|
|
15
|
-
issue?: string | null;
|
|
16
|
-
asset?: string | null;
|
|
14
|
+
form_revision: FormRevision["uuid"];
|
|
17
15
|
}
|
|
18
16
|
export interface FormSubmissionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
|
|
19
|
-
form_submission:
|
|
17
|
+
form_submission: FormSubmission["uuid"];
|
|
20
18
|
}
|
|
21
19
|
export interface FormRevisionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
22
|
-
form_revision:
|
|
20
|
+
form_revision: FormRevision["uuid"];
|
|
21
|
+
}
|
|
22
|
+
export interface FormIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
23
|
+
form: Form["uuid"];
|
|
24
|
+
}
|
|
25
|
+
export interface FormIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
|
|
26
|
+
form_submission: FormSubmission["uuid"];
|
|
27
|
+
form_identifier: FormIdentifier["uuid"];
|
|
23
28
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequiredFileWithNameModel } from '../files';
|
|
2
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, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel,
|
|
5
|
-
title
|
|
6
|
-
description
|
|
4
|
+
export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, RequiredFileWithNameModel, 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" | "file"> & {
|
|
11
|
+
export type GeoImagePayload = Omit<Payload<GeoImage>, "file_name" | "file_sha1" | "file" | "file_type"> & {
|
|
12
12
|
file: File;
|
|
13
13
|
};
|
|
14
14
|
export type BulkGeoImagePayload = Omit<GeoImagePayload, "project">;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './agents';
|
|
2
2
|
export * from './assets';
|
|
3
|
-
export * from './attachments';
|
|
4
3
|
export * from './base';
|
|
5
4
|
export * from './categories';
|
|
6
5
|
export * from './documents';
|
|
@@ -10,8 +9,8 @@ export * from './fields';
|
|
|
10
9
|
export * from './forms';
|
|
11
10
|
export * from './geoImages';
|
|
12
11
|
export * from './issues';
|
|
13
|
-
export * from './issueTypes';
|
|
14
12
|
export * from './organizations';
|
|
15
13
|
export * from './projects';
|
|
16
14
|
export * from './teams';
|
|
17
15
|
export * from './users';
|
|
16
|
+
export * from './workflows';
|
|
@@ -1,59 +1,95 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
1
|
+
import { RequiredFileWithNameModel } from '../files';
|
|
2
|
+
import { Asset } from './assets';
|
|
3
|
+
import { AbbreviationModel, CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
4
|
+
import { Category } from './categories';
|
|
4
5
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
6
|
+
import { Organization } from './organizations';
|
|
7
|
+
import { Project } from './projects';
|
|
5
8
|
import { User } from './users';
|
|
9
|
+
import { IssuePriority, IssueStatusType, IssueUpdateChange } from '../../enums';
|
|
6
10
|
export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
|
|
7
|
-
title
|
|
8
|
-
description
|
|
11
|
+
title: string | null;
|
|
12
|
+
description: string | null;
|
|
9
13
|
priority: IssuePriority;
|
|
10
|
-
status:
|
|
11
|
-
assigned_to
|
|
12
|
-
due_date
|
|
13
|
-
category
|
|
14
|
-
issue_type:
|
|
15
|
-
project:
|
|
14
|
+
status: IssueTypeStatus["uuid"];
|
|
15
|
+
assigned_to: User["id"] | null;
|
|
16
|
+
due_date: string | null;
|
|
17
|
+
category: Category["uuid"] | null;
|
|
18
|
+
issue_type: IssueType["uuid"];
|
|
19
|
+
project: Project["uuid"];
|
|
16
20
|
}
|
|
17
21
|
export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel {
|
|
18
|
-
issue:
|
|
22
|
+
issue: Issue["uuid"];
|
|
19
23
|
content: string;
|
|
20
|
-
author
|
|
24
|
+
author: User["id"];
|
|
21
25
|
}
|
|
22
26
|
export interface IssueUpdateChangeTypes {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
[IssueUpdateChange.STATUS]: {
|
|
28
|
+
name: string;
|
|
29
|
+
color: Category["color"];
|
|
30
|
+
uuid: Category["uuid"];
|
|
31
|
+
};
|
|
32
|
+
[IssueUpdateChange.PRIORITY]: IssuePriority;
|
|
33
|
+
[IssueUpdateChange.CATEGORY]: {
|
|
26
34
|
name: string;
|
|
27
|
-
color:
|
|
28
|
-
uuid:
|
|
35
|
+
color: Category["color"];
|
|
36
|
+
uuid: Category["uuid"];
|
|
29
37
|
} | null;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
[IssueUpdateChange.DESCRIPTION]: string;
|
|
39
|
+
[IssueUpdateChange.TITLE]: string;
|
|
40
|
+
[IssueUpdateChange.ASSIGNED_TO]: {
|
|
33
41
|
full_name: string;
|
|
34
42
|
id: User["id"];
|
|
35
43
|
} | null;
|
|
36
|
-
|
|
44
|
+
[IssueUpdateChange.DUE_DATE]: string;
|
|
37
45
|
}
|
|
38
46
|
export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel, TimestampedModel {
|
|
39
|
-
issue:
|
|
47
|
+
issue: Issue["uuid"];
|
|
40
48
|
changes: Partial<Record<IssueUpdateChange, IssueUpdateChangeTypes[IssueUpdateChange]>>;
|
|
41
49
|
}
|
|
42
50
|
export interface IssueAssociation extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
43
|
-
associated_issue:
|
|
44
|
-
issue
|
|
45
|
-
asset
|
|
51
|
+
associated_issue: Issue["uuid"];
|
|
52
|
+
issue: Issue["uuid"] | null;
|
|
53
|
+
asset: Asset["uuid"] | null;
|
|
46
54
|
}
|
|
47
55
|
export interface IssueTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
48
|
-
issue_type:
|
|
56
|
+
issue_type: IssueType["uuid"];
|
|
49
57
|
}
|
|
50
58
|
export interface IssueTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
51
|
-
fields_revision:
|
|
59
|
+
fields_revision: IssueTypeFields["uuid"];
|
|
52
60
|
}
|
|
53
61
|
export interface IssueTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
54
|
-
fields_revision:
|
|
55
|
-
issue:
|
|
62
|
+
fields_revision: IssueTypeFields["uuid"];
|
|
63
|
+
issue: Issue["uuid"];
|
|
56
64
|
}
|
|
57
65
|
export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
58
|
-
field_values:
|
|
66
|
+
field_values: IssueTypeFieldValues["uuid"];
|
|
67
|
+
}
|
|
68
|
+
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel, AbbreviationModel {
|
|
69
|
+
name: string;
|
|
70
|
+
description: string | null;
|
|
71
|
+
organization: Organization["uuid"];
|
|
72
|
+
default_status: IssueTypeStatus["uuid"] | null;
|
|
73
|
+
}
|
|
74
|
+
export interface IssueTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
75
|
+
issue_type: IssueType["uuid"];
|
|
76
|
+
}
|
|
77
|
+
export interface IssueTypeIdentifierValue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierValueModel {
|
|
78
|
+
issue: Issue["uuid"];
|
|
79
|
+
issue_type_identifier: IssueTypeIdentifier["uuid"];
|
|
80
|
+
}
|
|
81
|
+
export interface IssueAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
|
|
82
|
+
issue: Issue["uuid"];
|
|
83
|
+
}
|
|
84
|
+
export interface IssueTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
|
|
85
|
+
issue_type: IssueType["uuid"];
|
|
86
|
+
}
|
|
87
|
+
export interface IssueCommentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
|
|
88
|
+
issue_comment: IssueComment["uuid"];
|
|
89
|
+
}
|
|
90
|
+
export interface IssueTypeStatus extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
|
|
91
|
+
issue_type: IssueType["uuid"];
|
|
92
|
+
name: string;
|
|
93
|
+
type: IssueStatusType;
|
|
94
|
+
order: number;
|
|
59
95
|
}
|
|
@@ -6,6 +6,6 @@ export interface Organization extends UUIDModel, TimestampedModel {
|
|
|
6
6
|
}
|
|
7
7
|
export interface OrganizationAccess extends UUIDModel, TimestampedModel {
|
|
8
8
|
user: User["id"];
|
|
9
|
-
organization:
|
|
9
|
+
organization: Organization["uuid"];
|
|
10
10
|
access_level: OrganizationAccessLevel;
|
|
11
11
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BoundableModel, CanvasBoundableModel, CreatedByModel,
|
|
1
|
+
import { RequiredFileWithNameModel } from '../files';
|
|
2
|
+
import { BoundableModel, CanvasBoundableModel, CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { OrganizationAccess } from './organizations';
|
|
4
4
|
import { User } from './users';
|
|
5
|
-
export interface Project extends UUIDModel, TimestampedModel, BoundableModel, CanvasBoundableModel,
|
|
5
|
+
export interface Project extends UUIDModel, TimestampedModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
|
|
6
6
|
name: string;
|
|
7
|
+
organization: string;
|
|
7
8
|
}
|
|
8
|
-
export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel,
|
|
9
|
+
export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, RequiredFileWithNameModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
|
|
9
10
|
z_index: number;
|
|
10
11
|
project: Project["uuid"];
|
|
11
12
|
}
|
|
@@ -14,3 +15,6 @@ export interface ProjectAccess extends UUIDModel, CreatedByModel, TimestampedMod
|
|
|
14
15
|
project: Project["uuid"];
|
|
15
16
|
organization_access: OrganizationAccess["uuid"];
|
|
16
17
|
}
|
|
18
|
+
export interface ProjectAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileWithNameModel, CreatedByModel {
|
|
19
|
+
project: Project["uuid"];
|
|
20
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
|
-
import { Organization } from './organizations';
|
|
1
|
+
import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, TreeModel, UUIDModel } from './base';
|
|
2
|
+
import { Organization, OrganizationAccess } from './organizations';
|
|
3
3
|
import { User } from './users';
|
|
4
|
-
export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
|
|
4
|
+
export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel, AbbreviationModel, TreeModel<string> {
|
|
5
5
|
name: string;
|
|
6
|
-
parent: Team["uuid"] | null;
|
|
7
6
|
organization: Organization["uuid"];
|
|
8
7
|
}
|
|
9
8
|
export interface TeamMembership extends UUIDModel, TimestampedModel, CreatedByModel {
|
|
10
9
|
team: Team["uuid"];
|
|
11
10
|
user: User["id"];
|
|
11
|
+
organization_access: OrganizationAccess["uuid"];
|
|
12
12
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OptionalFileModel } from '../files';
|
|
2
|
+
import { IdModel } from './base';
|
|
3
|
+
import { Organization } from './organizations';
|
|
2
4
|
export interface Profile extends OptionalFileModel {
|
|
3
5
|
tour_step: number;
|
|
4
6
|
}
|
|
@@ -13,5 +15,5 @@ export interface RegistrationPayload {
|
|
|
13
15
|
email: string;
|
|
14
16
|
}
|
|
15
17
|
export interface RegistrationReturn {
|
|
16
|
-
organization?:
|
|
18
|
+
organization?: Organization["uuid"];
|
|
17
19
|
}
|