@overmap-ai/core 1.0.81-project-captures.2 → 1.1.1-project-captures.0

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.
@@ -1,4 +1,4 @@
1
- import { Organization, Payload, ProcedureStep, Stored, UUID } from '../../typings';
1
+ import { Created, Organization, Payload, ProcedureStep, Stored, UUID } from '../../typings';
2
2
  import { BaseSDK } from '../base';
3
3
  import { OptimisticModelResult } from '../typings';
4
4
  import { OvermapRootState } from '../../store';
@@ -24,5 +24,6 @@ export declare abstract class ProcedureStepService<TState extends OvermapRootSta
24
24
  add(payload: Payload<ProcedureStep>): OptimisticModelResult<ProcedureStep>;
25
25
  update(payload: UUID<Partial<Payload<ProcedureStep>>>): OptimisticModelResult<ProcedureStep>;
26
26
  delete(uuid: ProcedureStep["uuid"]): Promise<void>;
27
+ bulkUpdate(payloads: UUID<Partial<Payload<ProcedureStep>>>[], batchSize?: number): [Stored<ProcedureStep>[], Promise<Created<ProcedureStep>[]>[]];
27
28
  refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<ProcedureStep[]>;
28
29
  }
@@ -27,6 +27,6 @@ export declare abstract class ProjectFileService<TState extends OvermapRootState
27
27
  protected buildModel(data: Payload<ProjectFile>): Submitted<ProjectFile>;
28
28
  protected buildPayload(model: Submitted<ProjectFile>): object;
29
29
  protected buildBulkPayload(model: Submitted<ProjectFile>): object;
30
- update(payload: UUID<Partial<Pick<ProjectFile, "bounds" | "canvas_bounds" | "z_index">>>): OptimisticModelResult<ProjectFile>;
30
+ update(payload: UUID<Partial<Pick<ProjectFile, "bounds" | "z_index">>>): OptimisticModelResult<ProjectFile>;
31
31
  refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<ProjectFile[]>;
32
32
  }
@@ -67,18 +67,12 @@ export interface IndexedModel {
67
67
  export interface BoundableModel {
68
68
  bounds?: MultiPoint;
69
69
  }
70
- export interface CanvasBoundableModel {
71
- canvas_bounds?: MultiPoint;
72
- }
73
70
  export interface PolygonBoundedModel {
74
71
  bounds: Polygon;
75
72
  }
76
73
  export interface MarkableModel {
77
74
  geo_marker?: Point;
78
75
  }
79
- export interface CanvasMarkableModel {
80
- canvas_marker?: Point;
81
- }
82
76
  export interface IdentifierModel {
83
77
  name: string;
84
78
  }
@@ -1,6 +1,6 @@
1
- import { CanvasMarkableModel, CreatedByModel, IndexedModel, MarkableModel, Payload, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
1
+ import { CreatedByModel, IndexedModel, MarkableModel, Payload, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
2
  import { Project } from './projects';
3
- export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, RequiredFileModel, IndexedModel {
3
+ export interface GeoImage extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, RequiredFileModel, IndexedModel {
4
4
  title: string | null;
5
5
  description: string | null;
6
6
  project: Project["uuid"];
@@ -1,11 +1,11 @@
1
1
  import { Asset } from './assets';
2
- import { AbbreviationModel, CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
+ import { AbbreviationModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
3
  import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
4
4
  import { Organization } from './organizations';
5
5
  import { Project } from './projects';
6
6
  import { User } from './users';
7
7
  import { IssueStatusType, IssuePriorityType, IssueUpdateChange } from '../../enums';
8
- export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
8
+ export interface Issue extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, MarkableModel, IndexedModel {
9
9
  title: string | null;
10
10
  description: string | null;
11
11
  priority: IssueTypePriority["uuid"];
@@ -1,4 +1,4 @@
1
- import { BoundableModel, CanvasBoundableModel, CreatedByModel, PolygonBoundedModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
1
+ import { BoundableModel, CreatedByModel, PolygonBoundedModel, RequiredFileModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
2
  import { Organization, OrganizationAccess } from './organizations';
3
3
  import { User } from './users';
4
4
  export interface Project extends UUIDModel, TimestampedModel, PolygonBoundedModel, CreatedByModel {
@@ -10,7 +10,7 @@ export interface ProjectComment extends UUIDModel, SubmittedAtModel, Timestamped
10
10
  content: string;
11
11
  resolved: boolean;
12
12
  }
13
- export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, RequiredFileModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
13
+ export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, RequiredFileModel, BoundableModel, CreatedByModel {
14
14
  z_index: number;
15
15
  project: Project["uuid"];
16
16
  }
@@ -1,4 +1,5 @@
1
1
  export declare function hashFile(file: Blob): Promise<string>;
2
+ export declare const fileToBlob: (file: File) => Promise<Blob>;
2
3
  export declare const getS3FileKey: (sha1: string, extension: string) => string;
3
4
  export declare function getRenamedFile(file: File, newName: string): File;
4
5
  export declare function getFileExtension(file: File): string;
@@ -1,2 +1,5 @@
1
1
  import { SubmittedAtModel } from '../../typings';
2
2
  export declare const submittedAtModelSortFn: <TModel extends SubmittedAtModel>(a: TModel, b: TModel) => 0 | 1 | -1;
3
+ export declare const createdAtModelSortFn: <TModel extends {
4
+ created_at: string;
5
+ }>(a: TModel, b: TModel) => 0 | 1 | -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overmap-ai/core",
3
- "version": "1.0.81-project-captures.2",
3
+ "version": "1.1.1-project-captures.0",
4
4
  "description": "Core functionality for Overmap",
5
5
  "keywords": [
6
6
  "components",
@@ -51,7 +51,7 @@
51
51
  "uuid": "11.1.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@overmap-ai/forms": "1.0.39-lint-updates.0",
54
+ "@overmap-ai/forms": "1.1.0",
55
55
  "@tiptap/core": "3.10.4",
56
56
  "@types/geojson": "7946.0.16",
57
57
  "@types/jwt-decode": "3.1.0",
@@ -76,7 +76,7 @@
76
76
  "vitest": "3.2.4"
77
77
  },
78
78
  "peerDependencies": {
79
- "@overmap-ai/forms": "1.0.39-lint-updates.0",
79
+ "@overmap-ai/forms": "^1.1.0",
80
80
  "@tiptap/core": "3.10.4",
81
81
  "react": ">=18.2.0 <20.0.0",
82
82
  "react-dom": ">=18.2.0 <20.0.0"