@overmap-ai/core 1.0.78-identifiers.3 → 1.0.78-immediate-for-refresh-store.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,5 +1,5 @@
1
1
  import { OvermapRootState } from '../../store';
2
- import { FormIdentifierValue, Payload, Project, UUID } from '../../typings';
2
+ import { FormIdentifierValue, Organization, Payload, UUID } from '../../typings';
3
3
  import { BaseSDK } from '../base';
4
4
  import { OptimisticModelResult } from '../typings';
5
5
  import { BaseApiService } from './BaseApiService';
@@ -7,5 +7,5 @@ export declare abstract class FormIdentifierValueService<TState extends OvermapR
7
7
  add(payload: Payload<FormIdentifierValue>): OptimisticModelResult<FormIdentifierValue>;
8
8
  update(payload: UUID<Partial<Payload<FormIdentifierValue>>>): OptimisticModelResult<FormIdentifierValue>;
9
9
  delete(uuid: FormIdentifierValue["uuid"]): Promise<undefined>;
10
- refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<FormIdentifierValue[]>;
10
+ refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<FormIdentifierValue[]>;
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import { OvermapRootState } from '../../store';
2
- import { FormSubmission, FormSubmissionAttachment, Project } from '../../typings';
2
+ import { FormSubmission, FormSubmissionAttachment, Organization } from '../../typings';
3
3
  import { BaseSDK } from '../base';
4
4
  import { OptimisticMultipleModelResult } from '../typings';
5
5
  import { BaseUploadService } from './BaseUploadService';
@@ -10,5 +10,5 @@ export declare abstract class FormSubmissionAttachmentService<TState extends Ove
10
10
  file: File;
11
11
  }[]): Promise<OptimisticMultipleModelResult<FormSubmissionAttachment>>;
12
12
  bulkDelete(uuids: FormSubmissionAttachment["uuid"][]): Promise<void>;
13
- refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<FormSubmissionAttachment[]>;
13
+ refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<FormSubmissionAttachment[]>;
14
14
  }
@@ -1,5 +1,5 @@
1
1
  import { OvermapRootState } from '../../store';
2
- import { FormSubmission, Payload, Project, UUID } from '../../typings';
2
+ import { FormSubmission, Organization, Payload, UUID } from '../../typings';
3
3
  import { BaseSDK } from '../base';
4
4
  import { OptimisticModelResult } from '../typings';
5
5
  import { BaseUploadService } from './BaseUploadService';
@@ -7,5 +7,5 @@ export declare abstract class FormSubmissionService<TState extends OvermapRootSt
7
7
  add(payload: Payload<FormSubmission>): OptimisticModelResult<FormSubmission>;
8
8
  update(payload: UUID<Partial<Payload<FormSubmission>>>): OptimisticModelResult<FormSubmission>;
9
9
  delete(uuid: FormSubmission["uuid"]): Promise<undefined>;
10
- refreshStore(projectUuid: Project["uuid"], signal?: AbortSignal): Promise<FormSubmission[]>;
10
+ refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<FormSubmission[]>;
11
11
  }
@@ -1,10 +1,11 @@
1
1
  import { OvermapRootState } from '../../store';
2
- import { Organization, Payload, ProjectAccess, UUID } from '../../typings';
2
+ import { Organization, Payload, ProjectAccess, Submitted, UUID } from '../../typings';
3
3
  import { BaseSDK } from '../base';
4
4
  import { OptimisticModelResult } from '../typings';
5
5
  import { BaseApiService } from './BaseApiService';
6
6
  export declare abstract class ProjectAccessService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
7
7
  add(payload: Payload<ProjectAccess>): OptimisticModelResult<ProjectAccess>;
8
+ bulkAdd(payloads: Payload<ProjectAccess>[]): (Submitted<ProjectAccess>[] | Promise<ProjectAccess[]>)[];
8
9
  update(payload: UUID<Payload<ProjectAccess>>): OptimisticModelResult<ProjectAccess>;
9
10
  remove(uuid: ProjectAccess["uuid"]): Promise<undefined>;
10
11
  refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<ProjectAccess[]>;
@@ -1,10 +1,11 @@
1
1
  import { OvermapRootState } from '../../store';
2
- import { Organization, Payload, TeamMembership } from '../../typings';
2
+ import { Organization, Payload, Submitted, TeamMembership } from '../../typings';
3
3
  import { BaseSDK } from '../base';
4
4
  import { OptimisticModelResult } from '../typings';
5
5
  import { BaseApiService } from './BaseApiService';
6
6
  export declare abstract class TeamMembershipService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
7
7
  add(payload: Payload<TeamMembership>): OptimisticModelResult<TeamMembership>;
8
+ bulkAdd(payloads: Payload<TeamMembership>[]): (Submitted<TeamMembership>[] | Promise<TeamMembership[]>)[];
8
9
  delete(uuid: TeamMembership["uuid"]): Promise<undefined>;
9
10
  refreshStore(organizationUuid: Organization["uuid"], signal?: AbortSignal): Promise<TeamMembership[]>;
10
11
  }
@@ -1,4 +1,4 @@
1
- import { Asset, Form, FormSubmission, Issue, Stored } from '../../typings';
1
+ import { Form, FormSubmission, Stored } from '../../typings';
2
2
  import { ModelState } from '../adapters';
3
3
  import { OvermapSelector, OvermapSelectorWithArgs } from '../typings';
