@overmap-ai/core 1.0.52 → 1.0.53-add-agent-slice.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/overmap-core.js +300 -33
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +300 -33
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +2 -1
- package/dist/sdk/services/AgentService.d.ts +1 -1
- package/dist/sdk/services/IssueService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeService.d.ts +9 -0
- package/dist/sdk/services/UserFormService.d.ts +10 -2
- package/dist/sdk/services/index.d.ts +1 -0
- package/dist/store/slices/categorySlice.d.ts +1 -0
- package/dist/store/slices/documentSlice.d.ts +29 -56
- package/dist/store/slices/formRevisionSlice.d.ts +30 -29
- package/dist/store/slices/formSlice.d.ts +7 -0
- package/dist/store/slices/formSubmissionSlice.d.ts +2 -0
- package/dist/store/slices/index.d.ts +1 -0
- package/dist/store/slices/issueSlice.d.ts +6 -1
- package/dist/store/slices/issueTypeSlice.d.ts +20 -0
- package/dist/store/slices/projectFileSlice.d.ts +1 -0
- package/dist/store/slices/workspaceSlice.d.ts +1 -0
- package/dist/store/store.d.ts +4 -1
- package/dist/typings/models/attachments.d.ts +2 -3
- package/dist/typings/models/base.d.ts +4 -0
- package/dist/typings/models/documents.d.ts +3 -6
- package/dist/typings/models/forms.d.ts +3 -3
- package/dist/typings/models/index.d.ts +1 -0
- package/dist/typings/models/issueTypes.d.ts +8 -0
- package/dist/typings/models/issues.d.ts +4 -5
- package/dist/typings/models/organizations.d.ts +2 -3
- package/package.json +153 -153
|
@@ -38,6 +38,9 @@ export declare const issueSlice: import("@reduxjs/toolkit").Slice<IssueState, {
|
|
|
38
38
|
addIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
39
39
|
payload: Submitted<Issue>;
|
|
40
40
|
}) => void;
|
|
41
|
+
addIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
42
|
+
payload: Stored<Issue>[];
|
|
43
|
+
}) => void;
|
|
41
44
|
addIssueAttachment: (state: IssueState, action: {
|
|
42
45
|
payload: Submitted<IssueAttachment>;
|
|
43
46
|
type: string;
|
|
@@ -60,6 +63,7 @@ export declare const issueSlice: import("@reduxjs/toolkit").Slice<IssueState, {
|
|
|
60
63
|
type: string;
|
|
61
64
|
}) => void;
|
|
62
65
|
removeIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
66
|
+
removeIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string[]>) => void;
|
|
63
67
|
removeIssueAttachment: (state: IssueState, action: {
|
|
64
68
|
payload: string;
|
|
65
69
|
type: string;
|
|
@@ -85,7 +89,7 @@ export declare const issueSlice: import("@reduxjs/toolkit").Slice<IssueState, {
|
|
|
85
89
|
resetRecentIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>) => void;
|
|
86
90
|
removeRecentIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
87
91
|
}, "issues">;
|
|
88
|
-
export declare const addIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>, "issues/addIssueAttachment">, addIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>[], "issues/addIssueAttachments">, addIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<Issue>, "issues/addIssue">, addIssueUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueUpdate>, "issues/addIssueUpdate">, addIssueUpdates: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueUpdate>[], "issues/addIssueUpdates">, addOrReplaceIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueComment>, "issues/addOrReplaceIssueComment">, addToRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/addToRecentIssues">, cleanRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/cleanRecentIssues">, removeIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssueAttachment">, removeAttachmentsOfIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeAttachmentsOfIssue">, removeIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssue">, removeIssueUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssueUpdate">, removeIssueUpdates: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issues/removeIssueUpdates">, removeRecentIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeRecentIssue">, resetRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/resetRecentIssues">, setActiveIssueId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "issues/setActiveIssueId">, setIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<IssueAttachment>[], "issues/setIssueAttachments">, setIssueUpdates: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<IssueUpdate>[], "issues/setIssueUpdates">, setIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<Issue>[], "issues/setIssues">, setVisibleStatuses: import("@reduxjs/toolkit").ActionCreatorWithPayload<IssueStatus[], "issues/setVisibleStatuses">, setVisibleUserIds: import("@reduxjs/toolkit").ActionCreatorWithPayload<(number | null)[], "issues/setVisibleUserIds">, updateIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>, "issues/updateIssueAttachment">, updateIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<Partial<Issue>>, "issues/updateIssue">, addIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueComment>, "issues/addIssueComment">, addIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueComment>[], "issues/addIssueComments">, setIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueComment>, "issues/setIssueComment">, setIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueComment>[], "issues/setIssueComments">, removeIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssueComment">, removeIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issues/removeIssueComments">;
|
|
92
|
+
export declare const addIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>, "issues/addIssueAttachment">, addIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>[], "issues/addIssueAttachments">, addIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<Issue>, "issues/addIssue">, addIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Issue>[], "issues/addIssues">, addIssueUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueUpdate>, "issues/addIssueUpdate">, addIssueUpdates: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueUpdate>[], "issues/addIssueUpdates">, addOrReplaceIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueComment>, "issues/addOrReplaceIssueComment">, addToRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/addToRecentIssues">, cleanRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/cleanRecentIssues">, removeIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssueAttachment">, removeAttachmentsOfIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeAttachmentsOfIssue">, removeIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssue">, removeIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issues/removeIssues">, removeIssueUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssueUpdate">, removeIssueUpdates: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issues/removeIssueUpdates">, removeRecentIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeRecentIssue">, resetRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/resetRecentIssues">, setActiveIssueId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "issues/setActiveIssueId">, setIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<IssueAttachment>[], "issues/setIssueAttachments">, setIssueUpdates: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<IssueUpdate>[], "issues/setIssueUpdates">, setIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<Issue>[], "issues/setIssues">, setVisibleStatuses: import("@reduxjs/toolkit").ActionCreatorWithPayload<IssueStatus[], "issues/setVisibleStatuses">, setVisibleUserIds: import("@reduxjs/toolkit").ActionCreatorWithPayload<(number | null)[], "issues/setVisibleUserIds">, updateIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>, "issues/updateIssueAttachment">, updateIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<Partial<Issue>>, "issues/updateIssue">, addIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueComment>, "issues/addIssueComment">, addIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueComment>[], "issues/addIssueComments">, setIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueComment>, "issues/setIssueComment">, setIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueComment>[], "issues/setIssueComments">, removeIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssueComment">, removeIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issues/removeIssueComments">;
|
|
89
93
|
export interface IssueFilterArgs {
|
|
90
94
|
filterByAssignedTo: boolean;
|
|
91
95
|
filterByStatus: boolean;
|
|
@@ -123,6 +127,7 @@ export declare const selectAllAttachments: ((state: import("redux").EmptyObject
|
|
|
123
127
|
componentStageReducer: import('..').ComponentStageState;
|
|
124
128
|
componentTypeReducer: import('..').ComponentTypeState;
|
|
125
129
|
issueReducer: IssueState;
|
|
130
|
+
issueTypeReducer: import('..').IssueTypeState;
|
|
126
131
|
mapReducer: import('..').MapState;
|
|
127
132
|
organizationReducer: import('..').OrganizationState;
|
|
128
133
|
outboxReducer: import('..').OutboxState;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
|
+
import { Issue, IssueType, Organization, Selector, SelectorWithArgs, Stored } from "../../typings";
|
|
3
|
+
export interface IssueTypeState {
|
|
4
|
+
issueTypes: Record<string, Stored<IssueType>>;
|
|
5
|
+
}
|
|
6
|
+
export declare const issueTypeSlice: import("@reduxjs/toolkit").Slice<IssueTypeState, {
|
|
7
|
+
setIssueTypes: (state: import("immer/dist/internal.js").WritableDraft<IssueTypeState>, action: PayloadAction<Stored<IssueType>[]>) => void;
|
|
8
|
+
setIssueType: (state: import("immer/dist/internal.js").WritableDraft<IssueTypeState>, action: PayloadAction<Stored<IssueType>>) => void;
|
|
9
|
+
addIssueType: (state: import("immer/dist/internal.js").WritableDraft<IssueTypeState>, action: PayloadAction<Stored<IssueType>>) => void;
|
|
10
|
+
updateIssueType: (state: import("immer/dist/internal.js").WritableDraft<IssueTypeState>, action: PayloadAction<Stored<IssueType>>) => void;
|
|
11
|
+
removeIssueType: (state: import("immer/dist/internal.js").WritableDraft<IssueTypeState>, action: PayloadAction<string>) => void;
|
|
12
|
+
}, "issueTypes">;
|
|
13
|
+
export declare const setIssueTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueType>[], "issueTypes/setIssueTypes">, setIssueType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueType>, "issueTypes/setIssueType">, addIssueType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueType>, "issueTypes/addIssueType">, updateIssueType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueType>, "issueTypes/updateIssueType">, removeIssueType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issueTypes/removeIssueType">;
|
|
14
|
+
export declare const selectIssueTypeMapping: Selector<IssueTypeState["issueTypes"]>;
|
|
15
|
+
export declare const selectIssueTypes: Selector<Stored<IssueType>[]>;
|
|
16
|
+
export declare const selectIssueType: SelectorWithArgs<IssueType["offline_id"], Stored<IssueType>>;
|
|
17
|
+
export declare const selectIssueTypesOfOrganization: SelectorWithArgs<Organization["id"], Stored<IssueType>[]>;
|
|
18
|
+
export declare const selectIssuesOfIssueType: SelectorWithArgs<IssueType["offline_id"], Stored<Issue>[]>;
|
|
19
|
+
export declare const selectIssuesOfIssueTypeCount: SelectorWithArgs<IssueType["offline_id"], number>;
|
|
20
|
+
export declare const issueTypeReducer: Reducer<IssueTypeState>;
|
|
@@ -59,6 +59,7 @@ export declare const selectProjectFiles: ((state: import("redux").EmptyObject &
|
|
|
59
59
|
componentStageReducer: import('..').ComponentStageState;
|
|
60
60
|
componentTypeReducer: import('..').ComponentTypeState;
|
|
61
61
|
issueReducer: import('..').IssueState;
|
|
62
|
+
issueTypeReducer: import('..').IssueTypeState;
|
|
62
63
|
mapReducer: import('..').MapState;
|
|
63
64
|
organizationReducer: import('..').OrganizationState;
|
|
64
65
|
outboxReducer: import('..').OutboxState;
|
|
@@ -37,6 +37,7 @@ export declare const selectWorkspaces: ((state: import("redux").EmptyObject & {
|
|
|
37
37
|
componentStageReducer: import('..').ComponentStageState;
|
|
38
38
|
componentTypeReducer: import('..').ComponentTypeState;
|
|
39
39
|
issueReducer: import('..').IssueState;
|
|
40
|
+
issueTypeReducer: import('..').IssueTypeState;
|
|
40
41
|
mapReducer: import('..').MapState;
|
|
41
42
|
organizationReducer: import('..').OrganizationState;
|
|
42
43
|
outboxReducer: import('..').OutboxState;
|
package/dist/store/store.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AnyAction, Reducer } from "redux";
|
|
|
3
3
|
import { Config, OfflineAction, OfflineMetadata, OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
4
4
|
import request from "superagent";
|
|
5
5
|
import { type OfflineMetaEffect, type OvermapSDK, RequestDetails } from "../sdk";
|
|
6
|
-
import { AuthState, CategoryState, ComponentStageCompletionState, ComponentStageState, ComponentState, ComponentTypeState, DocumentState, EmailDomainState, FileState, IssueState, LicenseState, MapState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectFileState, ProjectState, RehydratedState, SettingState, FormState, FormRevisionState, FormSubmissionState, UserState, WorkspaceState, TeamState } from "./slices";
|
|
6
|
+
import { AuthState, CategoryState, ComponentStageCompletionState, ComponentStageState, ComponentState, ComponentTypeState, DocumentState, EmailDomainState, FileState, IssueState, IssueTypeState, LicenseState, MapState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectFileState, ProjectState, RehydratedState, SettingState, FormState, FormRevisionState, FormSubmissionState, UserState, WorkspaceState, TeamState } from "./slices";
|
|
7
7
|
import { VersioningState } from "./slices/versioningSlice";
|
|
8
8
|
import { RootState } from "../typings";
|
|
9
9
|
export declare const overmapReducers: {
|
|
@@ -16,6 +16,7 @@ export declare const overmapReducers: {
|
|
|
16
16
|
componentStageReducer: Reducer<ComponentStageState>;
|
|
17
17
|
componentTypeReducer: Reducer<ComponentTypeState>;
|
|
18
18
|
issueReducer: Reducer<IssueState>;
|
|
19
|
+
issueTypeReducer: Reducer<IssueTypeState>;
|
|
19
20
|
mapReducer: Reducer<MapState>;
|
|
20
21
|
organizationReducer: Reducer<OrganizationState>;
|
|
21
22
|
outboxReducer: Reducer<OutboxState>;
|
|
@@ -45,6 +46,7 @@ export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
|
45
46
|
componentStageReducer: ComponentStageState;
|
|
46
47
|
componentTypeReducer: ComponentTypeState;
|
|
47
48
|
issueReducer: IssueState;
|
|
49
|
+
issueTypeReducer: IssueTypeState;
|
|
48
50
|
mapReducer: MapState;
|
|
49
51
|
organizationReducer: OrganizationState;
|
|
50
52
|
outboxReducer: OutboxState;
|
|
@@ -92,6 +94,7 @@ export declare const defaultStore: import("@reduxjs/toolkit/dist/configureStore"
|
|
|
92
94
|
componentStageReducer: ComponentStageState;
|
|
93
95
|
componentTypeReducer: ComponentTypeState;
|
|
94
96
|
issueReducer: IssueState;
|
|
97
|
+
issueTypeReducer: IssueTypeState;
|
|
95
98
|
mapReducer: MapState;
|
|
96
99
|
organizationReducer: OrganizationState;
|
|
97
100
|
outboxReducer: OutboxState;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { OfflineModel } from "./base";
|
|
1
|
+
import { CreatedByModel, OfflineModel } from "./base";
|
|
2
2
|
import { MaybeObjectURL, FileModel, FileWithNameModel } from "../files";
|
|
3
3
|
import { Project } from "./projects";
|
|
4
4
|
import { Document } from "./documents";
|
|
5
|
-
export interface Attachment extends OfflineModel, FileWithNameModel {
|
|
5
|
+
export interface Attachment extends OfflineModel, FileWithNameModel, CreatedByModel {
|
|
6
6
|
description?: string;
|
|
7
7
|
file_type: string;
|
|
8
8
|
submitted_at: string;
|
|
9
|
-
created_by: number;
|
|
10
9
|
}
|
|
11
10
|
export interface IssueAttachment extends Attachment {
|
|
12
11
|
issue: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSColor } from "../colors";
|
|
2
|
+
import { User } from "./users";
|
|
2
3
|
export interface Model {
|
|
3
4
|
}
|
|
4
5
|
export interface OfflineModel extends Model {
|
|
@@ -40,3 +41,6 @@ export interface IconModel {
|
|
|
40
41
|
icon: string;
|
|
41
42
|
icon_color: CSSColor;
|
|
42
43
|
}
|
|
44
|
+
export interface CreatedByModel {
|
|
45
|
+
created_by: User["id"];
|
|
46
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { OfflineModel, Payload } from "./base";
|
|
2
|
-
|
|
3
|
-
export type SubmittedDocument = OfflineModel & {
|
|
1
|
+
import { CreatedByModel, OfflineModel, Payload } from "./base";
|
|
2
|
+
export type SubmittedDocument = OfflineModel & CreatedByModel & {
|
|
4
3
|
title: string | null;
|
|
5
4
|
description: string | null;
|
|
6
5
|
content: string | null;
|
|
7
6
|
parent_document: string | null;
|
|
8
|
-
created_by: User["id"];
|
|
9
7
|
} & ({
|
|
10
8
|
project: number;
|
|
11
9
|
organization: null;
|
|
@@ -16,8 +14,7 @@ export type SubmittedDocument = OfflineModel & {
|
|
|
16
14
|
export type Document = SubmittedDocument & {
|
|
17
15
|
children_documents: string[];
|
|
18
16
|
};
|
|
19
|
-
export type CreatedDocument = Document & {
|
|
20
|
-
created_by: User["id"];
|
|
17
|
+
export type CreatedDocument = Document & CreatedByModel & {
|
|
21
18
|
created_at: string;
|
|
22
19
|
updated_at: string;
|
|
23
20
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
1
|
+
import { CreatedByModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
2
2
|
import { BaseSerializedObject, FieldValue, ISerializedField } from "../../forms";
|
|
3
3
|
import { FileWithNameModel } from '../files';
|
|
4
4
|
import { WorkspaceIndexedModel } from "./workspace";
|
|
5
5
|
export type UserForm = Pick<WorkspaceIndexedModel, "index_workspace"> & {
|
|
6
6
|
favorite: boolean;
|
|
7
7
|
component_type?: string;
|
|
8
|
+
issue_type?: string;
|
|
8
9
|
} & ({
|
|
9
10
|
owner_organization: number;
|
|
10
11
|
owner_user: undefined;
|
|
@@ -32,10 +33,9 @@ export interface UserFormRevision<TFields extends BaseSerializedObject = ISerial
|
|
|
32
33
|
revision: number | "Pending";
|
|
33
34
|
}
|
|
34
35
|
export type UserFormRevisionPayload = Omit<Payload<UserFormRevision>, "created_by" | "revision" | "form" | "submitted_at">;
|
|
35
|
-
export interface UserFormSubmission extends OfflineModel, SubmittedAtModel {
|
|
36
|
+
export interface UserFormSubmission extends OfflineModel, SubmittedAtModel, CreatedByModel {
|
|
36
37
|
form_revision: string;
|
|
37
38
|
values: Record<string, FieldValue>;
|
|
38
|
-
created_by: number;
|
|
39
39
|
issue?: string;
|
|
40
40
|
component?: string;
|
|
41
41
|
component_stage?: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CreatedByModel, IconModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
2
|
+
import { Organization } from "./organizations";
|
|
3
|
+
export interface IssueType extends OfflineModel, SubmittedAtModel, IconModel, CreatedByModel {
|
|
4
|
+
name?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
organization: Organization["id"];
|
|
7
|
+
}
|
|
8
|
+
export type IssueTypePayload = Payload<Omit<IssueType, "created_by" | "submitted_at" | "organization">>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Offline, OfflineModel } from "./base";
|
|
1
|
+
import { CreatedByModel, Offline, OfflineModel } from "./base";
|
|
2
2
|
import { IssuePriority, IssueStatus } from "../../enums";
|
|
3
3
|
import { WorkspaceIndexedModel } from "./workspace";
|
|
4
4
|
import { Marker } from "./geo";
|
|
@@ -37,13 +37,13 @@ export interface Issue extends Pick<WorkspaceIndexedModel, "index_workspace"> {
|
|
|
37
37
|
category?: string | null;
|
|
38
38
|
visible_in_workspaces: string[];
|
|
39
39
|
marker?: Marker | null;
|
|
40
|
+
issue_type?: string | null;
|
|
40
41
|
}
|
|
41
42
|
/**
|
|
42
43
|
* These details need to be provided by the frontend code before submitting to the backend.
|
|
43
44
|
*/
|
|
44
|
-
export interface SubmittedIssue extends OfflineModel {
|
|
45
|
+
export interface SubmittedIssue extends OfflineModel, CreatedByModel {
|
|
45
46
|
submitted_at: string;
|
|
46
|
-
created_by: number;
|
|
47
47
|
status: Exclude<Issue["status"], undefined>;
|
|
48
48
|
priority: Exclude<Issue["priority"], undefined>;
|
|
49
49
|
}
|
|
@@ -100,9 +100,8 @@ export interface IssueUpdateChangeTypes {
|
|
|
100
100
|
} | null;
|
|
101
101
|
due_date: string;
|
|
102
102
|
}
|
|
103
|
-
export interface IssueUpdate extends OfflineModel {
|
|
103
|
+
export interface IssueUpdate extends OfflineModel, CreatedByModel {
|
|
104
104
|
submitted_at: string;
|
|
105
|
-
created_by: User["id"];
|
|
106
105
|
issue: OfflineModel["offline_id"];
|
|
107
106
|
changes: Partial<Record<IssueUpdateChange, IssueUpdateChangeTypes[IssueUpdateChange]>>;
|
|
108
107
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Model } from "./base";
|
|
1
|
+
import { CreatedByModel, Model } from "./base";
|
|
2
2
|
import { OrganizationAccess } from "./access";
|
|
3
3
|
import { EmailDomain } from "./emailDomain";
|
|
4
4
|
import { User } from "./users";
|
|
5
5
|
import { License } from "./license";
|
|
6
|
-
export interface Organization extends Model {
|
|
6
|
+
export interface Organization extends Model, CreatedByModel {
|
|
7
7
|
id: number;
|
|
8
8
|
name: string;
|
|
9
|
-
created_by: number;
|
|
10
9
|
has_access: boolean;
|
|
11
10
|
}
|
|
12
11
|
export interface InitialOrganizationData {
|
package/package.json
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@overmap-ai/core",
|
|
3
|
-
"description": "Core functionality for Overmap",
|
|
4
|
-
"author": "Wôrdn Inc.",
|
|
5
|
-
"license": "UNLICENSED",
|
|
6
|
-
"version": "1.0.
|
|
7
|
-
"type": "module",
|
|
8
|
-
"main": "dist/overmap-core.umd.cjs",
|
|
9
|
-
"module": "dist/overmap-core.js",
|
|
10
|
-
"types": "dist/index.d.ts",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"dev": "vite",
|
|
13
|
-
"build": "tsc --noEmit && vite build",
|
|
14
|
-
"lint": "tsc --noEmit && eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0",
|
|
15
|
-
"lint:fix": "eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0 --fix",
|
|
16
|
-
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,html,sass,yaml}\"",
|
|
17
|
-
"preview": "vite preview",
|
|
18
|
-
"prepare": "husky install",
|
|
19
|
-
"storybook": "storybook dev -p 6006",
|
|
20
|
-
"build-storybook": "storybook build",
|
|
21
|
-
"test": "npx vitest"
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@hello-pangea/dnd": "^16.5.0",
|
|
25
|
-
"@redux-offline/redux-offline": "^2.6.0",
|
|
26
|
-
"@reduxjs/toolkit": "^1.9.5",
|
|
27
|
-
"color": "^4.2.3",
|
|
28
|
-
"dependency-graph": "^1.0.0",
|
|
29
|
-
"eslint-plugin-vitest": "^0.3.20",
|
|
30
|
-
"file-saver": "^2.0.5",
|
|
31
|
-
"formik": "^2.4.5",
|
|
32
|
-
"idb": "^7.1.1",
|
|
33
|
-
"jwt-decode": "^3.1.2",
|
|
34
|
-
"leaflet-draw": "^1.0.4",
|
|
35
|
-
"leaflet.markercluster": "^1.5.3",
|
|
36
|
-
"linkify-react": "^4.1.3",
|
|
37
|
-
"linkifyjs": "^4.1.3",
|
|
38
|
-
"localforage": "^1.10.0",
|
|
39
|
-
"lodash.clonedeep": "^4.5.0",
|
|
40
|
-
"lodash.get": "^4.4.2",
|
|
41
|
-
"lodash.set": "^4.3.2",
|
|
42
|
-
"qr-scanner": "^1.4.2",
|
|
43
|
-
"react-leaflet": "^4.2.1",
|
|
44
|
-
"react-pdf": "^8.0.2",
|
|
45
|
-
"react-sketch-canvas": "^6.2.0",
|
|
46
|
-
"react-spreadsheet": "^0.9.4",
|
|
47
|
-
"redux-persist-migrate": "^5.0.0",
|
|
48
|
-
"superagent": "^8.1.2",
|
|
49
|
-
"uuid": "^9.0.0",
|
|
50
|
-
"xlsx": "^0.18.5"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
54
|
-
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
55
|
-
"@overmap-ai/blocks": "^1.0.29-alpha.1",
|
|
56
|
-
"@rollup/plugin-commonjs": "^25.0.4",
|
|
57
|
-
"@storybook/addon-essentials": "7.3.2",
|
|
58
|
-
"@storybook/addon-interactions": "7.3.2",
|
|
59
|
-
"@storybook/addon-links": "7.3.2",
|
|
60
|
-
"@storybook/addon-onboarding": "1.0.8",
|
|
61
|
-
"@storybook/blocks": "7.3.2",
|
|
62
|
-
"@storybook/react": "7.3.2",
|
|
63
|
-
"@storybook/react-vite": "7.3.2",
|
|
64
|
-
"@storybook/testing-library": "0.2.0",
|
|
65
|
-
"@testing-library/dom": "^9.3.4",
|
|
66
|
-
"@testing-library/react": "^14.1.2",
|
|
67
|
-
"@testing-library/user-event": "^14.5.2",
|
|
68
|
-
"@tiptap/core": "^2.4.0",
|
|
69
|
-
"@types/color": "^3.0.4",
|
|
70
|
-
"@types/file-saver": "^2.0.7",
|
|
71
|
-
"@types/jwt-decode": "^3.1.0",
|
|
72
|
-
"@types/leaflet": "^1.9.3",
|
|
73
|
-
"@types/lodash.clonedeep": "^4.5.9",
|
|
74
|
-
"@types/lodash.get": "^4.4.9",
|
|
75
|
-
"@types/lodash.set": "^4.3.9",
|
|
76
|
-
"@types/node": "^20.12.11",
|
|
77
|
-
"@types/react": "^18.3.1",
|
|
78
|
-
"@types/react-dom": "^18.2.7",
|
|
79
|
-
"@types/react-redux": "^7.1.26",
|
|
80
|
-
"@types/superagent": "^4.1.18",
|
|
81
|
-
"@types/uuid": "^9.0.3",
|
|
82
|
-
"@types/xlsx": "^0.0.36",
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
84
|
-
"@typescript-eslint/parser": "^6.4.1",
|
|
85
|
-
"@vitejs/plugin-react-swc": "^3.3.2",
|
|
86
|
-
"@vitest/coverage-v8": "^1.2.1",
|
|
87
|
-
"eslint": "^8.47.0",
|
|
88
|
-
"eslint-config-prettier": "^9.0.0",
|
|
89
|
-
"eslint-plugin-import": "^2.28.1",
|
|
90
|
-
"eslint-plugin-prettier": "^5.0.0",
|
|
91
|
-
"eslint-plugin-react": "^7.33.2",
|
|
92
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
93
|
-
"eslint-plugin-react-refresh": "^0.4.3",
|
|
94
|
-
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
95
|
-
"eslint-plugin-storybook": "^0.6.13",
|
|
96
|
-
"happy-dom": "^13.3.1",
|
|
97
|
-
"husky": "^8.0.3",
|
|
98
|
-
"jsdom": "^23.2.0",
|
|
99
|
-
"leaflet": "^1.9.0",
|
|
100
|
-
"lint-staged": "^15.1.0",
|
|
101
|
-
"prettier": "^3.0.2",
|
|
102
|
-
"react": "^18.2.0",
|
|
103
|
-
"react-dom": "^18.2.0",
|
|
104
|
-
"react-hooks": "^1.0.1",
|
|
105
|
-
"react-redux": "^8.1.2",
|
|
106
|
-
"redux": "^4.2.1",
|
|
107
|
-
"rollup-plugin-polyfill-node": "^0.12.0",
|
|
108
|
-
"sass": "^1.66.1",
|
|
109
|
-
"storybook": "7.3.2",
|
|
110
|
-
"typescript": "^5.2.2",
|
|
111
|
-
"vite": "^4.4.5",
|
|
112
|
-
"vite-plugin-dts": "^3.5.2",
|
|
113
|
-
"vite-plugin-externalize-deps": "^0.7.0",
|
|
114
|
-
"vitest": "^1.2.1"
|
|
115
|
-
},
|
|
116
|
-
"peerDependencies": {
|
|
117
|
-
"@overmap-ai/blocks": "1.0.8",
|
|
118
|
-
"@tiptap/core": "^2.4.0",
|
|
119
|
-
"leaflet": "^1.9.0",
|
|
120
|
-
"react": "^18.2.0",
|
|
121
|
-
"react-dom": "^18.2.0",
|
|
122
|
-
"react-redux": "^8.1.2"
|
|
123
|
-
},
|
|
124
|
-
"resolutions": {
|
|
125
|
-
"//": "Workaround for eslint issue: https://github.com/eslint/eslint/discussions/17215",
|
|
126
|
-
"strip-ansi": "6.0.1",
|
|
127
|
-
"string-width": "4.2.2",
|
|
128
|
-
"wrap-ansi": "7.0.0"
|
|
129
|
-
},
|
|
130
|
-
"lint-staged": {
|
|
131
|
-
"src/**/*.{js,jsx,ts,tsx}": [
|
|
132
|
-
"yarn lint",
|
|
133
|
-
"yarn format"
|
|
134
|
-
]
|
|
135
|
-
},
|
|
136
|
-
"files": [
|
|
137
|
-
"dist"
|
|
138
|
-
],
|
|
139
|
-
"keywords": [
|
|
140
|
-
"react",
|
|
141
|
-
"geospacial",
|
|
142
|
-
"map",
|
|
143
|
-
"components"
|
|
144
|
-
],
|
|
145
|
-
"homepage": "https://overmap.ai",
|
|
146
|
-
"repository": {
|
|
147
|
-
"type": "git",
|
|
148
|
-
"url": "git+https://github.com/hemora-app/overmap-core.git"
|
|
149
|
-
},
|
|
150
|
-
"bugs": {
|
|
151
|
-
"url": "https://github.com/hemora-app/overmap-core/issues"
|
|
152
|
-
}
|
|
153
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@overmap-ai/core",
|
|
3
|
+
"description": "Core functionality for Overmap",
|
|
4
|
+
"author": "Wôrdn Inc.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"version": "1.0.53-add-agent-slice.1",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/overmap-core.umd.cjs",
|
|
9
|
+
"module": "dist/overmap-core.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "vite",
|
|
13
|
+
"build": "tsc --noEmit && vite build",
|
|
14
|
+
"lint": "tsc --noEmit && eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0",
|
|
15
|
+
"lint:fix": "eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0 --fix",
|
|
16
|
+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,html,sass,yaml}\"",
|
|
17
|
+
"preview": "vite preview",
|
|
18
|
+
"prepare": "husky install",
|
|
19
|
+
"storybook": "storybook dev -p 6006",
|
|
20
|
+
"build-storybook": "storybook build",
|
|
21
|
+
"test": "npx vitest"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@hello-pangea/dnd": "^16.5.0",
|
|
25
|
+
"@redux-offline/redux-offline": "^2.6.0",
|
|
26
|
+
"@reduxjs/toolkit": "^1.9.5",
|
|
27
|
+
"color": "^4.2.3",
|
|
28
|
+
"dependency-graph": "^1.0.0",
|
|
29
|
+
"eslint-plugin-vitest": "^0.3.20",
|
|
30
|
+
"file-saver": "^2.0.5",
|
|
31
|
+
"formik": "^2.4.5",
|
|
32
|
+
"idb": "^7.1.1",
|
|
33
|
+
"jwt-decode": "^3.1.2",
|
|
34
|
+
"leaflet-draw": "^1.0.4",
|
|
35
|
+
"leaflet.markercluster": "^1.5.3",
|
|
36
|
+
"linkify-react": "^4.1.3",
|
|
37
|
+
"linkifyjs": "^4.1.3",
|
|
38
|
+
"localforage": "^1.10.0",
|
|
39
|
+
"lodash.clonedeep": "^4.5.0",
|
|
40
|
+
"lodash.get": "^4.4.2",
|
|
41
|
+
"lodash.set": "^4.3.2",
|
|
42
|
+
"qr-scanner": "^1.4.2",
|
|
43
|
+
"react-leaflet": "^4.2.1",
|
|
44
|
+
"react-pdf": "^8.0.2",
|
|
45
|
+
"react-sketch-canvas": "^6.2.0",
|
|
46
|
+
"react-spreadsheet": "^0.9.4",
|
|
47
|
+
"redux-persist-migrate": "^5.0.0",
|
|
48
|
+
"superagent": "^8.1.2",
|
|
49
|
+
"uuid": "^9.0.0",
|
|
50
|
+
"xlsx": "^0.18.5"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
54
|
+
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
55
|
+
"@overmap-ai/blocks": "^1.0.29-alpha.1",
|
|
56
|
+
"@rollup/plugin-commonjs": "^25.0.4",
|
|
57
|
+
"@storybook/addon-essentials": "7.3.2",
|
|
58
|
+
"@storybook/addon-interactions": "7.3.2",
|
|
59
|
+
"@storybook/addon-links": "7.3.2",
|
|
60
|
+
"@storybook/addon-onboarding": "1.0.8",
|
|
61
|
+
"@storybook/blocks": "7.3.2",
|
|
62
|
+
"@storybook/react": "7.3.2",
|
|
63
|
+
"@storybook/react-vite": "7.3.2",
|
|
64
|
+
"@storybook/testing-library": "0.2.0",
|
|
65
|
+
"@testing-library/dom": "^9.3.4",
|
|
66
|
+
"@testing-library/react": "^14.1.2",
|
|
67
|
+
"@testing-library/user-event": "^14.5.2",
|
|
68
|
+
"@tiptap/core": "^2.4.0",
|
|
69
|
+
"@types/color": "^3.0.4",
|
|
70
|
+
"@types/file-saver": "^2.0.7",
|
|
71
|
+
"@types/jwt-decode": "^3.1.0",
|
|
72
|
+
"@types/leaflet": "^1.9.3",
|
|
73
|
+
"@types/lodash.clonedeep": "^4.5.9",
|
|
74
|
+
"@types/lodash.get": "^4.4.9",
|
|
75
|
+
"@types/lodash.set": "^4.3.9",
|
|
76
|
+
"@types/node": "^20.12.11",
|
|
77
|
+
"@types/react": "^18.3.1",
|
|
78
|
+
"@types/react-dom": "^18.2.7",
|
|
79
|
+
"@types/react-redux": "^7.1.26",
|
|
80
|
+
"@types/superagent": "^4.1.18",
|
|
81
|
+
"@types/uuid": "^9.0.3",
|
|
82
|
+
"@types/xlsx": "^0.0.36",
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
84
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
85
|
+
"@vitejs/plugin-react-swc": "^3.3.2",
|
|
86
|
+
"@vitest/coverage-v8": "^1.2.1",
|
|
87
|
+
"eslint": "^8.47.0",
|
|
88
|
+
"eslint-config-prettier": "^9.0.0",
|
|
89
|
+
"eslint-plugin-import": "^2.28.1",
|
|
90
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
91
|
+
"eslint-plugin-react": "^7.33.2",
|
|
92
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
93
|
+
"eslint-plugin-react-refresh": "^0.4.3",
|
|
94
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
95
|
+
"eslint-plugin-storybook": "^0.6.13",
|
|
96
|
+
"happy-dom": "^13.3.1",
|
|
97
|
+
"husky": "^8.0.3",
|
|
98
|
+
"jsdom": "^23.2.0",
|
|
99
|
+
"leaflet": "^1.9.0",
|
|
100
|
+
"lint-staged": "^15.1.0",
|
|
101
|
+
"prettier": "^3.0.2",
|
|
102
|
+
"react": "^18.2.0",
|
|
103
|
+
"react-dom": "^18.2.0",
|
|
104
|
+
"react-hooks": "^1.0.1",
|
|
105
|
+
"react-redux": "^8.1.2",
|
|
106
|
+
"redux": "^4.2.1",
|
|
107
|
+
"rollup-plugin-polyfill-node": "^0.12.0",
|
|
108
|
+
"sass": "^1.66.1",
|
|
109
|
+
"storybook": "7.3.2",
|
|
110
|
+
"typescript": "^5.2.2",
|
|
111
|
+
"vite": "^4.4.5",
|
|
112
|
+
"vite-plugin-dts": "^3.5.2",
|
|
113
|
+
"vite-plugin-externalize-deps": "^0.7.0",
|
|
114
|
+
"vitest": "^1.2.1"
|
|
115
|
+
},
|
|
116
|
+
"peerDependencies": {
|
|
117
|
+
"@overmap-ai/blocks": "1.0.8",
|
|
118
|
+
"@tiptap/core": "^2.4.0",
|
|
119
|
+
"leaflet": "^1.9.0",
|
|
120
|
+
"react": "^18.2.0",
|
|
121
|
+
"react-dom": "^18.2.0",
|
|
122
|
+
"react-redux": "^8.1.2"
|
|
123
|
+
},
|
|
124
|
+
"resolutions": {
|
|
125
|
+
"//": "Workaround for eslint issue: https://github.com/eslint/eslint/discussions/17215",
|
|
126
|
+
"strip-ansi": "6.0.1",
|
|
127
|
+
"string-width": "4.2.2",
|
|
128
|
+
"wrap-ansi": "7.0.0"
|
|
129
|
+
},
|
|
130
|
+
"lint-staged": {
|
|
131
|
+
"src/**/*.{js,jsx,ts,tsx}": [
|
|
132
|
+
"yarn lint",
|
|
133
|
+
"yarn format"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"files": [
|
|
137
|
+
"dist"
|
|
138
|
+
],
|
|
139
|
+
"keywords": [
|
|
140
|
+
"react",
|
|
141
|
+
"geospacial",
|
|
142
|
+
"map",
|
|
143
|
+
"components"
|
|
144
|
+
],
|
|
145
|
+
"homepage": "https://overmap.ai",
|
|
146
|
+
"repository": {
|
|
147
|
+
"type": "git",
|
|
148
|
+
"url": "git+https://github.com/hemora-app/overmap-core.git"
|
|
149
|
+
},
|
|
150
|
+
"bugs": {
|
|
151
|
+
"url": "https://github.com/hemora-app/overmap-core/issues"
|
|
152
|
+
}
|
|
153
|
+
}
|