@overmap-ai/core 1.0.71-mapbox.0 → 1.0.71-mapbox.10
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/array.d.ts +1 -0
- package/dist/constants/defaults.d.ts +1 -1
- package/dist/constants/index.d.ts +3 -3
- package/dist/enums/index.d.ts +5 -5
- package/dist/index.d.ts +6 -6
- package/dist/overmap-core.js +6004 -7169
- package/dist/overmap-core.umd.cjs +12 -7861
- package/dist/sdk/base.d.ts +7 -6
- package/dist/sdk/classes/OutboxCoordinator.d.ts +3 -4
- package/dist/sdk/classes/index.d.ts +1 -1
- package/dist/sdk/errors.d.ts +2 -1
- package/dist/sdk/globals.d.ts +6 -5
- package/dist/sdk/index.d.ts +6 -6
- package/dist/sdk/sdk.d.ts +5 -5
- package/dist/sdk/services/AgentService.d.ts +5 -10
- package/dist/sdk/services/AssetAttachmentService.d.ts +38 -16
- 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 +5 -7
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +37 -16
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +12 -0
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +20 -0
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +12 -0
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +8 -0
- package/dist/sdk/services/AssetTypeService.d.ts +5 -5
- package/dist/sdk/services/BaseApiService.d.ts +4 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +21 -23
- package/dist/sdk/services/BaseAuthService.d.ts +4 -4
- package/dist/sdk/services/BaseService.d.ts +6 -5
- package/dist/sdk/services/BaseUploadService.d.ts +5 -4
- package/dist/sdk/services/CategoryService.d.ts +4 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +36 -16
- package/dist/sdk/services/DocumentService.d.ts +4 -4
- package/dist/sdk/services/EmailDomainsService.d.ts +3 -3
- package/dist/sdk/services/EmailVerificationService.d.ts +3 -3
- package/dist/sdk/services/FileService.d.ts +4 -4
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +12 -0
- package/dist/sdk/services/FormRevisionService.d.ts +8 -0
- package/dist/sdk/services/FormService.d.ts +14 -17
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +13 -0
- package/dist/sdk/services/FormSubmissionService.d.ts +11 -31
- package/dist/sdk/services/GeoImageService.d.ts +4 -4
- package/dist/sdk/services/IssueAssociationService.d.ts +5 -5
- package/dist/sdk/services/IssueAttachmentService.d.ts +37 -16
- package/dist/sdk/services/IssueCommentService.d.ts +4 -4
- package/dist/sdk/services/IssueService.d.ts +4 -7
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +13 -0
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +10 -0
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +12 -0
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +8 -0
- package/dist/sdk/services/IssueTypeService.d.ts +4 -4
- package/dist/sdk/services/IssueUpdateService.d.ts +3 -3
- package/dist/sdk/services/JWTAuthService.d.ts +6 -6
- package/dist/sdk/services/LicenseService.d.ts +3 -3
- package/dist/sdk/services/OrganizationAccessService.d.ts +3 -3
- 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 +37 -16
- package/dist/sdk/services/ProjectFileService.d.ts +4 -4
- package/dist/sdk/services/ProjectService.d.ts +3 -3
- package/dist/sdk/services/TeamService.d.ts +4 -4
- package/dist/sdk/services/UserService.d.ts +3 -3
- package/dist/sdk/services/WorkspaceService.d.ts +4 -4
- package/dist/sdk/services/index.d.ts +45 -34
- package/dist/sdk/typings.d.ts +8 -8
- package/dist/store/adapter.d.ts +11 -11
- package/dist/store/index.d.ts +2 -2
- package/dist/store/migrations.d.ts +1 -1
- package/dist/store/slices/agentsSlice.d.ts +10 -10
- package/dist/store/slices/assetAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/assetSlice.d.ts +34 -24
- package/dist/store/slices/assetStageCompletionSlice.d.ts +32 -23
- package/dist/store/slices/assetStageSlice.d.ts +35 -26
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +62 -0
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeSlice.d.ts +15 -21
- package/dist/store/slices/authSlice.d.ts +9 -9
- package/dist/store/slices/categorySlice.d.ts +29 -17
- package/dist/store/slices/documentAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/documentSlice.d.ts +29 -13
- package/dist/store/slices/emailDomainsSlice.d.ts +28 -15
- package/dist/store/slices/fileSlice.d.ts +6 -6
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/formRevisionSlice.d.ts +36 -27
- package/dist/store/slices/formSlice.d.ts +32 -26
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/formSubmissionSlice.d.ts +15 -27
- package/dist/store/slices/geoImageSlice.d.ts +36 -22
- package/dist/store/slices/index.d.ts +46 -38
- package/dist/store/slices/issueAssociationSlice.d.ts +34 -24
- package/dist/store/slices/issueAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/issueCommentSlice.d.ts +12 -18
- package/dist/store/slices/issueSlice.d.ts +12 -24
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +63 -0
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +62 -0
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +62 -0
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +64 -0
- package/dist/store/slices/issueTypeSlice.d.ts +11 -14
- package/dist/store/slices/issueUpdateSlice.d.ts +12 -18
- package/dist/store/slices/licenseSlice.d.ts +9 -9
- package/dist/store/slices/organizationAccessSlice.d.ts +10 -13
- package/dist/store/slices/organizationSlice.d.ts +26 -10
- package/dist/store/slices/outboxSlice.d.ts +14 -15
- package/dist/store/slices/projectAccessSlice.d.ts +10 -17
- package/dist/store/slices/projectAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/projectFileSlice.d.ts +62 -31
- package/dist/store/slices/projectSlice.d.ts +9 -24
- package/dist/store/slices/rehydratedSlice.d.ts +6 -6
- package/dist/store/slices/teamSlice.d.ts +11 -14
- package/dist/store/slices/userSlice.d.ts +13 -13
- package/dist/store/slices/versioningSlice.d.ts +2 -2
- package/dist/store/slices/workspaceSlice.d.ts +30 -17
- package/dist/store/store.d.ts +14 -7
- package/dist/typings/files.d.ts +8 -4
- package/dist/typings/index.d.ts +6 -6
- package/dist/typings/models/access.d.ts +2 -2
- package/dist/typings/models/agents.d.ts +2 -12
- package/dist/typings/models/assets.d.ts +19 -4
- package/dist/typings/models/attachments.d.ts +2 -7
- package/dist/typings/models/base.d.ts +2 -5
- package/dist/typings/models/categories.d.ts +2 -2
- package/dist/typings/models/documents.d.ts +1 -1
- package/dist/typings/models/emailDomain.d.ts +1 -1
- package/dist/typings/models/emailVerification.d.ts +2 -2
- package/dist/typings/models/fields.d.ts +16 -0
- package/dist/typings/models/forms.d.ts +13 -30
- package/dist/typings/models/geo.d.ts +5 -14
- package/dist/typings/models/geoImages.d.ts +3 -3
- package/dist/typings/models/index.d.ts +22 -21
- package/dist/typings/models/issueTypes.d.ts +2 -2
- package/dist/typings/models/issues.d.ts +21 -6
- package/dist/typings/models/license.d.ts +2 -2
- package/dist/typings/models/organizations.d.ts +1 -1
- package/dist/typings/models/projects.d.ts +3 -3
- package/dist/typings/models/store.d.ts +10 -3
- package/dist/typings/models/teams.d.ts +3 -3
- package/dist/typings/models/users.d.ts +1 -1
- package/dist/typings/models/workspace.d.ts +1 -1
- package/dist/typings/search.d.ts +1 -1
- package/dist/typings/store.d.ts +1 -1
- package/dist/utils/async/DeferredPromise.d.ts +1 -1
- package/dist/utils/coordinates.d.ts +3 -3
- package/dist/utils/file.d.ts +2 -2
- package/dist/utils/forms.d.ts +1 -1
- package/dist/utils/index.d.ts +9 -10
- package/dist/utils/offline.d.ts +1 -1
- package/dist/utils/optimization.d.ts +1 -0
- package/dist/utils/utils.d.ts +1 -1
- package/package.json +42 -48
- package/dist/enums/ui.d.ts +0 -36
- package/dist/overmap-core.js.map +0 -1
- package/dist/overmap-core.umd.cjs.map +0 -1
- package/dist/utils/colors.d.ts +0 -14
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from
|
|
2
|
-
import
|
|
1
|
+
import { PayloadAction, Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { OvermapRootState, OvermapSelectorWithArgs, User } from '../../typings';
|
|
3
3
|
export interface UserState {
|
|
4
4
|
currentUser: User | null;
|
|
5
5
|
users: Record<number, User>;
|
|
6
6
|
}
|
|
7
|
-
export declare const userSlice: import(
|
|
8
|
-
setUsers: (state: import(
|
|
9
|
-
addUsers: (state: import(
|
|
10
|
-
setCurrentUser: (state: import(
|
|
11
|
-
setProfilePicture: (state: import(
|
|
7
|
+
export declare const userSlice: import('@reduxjs/toolkit').Slice<UserState, {
|
|
8
|
+
setUsers: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<User[]>) => void;
|
|
9
|
+
addUsers: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<User[]>) => void;
|
|
10
|
+
setCurrentUser: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<User | null>) => void;
|
|
11
|
+
setProfilePicture: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<{
|
|
12
12
|
file?: string;
|
|
13
13
|
file_sha1?: string;
|
|
14
14
|
}>) => void;
|
|
15
|
-
removeUser: (state: import(
|
|
16
|
-
}, "users"
|
|
17
|
-
export declare const setCurrentUser: import(
|
|
18
|
-
file?: string
|
|
19
|
-
file_sha1?: string
|
|
20
|
-
}, "users/setProfilePicture">, setUsers: import(
|
|
15
|
+
removeUser: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<number>) => void;
|
|
16
|
+
}, "users", "users", import('@reduxjs/toolkit').SliceSelectors<UserState>>;
|
|
17
|
+
export declare const setCurrentUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<User | null, "users/setCurrentUser">, setProfilePicture: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
18
|
+
file?: string;
|
|
19
|
+
file_sha1?: string;
|
|
20
|
+
}, "users/setProfilePicture">, setUsers: import('@reduxjs/toolkit').ActionCreatorWithPayload<User[], "users/setUsers">, addUsers: import('@reduxjs/toolkit').ActionCreatorWithPayload<User[], "users/addUsers">, removeUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "users/removeUser">;
|
|
21
21
|
export declare const userReducer: Reducer<UserState>;
|
|
22
22
|
export declare const selectCurrentUser: (state: OvermapRootState) => User | null;
|
|
23
23
|
export declare const selectUsersMapping: (state: OvermapRootState) => Record<number, User>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Reducer } from
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
2
|
export interface VersioningState {
|
|
3
3
|
version: number;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Version of the offline redux store
|
|
7
7
|
*/
|
|
8
|
-
export declare const versioningSlice: import(
|
|
8
|
+
export declare const versioningSlice: import('@reduxjs/toolkit').Slice<VersioningState, {}, "versioning", "versioning", import('@reduxjs/toolkit').SliceSelectors<VersioningState>>;
|
|
9
9
|
export declare const versioningReducer: Reducer<VersioningState>;
|
|
@@ -1,35 +1,48 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored, Workspace } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
4
|
export type WorkspaceState = ModelState<Stored<Workspace>>;
|
|
5
|
-
export declare const workspaceSlice: import(
|
|
6
|
-
initializeWorkspaces:
|
|
5
|
+
export declare const workspaceSlice: import('@reduxjs/toolkit').Slice<WorkspaceState, {
|
|
6
|
+
initializeWorkspaces: (state: ModelState<Stored<Workspace>>, action: {
|
|
7
7
|
payload: Stored<Workspace>[];
|
|
8
8
|
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
setWorkspaces:
|
|
10
|
+
setWorkspaces: (state: ModelState<Stored<Workspace>>, action: {
|
|
11
11
|
payload: Stored<Workspace>[];
|
|
12
12
|
type: string;
|
|
13
13
|
}) => void;
|
|
14
|
-
addWorkspace:
|
|
14
|
+
addWorkspace: (state: ModelState<Stored<Workspace>>, action: {
|
|
15
15
|
payload: Stored<Workspace>;
|
|
16
16
|
type: string;
|
|
17
17
|
}) => void;
|
|
18
|
-
updateWorkspace:
|
|
18
|
+
updateWorkspace: (state: ModelState<Stored<Workspace>>, action: {
|
|
19
19
|
payload: Stored<Workspace>;
|
|
20
20
|
type: string;
|
|
21
21
|
}) => void;
|
|
22
|
-
deleteWorkspace:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}) => void;
|
|
26
|
-
}, "workspace">;
|
|
27
|
-
export declare const initializeWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Workspace>[], "workspace/initializeWorkspaces">, setWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Workspace>[], "workspace/setWorkspaces">, addWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Workspace>, "workspace/addWorkspace">, updateWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Workspace>, "workspace/updateWorkspace">, deleteWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "workspace/deleteWorkspace">;
|
|
22
|
+
deleteWorkspace: (state: ModelState<Stored<Workspace>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
23
|
+
}, "workspace", "workspace", import('@reduxjs/toolkit').SliceSelectors<WorkspaceState>>;
|
|
24
|
+
export declare const initializeWorkspaces: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Workspace>[], "workspace/initializeWorkspaces">, setWorkspaces: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Workspace>[], "workspace/setWorkspaces">, addWorkspace: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Workspace>, "workspace/addWorkspace">, updateWorkspace: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Workspace>, "workspace/updateWorkspace">, deleteWorkspace: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workspace/deleteWorkspace">;
|
|
28
25
|
export declare const selectWorkspaceMapping: OvermapSelector<Record<string, Workspace>>;
|
|
29
|
-
export declare const selectWorkspaces: ((state: OvermapRootState) => Workspace[]) &
|
|
30
|
-
clearCache: () => void;
|
|
31
|
-
}> & {
|
|
26
|
+
export declare const selectWorkspaces: ((state: OvermapRootState) => Workspace[]) & {
|
|
32
27
|
clearCache: () => void;
|
|
28
|
+
resultsCount: () => number;
|
|
29
|
+
resetResultsCount: () => void;
|
|
30
|
+
} & {
|
|
31
|
+
resultFunc: (resultFuncArgs_0: Record<string, Workspace>) => Workspace[];
|
|
32
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Workspace>) => Workspace[]) & {
|
|
33
|
+
clearCache: () => void;
|
|
34
|
+
resultsCount: () => number;
|
|
35
|
+
resetResultsCount: () => void;
|
|
36
|
+
};
|
|
37
|
+
lastResult: () => Workspace[];
|
|
38
|
+
dependencies: [OvermapSelector<Record<string, Workspace>>];
|
|
39
|
+
recomputations: () => number;
|
|
40
|
+
resetRecomputations: () => void;
|
|
41
|
+
dependencyRecomputations: () => number;
|
|
42
|
+
resetDependencyRecomputations: () => void;
|
|
43
|
+
} & {
|
|
44
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
45
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
33
46
|
};
|
|
34
47
|
export declare const selectMainWorkspace: OvermapSelector<Workspace | undefined>;
|
|
35
48
|
export declare const selectWorkspaceById: OvermapSelectorWithArgs<string, Stored<Workspace> | undefined>;
|
package/dist/store/store.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import { Reducer } from
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VersioningState, WorkspaceState } from
|
|
7
|
-
import type { BaseState, OvermapRootState } from "../typings";
|
|
1
|
+
import { Config, OfflineAction, OfflineMetadata } from '@redux-offline/redux-offline/lib/types';
|
|
2
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
3
|
+
import { default as request } from 'superagent';
|
|
4
|
+
import { BaseSDK, OfflineMetaEffect, OutboxCoordinator, RequestDetails } from '../sdk';
|
|
5
|
+
import { BaseState, OvermapRootState } from '../typings';
|
|
6
|
+
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeFieldsAttachmentState, AssetTypeFieldsState, AssetTypeFieldValuesAttachmentState, AssetTypeFieldValuesState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeFieldsAttachmentState, IssueTypeFieldsState, IssueTypeFieldValuesAttachmentState, IssueTypeFieldValuesState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VersioningState, WorkspaceState } from './slices';
|
|
8
7
|
export declare const VERSION_REDUCER_KEY = "versioning";
|
|
9
8
|
export declare const overmapReducers: {
|
|
10
9
|
versioning: Reducer<VersioningState>;
|
|
@@ -45,6 +44,14 @@ export declare const overmapReducers: {
|
|
|
45
44
|
issueAttachmentReducer: Reducer<IssueAttachmentState>;
|
|
46
45
|
geoImageReducer: Reducer<GeoImageSliceState>;
|
|
47
46
|
issueAssociationReducer: Reducer<IssueAssociationSliceState>;
|
|
47
|
+
issueTypeFieldsReducer: Reducer<IssueTypeFieldsState>;
|
|
48
|
+
issueTypeFieldValuesReducer: Reducer<IssueTypeFieldValuesState>;
|
|
49
|
+
issueTypeFieldsAttachmentReducer: Reducer<IssueTypeFieldsAttachmentState>;
|
|
50
|
+
issueTypeFieldValuesAttachmentReducer: Reducer<IssueTypeFieldValuesAttachmentState>;
|
|
51
|
+
assetTypeFieldsReducer: Reducer<AssetTypeFieldsState>;
|
|
52
|
+
assetTypeFieldValuesReducer: Reducer<AssetTypeFieldValuesState>;
|
|
53
|
+
assetTypeFieldsAttachmentReducer: Reducer<AssetTypeFieldsAttachmentState>;
|
|
54
|
+
assetTypeFieldValuesAttachmentReducer: Reducer<AssetTypeFieldValuesAttachmentState>;
|
|
48
55
|
};
|
|
49
56
|
export declare const resetStore = "RESET";
|
|
50
57
|
export declare const overmapRootReducer: Reducer<OvermapRootState>;
|
package/dist/typings/files.d.ts
CHANGED
|
@@ -12,10 +12,14 @@ export type FileModel = MaybeObjectURL<{
|
|
|
12
12
|
export interface FileWithNameModel extends FileModel {
|
|
13
13
|
file_name: string;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
sha1: string;
|
|
18
|
-
extension: string;
|
|
15
|
+
export interface FilePayload {
|
|
16
|
+
sha1: FileModel["file_sha1"];
|
|
19
17
|
file_type: string;
|
|
18
|
+
extension: string;
|
|
20
19
|
size: number;
|
|
21
20
|
}
|
|
21
|
+
export interface FileModelPayload {
|
|
22
|
+
file_sha1: FileWithNameModel["file_sha1"];
|
|
23
|
+
file_name: FileWithNameModel["file_name"];
|
|
24
|
+
file_extension: string;
|
|
25
|
+
}
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from './colors';
|
|
2
|
+
export * from './files';
|
|
3
|
+
export * from './json';
|
|
4
|
+
export * from './models';
|
|
5
|
+
export * from './search';
|
|
6
|
+
export * from './store';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { OrganizationAccessLevel, ProjectAccessLevel } from 'enums';
|
|
2
|
+
import { OfflineModel } from './base';
|
|
3
3
|
export interface ProjectAccess extends OfflineModel {
|
|
4
4
|
user: number;
|
|
5
5
|
project: number;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import { JSONContent } from
|
|
2
|
-
import
|
|
3
|
-
export interface AgentProfile extends OptionalFileModel {
|
|
4
|
-
/**
|
|
5
|
-
* The name of the agent.
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* The description of the agent.
|
|
10
|
-
*/
|
|
11
|
-
description: string;
|
|
12
|
-
}
|
|
1
|
+
import { JSONContent } from '@tiptap/core';
|
|
2
|
+
import { Offline, OptionalFileModel, TimestampedModel } from './base';
|
|
13
3
|
export interface AgentProfile extends OptionalFileModel {
|
|
14
4
|
/**
|
|
15
5
|
* The name of the agent.
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
+
import { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
|
|
3
|
+
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
4
|
+
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
3
5
|
export interface Asset extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel {
|
|
4
6
|
asset_type: string;
|
|
5
7
|
created_at?: string;
|
|
6
8
|
label: string | null;
|
|
7
9
|
description?: string;
|
|
10
|
+
project: number;
|
|
8
11
|
}
|
|
9
12
|
export interface AssetType extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel {
|
|
10
|
-
|
|
13
|
+
organization: number;
|
|
11
14
|
name?: string;
|
|
12
15
|
description?: string;
|
|
13
16
|
}
|
|
@@ -16,10 +19,22 @@ export interface AssetStage extends OfflineModel, TimestampedModel, SubmittedAtM
|
|
|
16
19
|
name?: string | null;
|
|
17
20
|
description?: string | null;
|
|
18
21
|
priority: number;
|
|
19
|
-
form?: string;
|
|
20
22
|
}
|
|
21
23
|
export interface AssetStageCompletion extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
22
24
|
asset: string;
|
|
23
25
|
stage: string;
|
|
24
26
|
}
|
|
25
27
|
export type CompletedStagesMapping = Record<string, Record<string, string>>;
|
|
28
|
+
export interface AssetTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
29
|
+
asset_type: string;
|
|
30
|
+
}
|
|
31
|
+
export interface AssetTypeFieldsAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
32
|
+
fields_revision: string;
|
|
33
|
+
}
|
|
34
|
+
export interface AssetTypeFieldValues extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
35
|
+
fields_revision: string;
|
|
36
|
+
asset: string;
|
|
37
|
+
}
|
|
38
|
+
export interface AssetTypeFieldValuesAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
39
|
+
field_values: string;
|
|
40
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FileModel, FileWithNameModel } from '../files';
|
|
2
|
+
import { CreatedByModel, OfflineModel, SubmittedAtModel } from './base';
|
|
3
3
|
export interface Attachment extends OfflineModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
|
|
4
4
|
description?: string;
|
|
5
5
|
file_type: string;
|
|
@@ -19,9 +19,4 @@ export interface ProjectAttachment extends Attachment {
|
|
|
19
19
|
export interface DocumentAttachment extends Attachment {
|
|
20
20
|
document: string;
|
|
21
21
|
}
|
|
22
|
-
/** to get an AttachmentPayload for a specific type, pass in the given AttachmentType
|
|
23
|
-
* ex. AttachmentPayload<IssueAttachment> */
|
|
24
|
-
export type AttachmentPayload<TAttachment> = Omit<TAttachment, "file" | "submitted_at" | "created_by"> & {
|
|
25
|
-
file: MaybeObjectURL<File>;
|
|
26
|
-
};
|
|
27
22
|
export type ProfilePic = FileModel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { CSSColor } from '../colors';
|
|
2
|
+
import { User } from './users';
|
|
3
3
|
export interface Model {
|
|
4
4
|
}
|
|
5
5
|
export interface OfflineModel extends Model {
|
|
@@ -33,9 +33,6 @@ export interface OptionalFileModel {
|
|
|
33
33
|
export interface OwnedByOrganization {
|
|
34
34
|
organization_owner: number;
|
|
35
35
|
}
|
|
36
|
-
export interface SubmittedAtModel {
|
|
37
|
-
submitted_at: string;
|
|
38
|
-
}
|
|
39
36
|
export interface IconModel {
|
|
40
37
|
icon: string;
|
|
41
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { CSSColor } from '../colors';
|
|
2
|
+
import { CreatedByModel, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
|
|
3
3
|
export interface Category extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
4
4
|
name: string;
|
|
5
5
|
description?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
|
|
2
2
|
export interface Document extends OfflineModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
|
|
3
3
|
title: string | null;
|
|
4
4
|
description: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { OfflineModel } from './base';
|
|
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;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseSerializedObject, FieldValue, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
+
import { FileWithNameModel } from '../files';
|
|
3
|
+
export interface FieldsModel<TFields extends BaseSerializedObject = ISerializedField> {
|
|
4
|
+
fields: TFields[];
|
|
5
|
+
revision: number | "Pending";
|
|
6
|
+
}
|
|
7
|
+
export interface FieldValuesModel {
|
|
8
|
+
published_at?: string | null;
|
|
9
|
+
values: Record<string, FieldValue>;
|
|
10
|
+
}
|
|
11
|
+
export interface FieldsAttachmentModel extends FileWithNameModel {
|
|
12
|
+
field_identifier: string;
|
|
13
|
+
}
|
|
14
|
+
export interface FieldValuesAttachmentModel extends FileWithNameModel {
|
|
15
|
+
field_identifier: string;
|
|
16
|
+
}
|
|
@@ -1,41 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
+
import { CreatedByModel, OfflineModel, Payload, SubmittedAtModel, TimestampedModel } from './base';
|
|
3
|
+
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
4
4
|
export interface Form extends OfflineModel, SubmittedAtModel, CreatedByModel {
|
|
5
|
-
|
|
6
|
-
issue_type?: string;
|
|
7
|
-
organization?: number;
|
|
8
|
-
project?: number;
|
|
5
|
+
organization: number;
|
|
9
6
|
}
|
|
10
|
-
export
|
|
11
|
-
created_by: number;
|
|
12
|
-
submitted_at: string;
|
|
13
|
-
};
|
|
14
|
-
export type CachedForm = SubmittedForm & {
|
|
15
|
-
latestRevision: FormRevision;
|
|
16
|
-
};
|
|
17
|
-
export interface FormRevision<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
7
|
+
export interface FormRevision<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
18
8
|
form: string;
|
|
19
9
|
title: string;
|
|
20
10
|
description?: string;
|
|
21
|
-
fields: TFields[];
|
|
22
|
-
revision: number | "Pending";
|
|
23
11
|
}
|
|
24
|
-
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision"
|
|
25
|
-
export interface FormSubmission extends OfflineModel, SubmittedAtModel, CreatedByModel {
|
|
26
|
-
published_at?: string | null;
|
|
12
|
+
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
13
|
+
export interface FormSubmission extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
27
14
|
form_revision: string;
|
|
28
15
|
project: number;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
asset?: string;
|
|
32
|
-
asset_stage?: string;
|
|
16
|
+
issue?: string | null;
|
|
17
|
+
asset?: string | null;
|
|
33
18
|
}
|
|
34
|
-
export interface FormSubmissionAttachment extends
|
|
35
|
-
|
|
36
|
-
field_identifier: string;
|
|
19
|
+
export interface FormSubmissionAttachment extends FieldValuesAttachmentModel {
|
|
20
|
+
form_submission: string;
|
|
37
21
|
}
|
|
38
|
-
export interface FormRevisionAttachment extends
|
|
39
|
-
|
|
40
|
-
field_identifier: string;
|
|
22
|
+
export interface FormRevisionAttachment extends FieldsAttachmentModel {
|
|
23
|
+
form_revision: string;
|
|
41
24
|
}
|
|
@@ -1,22 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
export type Bounds = [Position, Position];
|
|
3
|
-
export interface PointGeometry {
|
|
4
|
-
type: "Point";
|
|
5
|
-
coordinates: Position;
|
|
6
|
-
}
|
|
7
|
-
export interface MultiPointGeometry {
|
|
8
|
-
type: "MultiPoint";
|
|
9
|
-
coordinates: Bounds;
|
|
10
|
-
}
|
|
1
|
+
import { MultiPoint, Point } from 'geojson';
|
|
11
2
|
export interface BoundableModel {
|
|
12
|
-
bounds?:
|
|
3
|
+
bounds?: MultiPoint;
|
|
13
4
|
}
|
|
14
5
|
export interface CanvasBoundableModel {
|
|
15
|
-
canvas_bounds?:
|
|
6
|
+
canvas_bounds?: MultiPoint;
|
|
16
7
|
}
|
|
17
8
|
export interface MarkableModel {
|
|
18
|
-
geo_marker?:
|
|
9
|
+
geo_marker?: Point;
|
|
19
10
|
}
|
|
20
11
|
export interface CanvasMarkableModel {
|
|
21
|
-
canvas_marker?:
|
|
12
|
+
canvas_marker?: Point;
|
|
22
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { FileWithNameModel } from '../files';
|
|
2
|
+
import { CreatedByModel, OfflineModel, SubmittedAtModel } from './base';
|
|
3
|
+
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
4
4
|
export interface GeoImage extends OfflineModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel {
|
|
5
5
|
title?: string;
|
|
6
6
|
description?: string;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
1
|
+
export * from './access';
|
|
2
|
+
export * from './agents';
|
|
3
|
+
export * from './assets';
|
|
4
|
+
export * from './attachments';
|
|
5
|
+
export * from './base';
|
|
6
|
+
export * from './categories';
|
|
7
|
+
export * from './documents';
|
|
8
|
+
export * from './emailDomain';
|
|
9
|
+
export * from './emailVerification';
|
|
10
|
+
export * from './fields';
|
|
11
|
+
export * from './forms';
|
|
12
|
+
export * from './geo';
|
|
13
|
+
export * from './geoImages';
|
|
14
|
+
export * from './issues';
|
|
15
|
+
export * from './issueTypes';
|
|
16
|
+
export * from './license';
|
|
17
|
+
export * from './organizations';
|
|
18
|
+
export * from './projects';
|
|
19
|
+
export * from './store';
|
|
20
|
+
export * from './teams';
|
|
21
|
+
export * from './users';
|
|
22
|
+
export * from './workspace';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel } from './base';
|
|
2
|
+
import { Organization } from './organizations';
|
|
3
3
|
export interface IssueType extends OfflineModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
|
|
4
4
|
name?: string;
|
|
5
5
|
description?: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
+
import { IssuePriority, IssueStatus, IssueUpdateChange } from '../../enums';
|
|
3
|
+
import { CSSColor } from '../colors';
|
|
4
|
+
import { CreatedByModel, Offline, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
|
|
5
|
+
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
6
|
+
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
7
|
+
import { User } from './users';
|
|
8
|
+
import { WorkspaceIndexedModel } from './workspace';
|
|
7
9
|
/**
|
|
8
10
|
* Represents a model instance that has been submitted to the backend. Some properties (depending on which model, but in
|
|
9
11
|
* all cases, the `offline_id`) are guaranteed to be set.
|
|
@@ -95,3 +97,16 @@ export interface IssueAssociation extends OfflineModel, SubmittedAtModel, Create
|
|
|
95
97
|
issue?: string;
|
|
96
98
|
asset?: string;
|
|
97
99
|
}
|
|
100
|
+
export interface IssueTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
101
|
+
issue_type: string;
|
|
102
|
+
}
|
|
103
|
+
export interface IssueTypeFieldsAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
104
|
+
fields_revision: string;
|
|
105
|
+
}
|
|
106
|
+
export interface IssueTypeFieldValues extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
107
|
+
fields_revision: string;
|
|
108
|
+
issue: string;
|
|
109
|
+
}
|
|
110
|
+
export interface IssueTypeFieldValuesAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
111
|
+
field_values: string;
|
|
112
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { LicenseLevel, LicenseStatus } from '../../enums';
|
|
2
|
+
import { OfflineModel, OwnedByOrganization } from './base';
|
|
3
3
|
export interface Transaction {
|
|
4
4
|
id: string;
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { FileWithNameModel } from '../files';
|
|
2
|
+
import { Model, OfflineModel, OwnedByOrganization, SubmittedAtModel } from './base';
|
|
3
|
+
import { BoundableModel, CanvasBoundableModel } from './geo';
|
|
4
4
|
export interface Project extends Model, BoundableModel, CanvasBoundableModel, OwnedByOrganization {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import type { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState, WorkspaceState } from "../../store";
|
|
1
|
+
import { OfflineState } from '@redux-offline/redux-offline/lib/types';
|
|
2
|
+
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeFieldsAttachmentState, AssetTypeFieldsState, AssetTypeFieldValuesAttachmentState, AssetTypeFieldValuesState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeFieldsAttachmentState, IssueTypeFieldsState, IssueTypeFieldValuesAttachmentState, IssueTypeFieldValuesState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState, WorkspaceState } from '../../store';
|
|
4
3
|
export interface BaseState {
|
|
5
4
|
outboxReducer: OutboxState;
|
|
6
5
|
offline: OfflineState;
|
|
@@ -43,4 +42,12 @@ export interface OvermapRootState extends BaseState {
|
|
|
43
42
|
agentsReducer: AgentsState;
|
|
44
43
|
geoImageReducer: GeoImageSliceState;
|
|
45
44
|
issueAssociationReducer: IssueAssociationSliceState;
|
|
45
|
+
issueTypeFieldsReducer: IssueTypeFieldsState;
|
|
46
|
+
issueTypeFieldValuesReducer: IssueTypeFieldValuesState;
|
|
47
|
+
issueTypeFieldsAttachmentReducer: IssueTypeFieldsAttachmentState;
|
|
48
|
+
issueTypeFieldValuesAttachmentReducer: IssueTypeFieldValuesAttachmentState;
|
|
49
|
+
assetTypeFieldsReducer: AssetTypeFieldsState;
|
|
50
|
+
assetTypeFieldValuesReducer: AssetTypeFieldValuesState;
|
|
51
|
+
assetTypeFieldsAttachmentReducer: AssetTypeFieldsAttachmentState;
|
|
52
|
+
assetTypeFieldValuesAttachmentReducer: AssetTypeFieldValuesAttachmentState;
|
|
46
53
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { ColorModel, IconModel, OfflineModel, SubmittedAtModel } from './base';
|
|
2
|
+
import { Organization } from './organizations';
|
|
3
|
+
import { User } from './users';
|
|
4
4
|
export interface Team extends OfflineModel, SubmittedAtModel, IconModel, ColorModel {
|
|
5
5
|
name: string;
|
|
6
6
|
parent: OfflineModel["offline_id"] | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CreatedByModel, Model, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
|
|
2
2
|
export interface Workspace extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
3
3
|
name: string;
|
|
4
4
|
project: number;
|