@overmap-ai/core 1.0.78-identifiers.2 → 1.0.78-identifiers.4
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 +47 -39
- package/dist/overmap-core.umd.cjs +3 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +2 -2
- package/dist/store/slices/organizationAccessSlice.d.ts +20 -20
- package/dist/store/slices/projectAccessSlice.d.ts +1 -1
- package/dist/store/slices/projectAttachmentSlice.d.ts +1 -1
- package/dist/store/slices/projectFileSlice.d.ts +1 -1
- package/dist/typings/models/attachments.d.ts +2 -2
- package/dist/typings/models/base.d.ts +0 -3
- package/dist/typings/models/forms.d.ts +1 -1
- package/dist/typings/models/geoImages.d.ts +2 -2
- package/dist/typings/models/issues.d.ts +4 -5
- package/dist/typings/models/organizations.d.ts +3 -3
- package/dist/typings/models/projects.d.ts +5 -4
- package/dist/typings/models/teams.d.ts +3 -3
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { Organization, Project, ProjectAttachment, Stored } from '../../typings'
|
|
|
3
3
|
import { BaseSDK } from '../base';
|
|
4
4
|
import { OptimisticMultipleModelResult } from '../typings';
|
|
5
5
|
import { BaseAttachmentService, BuildAttachmentPayloadData, BuildOfflineAttachmentData } from './BaseAttachmentService';
|
|
6
|
-
export declare abstract class ProjectAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK,
|
|
6
|
+
export declare abstract class ProjectAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseAttachmentService<TState, TSDK, ProjectAttachment> {
|
|
7
7
|
name: string;
|
|
8
8
|
url: string;
|
|
9
9
|
addAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/addProjectAttachments">;
|
|
@@ -11,7 +11,7 @@ export declare abstract class ProjectAttachmentService<TState extends OvermapRoo
|
|
|
11
11
|
removeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "projectAttachments/deleteProjectAttachments">;
|
|
12
12
|
removeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "projectAttachments/deleteProjectAttachment">;
|
|
13
13
|
setAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>, "projectAttachments/setProjectAttachment">;
|
|
14
|
-
selectAttachment: import('../..').OvermapSelectorWithArgs<string, ProjectAttachment | undefined>;
|
|
14
|
+
selectAttachment: import('../..').OvermapSelectorWithArgs<string, Stored<ProjectAttachment> | undefined>;
|
|
15
15
|
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
16
16
|
file: string;
|
|
17
17
|
file_sha1: string;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { Organization, OrganizationAccess,
|
|
1
|
+
import { Organization, OrganizationAccess, User } from '../../typings';
|
|
2
2
|
import { ModelState } from '../adapters';
|
|
3
3
|
import { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs } from '../typings';
|
|
4
|
-
export type OrganizationAccessState = ModelState<OrganizationAccess["uuid"],
|
|
4
|
+
export type OrganizationAccessState = ModelState<OrganizationAccess["uuid"], OrganizationAccess>;
|
|
5
5
|
export declare const organizationAccessSlice: import('@reduxjs/toolkit').Slice<OrganizationAccessState, {
|
|
6
|
-
initializeOrganizationAccesses: (state: ModelState<string,
|
|
7
|
-
payload:
|
|
6
|
+
initializeOrganizationAccesses: (state: ModelState<string, OrganizationAccess>, action: {
|
|
7
|
+
payload: OrganizationAccess[];
|
|
8
8
|
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
addOrganizationAccess: (state: ModelState<string,
|
|
11
|
-
payload:
|
|
10
|
+
addOrganizationAccess: (state: ModelState<string, OrganizationAccess>, action: {
|
|
11
|
+
payload: OrganizationAccess;
|
|
12
12
|
type: string;
|
|
13
13
|
}) => void;
|
|
14
|
-
addOrganizationAccesses: (state: ModelState<string,
|
|
15
|
-
payload:
|
|
14
|
+
addOrganizationAccesses: (state: ModelState<string, OrganizationAccess>, action: {
|
|
15
|
+
payload: OrganizationAccess[];
|
|
16
16
|
type: string;
|
|
17
17
|
}) => void;
|
|
18
|
-
setOrganizationAccess: (state: ModelState<string,
|
|
19
|
-
payload:
|
|
18
|
+
setOrganizationAccess: (state: ModelState<string, OrganizationAccess>, action: {
|
|
19
|
+
payload: OrganizationAccess;
|
|
20
20
|
type: string;
|
|
21
21
|
}) => void;
|
|
22
|
-
setOrganizationAccesses: (state: ModelState<string,
|
|
23
|
-
payload:
|
|
22
|
+
setOrganizationAccesses: (state: ModelState<string, OrganizationAccess>, action: {
|
|
23
|
+
payload: OrganizationAccess[];
|
|
24
24
|
type: string;
|
|
25
25
|
}) => void;
|
|
26
|
-
updateOrganizationAccess: (state: ModelState<string,
|
|
27
|
-
payload:
|
|
26
|
+
updateOrganizationAccess: (state: ModelState<string, OrganizationAccess>, action: {
|
|
27
|
+
payload: OrganizationAccess;
|
|
28
28
|
type: string;
|
|
29
29
|
}) => void;
|
|
30
|
-
updateOrganizationAccesses: (state: ModelState<string,
|
|
31
|
-
payload:
|
|
30
|
+
updateOrganizationAccesses: (state: ModelState<string, OrganizationAccess>, action: {
|
|
31
|
+
payload: OrganizationAccess[];
|
|
32
32
|
type: string;
|
|
33
33
|
}) => void;
|
|
34
|
-
deleteOrganizationAccess: (state: ModelState<string,
|
|
34
|
+
deleteOrganizationAccess: (state: ModelState<string, OrganizationAccess>, action: {
|
|
35
35
|
payload: string;
|
|
36
36
|
type: string;
|
|
37
37
|
}) => void;
|
|
38
|
-
deleteOrganizationAccesses: (state: ModelState<string,
|
|
38
|
+
deleteOrganizationAccesses: (state: ModelState<string, OrganizationAccess>, action: {
|
|
39
39
|
payload: string[];
|
|
40
40
|
type: string;
|
|
41
41
|
}) => void;
|
|
42
42
|
}, "organizationAccess", "organizationAccess", import('@reduxjs/toolkit').SliceSelectors<OrganizationAccessState>>;
|
|
43
|
-
export declare const initializeOrganizationAccesses: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
43
|
+
export declare const initializeOrganizationAccesses: import('@reduxjs/toolkit').ActionCreatorWithPayload<OrganizationAccess[], "organizationAccess/initializeOrganizationAccesses">, addOrganizationAccess: import('@reduxjs/toolkit').ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/addOrganizationAccess">, addOrganizationAccesses: import('@reduxjs/toolkit').ActionCreatorWithPayload<OrganizationAccess[], "organizationAccess/addOrganizationAccesses">, setOrganizationAccess: import('@reduxjs/toolkit').ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/setOrganizationAccess">, setOrganizationAccesses: import('@reduxjs/toolkit').ActionCreatorWithPayload<OrganizationAccess[], "organizationAccess/setOrganizationAccesses">, updateOrganizationAccess: import('@reduxjs/toolkit').ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/updateOrganizationAccess">, updateOrganizationAccesses: import('@reduxjs/toolkit').ActionCreatorWithPayload<OrganizationAccess[], "organizationAccess/updateOrganizationAccesses">, deleteOrganizationAccess: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "organizationAccess/deleteOrganizationAccess">, deleteOrganizationAccesses: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "organizationAccess/deleteOrganizationAccesses">;
|
|
44
44
|
export declare const organizationAccessReducer: import('redux').Reducer<OrganizationAccessState>;
|
|
45
|
-
export declare const selectOrganizationAccessMapping: (state: OvermapRootState) => Record<string,
|
|
45
|
+
export declare const selectOrganizationAccessMapping: (state: OvermapRootState) => Record<string, OrganizationAccess>;
|
|
46
46
|
export declare const selectOrganizationAccessById: OvermapSelectorWithArgs<OrganizationAccess["uuid"], OrganizationAccess | undefined>;
|
|
47
47
|
export declare const selectActiveOrganizationAccess: OvermapSelector<OrganizationAccess | null>;
|
|
48
48
|
export declare const selectOrganizationAccessUserMapping: OvermapSelector<Record<User["id"], OrganizationAccess>>;
|
|
@@ -45,6 +45,6 @@ export declare const projectAccessReducer: import('redux').Reducer<ProjectAccess
|
|
|
45
45
|
export declare const selectProjectAccessMapping: (state: OvermapRootState) => Record<string, Stored<ProjectAccess>>;
|
|
46
46
|
export declare const selectProjectAccesses: OvermapSelector<Stored<ProjectAccess>[]>;
|
|
47
47
|
export declare const selectProjectAccessById: OvermapSelectorWithArgs<ProjectAccess["uuid"], Stored<ProjectAccess> | undefined>;
|
|
48
|
-
export declare const selectProjectAccessesOfProject: OvermapSelectorWithArgs<ProjectAccess["uuid"], ProjectAccess[]>;
|
|
48
|
+
export declare const selectProjectAccessesOfProject: OvermapSelectorWithArgs<ProjectAccess["uuid"], Stored<ProjectAccess>[]>;
|
|
49
49
|
export declare const selectAccessesByUserOfProject: OvermapSelectorWithArgs<Project["uuid"], Record<User["id"], Stored<ProjectAccess>>>;
|
|
50
50
|
export declare const selectUsersOfProject: OvermapSelectorWithArgs<Project["uuid"], User[]>;
|
|
@@ -43,6 +43,6 @@ export declare const projectAttachmentSlice: import('@reduxjs/toolkit').Slice<Pr
|
|
|
43
43
|
export declare const initializeProjectAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/initializeProjectAttachments">, addProjectAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>, "projectAttachments/addProjectAttachment">, addProjectAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/addProjectAttachments">, setProjectAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>, "projectAttachments/setProjectAttachment">, setProjectAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/setProjectAttachments">, updateProjectAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>, "projectAttachments/updateProjectAttachment">, updateProjectAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projectAttachments/updateProjectAttachments">, deleteProjectAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "projectAttachments/deleteProjectAttachment">, deleteProjectAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "projectAttachments/deleteProjectAttachments">;
|
|
44
44
|
export declare const selectProjectAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<ProjectAttachment>>;
|
|
45
45
|
export declare const selectAllProjectAttachments: OvermapSelector<Stored<ProjectAttachment>[]>;
|
|
46
|
-
export declare const selectProjectAttachmentById: OvermapSelectorWithArgs<ProjectAttachment["uuid"], ProjectAttachment | undefined>;
|
|
46
|
+
export declare const selectProjectAttachmentById: OvermapSelectorWithArgs<ProjectAttachment["uuid"], Stored<ProjectAttachment> | undefined>;
|
|
47
47
|
export declare const selectAttachmentsOfProject: (args: string) => (state: OvermapRootState) => Stored<ProjectAttachment>[];
|
|
48
48
|
export declare const projectAttachmentReducer: import('redux').Reducer<ProjectAttachmentState>;
|
|
@@ -145,7 +145,7 @@ export declare const selectProjectFiles: ((state: {
|
|
|
145
145
|
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
146
146
|
memoize: typeof import('reselect').weakMapMemoize;
|
|
147
147
|
};
|
|
148
|
-
export declare const selectProjectFileById: OvermapSelectorWithArgs<ProjectFile["uuid"], ProjectFile | undefined>;
|
|
148
|
+
export declare const selectProjectFileById: OvermapSelectorWithArgs<ProjectFile["uuid"], Stored<ProjectFile> | undefined>;
|
|
149
149
|
export declare const selectActiveProjectFileId: OvermapSelector<ProjectFile["uuid"] | null>;
|
|
150
150
|
export declare const selectIsImportingProjectFile: OvermapSelector<boolean>;
|
|
151
151
|
export declare const projectFileReducer: import('redux').Reducer<ProjectFileState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileModel, FileWithNameModel } from '../files';
|
|
2
|
-
import { CreatedByModel, SubmittedAtModel, UUIDModel } from './base';
|
|
3
|
-
export interface Attachment extends UUIDModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
|
|
2
|
+
import { CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
|
+
export interface Attachment extends UUIDModel, TimestampedModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
|
|
4
4
|
description?: string;
|
|
5
5
|
file_type: string;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreatedByModel, IdentifierModel, IdentifierValueModel, IndexedModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
2
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
3
|
-
export interface Form extends UUIDModel, SubmittedAtModel, CreatedByModel {
|
|
3
|
+
export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
4
4
|
organization: string;
|
|
5
5
|
}
|
|
6
6
|
export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileWithNameModel } from '../files';
|
|
2
|
-
import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, Payload, SubmittedAtModel, UUIDModel } from './base';
|
|
2
|
+
import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { Project } from './projects';
|
|
4
|
-
export interface GeoImage extends UUIDModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel, IndexedModel {
|
|
4
|
+
export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel, IndexedModel {
|
|
5
5
|
title?: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
project: Project["uuid"];
|
|
@@ -4,7 +4,7 @@ import { CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierM
|
|
|
4
4
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
5
5
|
import { Organization } from './organizations';
|
|
6
6
|
import { User } from './users';
|
|
7
|
-
export interface Issue extends UUIDModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
|
|
7
|
+
export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
|
|
8
8
|
title?: string | null;
|
|
9
9
|
description?: string | null;
|
|
10
10
|
priority: IssuePriority;
|
|
@@ -36,12 +36,11 @@ export interface IssueUpdateChangeTypes {
|
|
|
36
36
|
} | null;
|
|
37
37
|
due_date: string;
|
|
38
38
|
}
|
|
39
|
-
export interface IssueUpdate extends UUIDModel, CreatedByModel {
|
|
40
|
-
submitted_at: string;
|
|
39
|
+
export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel, TimestampedModel {
|
|
41
40
|
issue: UUIDModel["uuid"];
|
|
42
41
|
changes: Partial<Record<IssueUpdateChange, IssueUpdateChangeTypes[IssueUpdateChange]>>;
|
|
43
42
|
}
|
|
44
|
-
export interface IssueAssociation extends UUIDModel, SubmittedAtModel, CreatedByModel {
|
|
43
|
+
export interface IssueAssociation extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
45
44
|
associated_issue: string;
|
|
46
45
|
issue?: string;
|
|
47
46
|
asset?: string;
|
|
@@ -59,7 +58,7 @@ export interface IssueTypeFieldValues extends UUIDModel, SubmittedAtModel, Times
|
|
|
59
58
|
export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
60
59
|
field_values: string;
|
|
61
60
|
}
|
|
62
|
-
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
|
|
61
|
+
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel {
|
|
63
62
|
name?: string;
|
|
64
63
|
description?: string;
|
|
65
64
|
organization: Organization["uuid"];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OrganizationAccessLevel } from '../../enums';
|
|
2
|
-
import { UUIDModel } from './base';
|
|
2
|
+
import { TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { User } from './users';
|
|
4
|
-
export interface Organization extends UUIDModel {
|
|
4
|
+
export interface Organization extends UUIDModel, TimestampedModel {
|
|
5
5
|
name: string;
|
|
6
6
|
}
|
|
7
|
-
export interface OrganizationAccess extends UUIDModel {
|
|
7
|
+
export interface OrganizationAccess extends UUIDModel, TimestampedModel {
|
|
8
8
|
user: User["id"];
|
|
9
9
|
organization: string;
|
|
10
10
|
access_level: OrganizationAccessLevel;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { FileWithNameModel } from '../files';
|
|
2
|
-
import { BoundableModel, CanvasBoundableModel,
|
|
2
|
+
import { BoundableModel, CanvasBoundableModel, CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { OrganizationAccess } from './organizations';
|
|
4
4
|
import { User } from './users';
|
|
5
|
-
export interface Project extends UUIDModel, BoundableModel, CanvasBoundableModel,
|
|
5
|
+
export interface Project extends UUIDModel, TimestampedModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
|
|
6
6
|
name: string;
|
|
7
|
+
organization: string;
|
|
7
8
|
}
|
|
8
|
-
export interface ProjectFile extends UUIDModel, SubmittedAtModel, FileWithNameModel, BoundableModel, CanvasBoundableModel {
|
|
9
|
+
export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, FileWithNameModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
|
|
9
10
|
z_index: number;
|
|
10
11
|
project: Project["uuid"];
|
|
11
12
|
}
|
|
12
|
-
export interface ProjectAccess extends UUIDModel {
|
|
13
|
+
export interface ProjectAccess extends UUIDModel, CreatedByModel, TimestampedModel {
|
|
13
14
|
user: User["id"];
|
|
14
15
|
project: Project["uuid"];
|
|
15
16
|
organization_access: OrganizationAccess["uuid"];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ColorModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
2
2
|
import { Organization } from './organizations';
|
|
3
3
|
import { User } from './users';
|
|
4
|
-
export interface Team extends UUIDModel, SubmittedAtModel, IconModel, ColorModel {
|
|
4
|
+
export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
|
|
5
5
|
name: string;
|
|
6
6
|
parent: Team["uuid"] | null;
|
|
7
7
|
organization: Organization["uuid"];
|
|
8
8
|
}
|
|
9
|
-
export interface TeamMembership extends UUIDModel, TimestampedModel {
|
|
9
|
+
export interface TeamMembership extends UUIDModel, TimestampedModel, CreatedByModel {
|
|
10
10
|
team: Team["uuid"];
|
|
11
11
|
user: User["id"];
|
|
12
12
|
}
|
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.78-identifiers.
|
|
6
|
+
"version": "1.0.78-identifiers.4",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|