@overmap-ai/core 1.0.71-fields.5 → 1.0.71-fields.7

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,13 +1,12 @@
1
- import type { AssetTypeFieldValuesAttachment, OvermapRootState } from "../../typings";
1
+ import type { AssetTypeFieldValuesAttachment, Created, OvermapRootState, Stored } from "../../typings";
2
2
  import type { BaseSDK } from "../base";
3
3
  import { BaseUploadService } from "./BaseUploadService";
4
- import { OptimisticMultipleModelResult } from "../typings";
5
4
  export declare abstract class AssetTypeFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
6
5
  bulkAdd(payloads: {
7
6
  fieldValuesId: string;
8
7
  fieldIdentifier: string;
9
8
  file: File;
10
- }[]): Promise<OptimisticMultipleModelResult<AssetTypeFieldValuesAttachment>>;
9
+ }[], batchSize?: number): Promise<[Stored<AssetTypeFieldValuesAttachment>[], Promise<Created<AssetTypeFieldValuesAttachment>[]>[]]>;
11
10
  bulkDelete(ids: string[]): Promise<void>;
12
11
  refreshStore(projectId: number): Promise<void>;
13
12
  }
@@ -1,4 +1,4 @@
1
- import type { AssetTypeFieldValues, Created, Offline, OvermapRootState, Payload } from "../../typings";
1
+ import type { AssetTypeFieldValues, Created, Offline, OvermapRootState, Payload, Stored } from "../../typings";
2
2
  import type { BaseSDK } from "../base";
3
3
  import { BaseApiService } from "./BaseApiService";
4
4
  import type { OptimisticModelResult } from "../typings";
@@ -13,7 +13,7 @@ export declare abstract class AssetTypeFieldValuesService<TState extends Overmap
13
13
  fields_revision: string;
14
14
  published_at: string;
15
15
  }[];
16
- }, batchSize: number): Promise<Created<AssetTypeFieldValues>[]>[];
16
+ }, batchSize?: number): [Stored<AssetTypeFieldValues>[], Promise<Created<AssetTypeFieldValues>[]>[]];
17
17
  update(payload: Offline<Partial<Payload<AssetTypeFieldValues>>>): OptimisticModelResult<AssetTypeFieldValues>;
18
18
  delete(id: string): Promise<void>;
19
19
  refreshStore(projectId: number): Promise<void>;
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.71-fields.5",
6
+ "version": "1.0.71-fields.7",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",