@overmap-ai/core 1.0.58-asset-description.5 → 1.0.58-asset-description.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.
- package/dist/overmap-core.js +163 -113
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +163 -113
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/services/AssetService.d.ts +2 -2
- package/dist/sdk/services/UserFormSubmissionService.d.ts +3 -3
- package/dist/utils/array.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { Asset, Payload } from "../../typings";
|
|
2
|
+
import { Asset, Created, Payload, Stored } from "../../typings";
|
|
3
3
|
import { OptimisticModelResult } from "../typings";
|
|
4
4
|
export declare class AssetService extends BaseApiService {
|
|
5
5
|
add(asset: Payload<Asset>, workspaceId: string): OptimisticModelResult<Asset>;
|
|
6
6
|
update(asset: Asset, workspaceId: string): OptimisticModelResult<Asset>;
|
|
7
7
|
remove(assetId: string): Promise<undefined>;
|
|
8
8
|
deleteAllAssetsOfAssetType(assetTypeId: string): Promise<undefined>;
|
|
9
|
-
|
|
9
|
+
addBulk(assetsToCreate: Payload<Asset>[], workspaceId: string, assetTypeId: string): [Stored<Asset>[], Promise<Record<string, Created<Asset>>[]>];
|
|
10
10
|
refreshStore(): Promise<void>;
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Offline } from '../../typings/models/base';
|
|
2
2
|
import { BaseApiService } from "./BaseApiService";
|
|
3
3
|
import { UserFormSubmission, UserFormSubmissionPayload } from '../../typings/models/forms';
|
|
4
|
-
import { OptimisticModelResult
|
|
4
|
+
import { OptimisticModelResult } from "../typings";
|
|
5
5
|
import { FieldValue } from '../../forms';
|
|
6
|
-
import { Stored } from "../../typings";
|
|
6
|
+
import { Created, Stored } from "../../typings";
|
|
7
7
|
export declare class UserFormSubmissionService extends BaseApiService {
|
|
8
8
|
private getAttachFilesPromises;
|
|
9
9
|
add(payload: Offline<UserFormSubmissionPayload>): OptimisticModelResult<UserFormSubmission>;
|
|
@@ -11,7 +11,7 @@ export declare class UserFormSubmissionService extends BaseApiService {
|
|
|
11
11
|
formRevision: string;
|
|
12
12
|
commonFieldValues: Record<string, FieldValue>;
|
|
13
13
|
fieldValuesByAsset: Record<string, Record<string, FieldValue>>;
|
|
14
|
-
}): Promise<
|
|
14
|
+
}): Promise<[Stored<UserFormSubmission>[], Promise<Created<UserFormSubmission>[][]>]>;
|
|
15
15
|
update(submission: Stored<UserFormSubmission>): OptimisticModelResult<UserFormSubmission>;
|
|
16
16
|
delete(submissionId: string): Promise<undefined>;
|
|
17
17
|
refreshStore(): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function chunkArray<T>(arr: T[], chunkSize: number): T[][];
|
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.58-asset-description.
|
|
6
|
+
"version": "1.0.58-asset-description.7",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|