@overmap-ai/core 1.0.63-selector-standardization.9 → 1.0.63

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,8 +1,14 @@
1
1
  import { ActionCreatorWithPayload } from "@reduxjs/toolkit";
2
2
  import { OptimisticMultipleModelResult } from "../typings";
3
- import { Attachment, AttachmentModel, OvermapRootState, OvermapSelectorWithArgs, Stored, Submitted } from "../../typings";
3
+ import { Attachment, AttachmentModel, OfflineModel, OvermapRootState, OvermapSelectorWithArgs, Stored, Submitted } from "../../typings";
4
4
  import type { BaseSDK } from "../base";
5
5
  import { BaseUploadService } from "./BaseUploadService";
6
+ export interface AttachmentPayload {
7
+ offline_id: OfflineModel["offline_id"];
8
+ name: Attachment["file_name"];
9
+ sha1: Attachment["file_sha1"];
10
+ description: Attachment["description"];
11
+ }
6
12
  export interface FilePayload {
7
13
  sha1: Attachment["file_sha1"];
8
14
  file_type: string;
@@ -4,5 +4,5 @@ import { OvermapRootState } from "../../typings";
4
4
  import type { BaseSDK } from "../base";
5
5
  export declare abstract class BaseUploadService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
6
6
  protected getNumberOfAttachmentsWithSha1(sha1: string): number;
7
- protected processPresignedUrls(presignedUrls: PresignedUrlsResponse): void;
7
+ protected processPresignedUrls(presignedUrls: PresignedUrlsResponse): Record<string, Promise<undefined>>;
8
8
  }
@@ -14,5 +14,6 @@ export declare abstract class DocumentAttachmentService<TState extends OvermapRo
14
14
  private buildOfflineAttachment;
15
15
  attachFilesToDocument(files: File[], documentId: string): Promise<OptimisticMultipleModelResult<DocumentAttachment>>;
16
16
  deleteDocumentAttachment(attachmentId: string): Promise<void>;
17
+ private makeReadable;
17
18
  refreshStore(projectId: number, organizationId: number): Promise<void>;
18
19
  }
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.63-selector-standardization.9",
6
+ "version": "1.0.63",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",