@overmap-ai/core 1.0.78-status-models.3 → 1.0.78-status-models.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.
@@ -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 | undefined;
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 | undefined;
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 | undefined;
18
+ created_by: number | null;
19
19
  file_name: string;
20
20
  file_type: string;
21
21
  submitted_at: string;
@@ -12,7 +12,7 @@ export interface BuildOfflineAttachmentData {
12
12
  file: File;
13
13
  file_sha1: string;
14
14
  submitted_at: string;
15
- created_by?: User["id"];
15
+ created_by: User["id"] | null;
16
16
  description?: string;
17
17
  modelUuid: UUIDModel["uuid"];
18
18
  }
@@ -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 | undefined;
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: string): Promise<OptimisticMultipleModelResult<GeoImage>>;
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 | undefined;
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 | undefined;
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 | undefined;
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 | undefined;
18
+ created_by: number | null;
19
19
  file_name: string;
20
20
  file_type: string;
21
21
  submitted_at: string;
@@ -14,14 +14,14 @@ export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, Cr
14
14
  export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
15
15
  organization: Organization["uuid"];
16
16
  name: string;
17
- description?: string;
17
+ description: string | null;
18
18
  order: number;
19
19
  default_status: AssetTypeStatus["uuid"] | null;
20
20
  }
21
21
  export interface AssetProcedureType extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel, AbbreviationModel {
22
22
  organization: Organization["uuid"];
23
23
  name: string;
24
- description?: string | null;
24
+ description: string | null;
25
25
  }
26
26
  export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IndexedModel {
27
27
  asset_procedure_type: AssetProcedureType["uuid"];
@@ -31,7 +31,7 @@ export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAt
31
31
  export interface AssetStage extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel {
32
32
  asset_procedure_type: AssetProcedureType["uuid"];
33
33
  name: string;
34
- description?: string | null;
34
+ description: string | null;
35
35
  priority: number;
36
36
  }
37
37
  export interface AssetStageCompletion extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
@@ -70,7 +70,7 @@ export interface AssetProcedureTypeFieldValuesAttachment extends UUIDModel, Subm
70
70
  export interface AssetProcedureStep extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, ColorModel, TreeModel<string> {
71
71
  asset_procedure_type: AssetProcedureType["uuid"];
72
72
  name: string;
73
- description?: string | null;
73
+ description: string | null;
74
74
  order: number;
75
75
  }
76
76
  export interface AssetProcedureStepFields extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel {
@@ -66,7 +66,7 @@ export interface ColorModel {
66
66
  color: string;
67
67
  }
68
68
  export interface CreatedByModel {
69
- created_by?: User["id"] | null;
69
+ created_by: User["id"] | null;
70
70
  }
71
71
  export interface IndexedModel {
72
72
  index: number;
@@ -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?: string;
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?: Project["uuid"];
11
- organization?: Organization["uuid"];
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
- }
@@ -5,7 +5,7 @@ export interface FieldsModel {
5
5
  revision: number;
6
6
  }
7
7
  export interface FieldValuesModel {
8
- published_at?: string | null;
8
+ published_at: string | null;
9
9
  values: SerializedFieldValues;
10
10
  }
11
11
  export interface FieldsAttachmentModel extends FileWithNameModel {
@@ -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?: string;
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?: string;
6
- description?: string;
5
+ title: string | null;
6
+ description: string | null;
7
7
  project: Project["uuid"];
8
- direction?: number;
9
- original_date?: string;
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?: string | null;
11
- description?: string | null;
10
+ title: string | null;
11
+ description: string | null;
12
12
  priority: IssuePriority;
13
13
  status: IssueStatus;
14
- assigned_to?: User["id"] | null;
15
- due_date?: string | Date | null;
16
- category?: Category["uuid"] | null;
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?: User["id"];
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?: Issue["uuid"];
48
- asset?: Asset["uuid"];
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?: string;
65
+ description: string | null;
66
66
  organization: Organization["uuid"];
67
67
  default_status: IssueTypeStatus["uuid"] | null;
68
68
  }
@@ -16,5 +16,5 @@ export interface ProjectAccess extends UUIDModel, CreatedByModel, TimestampedMod
16
16
  organization_access: OrganizationAccess["uuid"];
17
17
  }
18
18
  export interface ProjectAttachment extends Attachment {
19
- project: string;
19
+ project: Project["uuid"];
20
20
  }
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overmap-ai/core",
3
- "version": "1.0.78-status-models.3",
3
+ "version": "1.0.78-status-models.5",
4
4
  "description": "Core functionality for Overmap",
5
5
  "keywords": [
6
6
  "components",