@overmap-ai/core 1.0.78-gcs.4 → 1.0.78-gcs.5
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 +4278 -4218
- package/dist/overmap-core.umd.cjs +6 -6
- package/dist/store/slices/formSubmissionSlice.d.ts +9 -1
- package/dist/store/slices/issueAssociationSlice.d.ts +0 -2
- package/dist/typings/models/forms.d.ts +7 -0
- package/dist/typings/models/issues.d.ts +7 -7
- package/dist/utils/models/base.d.ts +2 -0
- package/dist/utils/models/index.d.ts +1 -0
- package/package.json +3 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Form, FormSubmission, Stored } from '../../typings';
|
|
1
|
+
import { Asset, Form, FormSubmission, Issue, Organization, Project, Stored } from '../../typings';
|
|
2
2
|
import { OvermapSelector, OvermapSelectorWithArgs } from '../typings';
|
|
3
3
|
import { ModelState } from '../adapters';
|
|
4
4
|
export type FormSubmissionState = ModelState<FormSubmission["uuid"], Stored<FormSubmission>>;
|
|
@@ -19,4 +19,12 @@ export declare const selectFormSubmissions: OvermapSelector<Stored<FormSubmissio
|
|
|
19
19
|
export declare const selectFormSubmissionById: OvermapSelectorWithArgs<FormSubmission["uuid"], Stored<FormSubmission> | undefined>;
|
|
20
20
|
export declare const selectFormSubmissionsByIds: (uuids: string[]) => (state: any) => Stored<FormSubmission>[];
|
|
21
21
|
export declare const selectFormSubmissionsOfForm: OvermapSelectorWithArgs<Form["uuid"], Stored<FormSubmission>[]>;
|
|
22
|
+
export declare const selectFormSubmissionsOfOrganization: OvermapSelectorWithArgs<Organization["uuid"], Stored<FormSubmission>[]>;
|
|
23
|
+
export declare const selectFormSubmissionsOfProject: OvermapSelectorWithArgs<Project["uuid"], Stored<FormSubmission>[]>;
|
|
24
|
+
export declare const selectFormSubmissionsOfProjectAndForm: (_projectId: string, formId: string) => (state: any) => Stored<FormSubmission>[];
|
|
25
|
+
export declare const selectFormSubmissionsOfOrganizationAndForm: (_organizationId: string, formId: string) => (state: any) => Stored<FormSubmission>[];
|
|
26
|
+
export declare const selectFormSubmissionsOfIssue: OvermapSelectorWithArgs<Issue["uuid"], Stored<FormSubmission>[]>;
|
|
27
|
+
export declare const selectFormSubmissionsOfIssues: OvermapSelectorWithArgs<Issue["uuid"][], Stored<FormSubmission>[]>;
|
|
28
|
+
export declare const selectFormSubmissionsOfAsset: OvermapSelectorWithArgs<Asset["uuid"], Stored<FormSubmission>[]>;
|
|
29
|
+
export declare const selectFormSubmissionsOfAssets: OvermapSelectorWithArgs<Asset["uuid"][], Stored<FormSubmission>[]>;
|
|
22
30
|
export declare const formSubmissionReducer: import('redux').Reducer<FormSubmissionState>;
|
|
@@ -106,8 +106,6 @@ export declare const selectIssueAssociations: ((state: {
|
|
|
106
106
|
};
|
|
107
107
|
export declare const selectIssueAssociationById: OvermapSelectorWithArgs<IssueAssociation["uuid"], Stored<IssueAssociation> | undefined>;
|
|
108
108
|
export declare const selectIssueAssociationsByIds: (uuids: string[]) => (state: any) => Stored<IssueAssociation>[];
|
|
109
|
-
export declare const selectIssueAssociationsToIssue: OvermapSelectorWithArgs<Issue["uuid"], Stored<IssueAssociation>[]>;
|
|
110
|
-
export declare const selectIssueAssociationsToIssues: OvermapSelectorWithArgs<Issue["uuid"][], Stored<IssueAssociation>[]>;
|
|
111
109
|
export declare const selectIssueAssociationsOfIssues: OvermapSelectorWithArgs<Issue["uuid"][], Stored<IssueAssociation>[]>;
|
|
112
110
|
export declare const selectIssueAssociationsOfIssue: OvermapSelectorWithArgs<Issue["uuid"], Stored<IssueAssociation>[]>;
|
|
113
111
|
export declare const selectIssueAssociationsOfAsset: OvermapSelectorWithArgs<Asset["uuid"], Stored<IssueAssociation>[]>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { Asset } from './assets';
|
|
1
2
|
import { CreatedByModel, IdentifierModel, IdentifierValueModel, IndexedModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
4
|
+
import { Issue } from './issues';
|
|
3
5
|
import { Organization } from './organizations';
|
|
6
|
+
import { Project } from './projects';
|
|
4
7
|
export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
5
8
|
organization: Organization["uuid"];
|
|
6
9
|
name: string;
|
|
@@ -13,6 +16,10 @@ export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
|
13
16
|
export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
|
|
14
17
|
form_revision: FormRevision["uuid"];
|
|
15
18
|
form: Form["uuid"];
|
|
19
|
+
organization: Organization["uuid"] | null;
|
|
20
|
+
project: Project["uuid"] | null;
|
|
21
|
+
asset: Asset["uuid"] | null;
|
|
22
|
+
issue: Issue["uuid"] | null;
|
|
16
23
|
}
|
|
17
24
|
export interface FormSubmissionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
|
|
18
25
|
form_submission: FormSubmission["uuid"];
|
|
@@ -16,10 +16,9 @@ export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, Cr
|
|
|
16
16
|
issue_type: IssueType["uuid"];
|
|
17
17
|
project: Project["uuid"];
|
|
18
18
|
}
|
|
19
|
-
export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel {
|
|
19
|
+
export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
20
20
|
issue: Issue["uuid"];
|
|
21
21
|
content: string;
|
|
22
|
-
author: User["uuid"];
|
|
23
22
|
}
|
|
24
23
|
export interface IssueUpdateChangeTypes {
|
|
25
24
|
[IssueUpdateChange.STATUS]: {
|
|
@@ -34,16 +33,17 @@ export interface IssueUpdateChangeTypes {
|
|
|
34
33
|
email: User["email"];
|
|
35
34
|
uuid: User["uuid"];
|
|
36
35
|
} | null;
|
|
37
|
-
[IssueUpdateChange.DUE_DATE]: string;
|
|
36
|
+
[IssueUpdateChange.DUE_DATE]: string | null;
|
|
38
37
|
}
|
|
39
38
|
export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel, TimestampedModel {
|
|
40
39
|
issue: Issue["uuid"];
|
|
41
|
-
changes: Partial<
|
|
40
|
+
changes: Partial<{
|
|
41
|
+
[K in IssueUpdateChange]: IssueUpdateChangeTypes[K];
|
|
42
|
+
}>;
|
|
42
43
|
}
|
|
43
44
|
export interface IssueAssociation extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
asset: Asset["uuid"] | null;
|
|
45
|
+
issue: Issue["uuid"];
|
|
46
|
+
asset: Asset["uuid"];
|
|
47
47
|
}
|
|
48
48
|
export interface IssueTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
49
49
|
issue_type: IssueType["uuid"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overmap-ai/core",
|
|
3
|
-
"version": "1.0.78-gcs.
|
|
3
|
+
"version": "1.0.78-gcs.5",
|
|
4
4
|
"description": "Core functionality for Overmap",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"idb": "^7.1.1",
|
|
46
46
|
"jwt-decode": "^3.1.2",
|
|
47
47
|
"localforage": "^1.10.0",
|
|
48
|
-
"react-redux": "^8.0.0 || ^9.0.0",
|
|
49
48
|
"redux": "^5.0.1",
|
|
50
49
|
"redux-persist": "^4.0.0",
|
|
51
50
|
"redux-persist-migrate": "^5.0.0",
|
|
@@ -54,7 +53,7 @@
|
|
|
54
53
|
"uuid": "^11.1.0"
|
|
55
54
|
},
|
|
56
55
|
"devDependencies": {
|
|
57
|
-
"@overmap-ai/forms": "
|
|
56
|
+
"@overmap-ai/forms": "1.0.35-gcs.3",
|
|
58
57
|
"@tiptap/core": "3.10.4",
|
|
59
58
|
"@types/file-saver": "^2.0.7",
|
|
60
59
|
"@types/geojson": "^7946.0.16",
|
|
@@ -65,11 +64,9 @@
|
|
|
65
64
|
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
66
65
|
"globals": "^16.3.0",
|
|
67
66
|
"happy-dom": "^15.10.2",
|
|
68
|
-
"jsdom": "^23.2.0",
|
|
69
67
|
"oxfmt": "^0.23.0",
|
|
70
68
|
"oxlint": "^1.38.0",
|
|
71
69
|
"oxlint-tsgolint": "^0.11.0",
|
|
72
|
-
"prettier": "^3.6.2",
|
|
73
70
|
"react": "^19.1.0",
|
|
74
71
|
"rollup": "^4.45.3",
|
|
75
72
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
@@ -80,7 +77,7 @@
|
|
|
80
77
|
"vitest": "3.2.4"
|
|
81
78
|
},
|
|
82
79
|
"peerDependencies": {
|
|
83
|
-
"@overmap-ai/forms": "
|
|
80
|
+
"@overmap-ai/forms": "1.0.35-gcs.3",
|
|
84
81
|
"@tiptap/core": "3.10.4",
|
|
85
82
|
"react": ">=18.2.0 <20.0.0",
|
|
86
83
|
"react-dom": ">=18.2.0 <20.0.0"
|