@overmap-ai/core 1.0.74-model-indexes.1 → 1.0.74-procedures.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 +3370 -2440
- package/dist/overmap-core.umd.cjs +8 -8
- package/dist/sdk/services/AssetProcedureFieldValuesAttachmentService.d.ts +15 -0
- package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +21 -0
- package/dist/sdk/services/AssetProcedureFieldsAttachmentService.d.ts +12 -0
- package/dist/sdk/services/AssetProcedureFieldsService.d.ts +8 -0
- package/dist/sdk/services/AssetProcedureInstanceService.d.ts +10 -0
- package/dist/sdk/services/AssetProcedureService.d.ts +10 -0
- package/dist/sdk/services/AssetStageService.d.ts +2 -2
- package/dist/sdk/services/WorkspaceService.d.ts +10 -0
- package/dist/sdk/services/index.d.ts +7 -0
- package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +63 -0
- package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +63 -0
- package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +62 -0
- package/dist/store/slices/assetProcedureFieldsSlice.d.ts +63 -0
- package/dist/store/slices/assetProcedureInstanceSlice.d.ts +64 -0
- package/dist/store/slices/assetProcedureSlice.d.ts +63 -0
- package/dist/store/slices/assetStageCompletionSlice.d.ts +5 -5
- package/dist/store/slices/assetStageSlice.d.ts +2 -2
- package/dist/store/slices/index.d.ts +7 -0
- package/dist/store/slices/workspaceSlice.d.ts +50 -0
- package/dist/store/store.d.ts +10 -3
- package/dist/typings/models/assets.d.ts +28 -4
- package/dist/typings/models/base.d.ts +1 -4
- package/dist/typings/models/categories.d.ts +1 -1
- package/dist/typings/models/forms.d.ts +2 -2
- package/dist/typings/models/geoImages.d.ts +3 -3
- package/dist/typings/models/index.d.ts +1 -0
- package/dist/typings/models/issues.d.ts +4 -4
- package/dist/typings/models/store.d.ts +8 -1
- package/dist/typings/models/workspace.d.ts +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored, Workspace } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
export type WorkspaceState = ModelState<Stored<Workspace>>;
|
|
5
|
+
export declare const workspaceSlice: import('@reduxjs/toolkit').Slice<WorkspaceState, {
|
|
6
|
+
initializeWorkspaces: (state: ModelState<Stored<Workspace>>, action: {
|
|
7
|
+
payload: Stored<Workspace>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
setWorkspaces: (state: ModelState<Stored<Workspace>>, action: {
|
|
11
|
+
payload: Stored<Workspace>[];
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addWorkspace: (state: ModelState<Stored<Workspace>>, action: {
|
|
15
|
+
payload: Stored<Workspace>;
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
updateWorkspace: (state: ModelState<Stored<Workspace>>, action: {
|
|
19
|
+
payload: Stored<Workspace>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
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">;
|
|
25
|
+
export declare const selectWorkspaceMapping: OvermapSelector<Record<string, Workspace>>;
|
|
26
|
+
export declare const selectWorkspaces: ((state: OvermapRootState) => Workspace[]) & {
|
|
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;
|
|
46
|
+
};
|
|
47
|
+
export declare const selectMainWorkspace: OvermapSelector<Workspace | undefined>;
|
|
48
|
+
export declare const selectWorkspaceById: OvermapSelectorWithArgs<string, Stored<Workspace> | undefined>;
|
|
49
|
+
export declare const selectPermittedWorkspaceIds: OvermapSelector<Set<string>>;
|
|
50
|
+
export declare const workspaceReducer: Reducer<WorkspaceState>;
|
package/dist/store/store.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ 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, 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 } from './slices';
|
|
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, IssueCommentState, IssueState, IssueTypeFieldsAttachmentState, IssueTypeFieldsState, IssueTypeFieldValuesAttachmentState, IssueTypeFieldValuesState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VersioningState, WorkspaceState } from './slices';
|
|
7
7
|
export declare const VERSION_REDUCER_KEY = "versioning";
|
|
8
8
|
export declare const overmapReducers: {
|
|
9
9
|
versioning: Reducer<VersioningState>;
|
|
@@ -17,6 +17,7 @@ export declare const overmapReducers: {
|
|
|
17
17
|
assetTypeReducer: Reducer<AssetTypeState>;
|
|
18
18
|
assetTypeAttachmentReducer: Reducer<AssetTypeAttachmentState>;
|
|
19
19
|
issueReducer: Reducer<IssueState>;
|
|
20
|
+
issueAttachmentReducer: Reducer<IssueAttachmentState>;
|
|
20
21
|
issueTypeReducer: Reducer<IssueTypeState>;
|
|
21
22
|
organizationReducer: Reducer<OrganizationState>;
|
|
22
23
|
outboxReducer: Reducer<OutboxState>;
|
|
@@ -27,11 +28,12 @@ export declare const overmapReducers: {
|
|
|
27
28
|
projectFileReducer: Reducer<ProjectFileState>;
|
|
28
29
|
rehydratedReducer: Reducer<RehydratedState>;
|
|
29
30
|
formReducer: Reducer<FormState>;
|
|
30
|
-
userReducer: Reducer<UserState>;
|
|
31
31
|
formRevisionReducer: Reducer<FormRevisionState>;
|
|
32
32
|
formRevisionAttachmentReducer: Reducer<FormRevisionAttachmentState>;
|
|
33
33
|
formSubmissionAttachmentReducer: Reducer<FormSubmissionAttachmentState>;
|
|
34
34
|
formSubmissionReducer: Reducer<FormSubmissionState>;
|
|
35
|
+
userReducer: Reducer<UserState>;
|
|
36
|
+
workspaceReducer: Reducer<WorkspaceState>;
|
|
35
37
|
emailDomainsReducer: Reducer<EmailDomainState>;
|
|
36
38
|
licenseReducer: Reducer<LicenseState>;
|
|
37
39
|
documentsReducer: Reducer<DocumentState>;
|
|
@@ -40,7 +42,6 @@ export declare const overmapReducers: {
|
|
|
40
42
|
agentsReducer: Reducer<AgentsState>;
|
|
41
43
|
issueCommentReducer: Reducer<IssueCommentState>;
|
|
42
44
|
issueUpdateReducer: Reducer<IssueUpdateState>;
|
|
43
|
-
issueAttachmentReducer: Reducer<IssueAttachmentState>;
|
|
44
45
|
geoImageReducer: Reducer<GeoImageSliceState>;
|
|
45
46
|
issueAssociationReducer: Reducer<IssueAssociationSliceState>;
|
|
46
47
|
issueTypeFieldsReducer: Reducer<IssueTypeFieldsState>;
|
|
@@ -51,6 +52,12 @@ export declare const overmapReducers: {
|
|
|
51
52
|
assetTypeFieldValuesReducer: Reducer<AssetTypeFieldValuesState>;
|
|
52
53
|
assetTypeFieldsAttachmentReducer: Reducer<AssetTypeFieldsAttachmentState>;
|
|
53
54
|
assetTypeFieldValuesAttachmentReducer: Reducer<AssetTypeFieldValuesAttachmentState>;
|
|
55
|
+
assetProcedureReducer: Reducer<AssetProcedureState>;
|
|
56
|
+
assetProcedureInstanceReducer: Reducer<AssetProcedureInstanceState>;
|
|
57
|
+
assetProcedureFieldsReducer: Reducer<AssetProcedureFieldsState>;
|
|
58
|
+
assetProcedureFieldValuesReducer: Reducer<AssetProcedureFieldValuesState>;
|
|
59
|
+
assetProcedureFieldsAttachmentReducer: Reducer<AssetProcedureFieldsAttachmentState>;
|
|
60
|
+
assetProcedureFieldValuesAttachmentReducer: Reducer<AssetProcedureFieldValuesAttachmentState>;
|
|
54
61
|
};
|
|
55
62
|
export declare const resetStore = "RESET";
|
|
56
63
|
export declare const overmapRootReducer: Reducer<OvermapRootState>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
-
import { ColorModel, CreatedByModel, IconModel,
|
|
2
|
+
import { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
|
|
3
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
4
4
|
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
5
|
-
export interface Asset extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel
|
|
5
|
+
export interface Asset extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel {
|
|
6
6
|
asset_type: string;
|
|
7
|
-
created_at?: string;
|
|
8
7
|
label: string | null;
|
|
9
8
|
description?: string;
|
|
10
9
|
project: number;
|
|
@@ -14,8 +13,18 @@ export interface AssetType extends OfflineModel, TimestampedModel, SubmittedAtMo
|
|
|
14
13
|
name?: string;
|
|
15
14
|
description?: string;
|
|
16
15
|
}
|
|
17
|
-
export interface
|
|
16
|
+
export interface AssetProcedure extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel {
|
|
17
|
+
organization: number;
|
|
18
|
+
name?: string | null;
|
|
19
|
+
description?: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface AssetProcedureInstance extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
22
|
+
asset_procedure: string;
|
|
18
23
|
asset_type: string;
|
|
24
|
+
project: number;
|
|
25
|
+
}
|
|
26
|
+
export interface AssetStage extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
|
|
27
|
+
asset_procedure: string;
|
|
19
28
|
name?: string | null;
|
|
20
29
|
description?: string | null;
|
|
21
30
|
priority: number;
|
|
@@ -23,6 +32,7 @@ export interface AssetStage extends OfflineModel, TimestampedModel, SubmittedAtM
|
|
|
23
32
|
export interface AssetStageCompletion extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
24
33
|
asset: string;
|
|
25
34
|
stage: string;
|
|
35
|
+
asset_procedure_instance: string;
|
|
26
36
|
}
|
|
27
37
|
export type CompletedStagesMapping = Record<string, Record<string, string>>;
|
|
28
38
|
export interface AssetTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
@@ -38,3 +48,17 @@ export interface AssetTypeFieldValues extends OfflineModel, SubmittedAtModel, Ti
|
|
|
38
48
|
export interface AssetTypeFieldValuesAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
39
49
|
field_values: string;
|
|
40
50
|
}
|
|
51
|
+
export interface AssetProcedureFields<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
52
|
+
asset_procedure: string;
|
|
53
|
+
}
|
|
54
|
+
export interface AssetProcedureFieldsAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
55
|
+
fields_revision: string;
|
|
56
|
+
}
|
|
57
|
+
export interface AssetProcedureFieldValues extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
58
|
+
fields_revision: string;
|
|
59
|
+
asset_procedure_instance: string;
|
|
60
|
+
asset: string;
|
|
61
|
+
}
|
|
62
|
+
export interface AssetProcedureFieldValuesAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
63
|
+
field_values: string;
|
|
64
|
+
}
|
|
@@ -16,7 +16,7 @@ export type Offline<T> = T & {
|
|
|
16
16
|
offline_id: string;
|
|
17
17
|
};
|
|
18
18
|
export type OfflineIdMapping<TModel extends OfflineModel> = Record<TModel["offline_id"], TModel>;
|
|
19
|
-
export type Payload<TModel> = Omit<TModel, "offline_id" | "created_at" | "updated_at" | "id" | "submitted_at" | "created_by"
|
|
19
|
+
export type Payload<TModel> = Omit<TModel, "offline_id" | "created_at" | "updated_at" | "id" | "submitted_at" | "created_by">;
|
|
20
20
|
export type MaybePayload<TModel extends OfflineModel> = Payload<TModel> & {
|
|
21
21
|
offline_id?: string | null;
|
|
22
22
|
};
|
|
@@ -42,6 +42,3 @@ export interface ColorModel {
|
|
|
42
42
|
export interface CreatedByModel {
|
|
43
43
|
created_by?: User["id"] | null;
|
|
44
44
|
}
|
|
45
|
-
export interface IndexedModel {
|
|
46
|
-
index: number | null;
|
|
47
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
-
import { CreatedByModel,
|
|
2
|
+
import { CreatedByModel, OfflineModel, Payload, SubmittedAtModel, TimestampedModel } from './base';
|
|
3
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
4
4
|
export interface Form extends OfflineModel, SubmittedAtModel, CreatedByModel {
|
|
5
5
|
organization: number;
|
|
@@ -10,7 +10,7 @@ export interface FormRevision<TFields extends BaseSerializedObject = ISerialized
|
|
|
10
10
|
description?: string;
|
|
11
11
|
}
|
|
12
12
|
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
13
|
-
export interface FormSubmission extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel
|
|
13
|
+
export interface FormSubmission extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
14
14
|
form_revision: string;
|
|
15
15
|
project: number;
|
|
16
16
|
issue?: string | null;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { FileWithNameModel } from '../files';
|
|
2
|
-
import { CreatedByModel,
|
|
2
|
+
import { CreatedByModel, OfflineModel, SubmittedAtModel } from './base';
|
|
3
3
|
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
4
|
-
export interface GeoImage extends OfflineModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel
|
|
4
|
+
export interface GeoImage extends OfflineModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel {
|
|
5
5
|
title?: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
project: number;
|
|
8
8
|
direction?: number;
|
|
9
9
|
original_date?: string;
|
|
10
10
|
}
|
|
11
|
-
export type GeoImagePayload = Omit<
|
|
11
|
+
export type GeoImagePayload = Omit<GeoImage, "offline_id" | "submitted_at" | "created_by" | "file_name" | "file_sha1" | "file"> & {
|
|
12
12
|
file: File;
|
|
13
13
|
};
|
|
14
14
|
export type BulkGeoImagePayload = Omit<GeoImagePayload, "project">;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
2
|
import { IssuePriority, IssueStatus, IssueUpdateChange } from '../../enums';
|
|
3
3
|
import { CSSColor } from '../colors';
|
|
4
|
-
import { CreatedByModel,
|
|
4
|
+
import { CreatedByModel, Offline, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
|
|
5
5
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
6
6
|
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
7
7
|
import { User } from './users';
|
|
8
|
+
import { WorkspaceIndexedModel } from './workspace';
|
|
8
9
|
/**
|
|
9
10
|
* Represents a model instance that has been submitted to the backend. Some properties (depending on which model, but in
|
|
10
11
|
* all cases, the `offline_id`) are guaranteed to be set.
|
|
@@ -26,7 +27,7 @@ export type Stored<TModel> = Created<TModel> | Submitted<TModel>;
|
|
|
26
27
|
* Represents the properties you can always expect on any object representing an issue. These are the minimal details
|
|
27
28
|
* required when creating an issue.
|
|
28
29
|
*/
|
|
29
|
-
export interface Issue extends OfflineModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel
|
|
30
|
+
export interface Issue extends OfflineModel, SubmittedAtModel, CreatedByModel, Pick<WorkspaceIndexedModel, "index_workspace">, MarkableModel, CanvasMarkableModel {
|
|
30
31
|
title?: string | null;
|
|
31
32
|
description?: string | null;
|
|
32
33
|
priority: IssuePriority;
|
|
@@ -35,7 +36,6 @@ export interface Issue extends OfflineModel, SubmittedAtModel, CreatedByModel, M
|
|
|
35
36
|
due_date?: string | Date | null;
|
|
36
37
|
category?: string | null;
|
|
37
38
|
issue_type?: string | null;
|
|
38
|
-
project: number;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* These details need to be provided by the frontend code before submitting to the backend.
|
|
@@ -49,7 +49,7 @@ export interface SubmittedIssue extends OfflineModel, CreatedByModel {
|
|
|
49
49
|
* These details exist on issues that have been successfully submitted, accepted, created, and serialized by the
|
|
50
50
|
* backend, then downloaded by the frontend.
|
|
51
51
|
*/
|
|
52
|
-
export interface CreatedIssue extends Issue {
|
|
52
|
+
export interface CreatedIssue extends Issue, Pick<WorkspaceIndexedModel, "index"> {
|
|
53
53
|
title: Exclude<Issue["title"], undefined>;
|
|
54
54
|
description: Exclude<Issue["description"], undefined>;
|
|
55
55
|
assigned_to: Exclude<Issue["assigned_to"], undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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 } from '../../store';
|
|
2
|
+
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, 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';
|
|
3
3
|
export interface BaseState {
|
|
4
4
|
outboxReducer: OutboxState;
|
|
5
5
|
offline: OfflineState;
|
|
@@ -33,6 +33,7 @@ export interface OvermapRootState extends BaseState {
|
|
|
33
33
|
formSubmissionReducer: FormSubmissionState;
|
|
34
34
|
formSubmissionAttachmentReducer: FormSubmissionAttachmentState;
|
|
35
35
|
userReducer: UserState;
|
|
36
|
+
workspaceReducer: WorkspaceState;
|
|
36
37
|
emailDomainsReducer: EmailDomainState;
|
|
37
38
|
licenseReducer: LicenseState;
|
|
38
39
|
documentsReducer: DocumentState;
|
|
@@ -49,4 +50,10 @@ export interface OvermapRootState extends BaseState {
|
|
|
49
50
|
assetTypeFieldValuesReducer: AssetTypeFieldValuesState;
|
|
50
51
|
assetTypeFieldsAttachmentReducer: AssetTypeFieldsAttachmentState;
|
|
51
52
|
assetTypeFieldValuesAttachmentReducer: AssetTypeFieldValuesAttachmentState;
|
|
53
|
+
assetProcedureReducer: AssetProcedureState;
|
|
54
|
+
assetProcedureInstanceReducer: AssetProcedureInstanceState;
|
|
55
|
+
assetProcedureFieldsReducer: AssetProcedureFieldsState;
|
|
56
|
+
assetProcedureFieldValuesReducer: AssetProcedureFieldValuesState;
|
|
57
|
+
assetProcedureFieldsAttachmentReducer: AssetProcedureFieldsAttachmentState;
|
|
58
|
+
assetProcedureFieldValuesAttachmentReducer: AssetProcedureFieldValuesAttachmentState;
|
|
52
59
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CreatedByModel, Model, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
|
|
2
|
+
export interface Workspace extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
3
|
+
name: string;
|
|
4
|
+
project: number;
|
|
5
|
+
abbreviation: string | null;
|
|
6
|
+
permitted: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface WorkspaceIndexedModel extends Model {
|
|
9
|
+
index: number | null;
|
|
10
|
+
index_workspace: string;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core functionality for Overmap",
|
|
4
4
|
"author": "Wôrdn Inc.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
|
-
"version": "1.0.74-
|
|
6
|
+
"version": "1.0.74-procedures.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|