@overmap-ai/core 1.0.78-bump-page-sizes.1 → 1.0.78-bump-forms.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/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 -6
- package/dist/enums/procedures.d.ts +11 -0
- package/dist/overmap-core.js +10824 -8396
- package/dist/overmap-core.umd.cjs +10 -11
- package/dist/sdk/base.d.ts +6 -2
- package/dist/sdk/constants.d.ts +4 -4
- 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 -34
- 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 -33
- 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 +7 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +25 -33
- 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 -34
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +23 -34
- 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 -34
- 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/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 -33
- 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 +27 -15
- package/dist/sdk/typings.d.ts +26 -61
- 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/reducers.d.ts +72 -45
- 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 +35 -53
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +10 -36
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +34 -52
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +34 -51
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +34 -51
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +34 -51
- 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 +37 -53
- 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 +34 -51
- package/dist/store/slices/formSlice.d.ts +34 -51
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +12 -37
- package/dist/store/slices/formSubmissionSlice.d.ts +10 -36
- package/dist/store/slices/geoImageSlice.d.ts +34 -51
- package/dist/store/slices/index.d.ts +24 -15
- package/dist/store/slices/issueAssociationSlice.d.ts +36 -52
- 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 +34 -52
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +34 -51
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +34 -51
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +34 -51
- package/dist/store/slices/issueTypeIdentifierSlice.d.ts +10 -36
- package/dist/store/slices/issueTypeIdentifierValueSlice.d.ts +10 -36
- 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 +34 -51
- 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/{assetProcedureStepFieldsSlice.d.ts → procedureStepFieldsSlice.d.ts} +80 -88
- 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 +36 -68
- package/dist/store/slices/projectSlice.d.ts +34 -51
- 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 +37 -61
- package/dist/store/store.d.ts +4 -13
- package/dist/store/typings.d.ts +18 -1
- package/dist/typings/files.d.ts +32 -18
- package/dist/typings/models/agents.d.ts +2 -1
- package/dist/typings/models/assets.d.ts +19 -66
- package/dist/typings/models/base.d.ts +5 -12
- package/dist/typings/models/documents.d.ts +5 -8
- package/dist/typings/models/fields.d.ts +4 -4
- package/dist/typings/models/forms.d.ts +3 -2
- package/dist/typings/models/geoImages.d.ts +7 -7
- package/dist/typings/models/index.d.ts +1 -1
- package/dist/typings/models/issues.d.ts +36 -30
- package/dist/typings/models/procedures.d.ts +106 -0
- package/dist/typings/models/projects.d.ts +13 -8
- package/dist/typings/models/teams.d.ts +2 -3
- package/dist/typings/models/users.d.ts +2 -2
- package/dist/utils/file.d.ts +7 -11
- 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 -0
- package/dist/utils/models/issues.d.ts +2 -0
- package/dist/utils/utils.d.ts +0 -7
- package/dist/utils/uuid.d.ts +2 -0
- package/package.json +7 -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 -40
- 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 -38
- package/dist/sdk/services/BaseUploadService.d.ts +0 -10
- package/dist/sdk/services/CategoryService.d.ts +0 -11
- package/dist/store/slices/assetProcedureSlice.d.ts +0 -138
- package/dist/store/slices/assetProcedureStepFieldValuesAttachmentSlice.d.ts +0 -137
- package/dist/store/slices/assetProcedureStepFieldValuesSlice.d.ts +0 -138
- package/dist/store/slices/assetProcedureStepFieldsAttachmentSlice.d.ts +0 -136
- package/dist/store/slices/assetProcedureStepSlice.d.ts +0 -139
- package/dist/store/slices/assetProcedureTypeAttachmentSlice.d.ts +0 -48
- package/dist/store/slices/assetProcedureTypeFieldValuesAttachmentSlice.d.ts +0 -137
- package/dist/store/slices/assetProcedureTypeFieldValuesSlice.d.ts +0 -137
- package/dist/store/slices/assetProcedureTypeFieldsAttachmentSlice.d.ts +0 -136
- 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 -136
- package/dist/store/slices/assetStageSlice.d.ts +0 -138
- package/dist/store/slices/categorySlice.d.ts +0 -137
- package/dist/typings/models/categories.d.ts +0 -7
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/files.d.ts
CHANGED
|
@@ -1,25 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { Model } from './models';
|
|
2
|
+
export interface OptionalFileModel extends Model {
|
|
3
|
+
file_url: string | null;
|
|
4
|
+
file_sha1: string | null;
|
|
5
|
+
file_extension: string | null;
|
|
6
|
+
file_name: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface RequiredFileModel extends Model {
|
|
9
|
+
file_url: NonNullable<OptionalFileModel["file_url"]>;
|
|
10
|
+
file_sha1: NonNullable<OptionalFileModel["file_sha1"]>;
|
|
11
|
+
file_extension: NonNullable<OptionalFileModel["file_extension"]>;
|
|
12
|
+
file_name: NonNullable<OptionalFileModel["file_name"]>;
|
|
13
|
+
file_type: string | null;
|
|
14
14
|
}
|
|
15
15
|
export interface FilePayload {
|
|
16
|
-
sha1:
|
|
16
|
+
sha1: string;
|
|
17
17
|
file_type: string;
|
|
18
18
|
extension: string;
|
|
19
19
|
size: number;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
export interface GetS3UrlSuccessResponse {
|
|
22
|
+
url: string;
|
|
23
|
+
fields: Record<string, string>;
|
|
24
|
+
}
|
|
25
|
+
export interface GetS3UrlWarningResponse {
|
|
26
|
+
warning: string;
|
|
25
27
|
}
|
|
28
|
+
export type GetS3UrlResponse = GetS3UrlSuccessResponse | GetS3UrlWarningResponse;
|
|
29
|
+
export type PresignedUrlsResponse = Record<string, GetS3UrlSuccessResponse>;
|
|
30
|
+
export type FileAnnotated<T> = T extends {
|
|
31
|
+
file: unknown;
|
|
32
|
+
} ? never : T & {
|
|
33
|
+
file: File;
|
|
34
|
+
};
|
|
35
|
+
export type FilePayloadAnnotated<T> = T extends {
|
|
36
|
+
file: unknown;
|
|
37
|
+
} ? never : T & {
|
|
38
|
+
file: FilePayload;
|
|
39
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSONContent } from '@tiptap/core';
|
|
2
|
-
import { OptionalFileModel
|
|
2
|
+
import { OptionalFileModel } from '../files';
|
|
3
|
+
import { TimestampedModel, UUID } from './base';
|
|
3
4
|
export interface AgentProfile extends OptionalFileModel {
|
|
4
5
|
/**
|
|
5
6
|
* The name of the agent.
|
|
@@ -1,42 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AbbreviationModel,
|
|
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
4
|
import { Organization } from './organizations';
|
|
5
5
|
import { Project } from './projects';
|
|
6
|
+
import { AssetStatusType } from '../../enums';
|
|
6
7
|
export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, GeometryModel, IndexedModel {
|
|
7
8
|
asset_type: AssetType["uuid"];
|
|
8
9
|
label: string | null;
|
|
9
|
-
description
|
|
10
|
+
description: string | null;
|
|
10
11
|
project: Project["uuid"];
|
|
12
|
+
status: AssetTypeStatus["uuid"];
|
|
11
13
|
}
|
|
12
14
|
export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
13
15
|
organization: Organization["uuid"];
|
|
14
16
|
name: string;
|
|
15
|
-
description
|
|
17
|
+
description: string | null;
|
|
16
18
|
order: number;
|
|
19
|
+
default_status: AssetTypeStatus["uuid"] | null;
|
|
17
20
|
}
|
|
18
|
-
export interface AssetProcedureType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
19
|
-
organization: Organization["uuid"];
|
|
20
|
-
name: string;
|
|
21
|
-
description?: string | null;
|
|
22
|
-
}
|
|
23
|
-
export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IndexedModel {
|
|
24
|
-
asset_procedure_type: AssetProcedureType["uuid"];
|
|
25
|
-
asset_type: AssetType["uuid"];
|
|
26
|
-
project: Project["uuid"];
|
|
27
|
-
}
|
|
28
|
-
export interface AssetStage extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
|
|
29
|
-
asset_procedure_type: AssetProcedureType["uuid"];
|
|
30
|
-
name: string;
|
|
31
|
-
description?: string | null;
|
|
32
|
-
priority: number;
|
|
33
|
-
}
|
|
34
|
-
export interface AssetStageCompletion extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
35
|
-
asset: Asset["uuid"];
|
|
36
|
-
asset_stage: AssetStage["uuid"];
|
|
37
|
-
asset_procedure: AssetProcedure["uuid"];
|
|
38
|
-
}
|
|
39
|
-
export type CompletedStagesMapping = Record<Asset["uuid"], Record<AssetStage["uuid"], AssetStageCompletion["submitted_at"]>>;
|
|
40
21
|
export interface AssetTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
41
22
|
asset_type: AssetType["uuid"];
|
|
42
23
|
}
|
|
@@ -50,42 +31,6 @@ export interface AssetTypeFieldValues extends UUIDModel, SubmittedAtModel, Times
|
|
|
50
31
|
export interface AssetTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
51
32
|
field_values: AssetTypeFieldValues["uuid"];
|
|
52
33
|
}
|
|
53
|
-
export interface AssetProcedureTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
54
|
-
asset_procedure_type: AssetProcedureType["uuid"];
|
|
55
|
-
}
|
|
56
|
-
export interface AssetProcedureTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
57
|
-
fields_revision: AssetProcedureTypeFields["uuid"];
|
|
58
|
-
}
|
|
59
|
-
export interface AssetProcedureTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
60
|
-
fields_revision: AssetProcedureTypeFields["uuid"];
|
|
61
|
-
asset_procedure: AssetProcedure["uuid"];
|
|
62
|
-
asset: Asset["uuid"];
|
|
63
|
-
}
|
|
64
|
-
export interface AssetProcedureTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
65
|
-
field_values: AssetProcedureTypeFieldValues["uuid"];
|
|
66
|
-
}
|
|
67
|
-
export interface AssetProcedureStep extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel, TreeModel<string> {
|
|
68
|
-
asset_procedure_type: AssetProcedureType["uuid"];
|
|
69
|
-
name: string;
|
|
70
|
-
description?: string | null;
|
|
71
|
-
order: number;
|
|
72
|
-
}
|
|
73
|
-
export interface AssetProcedureStepFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
74
|
-
asset_procedure_step: AssetProcedureStep["uuid"];
|
|
75
|
-
field_conditions?: SerializedCondition[] | null;
|
|
76
|
-
}
|
|
77
|
-
export interface AssetProcedureStepFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
78
|
-
fields_revision: AssetProcedureStepFields["uuid"];
|
|
79
|
-
}
|
|
80
|
-
export interface AssetProcedureStepFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
81
|
-
fields_revision: AssetProcedureStepFields["uuid"];
|
|
82
|
-
asset_procedure: AssetProcedure["uuid"];
|
|
83
|
-
asset_procedure_step: AssetProcedureStep["uuid"];
|
|
84
|
-
asset: Asset["uuid"];
|
|
85
|
-
}
|
|
86
|
-
export interface AssetProcedureStepFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
87
|
-
field_values: AssetProcedureStepFieldValues["uuid"];
|
|
88
|
-
}
|
|
89
34
|
export interface AssetTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
90
35
|
asset_type: AssetType["uuid"];
|
|
91
36
|
}
|
|
@@ -93,12 +38,20 @@ export interface AssetTypeIdentifierValue extends UUIDModel, SubmittedAtModel, T
|
|
|
93
38
|
asset: Asset["uuid"];
|
|
94
39
|
asset_type_identifier: AssetTypeIdentifier["uuid"];
|
|
95
40
|
}
|
|
96
|
-
export interface AssetAttachment extends
|
|
41
|
+
export interface AssetAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
97
42
|
asset: Asset["uuid"];
|
|
98
43
|
}
|
|
99
|
-
export interface AssetTypeAttachment extends
|
|
44
|
+
export interface AssetTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
100
45
|
asset_type: AssetType["uuid"];
|
|
101
46
|
}
|
|
102
|
-
export interface
|
|
103
|
-
|
|
47
|
+
export interface AssetTypeStatus extends UUIDModel, SubmittedAtModel, TimestampedModel, ColorModel, CreatedByModel {
|
|
48
|
+
asset_type: AssetType["uuid"];
|
|
49
|
+
name: string;
|
|
50
|
+
type: AssetStatusType;
|
|
51
|
+
order: number;
|
|
52
|
+
}
|
|
53
|
+
export interface AssetComment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
54
|
+
asset: Asset["uuid"];
|
|
55
|
+
content: string;
|
|
56
|
+
resolved: boolean;
|
|
104
57
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Geometry, MultiPoint, Point } from 'geojson';
|
|
2
|
-
import { FileWithNameModel } from '../files';
|
|
1
|
+
import { Geometry, MultiPoint, Point, Polygon } from 'geojson';
|
|
3
2
|
import { User } from './users';
|
|
4
3
|
import { COMMON_AUTO_FIELDS } from '../../utils';
|
|
5
4
|
export type UUID<T> = T & {
|
|
@@ -54,11 +53,6 @@ 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
56
|
export interface IconModel {
|
|
63
57
|
icon: string;
|
|
64
58
|
}
|
|
@@ -66,7 +60,7 @@ export interface ColorModel {
|
|
|
66
60
|
color: string;
|
|
67
61
|
}
|
|
68
62
|
export interface CreatedByModel {
|
|
69
|
-
created_by
|
|
63
|
+
created_by: User["id"] | null;
|
|
70
64
|
}
|
|
71
65
|
export interface IndexedModel {
|
|
72
66
|
index: number;
|
|
@@ -77,6 +71,9 @@ export interface BoundableModel {
|
|
|
77
71
|
export interface CanvasBoundableModel {
|
|
78
72
|
canvas_bounds?: MultiPoint;
|
|
79
73
|
}
|
|
74
|
+
export interface PolygonBoundedModel {
|
|
75
|
+
bounds: Polygon;
|
|
76
|
+
}
|
|
80
77
|
export interface MarkableModel {
|
|
81
78
|
geo_marker?: Point;
|
|
82
79
|
}
|
|
@@ -95,10 +92,6 @@ export interface GeometryModel {
|
|
|
95
92
|
export interface AbbreviationModel {
|
|
96
93
|
abbr: string;
|
|
97
94
|
}
|
|
98
|
-
export interface Attachment extends UUIDModel, TimestampedModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
|
|
99
|
-
description?: string;
|
|
100
|
-
file_type: string;
|
|
101
|
-
}
|
|
102
95
|
export interface TreeModel<TId extends string | number | symbol> {
|
|
103
96
|
parent: TId | null;
|
|
104
97
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequiredFileModel } from '../files';
|
|
2
|
+
import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
3
|
import { Organization } from './organizations';
|
|
3
4
|
import { Project } from './projects';
|
|
4
5
|
export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
|
|
@@ -6,14 +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
|
-
organization?: Organization["uuid"];
|
|
10
|
+
project: Project["uuid"] | null;
|
|
11
|
+
organization: Organization["uuid"] | null;
|
|
12
12
|
}
|
|
13
|
-
export interface DocumentAttachment extends
|
|
13
|
+
export interface DocumentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
14
14
|
document: Document["uuid"];
|
|
15
15
|
}
|
|
16
16
|
export type MovePosition = "left" | "right" | "left-child" | "right-child";
|
|
17
|
-
export interface DocumentAttachment extends Attachment {
|
|
18
|
-
document: string;
|
|
19
|
-
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { SerializedField, SerializedFieldSection, SerializedFieldValues } from '@overmap-ai/forms';
|
|
2
|
-
import {
|
|
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
|
|
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
|
}
|
|
@@ -3,15 +3,16 @@ import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldVa
|
|
|
3
3
|
import { Organization } from './organizations';
|
|
4
4
|
export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
5
5
|
organization: Organization["uuid"];
|
|
6
|
+
name: string;
|
|
7
|
+
description: string | null;
|
|
6
8
|
}
|
|
7
9
|
export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
8
10
|
form: Form["uuid"];
|
|
9
|
-
title: string;
|
|
10
|
-
description?: string;
|
|
11
11
|
}
|
|
12
12
|
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
13
13
|
export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
|
|
14
14
|
form_revision: FormRevision["uuid"];
|
|
15
|
+
form: Form["uuid"];
|
|
15
16
|
}
|
|
16
17
|
export interface FormSubmissionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
|
|
17
18
|
form_submission: FormSubmission["uuid"];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequiredFileModel } 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, 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,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,51 +1,50 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequiredFileModel } from '../files';
|
|
2
2
|
import { Asset } from './assets';
|
|
3
|
-
import { AbbreviationModel,
|
|
4
|
-
import { Category } from './categories';
|
|
3
|
+
import { AbbreviationModel, CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
5
4
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
6
5
|
import { Organization } from './organizations';
|
|
7
6
|
import { Project } from './projects';
|
|
8
7
|
import { User } from './users';
|
|
8
|
+
import { IssuePriority, IssueStatusType, IssueUpdateChange } from '../../enums';
|
|
9
9
|
export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
|
|
10
|
-
title
|
|
11
|
-
description
|
|
10
|
+
title: string | null;
|
|
11
|
+
description: string | null;
|
|
12
12
|
priority: IssuePriority;
|
|
13
|
-
status:
|
|
14
|
-
assigned_to
|
|
15
|
-
due_date
|
|
16
|
-
category?: Category["uuid"] | null;
|
|
13
|
+
status: IssueTypeStatus["uuid"];
|
|
14
|
+
assigned_to: User["id"] | null;
|
|
15
|
+
due_date: string | null;
|
|
17
16
|
issue_type: IssueType["uuid"];
|
|
18
17
|
project: Project["uuid"];
|
|
19
18
|
}
|
|
20
|
-
export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel {
|
|
19
|
+
export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
21
20
|
issue: Issue["uuid"];
|
|
22
21
|
content: string;
|
|
23
|
-
|
|
22
|
+
resolved: boolean;
|
|
24
23
|
}
|
|
25
24
|
export interface IssueUpdateChangeTypes {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
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]: {
|
|
36
34
|
full_name: string;
|
|
37
35
|
id: User["id"];
|
|
38
36
|
} | null;
|
|
39
|
-
|
|
37
|
+
[IssueUpdateChange.DUE_DATE]: string | null;
|
|
40
38
|
}
|
|
41
39
|
export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel, TimestampedModel {
|
|
42
40
|
issue: Issue["uuid"];
|
|
43
|
-
changes: Partial<
|
|
41
|
+
changes: Partial<{
|
|
42
|
+
[K in IssueUpdateChange]: IssueUpdateChangeTypes[K];
|
|
43
|
+
}>;
|
|
44
44
|
}
|
|
45
45
|
export interface IssueAssociation extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
asset?: Asset["uuid"];
|
|
46
|
+
issue: Issue["uuid"];
|
|
47
|
+
asset: Asset["uuid"];
|
|
49
48
|
}
|
|
50
49
|
export interface IssueTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
51
50
|
issue_type: IssueType["uuid"];
|
|
@@ -62,8 +61,9 @@ export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtMo
|
|
|
62
61
|
}
|
|
63
62
|
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel, AbbreviationModel {
|
|
64
63
|
name: string;
|
|
65
|
-
description
|
|
64
|
+
description: string | null;
|
|
66
65
|
organization: Organization["uuid"];
|
|
66
|
+
default_status: IssueTypeStatus["uuid"] | null;
|
|
67
67
|
}
|
|
68
68
|
export interface IssueTypeIdentifier extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, IdentifierModel {
|
|
69
69
|
issue_type: IssueType["uuid"];
|
|
@@ -72,12 +72,18 @@ export interface IssueTypeIdentifierValue extends UUIDModel, SubmittedAtModel, T
|
|
|
72
72
|
issue: Issue["uuid"];
|
|
73
73
|
issue_type_identifier: IssueTypeIdentifier["uuid"];
|
|
74
74
|
}
|
|
75
|
-
export interface IssueAttachment extends
|
|
75
|
+
export interface IssueAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
76
76
|
issue: Issue["uuid"];
|
|
77
77
|
}
|
|
78
|
-
export interface IssueTypeAttachment extends
|
|
78
|
+
export interface IssueTypeAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
79
79
|
issue_type: IssueType["uuid"];
|
|
80
80
|
}
|
|
81
|
-
export interface IssueCommentAttachment extends
|
|
81
|
+
export interface IssueCommentAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
82
82
|
issue_comment: IssueComment["uuid"];
|
|
83
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;
|
|
89
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
resolved: boolean;
|
|
59
|
+
}
|
|
60
|
+
export type ProcedureStepEventTypeValueMapping = {
|
|
61
|
+
[ProcedureStepEventType.ADD_ASSIGNEE]: number;
|
|
62
|
+
[ProcedureStepEventType.REMOVE_ASSIGNEE]: number;
|
|
63
|
+
[ProcedureStepEventType.ADD_REVIEWER]: number;
|
|
64
|
+
[ProcedureStepEventType.REMOVE_REVIEWER]: number;
|
|
65
|
+
};
|
|
66
|
+
export type ProcedureEventEventTypeValueDiscriminator = {
|
|
67
|
+
[TType in ProcedureStepEventType]: {
|
|
68
|
+
type: TType;
|
|
69
|
+
value: ProcedureStepEventTypeValueMapping[TType];
|
|
70
|
+
};
|
|
71
|
+
}[ProcedureStepEventType];
|
|
72
|
+
export type ProcedureStepEvent = UUIDModel & TimestampedModel & CreatedByModel & ProcedureEventEventTypeValueDiscriminator & {
|
|
73
|
+
procedure: Procedure["uuid"];
|
|
74
|
+
procedure_step: ProcedureStep["uuid"];
|
|
75
|
+
};
|
|
76
|
+
export interface ProcedureStepFieldValues extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, FieldValuesModel {
|
|
77
|
+
procedure: Procedure["uuid"];
|
|
78
|
+
procedure_step: ProcedureStep["uuid"];
|
|
79
|
+
fields_revision: ProcedureStepFields["uuid"];
|
|
80
|
+
}
|
|
81
|
+
export interface ProcedureStepFieldValuesAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, FieldsAttachmentModel {
|
|
82
|
+
field_values: ProcedureStepFieldValues["uuid"];
|
|
83
|
+
}
|
|
84
|
+
export interface ProcedureStepFieldValuesReview extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
85
|
+
field_values: ProcedureStepFieldValues["uuid"];
|
|
86
|
+
content: string;
|
|
87
|
+
type: ProcedureStepFieldValuesReviewType;
|
|
88
|
+
}
|
|
89
|
+
export interface ProcedureStepReviewer extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
90
|
+
procedure: Procedure["uuid"];
|
|
91
|
+
procedure_step: ProcedureStep["uuid"];
|
|
92
|
+
user: User["id"];
|
|
93
|
+
}
|
|
94
|
+
export interface ProcedureStepDefaultAssignee extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
95
|
+
procedure_step: ProcedureStep["uuid"];
|
|
96
|
+
user: User["id"];
|
|
97
|
+
}
|
|
98
|
+
export interface ProcedureStepDefaultReviewer extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
99
|
+
procedure_step: ProcedureStep["uuid"];
|
|
100
|
+
user: User["id"];
|
|
101
|
+
}
|
|
102
|
+
export interface ProcedureInitiative extends UUIDModel, TimestampedModel, SubmittedAtModel, IndexedModel, CreatedByModel {
|
|
103
|
+
procedure_type: ProcedureType["uuid"];
|
|
104
|
+
project: Project["uuid"];
|
|
105
|
+
asset_type: AssetType["uuid"];
|
|
106
|
+
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { OrganizationAccess } from './organizations';
|
|
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, TimestampedModel,
|
|
5
|
+
export interface Project extends UUIDModel, TimestampedModel, PolygonBoundedModel, CreatedByModel {
|
|
6
6
|
name: string;
|
|
7
|
-
organization:
|
|
7
|
+
organization: Organization["uuid"];
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface ProjectComment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
10
|
+
project: Project["uuid"];
|
|
11
|
+
content: string;
|
|
12
|
+
resolved: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, RequiredFileModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
|
|
10
15
|
z_index: number;
|
|
11
16
|
project: Project["uuid"];
|
|
12
17
|
}
|
|
@@ -15,6 +20,6 @@ export interface ProjectAccess extends UUIDModel, CreatedByModel, TimestampedMod
|
|
|
15
20
|
project: Project["uuid"];
|
|
16
21
|
organization_access: OrganizationAccess["uuid"];
|
|
17
22
|
}
|
|
18
|
-
export interface ProjectAttachment extends
|
|
19
|
-
project:
|
|
23
|
+
export interface ProjectAttachment extends UUIDModel, TimestampedModel, SubmittedAtModel, RequiredFileModel, CreatedByModel {
|
|
24
|
+
project: Project["uuid"];
|
|
20
25
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
1
|
+
import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, TreeModel, UUIDModel } from './base';
|
|
2
2
|
import { Organization, OrganizationAccess } from './organizations';
|
|
3
3
|
import { User } from './users';
|
|
4
|
-
export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel, AbbreviationModel {
|
|
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 {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OptionalFileModel } from '../files';
|
|
2
|
+
import { IdModel } from './base';
|
|
2
3
|
import { Organization } from './organizations';
|
|
3
4
|
export interface Profile extends OptionalFileModel {
|
|
4
|
-
tour_step: number;
|
|
5
5
|
}
|
|
6
6
|
export interface User extends IdModel {
|
|
7
7
|
username: string;
|