4
4
  export type FormSubmissionState = ModelState<FormSubmission["uuid"], Stored<FormSubmission>>;
@@ -45,6 +45,4 @@ export declare const selectFormSubmissionsMapping: OvermapSelector<FormSubmissio
45
45
  export declare const selectFormSubmissions: OvermapSelector<Stored<FormSubmission>[]>;
46
46
  export declare const selectFormSubmissionById: OvermapSelectorWithArgs<FormSubmission["uuid"], Stored<FormSubmission> | undefined>;
47
47
  export declare const selectFormSubmissionsOfForm: OvermapSelectorWithArgs<Form["uuid"], Stored<FormSubmission>[]>;
48
- export declare const selectFormSubmissionsOfIssue: OvermapSelectorWithArgs<Issue["uuid"], Stored<FormSubmission>[]>;
49
- export declare const selectFormSubmissionsOfAsset: OvermapSelectorWithArgs<Asset["uuid"], Stored<FormSubmission>[]>;
50
48
  export declare const formSubmissionReducer: import('redux').Reducer<FormSubmissionState>;
@@ -1,7 +1,7 @@
1
1
  import { SerializedCondition } from '@overmap-ai/forms';
2
- import { CanvasMarkableModel, ColorModel, CreatedByModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, MarkableModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
+ import { ColorModel, CreatedByModel, GeometryModel, IconModel, IdentifierModel, IdentifierValueModel, IndexedModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
3
3
  import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
4
- export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, IndexedModel {
4
+ export interface Asset extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, GeometryModel, IndexedModel {
5
5
  asset_type: string;
6
6
  label: string | null;
7
7
  description?: string;
@@ -11,6 +11,7 @@ export interface AssetType extends UUIDModel, TimestampedModel, SubmittedAtModel
11
11
  organization: string;
12
12
  name?: string;
13
13
  description?: string;
14
+ order: number;
14
15
  }
15
16
  export interface AssetProcedure extends UUIDModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel {
16
17
  organization: string;
@@ -1,4 +1,4 @@
1
- import { MultiPoint, Point } from 'geojson';
1
+ import { Geometry, MultiPoint, Point } from 'geojson';
2
2
  import { COMMON_AUTO_FIELDS } from '../../utils';
3
3
  import { CSSColor } from '../colors';
4
4
  import { User } from './users';
@@ -59,9 +59,6 @@ export interface OptionalFileModel {
59
59
  file?: string | null;
60
60
  objectURL?: string;
61
61
  }
62
- export interface OwnedByOrganization {
63
- organization_owner: string;
64
- }
65
62
  export interface IconModel {
66
63
  icon: string;
67
64
  }
@@ -92,4 +89,7 @@ export interface IdentifierModel {
92
89
  export interface IdentifierValueModel {
93
90
  value: string;
94
91
  }
92
+ export interface GeometryModel {
93
+ geometry: Geometry;
94
+ }
95
95
  export {};
@@ -11,9 +11,6 @@ export interface FormRevision extends UUIDModel, SubmittedAtModel, TimestampedMo
11
11
  export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
12
12
  export interface FormSubmission extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel, IndexedModel {
13
13
  form_revision: string;
14
- project: string;
15
- issue?: string | null;
16
- asset?: string | null;
17
14
  }
18
15
  export interface FormSubmissionAttachment extends UUIDModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesAttachmentModel {
19
16
  form_submission: string;
@@ -1,9 +1,10 @@
1
1
  import { FileWithNameModel } from '../files';
2
- import { BoundableModel, CanvasBoundableModel, CreatedByModel, OwnedByOrganization, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
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, TimestampedModel, BoundableModel, CanvasBoundableModel, OwnedByOrganization, CreatedByModel {
5
+ export interface Project extends UUIDModel, TimestampedModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
6
6
  name: string;
7
+ organization: string;
7
8
  }
8
9
  export interface ProjectFile extends UUIDModel, SubmittedAtModel, TimestampedModel, FileWithNameModel, BoundableModel, CanvasBoundableModel, CreatedByModel {
9
10
  z_index: number;
@@ -1,5 +1,5 @@
1
1
  import { ColorModel, CreatedByModel, IconModel, SubmittedAtModel, TimestampedModel, UUIDModel } from './base';
2
- import { Organization } from './organizations';
2
+ import { Organization, OrganizationAccess } from './organizations';
3
3
  import { User } from './users';
4
4
  export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
5
5
  name: string;
@@ -9,4 +9,5 @@ export interface Team extends UUIDModel, TimestampedModel, SubmittedAtModel, Ico
9
9
  export interface TeamMembership extends UUIDModel, TimestampedModel, CreatedByModel {
10
10
  team: Team["uuid"];
11
11
  user: User["id"];
12
+ organization_access: OrganizationAccess["uuid"];
12
13
  }
@@ -1,5 +1,4 @@
1
1
  export * from './async/DeferredPromise';
2
- export * from './coordinates';
3
2
  export * from './date';
4
3
  export * from './file';
5
4
  export * from './logging';
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.3",
6
+ "version": "1.0.78-immediate-for-refresh-store.0",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",
@@ -1,4 +0,0 @@
1
- import { MultiPoint, Point, Position } from 'geojson';
2
- export declare const createPointGeometry: (position: Position) => Point;
3
- export declare const createMultiPointGeometry: (coordinates: Position[]) => MultiPoint;
4
- export declare const coordinatesAreEqual: (a: Position, b: Position) => boolean;