@overmap-ai/core 1.0.78-status-models.0 → 1.0.78-status-models.2
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/enums/asset.d.ts +8 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/overmap-core.js +3989 -3803
- package/dist/overmap-core.umd.cjs +9 -9
- package/dist/sdk/services/AssetTypeStatusService.d.ts +11 -0
- package/dist/sdk/services/index.d.ts +1 -0
- package/dist/store/reducers.d.ts +3 -0
- package/dist/store/slices/assetProcedureSlice.d.ts +1 -0
- package/dist/store/slices/assetProcedureStepFieldValuesAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/assetProcedureStepFieldValuesSlice.d.ts +1 -0
- package/dist/store/slices/assetProcedureStepFieldsAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/assetProcedureStepFieldsSlice.d.ts +2 -0
- package/dist/store/slices/assetProcedureStepSlice.d.ts +3 -1
- package/dist/store/slices/assetProcedureTypeFieldValuesAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/assetProcedureTypeFieldValuesSlice.d.ts +1 -0
- package/dist/store/slices/assetProcedureTypeFieldsAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/assetSlice.d.ts +1 -0
- package/dist/store/slices/assetStageCompletionSlice.d.ts +1 -0
- package/dist/store/slices/assetStageSlice.d.ts +1 -0
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +1 -0
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +1 -0
- package/dist/store/slices/assetTypeStatusSlice.d.ts +139 -0
- package/dist/store/slices/categorySlice.d.ts +1 -0
- package/dist/store/slices/emailDomainsSlice.d.ts +1 -0
- package/dist/store/slices/formRevisionSlice.d.ts +1 -0
- package/dist/store/slices/formSlice.d.ts +1 -0
- package/dist/store/slices/geoImageSlice.d.ts +1 -0
- package/dist/store/slices/index.d.ts +1 -0
- package/dist/store/slices/issueAssociationSlice.d.ts +1 -0
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +1 -0
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +1 -0
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +1 -0
- package/dist/store/slices/issueTypeStatusSlice.d.ts +1 -0
- package/dist/store/slices/organizationSlice.d.ts +1 -0
- package/dist/store/slices/projectFileSlice.d.ts +1 -0
- package/dist/store/slices/projectSlice.d.ts +1 -0
- package/dist/store/slices/userSlice.d.ts +1 -0
- package/dist/typings/models/assets.d.ts +10 -2
- package/dist/typings/models/base.d.ts +3 -0
- package/dist/typings/models/documents.d.ts +3 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/models/assets.d.ts +4 -0
- package/dist/utils/models/index.d.ts +1 -0
- package/dist/utils/uuid.d.ts +5 -0
- package/package.json +3 -1
- package/dist/utils/offline.d.ts +0 -13
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UUID, UUIDModel } from '../typings';
|
|
2
|
+
export declare const COMMON_AUTO_FIELDS: readonly ["created_at", "updated_at", "index", "revision"];
|
|
3
|
+
export declare function uuidObj<T>(draft: T): UUID<T>;
|
|
4
|
+
export declare function toUuidIdRecord<TModel extends UUIDModel>(array: TModel[]): Record<string, TModel>;
|
|
5
|
+
export declare function toUuidArray<TModel extends UUIDModel>(array: TModel[]): string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overmap-ai/core",
|
|
3
|
-
"version": "1.0.78-status-models.
|
|
3
|
+
"version": "1.0.78-status-models.2",
|
|
4
4
|
"description": "Core functionality for Overmap",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"@redux-offline/redux-offline": "^2.6.0",
|
|
41
41
|
"@reduxjs/toolkit": "^2.8.2",
|
|
42
42
|
"dependency-graph": "^1.0.0",
|
|
43
|
+
"fast-tree-builder": "^2.0.3",
|
|
43
44
|
"file-saver": "^2.0.5",
|
|
44
45
|
"idb": "^7.1.1",
|
|
45
46
|
"jwt-decode": "^3.1.2",
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"redux-persist": "^4.0.0",
|
|
49
50
|
"redux-persist-migrate": "^5.0.0",
|
|
50
51
|
"superagent": "^8.1.2",
|
|
52
|
+
"ts-tree-lib": "^1.0.3",
|
|
51
53
|
"uuid": "^11.1.0"
|
|
52
54
|
},
|
|
53
55
|
"devDependencies": {
|
package/dist/utils/offline.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { UUID, UUIDModel } from '../typings';
|
|
2
|
-
export declare const COMMON_AUTO_FIELDS: readonly ["created_at", "updated_at", "index", "revision"];
|
|
3
|
-
/**
|
|
4
|
-
* Adds a generated UUID to the "offline_id" key of the object.
|
|
5
|
-
* @param draft The model data to add the offline_id to
|
|
6
|
-
*/
|
|
7
|
-
export declare function offline<T>(draft: T): UUID<T>;
|
|
8
|
-
/**
|
|
9
|
-
* Converts an array of OfflineModel objects to a Record<string, TModel>, mapping an offline ID to the object with that
|
|
10
|
-
* offline ID.
|
|
11
|
-
* @param array An array of offline model instances
|
|
12
|
-
*/
|
|
13
|
-
export declare function toOfflineIdRecord<TModel extends UUIDModel>(array: TModel[]): Record<string, TModel>;
|