@overmap-ai/core 1.0.72-workspace-developments.0 → 1.0.73
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 +288 -292
- package/dist/overmap-core.umd.cjs +4 -4
- package/dist/sdk/services/GeoImageService.d.ts +1 -1
- package/dist/store/index.d.ts +2 -0
- package/dist/store/slices/geoImageSlice.d.ts +1 -1
- package/dist/typings/models/forms.d.ts +2 -2
- package/dist/typings/models/geoImages.d.ts +3 -3
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { OptimisticModelResult, OptimisticMultipleModelResult } from '../typings
|
|
|
4
4
|
import { BaseUploadService } from './BaseUploadService';
|
|
5
5
|
export declare abstract class GeoImageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
6
|
add(payload: GeoImagePayload): Promise<OptimisticModelResult<GeoImage>>;
|
|
7
|
-
bulkAdd(payloads: BulkGeoImagePayload[],
|
|
7
|
+
bulkAdd(payloads: BulkGeoImagePayload[], projectId: number): Promise<OptimisticMultipleModelResult<GeoImage>>;
|
|
8
8
|
update(payload: Offline<Partial<Pick<GeoImagePayload, "title" | "description">>>): OptimisticModelResult<GeoImage>;
|
|
9
9
|
delete(id: string): Promise<void>;
|
|
10
10
|
refreshStore(projectId: number): Promise<void>;
|
package/dist/store/index.d.ts
CHANGED
|
@@ -58,5 +58,5 @@ export declare const selectGeoImages: ((state: OvermapRootState) => Stored<GeoIm
|
|
|
58
58
|
memoize: typeof import('reselect').weakMapMemoize;
|
|
59
59
|
};
|
|
60
60
|
export declare const selectGeoImageById: (id: string) => (state: OvermapRootState) => Stored<GeoImage> | undefined;
|
|
61
|
-
export declare const
|
|
61
|
+
export declare const selectGeoImagesOfProject: (args: number) => (state: OvermapRootState) => Stored<GeoImage>[];
|
|
62
62
|
export declare const geoImageReducer: Reducer<GeoImageSliceState>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
2
|
import { CreatedByModel, OfflineModel, Payload, SubmittedAtModel, TimestampedModel } from './base';
|
|
3
3
|
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
4
|
-
import { WorkspaceIndexedModel } from './workspace';
|
|
5
4
|
export interface Form extends OfflineModel, SubmittedAtModel, CreatedByModel {
|
|
6
5
|
organization: number;
|
|
7
6
|
}
|
|
@@ -11,8 +10,9 @@ export interface FormRevision<TFields extends BaseSerializedObject = ISerialized
|
|
|
11
10
|
description?: string;
|
|
12
11
|
}
|
|
13
12
|
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
14
|
-
export interface FormSubmission extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel
|
|
13
|
+
export interface FormSubmission extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
15
14
|
form_revision: string;
|
|
15
|
+
project: number;
|
|
16
16
|
issue?: string | null;
|
|
17
17
|
asset?: string | null;
|
|
18
18
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { FileWithNameModel } from '../files';
|
|
2
2
|
import { CreatedByModel, OfflineModel, SubmittedAtModel } from './base';
|
|
3
3
|
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
4
|
-
|
|
5
|
-
export interface GeoImage extends OfflineModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel, WorkspaceIndexedModel {
|
|
4
|
+
export interface GeoImage extends OfflineModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel {
|
|
6
5
|
title?: string;
|
|
7
6
|
description?: string;
|
|
7
|
+
project: number;
|
|
8
8
|
direction?: number;
|
|
9
9
|
original_date?: string;
|
|
10
10
|
}
|
|
11
11
|
export type GeoImagePayload = Omit<GeoImage, "offline_id" | "submitted_at" | "created_by" | "file_name" | "file_sha1" | "file"> & {
|
|
12
12
|
file: File;
|
|
13
13
|
};
|
|
14
|
-
export type BulkGeoImagePayload = Omit<GeoImagePayload, "
|
|
14
|
+
export type BulkGeoImagePayload = Omit<GeoImagePayload, "project">;
|
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.
|
|
6
|
+
"version": "1.0.73",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|