@overmap-ai/core 1.0.78-status-models.2 → 1.0.78-status-models.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 +321 -322
- package/dist/overmap-core.umd.cjs +9 -9
- package/dist/sdk/services/AssetAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/BaseAttachmentService.d.ts +1 -1
- package/dist/sdk/services/DocumentAttachmentService.d.ts +1 -1
- package/dist/sdk/services/GeoImageService.d.ts +1 -1
- package/dist/sdk/services/IssueAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/ProjectAttachmentService.d.ts +1 -1
- package/dist/typings/models/assets.d.ts +6 -5
- package/dist/typings/models/base.d.ts +1 -1
- package/dist/typings/models/categories.d.ts +1 -1
- package/dist/typings/models/documents.d.ts +2 -5
- package/dist/typings/models/fields.d.ts +1 -1
- package/dist/typings/models/forms.d.ts +1 -1
- package/dist/typings/models/geoImages.d.ts +4 -4
- package/dist/typings/models/issues.d.ts +9 -9
- package/dist/typings/models/projects.d.ts +1 -1
- package/dist/typings/models/teams.d.ts +2 -3
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ export declare abstract class AssetAttachmentService<TState extends OvermapRootS
|
|
|
16
16
|
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
17
17
|
file: string;
|
|
18
18
|
file_sha1: string;
|
|
19
|
-
created_by: number |
|
|
19
|
+
created_by: number | null;
|
|
20
20
|
file_name: string;
|
|
21
21
|
file_type: string;
|
|
22
22
|
submitted_at: string;
|
|
@@ -15,7 +15,7 @@ export declare abstract class AssetProcedureTypeAttachmentService<TState extends
|
|
|
15
15
|
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
16
16
|
file: string;
|
|
17
17
|
file_sha1: string;
|
|
18
|
-
created_by: number |
|
|
18
|
+
created_by: number | null;
|
|
19
19
|
file_name: string;
|
|
20
20
|
file_type: string;
|
|
21
21
|
submitted_at: string;
|
|
@@ -15,7 +15,7 @@ export declare abstract class AssetTypeAttachmentService<TState extends OvermapR
|
|
|
15
15
|
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
16
16
|
file: string;
|
|
17
17
|
file_sha1: string;
|
|
18
|
-
created_by: number |
|
|
18
|
+
created_by: number | null;
|
|
19
19
|
file_name: string;
|
|
20
20
|
file_type: string;
|
|
21
21
|
submitted_at: string;
|
|
@@ -15,7 +15,7 @@ export declare abstract class DocumentAttachmentService<TState extends OvermapRo
|
|
|
15
15
|
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
16
16
|
file: string;
|
|
17
17
|
file_sha1: string;
|
|
18
|
-
created_by: number |
|
|
18
|
+
created_by: number | null;
|
|
19
19
|
file_name: string;
|
|
20
20
|
file_type: string;
|
|
21
21
|
submitted_at: string;
|
|
@@ -5,7 +5,7 @@ import { OvermapRootState } from '../../store';
|
|
|
5
5
|
import { BaseUploadService } from './BaseUploadService';
|
|
6
6
|
export declare abstract class GeoImageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
7
7
|
add(payload: GeoImagePayload): Promise<OptimisticModelResult<GeoImage>>;
|
|
8
|
-
bulkAdd(payloads: BulkGeoImagePayload[], projectUuid:
|
|
8
|
+
bulkAdd(payloads: BulkGeoImagePayload[], projectUuid: Project["uuid"]): Promise<OptimisticMultipleModelResult<GeoImage>>;
|
|
9
9
|
update(payload: UUID<Partial<Pick<GeoImagePayload, "title" | "description">>>): OptimisticModelResult<GeoImage>;
|
|
10
10
|
delete(uuid: GeoImage["uuid"]): Promise<void>;
|
|
11
11
|
refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<GeoImage[]>;
|
|
@@ -16,7 +16,7 @@ export declare abstract class IssueAttachmentService<TState extends OvermapRootS
|
|
|
16
16
|
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
17
17
|
file: string;
|
|
18
18
|
file_sha1: string;
|
|
19
|
-
created_by: number |
|
|
19
|
+
created_by: number | null;
|
|
20
20
|
file_name: string;
|
|
21
21
|
file_type: string;
|
|
22
22
|
submitted_at: string;
|
|
@@ -16,7 +16,7 @@ export declare abstract class IssueCommentAttachmentService<TState extends Overm
|
|
|
16
16
|
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
17
17
|
file: string;
|
|
18
18
|
file_sha1: string;
|
|
19
|
-
created_by: number |
|
|
19
|
+
created_by: number | null;
|
|
20
20
|
file_name: string;
|
|
21
21
|
file_type: string;
|
|
22
22
|
submitted_at: string;
|
|
@@ -16,7 +16,7 @@ export declare abstract class IssueTypeAttachmentService<TState extends OvermapR
|
|
|
16
16
|
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
17
17
|
file: string;
|
|
18
18
|
file_sha1: string;
|
|
19
|
-
created_by: number |
|
|
19
|
+
created_by: number | null;
|
|
20
20
|
file_name: string;
|
|
21
21
|
file_type: string;
|
|
22
22
|
submitted_at: string;
|
|
@@ -15,7 +15,7 @@ export declare abstract class ProjectAttachmentService<TState extends OvermapRoo
|
|
|
15
15
|
protected buildOfflineAttachment(data: BuildOfflineAttachmentData): import('../..').UUID<{
|
|
16
16
|
file: string;
|
|
17
17
|
file_sha1: string;
|
|
18
|
-
created_by: number |
|
|
18
|
+
created_by: number | null;
|
|
19
19
|
file_name: string;
|
|
20
20
|
file_type: string;
|
|
21
21
|
submitted_at: string;
|
|
@@ -7,20 +7,21 @@ import { AssetStatusType } from '../../enums';
|
|
|
7
7
|
export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, GeometryModel, IndexedModel {
|
|
8
8
|
asset_type: AssetType["uuid"];
|
|
9
9
|
label: string | null;
|
|
10
|
-
description
|
|
10
|
+
description: string | null;
|
|
11
11
|
project: Project["uuid"];
|
|
12
|
+
status: AssetTypeStatus["uuid"];
|
|
12
13
|
}
|
|
13
14
|
export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
14
15
|
organization: Organization["uuid"];
|
|
15
16
|
name: string;
|
|
16
|
-
description
|
|
17
|
+
description: string;
|
|
17
18
|
order: number;
|
|
18
19
|
default_status: AssetTypeStatus["uuid"] | null;
|
|
19
20
|
}
|
|
20
21
|
export interface AssetProcedureType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
|
|
21
22
|
organization: Organization["uuid"];
|
|
22
23
|
name: string;
|
|
23
|
-
description
|
|
24
|
+
description: string | null;
|
|
24
25
|
}
|
|
25
26
|
export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IndexedModel {
|
|
26
27
|
asset_procedure_type: AssetProcedureType["uuid"];
|
|
@@ -30,7 +31,7 @@ export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAt
|
|
|
30
31
|
export interface AssetStage extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
|
|
31
32
|
asset_procedure_type: AssetProcedureType["uuid"];
|
|
32
33
|
name: string;
|
|
33
|
-
description
|
|
34
|
+
description: string | null;
|
|
34
35
|
priority: number;
|
|
35
36
|
}
|
|
36
37
|
export interface AssetStageCompletion extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
@@ -69,7 +70,7 @@ export interface AssetProcedureTypeFieldValuesAttachment extends UUIDModel, Subm
|
|
|
69
70
|
export interface AssetProcedureStep extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel, TreeModel<string> {
|
|
70
71
|
asset_procedure_type: AssetProcedureType["uuid"];
|
|
71
72
|
name: string;
|
|
72
|
-
description
|
|
73
|
+
description: string | null;
|
|
73
74
|
order: number;
|
|
74
75
|
}
|
|
75
76
|
export interface AssetProcedureStepFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
@@ -2,6 +2,6 @@ import { ColorModel, CreatedByModel, SubmittedAtModel, TimestampedModel, UUIDMod
|
|
|
2
2
|
import { Project } from './projects';
|
|
3
3
|
export interface Category extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, ColorModel {
|
|
4
4
|
name: string;
|
|
5
|
-
description
|
|
5
|
+
description: string | null;
|
|
6
6
|
project: Project["uuid"];
|
|
7
7
|
}
|
|
@@ -7,13 +7,10 @@ export interface Document extends UUIDModel, SubmittedAtModel, CreatedByModel, T
|
|
|
7
7
|
content: string | null;
|
|
8
8
|
parent_document: Document["uuid"] | null;
|
|
9
9
|
children_documents: Document["uuid"][];
|
|
10
|
-
project
|
|
11
|
-
organization
|
|
10
|
+
project: Project["uuid"] | null;
|
|
11
|
+
organization: Organization["uuid"] | null;
|
|
12
12
|
}
|
|
13
13
|
export interface DocumentAttachment extends Attachment {
|
|
14
14
|
document: Document["uuid"];
|
|
15
15
|
}
|
|
16
16
|
export type MovePosition = "left" | "right" | "left-child" | "right-child";
|
|
17
|
-
export interface DocumentAttachment extends Attachment {
|
|
18
|
-
document: string;
|
|
19
|
-
}
|
|
@@ -7,7 +7,7 @@ export interface Form extends UUIDModel, TimestampedModel, SubmittedAtModel, Cre
|
|
|
7
7
|
export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
8
8
|
form: Form["uuid"];
|
|
9
9
|
title: string;
|
|
10
|
-
description
|
|
10
|
+
description: string | null;
|
|
11
11
|
}
|
|
12
12
|
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
13
13
|
export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
|
|
@@ -2,11 +2,11 @@ import { FileWithNameModel } from '../files';
|
|
|
2
2
|
import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, Payload, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
3
3
|
import { Project } from './projects';
|
|
4
4
|
export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel, IndexedModel {
|
|
5
|
-
title
|
|
6
|
-
description
|
|
5
|
+
title: string | null;
|
|
6
|
+
description: string | null;
|
|
7
7
|
project: Project["uuid"];
|
|
8
|
-
direction
|
|
9
|
-
original_date
|
|
8
|
+
direction: number | null;
|
|
9
|
+
original_date: string | null;
|
|
10
10
|
}
|
|
11
11
|
export type GeoImagePayload = Omit<Payload<GeoImage>, "file_name" | "file_sha1" | "file"> & {
|
|
12
12
|
file: File;
|
|
@@ -7,20 +7,20 @@ import { Project } from './projects';
|
|
|
7
7
|
import { User } from './users';
|
|
8
8
|
import { IssuePriority, IssueStatus, IssueStatusType, IssueUpdateChange } from '../../enums';
|
|
9
9
|
export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
|
|
10
|
-
title
|
|
11
|
-
description
|
|
10
|
+
title: string | null;
|
|
11
|
+
description: string | null;
|
|
12
12
|
priority: IssuePriority;
|
|
13
13
|
status: IssueStatus;
|
|
14
|
-
assigned_to
|
|
15
|
-
due_date
|
|
16
|
-
category
|
|
14
|
+
assigned_to: User["id"] | null;
|
|
15
|
+
due_date: string | Date | null;
|
|
16
|
+
category: Category["uuid"] | null;
|
|
17
17
|
issue_type: IssueType["uuid"];
|
|
18
18
|
project: Project["uuid"];
|
|
19
19
|
}
|
|
20
20
|
export interface IssueComment extends UUIDModel, SubmittedAtModel, TimestampedModel {
|
|
21
21
|
issue: Issue["uuid"];
|
|
22
22
|
content: string;
|
|
23
|
-
author
|
|
23
|
+
author: User["id"];
|
|
24
24
|
}
|
|
25
25
|
export interface IssueUpdateChangeTypes {
|
|
26
26
|
status: IssueStatus;
|
|
@@ -44,8 +44,8 @@ export interface IssueUpdate extends UUIDModel, CreatedByModel, SubmittedAtModel
|
|
|
44
44
|
}
|
|
45
45
|
export interface IssueAssociation extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
46
46
|
associated_issue: Issue["uuid"];
|
|
47
|
-
issue
|
|
48
|
-
asset
|
|
47
|
+
issue: Issue["uuid"] | null;
|
|
48
|
+
asset: Asset["uuid"] | null;
|
|
49
49
|
}
|
|
50
50
|
export interface IssueTypeFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
|
|
51
51
|
issue_type: IssueType["uuid"];
|
|
@@ -62,7 +62,7 @@ export interface IssueTypeFieldValuesAttachment extends UUIDModel, SubmittedAtMo
|
|
|
62
62
|
}
|
|
63
63
|
export interface IssueType extends UUIDModel, SubmittedAtModel, IconModel, ColorModel, TimestampedModel, CreatedByModel, AbbreviationModel {
|
|
64
64
|
name: string;
|
|
65
|
-
description
|
|
65
|
+
description: string | null;
|
|
66
66
|
organization: Organization["uuid"];
|
|
67
67
|
default_status: IssueTypeStatus["uuid"] | null;
|
|
68
68
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
|
|
1
|
+
import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, TreeModel, UUIDModel } from './base';
|
|
2
2
|
import { Organization, OrganizationAccess } from './organizations';
|
|
3
3
|
import { User } from './users';
|
|
4
|
-
export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel, AbbreviationModel {
|
|
4
|
+
export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel, AbbreviationModel, TreeModel<string> {
|
|
5
5
|
name: string;
|
|
6
|
-
parent: Team["uuid"] | null;
|
|
7
6
|
organization: Organization["uuid"];
|
|
8
7
|
}
|
|
9
8
|
export interface TeamMembership extends UUIDModel, TimestampedModel, CreatedByModel {
|