@overmap-ai/core 1.0.74-asset-geojson.0 → 1.0.74-gcs.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/overmap-core.js +3642 -3808
- package/dist/overmap-core.umd.cjs +11 -11
- package/dist/sdk/services/AgentService.d.ts +6 -6
- package/dist/sdk/services/AssetAttachmentService.d.ts +10 -10
- package/dist/sdk/services/AssetProcedureFieldValuesAttachmentService.d.ts +4 -4
- package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +7 -7
- package/dist/sdk/services/AssetProcedureFieldsAttachmentService.d.ts +3 -3
- package/dist/sdk/services/AssetProcedureFieldsService.d.ts +2 -2
- package/dist/sdk/services/AssetProcedureInstanceService.d.ts +4 -4
- package/dist/sdk/services/AssetProcedureService.d.ts +4 -4
- package/dist/sdk/services/AssetService.d.ts +5 -5
- package/dist/sdk/services/AssetStageCompletionService.d.ts +4 -4
- package/dist/sdk/services/AssetStageService.d.ts +6 -6
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +10 -10
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +4 -4
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +6 -6
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +3 -3
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +2 -2
- package/dist/sdk/services/AssetTypeService.d.ts +4 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +12 -12
- package/dist/sdk/services/CategoryService.d.ts +4 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +10 -10
- package/dist/sdk/services/DocumentService.d.ts +5 -5
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +3 -3
- package/dist/sdk/services/FormRevisionService.d.ts +2 -2
- package/dist/sdk/services/FormService.d.ts +3 -3
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +4 -4
- package/dist/sdk/services/FormSubmissionService.d.ts +4 -4
- package/dist/sdk/services/GeoImageService.d.ts +5 -5
- package/dist/sdk/services/IssueAssociationService.d.ts +3 -3
- package/dist/sdk/services/IssueAttachmentService.d.ts +10 -10
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +10 -10
- package/dist/sdk/services/IssueCommentService.d.ts +4 -4
- package/dist/sdk/services/IssueService.d.ts +4 -4
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +10 -10
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +4 -4
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +4 -4
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +3 -3
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeService.d.ts +4 -4
- package/dist/sdk/services/IssueUpdateService.d.ts +2 -2
- package/dist/sdk/services/OrganizationAccessService.d.ts +2 -2
- package/dist/sdk/services/OrganizationService.d.ts +3 -3
- package/dist/sdk/services/ProjectAccessService.d.ts +3 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +12 -12
- package/dist/sdk/services/ProjectFileService.d.ts +3 -3
- package/dist/sdk/services/ProjectService.d.ts +5 -5
- package/dist/sdk/services/TeamService.d.ts +7 -7
- package/dist/sdk/services/UserService.d.ts +2 -2
- package/dist/sdk/services/index.d.ts +0 -2
- package/dist/store/slices/agentsSlice.d.ts +3 -4
- package/dist/store/slices/assetAttachmentSlice.d.ts +4 -5
- package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +4 -5
- package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +5 -6
- package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +3 -4
- package/dist/store/slices/assetProcedureFieldsSlice.d.ts +5 -6
- package/dist/store/slices/assetProcedureInstanceSlice.d.ts +5 -6
- package/dist/store/slices/assetProcedureSlice.d.ts +4 -5
- package/dist/store/slices/assetSlice.d.ts +5 -6
- package/dist/store/slices/assetStageCompletionSlice.d.ts +2 -3
- package/dist/store/slices/assetStageSlice.d.ts +8 -9
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +4 -5
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +4 -5
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +5 -6
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +4 -5
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +5 -6
- package/dist/store/slices/assetTypeSlice.d.ts +2 -3
- package/dist/store/slices/authSlice.d.ts +3 -3
- package/dist/store/slices/categorySlice.d.ts +2 -3
- package/dist/store/slices/documentAttachmentSlice.d.ts +4 -5
- package/dist/store/slices/documentSlice.d.ts +4 -5
- package/dist/store/slices/fileSlice.d.ts +2 -2
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +3 -4
- package/dist/store/slices/formRevisionSlice.d.ts +5 -6
- package/dist/store/slices/formSlice.d.ts +4 -9
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +3 -4
- package/dist/store/slices/formSubmissionSlice.d.ts +4 -5
- package/dist/store/slices/geoImageSlice.d.ts +4 -5
- package/dist/store/slices/index.d.ts +0 -2
- package/dist/store/slices/issueAssociationSlice.d.ts +2 -3
- package/dist/store/slices/issueAttachmentSlice.d.ts +2 -3
- package/dist/store/slices/issueCommentAttachmentSlice.d.ts +4 -5
- package/dist/store/slices/issueCommentSlice.d.ts +2 -3
- package/dist/store/slices/issueSlice.d.ts +2 -3
- package/dist/store/slices/issueTypeAttachmentSlice.d.ts +4 -5
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +4 -5
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +4 -5
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +4 -5
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +6 -7
- package/dist/store/slices/issueTypeSlice.d.ts +6 -7
- package/dist/store/slices/issueUpdateSlice.d.ts +1 -2
- package/dist/store/slices/organizationAccessSlice.d.ts +3 -4
- package/dist/store/slices/organizationSlice.d.ts +39 -12
- package/dist/store/slices/outboxSlice.d.ts +2 -2
- package/dist/store/slices/projectAccessSlice.d.ts +2 -3
- package/dist/store/slices/projectAttachmentSlice.d.ts +3 -4
- package/dist/store/slices/projectFileSlice.d.ts +3 -4
- package/dist/store/slices/projectSlice.d.ts +36 -17
- package/dist/store/slices/rehydratedSlice.d.ts +2 -2
- package/dist/store/slices/teamSlice.d.ts +5 -6
- package/dist/store/slices/userSlice.d.ts +39 -18
- package/dist/store/slices/versioningSlice.d.ts +1 -2
- package/dist/store/store.d.ts +51 -54
- package/dist/typings/models/agents.d.ts +2 -2
- package/dist/typings/models/assets.d.ts +20 -20
- package/dist/typings/models/attachments.d.ts +3 -3
- package/dist/typings/models/base.d.ts +8 -8
- package/dist/typings/models/categories.d.ts +3 -3
- package/dist/typings/models/documents.d.ts +4 -4
- package/dist/typings/models/emailDomain.d.ts +3 -3
- package/dist/typings/models/emailVerification.d.ts +5 -5
- package/dist/typings/models/forms.d.ts +8 -8
- package/dist/typings/models/geo.d.ts +1 -4
- package/dist/typings/models/geoImages.d.ts +4 -3
- package/dist/typings/models/index.d.ts +0 -2
- package/dist/typings/models/issueTypes.d.ts +3 -3
- package/dist/typings/models/issues.d.ts +15 -15
- package/dist/typings/models/organizations.d.ts +8 -3
- package/dist/typings/models/projects.d.ts +10 -5
- package/dist/typings/models/store.d.ts +1 -3
- package/dist/typings/models/teams.d.ts +5 -5
- package/dist/typings/models/users.d.ts +8 -9
- package/dist/utils/offline.d.ts +3 -3
- package/dist/utils/utils.d.ts +2 -2
- package/package.json +1 -1
- package/dist/sdk/services/EmailDomainsService.d.ts +0 -8
- package/dist/sdk/services/LicenseService.d.ts +0 -13
- package/dist/store/slices/emailDomainsSlice.d.ts +0 -40
- package/dist/store/slices/licenseSlice.d.ts +0 -25
- package/dist/typings/models/access.d.ts +0 -12
- package/dist/typings/models/license.d.ts +0 -13
package/dist/store/store.d.ts
CHANGED
|
@@ -3,62 +3,59 @@ import { Reducer } from '@reduxjs/toolkit';
|
|
|
3
3
|
import { default as request } from 'superagent';
|
|
4
4
|
import { BaseSDK, OfflineMetaEffect, OutboxCoordinator, RequestDetails } from '../sdk';
|
|
5
5
|
import { BaseState, OvermapRootState } from '../typings';
|
|
6
|
-
import { AgentsState, AssetAttachmentState, AssetProcedureFieldsAttachmentState, AssetProcedureFieldsState, AssetProcedureFieldValuesAttachmentState, AssetProcedureFieldValuesState, AssetProcedureInstanceState, AssetProcedureState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeFieldsAttachmentState, AssetTypeFieldsState, AssetTypeFieldValuesAttachmentState, AssetTypeFieldValuesState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentAttachmentState, IssueCommentState, IssueState, IssueTypeAttachmentState, IssueTypeFieldsAttachmentState, IssueTypeFieldsState, IssueTypeFieldValuesAttachmentState, IssueTypeFieldValuesState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VersioningState } from './slices';
|
|
7
6
|
export declare const VERSION_REDUCER_KEY = "versioning";
|
|
8
7
|
export declare const overmapReducers: {
|
|
9
|
-
versioning: Reducer<VersioningState>;
|
|
10
|
-
fileReducer: Reducer<FileState>;
|
|
11
|
-
authReducer: Reducer<AuthState>;
|
|
12
|
-
categoryReducer: Reducer<CategoryState>;
|
|
13
|
-
assetReducer: Reducer<AssetState>;
|
|
14
|
-
assetAttachmentReducer: Reducer<AssetAttachmentState>;
|
|
15
|
-
assetStageCompletionReducer: Reducer<AssetStageCompletionState>;
|
|
16
|
-
assetStageReducer: Reducer<AssetStageState>;
|
|
17
|
-
assetTypeReducer: Reducer<AssetTypeState>;
|
|
18
|
-
assetTypeAttachmentReducer: Reducer<AssetTypeAttachmentState>;
|
|
19
|
-
issueReducer: Reducer<IssueState>;
|
|
20
|
-
issueAttachmentReducer: Reducer<IssueAttachmentState>;
|
|
21
|
-
issueTypeReducer: Reducer<IssueTypeState>;
|
|
22
|
-
issueTypeAttachmentReducer: Reducer<IssueTypeAttachmentState>;
|
|
23
|
-
organizationReducer: Reducer<OrganizationState>;
|
|
24
|
-
outboxReducer: Reducer<OutboxState>;
|
|
25
|
-
projectReducer: Reducer<ProjectState>;
|
|
26
|
-
projectAttachmentReducer: Reducer<ProjectAttachmentState>;
|
|
27
|
-
projectAccessReducer: Reducer<ProjectAccessState>;
|
|
28
|
-
organizationAccessReducer: Reducer<OrganizationAccessState>;
|
|
29
|
-
projectFileReducer: Reducer<ProjectFileState>;
|
|
30
|
-
rehydratedReducer: Reducer<RehydratedState>;
|
|
31
|
-
formReducer: Reducer<FormState>;
|
|
32
|
-
formRevisionReducer: Reducer<FormRevisionState>;
|
|
33
|
-
formRevisionAttachmentReducer: Reducer<FormRevisionAttachmentState>;
|
|
34
|
-
formSubmissionAttachmentReducer: Reducer<FormSubmissionAttachmentState>;
|
|
35
|
-
formSubmissionReducer: Reducer<FormSubmissionState>;
|
|
36
|
-
userReducer: Reducer<UserState>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
assetProcedureFieldsAttachmentReducer: Reducer<AssetProcedureFieldsAttachmentState>;
|
|
61
|
-
assetProcedureFieldValuesAttachmentReducer: Reducer<AssetProcedureFieldValuesAttachmentState>;
|
|
8
|
+
versioning: Reducer<import('./slices').VersioningState>;
|
|
9
|
+
fileReducer: Reducer<import('./slices').FileState>;
|
|
10
|
+
authReducer: Reducer<import('./slices').AuthState>;
|
|
11
|
+
categoryReducer: Reducer<import('./slices').CategoryState>;
|
|
12
|
+
assetReducer: Reducer<import('./slices').AssetState>;
|
|
13
|
+
assetAttachmentReducer: Reducer<import('./slices').AssetAttachmentState>;
|
|
14
|
+
assetStageCompletionReducer: Reducer<import('./slices').AssetStageCompletionState>;
|
|
15
|
+
assetStageReducer: Reducer<import('./slices').AssetStageState>;
|
|
16
|
+
assetTypeReducer: Reducer<import('./slices').AssetTypeState>;
|
|
17
|
+
assetTypeAttachmentReducer: Reducer<import('./slices').AssetTypeAttachmentState>;
|
|
18
|
+
issueReducer: Reducer<import('./slices').IssueState>;
|
|
19
|
+
issueAttachmentReducer: Reducer<import('./slices').IssueAttachmentState>;
|
|
20
|
+
issueTypeReducer: Reducer<import('./slices').IssueTypeState>;
|
|
21
|
+
issueTypeAttachmentReducer: Reducer<import('./slices').IssueTypeAttachmentState>;
|
|
22
|
+
organizationReducer: Reducer<import('./slices').OrganizationState>;
|
|
23
|
+
outboxReducer: Reducer<import('./slices').OutboxState>;
|
|
24
|
+
projectReducer: Reducer<import('./slices').ProjectState>;
|
|
25
|
+
projectAttachmentReducer: Reducer<import('./slices').ProjectAttachmentState>;
|
|
26
|
+
projectAccessReducer: Reducer<import('./slices').ProjectAccessState>;
|
|
27
|
+
organizationAccessReducer: Reducer<import('./slices').OrganizationAccessState>;
|
|
28
|
+
projectFileReducer: Reducer<import('./slices').ProjectFileState>;
|
|
29
|
+
rehydratedReducer: Reducer<import('./slices').RehydratedState>;
|
|
30
|
+
formReducer: Reducer<import('./slices').FormState>;
|
|
31
|
+
formRevisionReducer: Reducer<import('./slices').FormRevisionState>;
|
|
32
|
+
formRevisionAttachmentReducer: Reducer<import('./slices').FormRevisionAttachmentState>;
|
|
33
|
+
formSubmissionAttachmentReducer: Reducer<import('./slices').FormSubmissionAttachmentState>;
|
|
34
|
+
formSubmissionReducer: Reducer<import('./slices').FormSubmissionState>;
|
|
35
|
+
userReducer: Reducer<import('./slices').UserState>;
|
|
36
|
+
documentsReducer: Reducer<import('./slices').DocumentState>;
|
|
37
|
+
documentAttachmentReducer: Reducer<import('./slices').DocumentAttachmentState>;
|
|
38
|
+
teamReducer: Reducer<import('./slices').TeamState>;
|
|
39
|
+
agentsReducer: Reducer<import('./slices').AgentsState>;
|
|
40
|
+
issueCommentReducer: Reducer<import('./slices').IssueCommentState>;
|
|
41
|
+
issueCommentAttachmentReducer: Reducer<import('./slices').IssueCommentAttachmentState>;
|
|
42
|
+
issueUpdateReducer: Reducer<import('./slices').IssueUpdateState>;
|
|
43
|
+
geoImageReducer: Reducer<import('./slices').GeoImageSliceState>;
|
|
44
|
+
issueAssociationReducer: Reducer<import('./slices').IssueAssociationSliceState>;
|
|
45
|
+
issueTypeFieldsReducer: Reducer<import('./slices').IssueTypeFieldsState>;
|
|
46
|
+
issueTypeFieldValuesReducer: Reducer<import('./slices').IssueTypeFieldValuesState>;
|
|
47
|
+
issueTypeFieldsAttachmentReducer: Reducer<import('./slices').IssueTypeFieldsAttachmentState>;
|
|
48
|
+
issueTypeFieldValuesAttachmentReducer: Reducer<import('./slices').IssueTypeFieldValuesAttachmentState>;
|
|
49
|
+
assetTypeFieldsReducer: Reducer<import('./slices').AssetTypeFieldsState>;
|
|
50
|
+
assetTypeFieldValuesReducer: Reducer<import('./slices').AssetTypeFieldValuesState>;
|
|
51
|
+
assetTypeFieldsAttachmentReducer: Reducer<import('./slices').AssetTypeFieldsAttachmentState>;
|
|
52
|
+
assetTypeFieldValuesAttachmentReducer: Reducer<import('./slices').AssetTypeFieldValuesAttachmentState>;
|
|
53
|
+
assetProcedureReducer: Reducer<import('./slices').AssetProcedureState>;
|
|
54
|
+
assetProcedureInstanceReducer: Reducer<import('./slices').AssetProcedureInstanceState>;
|
|
55
|
+
assetProcedureFieldsReducer: Reducer<import('./slices').AssetProcedureFieldsState>;
|
|
56
|
+
assetProcedureFieldValuesReducer: Reducer<import('./slices').AssetProcedureFieldValuesState>;
|
|
57
|
+
assetProcedureFieldsAttachmentReducer: Reducer<import('./slices').AssetProcedureFieldsAttachmentState>;
|
|
58
|
+
assetProcedureFieldValuesAttachmentReducer: Reducer<import('./slices').AssetProcedureFieldValuesAttachmentState>;
|
|
62
59
|
};
|
|
63
60
|
export declare const resetStore = "RESET";
|
|
64
61
|
export declare const overmapRootReducer: Reducer<OvermapRootState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSONContent } from '@tiptap/core';
|
|
2
|
-
import {
|
|
2
|
+
import { OptionalFileModel, TimestampedModel, UUID } from './base';
|
|
3
3
|
export interface AgentProfile extends OptionalFileModel {
|
|
4
4
|
/**
|
|
5
5
|
* The name of the agent.
|
|
@@ -10,7 +10,7 @@ export interface AgentProfile extends OptionalFileModel {
|
|
|
10
10
|
*/
|
|
11
11
|
description: string;
|
|
12
12
|
}
|
|
13
|
-
export interface AgentUserConversation extends
|
|
13
|
+
export interface AgentUserConversation extends UUID<TimestampedModel> {
|
|
14
14
|
profile?: AgentProfile | null;
|
|
15
15
|
tiptap_content?: JSONContent[];
|
|
16
16
|
}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
-
import { ColorModel, CreatedByModel, IconModel, IndexedModel,
|
|
2
|
+
import { ColorModel, CreatedByModel, IconModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
4
|
-
import { CanvasMarkableModel,
|
|
5
|
-
export interface Asset extends
|
|
4
|
+
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
5
|
+
export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
|
|
6
6
|
asset_type: string;
|
|
7
7
|
label: string | null;
|
|
8
8
|
description?: string;
|
|
9
|
-
project:
|
|
9
|
+
project: string;
|
|
10
10
|
}
|
|
11
|
-
export interface AssetType extends
|
|
12
|
-
organization:
|
|
11
|
+
export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel {
|
|
12
|
+
organization: string;
|
|
13
13
|
name?: string;
|
|
14
14
|
description?: string;
|
|
15
15
|
}
|
|
16
|
-
export interface AssetProcedure extends
|
|
17
|
-
organization:
|
|
16
|
+
export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel {
|
|
17
|
+
organization: string;
|
|
18
18
|
name?: string | null;
|
|
19
19
|
description?: string | null;
|
|
20
20
|
}
|
|
21
|
-
export interface AssetProcedureInstance extends
|
|
21
|
+
export interface AssetProcedureInstance extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IndexedModel {
|
|
22
22
|
asset_procedure: string;
|
|
23
23
|
asset_type: string;
|
|
24
|
-
project:
|
|
24
|
+
project: string;
|
|
25
25
|
}
|
|
26
|
-
export interface AssetStage extends
|
|
26
|
+
export interface AssetStage extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
|
|
27
27
|
asset_procedure: string;
|
|
28
28
|
name?: string | null;
|
|
29
29
|
description?: string | null;
|
|
30
30
|
priority: number;
|
|
31
31
|
}
|
|
32
|
-
export interface AssetStageCompletion extends
|
|
32
|
+
export interface AssetStageCompletion extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
33
33
|
asset: string;
|
|
34
34
|
stage: string;
|
|
35
35
|
asset_procedure_instance: string;
|
|
36
36
|
}
|
|
37
37
|
export type CompletedStagesMapping = Record<string, Record<string, string>>;
|
|
38
|
-
export interface AssetTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends
|
|
38
|
+
export interface AssetTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
39
39
|
asset_type: string;
|
|
40
40
|
}
|
|
41
|
-
export interface AssetTypeFieldsAttachment extends
|
|
41
|
+
export interface AssetTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
42
42
|
fields_revision: string;
|
|
43
43
|
}
|
|
44
|
-
export interface AssetTypeFieldValues extends
|
|
44
|
+
export interface AssetTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
45
45
|
fields_revision: string;
|
|
46
46
|
asset: string;
|
|
47
47
|
}
|
|
48
|
-
export interface AssetTypeFieldValuesAttachment extends
|
|
48
|
+
export interface AssetTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
49
49
|
field_values: string;
|
|
50
50
|
}
|
|
51
|
-
export interface AssetProcedureFields<TFields extends BaseSerializedObject = ISerializedField> extends
|
|
51
|
+
export interface AssetProcedureFields<TFields extends BaseSerializedObject = ISerializedField> extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
52
52
|
asset_procedure: string;
|
|
53
53
|
}
|
|
54
|
-
export interface AssetProcedureFieldsAttachment extends
|
|
54
|
+
export interface AssetProcedureFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
55
55
|
fields_revision: string;
|
|
56
56
|
}
|
|
57
|
-
export interface AssetProcedureFieldValues extends
|
|
57
|
+
export interface AssetProcedureFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
58
58
|
fields_revision: string;
|
|
59
59
|
asset_procedure_instance: string;
|
|
60
60
|
asset: string;
|
|
61
61
|
}
|
|
62
|
-
export interface AssetProcedureFieldValuesAttachment extends
|
|
62
|
+
export interface AssetProcedureFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
63
63
|
field_values: string;
|
|
64
64
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileModel, FileWithNameModel } from '../files';
|
|
2
|
-
import { CreatedByModel,
|
|
3
|
-
export interface Attachment extends
|
|
2
|
+
import { CreatedByModel, SubmittedAtModel, UUIDModel } from './base';
|
|
3
|
+
export interface Attachment extends UUIDModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
|
|
4
4
|
description?: string;
|
|
5
5
|
file_type: string;
|
|
6
6
|
}
|
|
@@ -20,7 +20,7 @@ export interface AssetTypeAttachment extends Attachment {
|
|
|
20
20
|
asset_type: string;
|
|
21
21
|
}
|
|
22
22
|
export interface ProjectAttachment extends Attachment {
|
|
23
|
-
project:
|
|
23
|
+
project: string;
|
|
24
24
|
}
|
|
25
25
|
export interface DocumentAttachment extends Attachment {
|
|
26
26
|
document: string;
|
|
@@ -3,8 +3,8 @@ import { CommonAutoFields } from './issues';
|
|
|
3
3
|
import { User } from './users';
|
|
4
4
|
export interface Model {
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
7
|
-
|
|
6
|
+
export interface UUIDModel extends Model {
|
|
7
|
+
uuid: string;
|
|
8
8
|
}
|
|
9
9
|
export interface SubmittedAtModel extends Model {
|
|
10
10
|
submitted_at: string;
|
|
@@ -13,11 +13,11 @@ export interface TimestampedModel extends Model {
|
|
|
13
13
|
created_at: string;
|
|
14
14
|
updated_at: string;
|
|
15
15
|
}
|
|
16
|
-
export type
|
|
17
|
-
|
|
16
|
+
export type UUID<T> = T & {
|
|
17
|
+
uuid: string;
|
|
18
18
|
};
|
|
19
|
-
export type
|
|
20
|
-
export type Payload<TModel> = Omit<TModel, CommonAutoFields | "
|
|
19
|
+
export type UUIDModelMapping<TModel extends UUIDModel> = Record<TModel["uuid"], TModel>;
|
|
20
|
+
export type Payload<TModel> = Omit<TModel, CommonAutoFields | "uuid" | "id" | "submitted_at" | "created_by">;
|
|
21
21
|
export interface FileObject {
|
|
22
22
|
file_sha1: string;
|
|
23
23
|
file: string;
|
|
@@ -29,7 +29,7 @@ export interface OptionalFileModel {
|
|
|
29
29
|
objectURL?: string;
|
|
30
30
|
}
|
|
31
31
|
export interface OwnedByOrganization {
|
|
32
|
-
organization_owner:
|
|
32
|
+
organization_owner: string;
|
|
33
33
|
}
|
|
34
34
|
export interface IconModel {
|
|
35
35
|
icon: string;
|
|
@@ -38,7 +38,7 @@ export interface ColorModel {
|
|
|
38
38
|
color: CSSColor;
|
|
39
39
|
}
|
|
40
40
|
export interface CreatedByModel {
|
|
41
|
-
created_by?: User["
|
|
41
|
+
created_by?: User["uuid"] | null;
|
|
42
42
|
}
|
|
43
43
|
export interface IndexedModel {
|
|
44
44
|
index: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CSSColor } from '../colors';
|
|
2
|
-
import { CreatedByModel,
|
|
3
|
-
export interface Category extends
|
|
2
|
+
import { CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
|
+
export interface Category extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
4
4
|
name: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
color: CSSColor;
|
|
7
|
-
project:
|
|
7
|
+
project: string;
|
|
8
8
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ColorModel, CreatedByModel, IconModel,
|
|
2
|
-
export interface Document extends
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
|
+
export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
|
|
3
3
|
title: string | null;
|
|
4
4
|
description: string | null;
|
|
5
5
|
content: string | null;
|
|
6
6
|
parent_document: string | null;
|
|
7
7
|
children_documents: string[];
|
|
8
|
-
project?:
|
|
9
|
-
organization?:
|
|
8
|
+
project?: string;
|
|
9
|
+
organization?: string;
|
|
10
10
|
}
|
|
11
11
|
export type MovePosition = "left" | "right" | "left-child" | "right-child";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UUIDModel } from './base';
|
|
2
2
|
import { RegistrationPayload } from './users';
|
|
3
3
|
export type EmailVerificationPayload = undefined | RegistrationPayload | Omit<RegistrationPayload, "username" | "email">;
|
|
4
4
|
export interface EmailVerificationReturn {
|
|
5
5
|
username?: string;
|
|
6
|
-
project?:
|
|
6
|
+
project?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare enum VerificationCodeType {
|
|
9
9
|
USER_REGISTRATION = 0,
|
|
@@ -13,10 +13,10 @@ export declare enum VerificationCodeType {
|
|
|
13
13
|
ADD_EMAIL_DOMAIN = 8,
|
|
14
14
|
RESET_PASSWORD = 10
|
|
15
15
|
}
|
|
16
|
-
export interface VerificationCode extends
|
|
16
|
+
export interface VerificationCode extends UUIDModel {
|
|
17
17
|
verification_code: string;
|
|
18
18
|
verification_type: VerificationCodeType;
|
|
19
19
|
organization?: number;
|
|
20
|
-
project?:
|
|
21
|
-
user?:
|
|
20
|
+
project?: string;
|
|
21
|
+
user?: string;
|
|
22
22
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
-
import { CreatedByModel, IndexedModel,
|
|
2
|
+
import { CreatedByModel, IndexedModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
4
|
-
export interface Form extends
|
|
5
|
-
organization:
|
|
4
|
+
export interface Form extends UUIDModel, SubmittedAtModel, CreatedByModel {
|
|
5
|
+
organization: string;
|
|
6
6
|
}
|
|
7
|
-
export interface FormRevision<TFields extends BaseSerializedObject = ISerializedField> extends
|
|
7
|
+
export interface FormRevision<TFields extends BaseSerializedObject = ISerializedField> extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
8
8
|
form: string;
|
|
9
9
|
title: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
}
|
|
12
12
|
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
13
|
-
export interface FormSubmission extends
|
|
13
|
+
export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
|
|
14
14
|
form_revision: string;
|
|
15
|
-
project:
|
|
15
|
+
project: string;
|
|
16
16
|
issue?: string | null;
|
|
17
17
|
asset?: string | null;
|
|
18
18
|
}
|
|
19
|
-
export interface FormSubmissionAttachment extends
|
|
19
|
+
export interface FormSubmissionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
|
|
20
20
|
form_submission: string;
|
|
21
21
|
}
|
|
22
|
-
export interface FormRevisionAttachment extends
|
|
22
|
+
export interface FormRevisionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
23
23
|
form_revision: string;
|
|
24
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MultiPoint, Point } from 'geojson';
|
|
2
2
|
export interface BoundableModel {
|
|
3
3
|
bounds?: MultiPoint;
|
|
4
4
|
}
|
|
@@ -11,6 +11,3 @@ export interface MarkableModel {
|
|
|
11
11
|
export interface CanvasMarkableModel {
|
|
12
12
|
canvas_marker?: Point;
|
|
13
13
|
}
|
|
14
|
-
export interface GeoJsonModel {
|
|
15
|
-
geo_json?: Geometry;
|
|
16
|
-
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FileWithNameModel } from '../files';
|
|
2
|
-
import { CreatedByModel, IndexedModel,
|
|
2
|
+
import { CreatedByModel, IndexedModel, Payload, SubmittedAtModel, UUIDModel } from './base';
|
|
3
3
|
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
4
|
-
|
|
4
|
+
import { Project } from './projects';
|
|
5
|
+
export interface GeoImage extends UUIDModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel, IndexedModel {
|
|
5
6
|
title?: string;
|
|
6
7
|
description?: string;
|
|
7
|
-
project:
|
|
8
|
+
project: Project["uuid"];
|
|
8
9
|
direction?: number;
|
|
9
10
|
original_date?: string;
|
|
10
11
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './access';
|
|
2
1
|
export * from './agents';
|
|
3
2
|
export * from './assets';
|
|
4
3
|
export * from './attachments';
|
|
@@ -13,7 +12,6 @@ export * from './geo';
|
|
|
13
12
|
export * from './geoImages';
|
|
14
13
|
export * from './issues';
|
|
15
14
|
export * from './issueTypes';
|
|
16
|
-
export * from './license';
|
|
17
15
|
export * from './organizations';
|
|
18
16
|
export * from './projects';
|
|
19
17
|
export * from './store';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ColorModel, CreatedByModel, IconModel,
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, UUIDModel } from './base';
|
|
2
2
|
import { Organization } from './organizations';
|
|
3
|
-
export interface IssueType extends
|
|
3
|
+
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
|
|
4
4
|
name?: string;
|
|
5
5
|
description?: string;
|
|
6
|
-
organization: Organization["
|
|
6
|
+
organization: Organization["uuid"];
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@ import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
|
2
2
|
import { IssuePriority, IssueStatus, IssueUpdateChange } from '../../enums';
|
|
3
3
|
import { COMMON_AUTO_FIELDS } from '../../utils';
|
|
4
4
|
import { CSSColor } from '../colors';
|
|
5
|
-
import { CreatedByModel, IndexedModel,
|
|
5
|
+
import { CreatedByModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
6
6
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
7
7
|
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
8
8
|
import { User } from './users';
|
|
@@ -42,21 +42,21 @@ export type Stored<TModel> = Created<TModel> | Submitted<TModel>;
|
|
|
42
42
|
* Represents the properties you can always expect on any object representing an issue. These are the minimal details
|
|
43
43
|
* required when creating an issue.
|
|
44
44
|
*/
|
|
45
|
-
export interface Issue extends
|
|
45
|
+
export interface Issue extends UUIDModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
|
|
46
46
|
title?: string | null;
|
|
47
47
|
description?: string | null;
|
|
48
48
|
priority: IssuePriority;
|
|
49
49
|
status: IssueStatus;
|
|
50
|
-
assigned_to?:
|
|
50
|
+
assigned_to?: string | null;
|
|
51
51
|
due_date?: string | Date | null;
|
|
52
52
|
category?: string | null;
|
|
53
53
|
issue_type: string;
|
|
54
|
-
project:
|
|
54
|
+
project: string;
|
|
55
55
|
}
|
|
56
|
-
export interface IssueComment extends
|
|
56
|
+
export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel {
|
|
57
57
|
issue: string;
|
|
58
58
|
content: string;
|
|
59
|
-
author?:
|
|
59
|
+
author?: string;
|
|
60
60
|
}
|
|
61
61
|
export interface IssueUpdateChangeTypes {
|
|
62
62
|
status: IssueStatus;
|
|
@@ -64,37 +64,37 @@ export interface IssueUpdateChangeTypes {
|
|
|
64
64
|
category: {
|
|
65
65
|
name: string;
|
|
66
66
|
color: CSSColor;
|
|
67
|
-
|
|
67
|
+
uuid: UUIDModel["uuid"];
|
|
68
68
|
} | null;
|
|
69
69
|
description: string;
|
|
70
70
|
title: string;
|
|
71
71
|
assigned_to: {
|
|
72
72
|
full_name: string;
|
|
73
|
-
|
|
73
|
+
uuid: User["uuid"];
|
|
74
74
|
} | null;
|
|
75
75
|
due_date: string;
|
|
76
76
|
}
|
|
77
|
-
export interface IssueUpdate extends
|
|
77
|
+
export interface IssueUpdate extends UUIDModel, CreatedByModel {
|
|
78
78
|
submitted_at: string;
|
|
79
|
-
issue:
|
|
79
|
+
issue: UUIDModel["uuid"];
|
|
80
80
|
changes: Partial<Record<IssueUpdateChange, IssueUpdateChangeTypes[IssueUpdateChange]>>;
|
|
81
81
|
}
|
|
82
|
-
export interface IssueAssociation extends
|
|
82
|
+
export interface IssueAssociation extends UUIDModel, SubmittedAtModel, CreatedByModel {
|
|
83
83
|
associated_issue: string;
|
|
84
84
|
issue?: string;
|
|
85
85
|
asset?: string;
|
|
86
86
|
}
|
|
87
|
-
export interface IssueTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends
|
|
87
|
+
export interface IssueTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
88
88
|
issue_type: string;
|
|
89
89
|
}
|
|
90
|
-
export interface IssueTypeFieldsAttachment extends
|
|
90
|
+
export interface IssueTypeFieldsAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
91
91
|
fields_revision: string;
|
|
92
92
|
}
|
|
93
|
-
export interface IssueTypeFieldValues extends
|
|
93
|
+
export interface IssueTypeFieldValues extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
94
94
|
fields_revision: string;
|
|
95
95
|
issue: string;
|
|
96
96
|
}
|
|
97
|
-
export interface IssueTypeFieldValuesAttachment extends
|
|
97
|
+
export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
98
98
|
field_values: string;
|
|
99
99
|
}
|
|
100
100
|
export {};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { OrganizationAccessLevel } from '../../enums';
|
|
2
|
+
import { CreatedByModel, UUIDModel } from './base';
|
|
3
|
+
export interface Organization extends UUIDModel, CreatedByModel {
|
|
4
4
|
name: string;
|
|
5
5
|
has_access: boolean;
|
|
6
6
|
}
|
|
7
|
+
export interface OrganizationAccess extends UUIDModel {
|
|
8
|
+
user: string;
|
|
9
|
+
organization: string;
|
|
10
|
+
access_level: OrganizationAccessLevel;
|
|
11
|
+
}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
import { ProjectAccessLevel } from '../../enums';
|
|
1
2
|
import { FileWithNameModel } from '../files';
|
|
2
|
-
import {
|
|
3
|
+
import { OwnedByOrganization, SubmittedAtModel, UUIDModel } from './base';
|
|
3
4
|
import { BoundableModel, CanvasBoundableModel } from './geo';
|
|
4
|
-
export interface Project extends
|
|
5
|
-
id: number;
|
|
5
|
+
export interface Project extends UUIDModel, BoundableModel, CanvasBoundableModel, OwnedByOrganization {
|
|
6
6
|
name: string;
|
|
7
7
|
invited?: boolean;
|
|
8
8
|
issues_count?: number;
|
|
9
9
|
form_submissions_count?: number;
|
|
10
10
|
}
|
|
11
|
-
export interface ProjectFile extends
|
|
11
|
+
export interface ProjectFile extends UUIDModel, SubmittedAtModel, FileWithNameModel, BoundableModel, CanvasBoundableModel {
|
|
12
12
|
z_index: number;
|
|
13
|
-
project:
|
|
13
|
+
project: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ProjectAccess extends UUIDModel {
|
|
16
|
+
user: string;
|
|
17
|
+
project: string;
|
|
18
|
+
access_level: ProjectAccessLevel;
|
|
14
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OfflineState } from '@redux-offline/redux-offline/lib/types';
|
|
2
|
-
import { AgentsState, AssetAttachmentState, AssetProcedureFieldsAttachmentState, AssetProcedureFieldsState, AssetProcedureFieldValuesAttachmentState, AssetProcedureFieldValuesState, AssetProcedureInstanceState, AssetProcedureState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeFieldsAttachmentState, AssetTypeFieldsState, AssetTypeFieldValuesAttachmentState, AssetTypeFieldValuesState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState,
|
|
2
|
+
import { AgentsState, AssetAttachmentState, AssetProcedureFieldsAttachmentState, AssetProcedureFieldsState, AssetProcedureFieldValuesAttachmentState, AssetProcedureFieldValuesState, AssetProcedureInstanceState, AssetProcedureState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeFieldsAttachmentState, AssetTypeFieldsState, AssetTypeFieldValuesAttachmentState, AssetTypeFieldValuesState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentAttachmentState, IssueCommentState, IssueState, IssueTypeAttachmentState, IssueTypeFieldsAttachmentState, IssueTypeFieldsState, IssueTypeFieldValuesAttachmentState, IssueTypeFieldValuesState, IssueTypeState, IssueUpdateState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState } from '../../store';
|
|
3
3
|
export interface BaseState {
|
|
4
4
|
outboxReducer: OutboxState;
|
|
5
5
|
offline: OfflineState;
|
|
@@ -35,8 +35,6 @@ export interface OvermapRootState extends BaseState {
|
|
|
35
35
|
formSubmissionReducer: FormSubmissionState;
|
|
36
36
|
formSubmissionAttachmentReducer: FormSubmissionAttachmentState;
|
|
37
37
|
userReducer: UserState;
|
|
38
|
-
emailDomainsReducer: EmailDomainState;
|
|
39
|
-
licenseReducer: LicenseState;
|
|
40
38
|
documentsReducer: DocumentState;
|
|
41
39
|
documentAttachmentReducer: DocumentAttachmentState;
|
|
42
40
|
teamReducer: TeamState;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ColorModel, IconModel,
|
|
1
|
+
import { ColorModel, IconModel, SubmittedAtModel, UUIDModel } from './base';
|
|
2
2
|
import { Organization } from './organizations';
|
|
3
3
|
import { User } from './users';
|
|
4
|
-
export interface Team extends
|
|
4
|
+
export interface Team extends UUIDModel, SubmittedAtModel, IconModel, ColorModel {
|
|
5
5
|
name: string;
|
|
6
|
-
parent:
|
|
7
|
-
organization: Organization["
|
|
8
|
-
members: User["
|
|
6
|
+
parent: UUIDModel["uuid"] | null;
|
|
7
|
+
organization: Organization["uuid"];
|
|
8
|
+
members: User["uuid"][];
|
|
9
9
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export interface User {
|
|
7
|
-
id: number;
|
|
8
|
-
username: string;
|
|
1
|
+
import { UUIDModel } from './base';
|
|
2
|
+
export interface User extends UUIDModel {
|
|
3
|
+
uuid: string;
|
|
4
|
+
first_name: string;
|
|
5
|
+
last_name: string;
|
|
9
6
|
email: string;
|
|
10
|
-
|
|
7
|
+
is_staff: boolean;
|
|
8
|
+
is_active: boolean;
|
|
9
|
+
date_joined: string;
|
|
11
10
|
}
|
|
12
11
|
export interface RegistrationPayload {
|
|
13
12
|
username: string;
|