@milaboratories/pl-model-middle-layer 1.32.0 → 1.32.1
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/block_meta/block_components.d.ts +8 -10
- package/dist/block_meta/block_components.d.ts.map +1 -1
- package/dist/block_meta/block_description.d.ts +80 -82
- package/dist/block_meta/block_description.d.ts.map +1 -1
- package/dist/block_meta/block_id.d.ts +10 -12
- package/dist/block_meta/block_id.d.ts.map +1 -1
- package/dist/block_meta/block_manifest.d.ts +13 -15
- package/dist/block_meta/block_manifest.d.ts.map +1 -1
- package/dist/block_meta/block_meta.d.ts +10 -12
- package/dist/block_meta/block_meta.d.ts.map +1 -1
- package/dist/block_meta/common.d.ts +2 -3
- package/dist/block_meta/common.d.ts.map +1 -1
- package/dist/block_meta/content_conversion.d.ts +2 -4
- package/dist/block_meta/content_conversion.d.ts.map +1 -1
- package/dist/block_meta/content_types.d.ts +29 -28
- package/dist/block_meta/content_types.d.ts.map +1 -1
- package/dist/block_meta/semver.d.ts +1 -3
- package/dist/block_meta/semver.d.ts.map +1 -1
- package/dist/block_registry/block_pack_spec.d.ts +16 -18
- package/dist/block_registry/block_pack_spec.d.ts.map +1 -1
- package/dist/block_registry/overview.d.ts +137 -139
- package/dist/block_registry/overview.d.ts.map +1 -1
- package/dist/block_registry/registry_spec.d.ts +16 -18
- package/dist/block_registry/registry_spec.d.ts.map +1 -1
- package/dist/block_settings.d.ts +5 -5
- package/dist/block_settings.d.ts.map +1 -1
- package/dist/block_state.d.ts +9 -7
- package/dist/block_state.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/json.d.ts +5 -7
- package/dist/json.d.ts.map +1 -1
- package/dist/pframe/internal_api/api_factory.d.ts +10 -12
- package/dist/pframe/internal_api/api_factory.d.ts.map +1 -1
- package/dist/pframe/internal_api/api_read.d.ts +2 -4
- package/dist/pframe/internal_api/api_read.d.ts.map +1 -1
- package/dist/pframe/internal_api/common.d.ts +6 -8
- package/dist/pframe/internal_api/common.d.ts.map +1 -1
- package/dist/pframe/internal_api/create_table.d.ts +9 -11
- package/dist/pframe/internal_api/create_table.d.ts.map +1 -1
- package/dist/pframe/internal_api/delete_column.d.ts +2 -4
- package/dist/pframe/internal_api/delete_column.d.ts.map +1 -1
- package/dist/pframe/internal_api/discover_columns.d.ts +11 -12
- package/dist/pframe/internal_api/discover_columns.d.ts.map +1 -1
- package/dist/pframe/internal_api/find_columns.d.ts +5 -7
- package/dist/pframe/internal_api/find_columns.d.ts.map +1 -1
- package/dist/pframe/internal_api/http_helpers.d.ts +87 -53
- package/dist/pframe/internal_api/http_helpers.d.ts.map +1 -1
- package/dist/pframe/internal_api/index.d.ts +0 -2
- package/dist/pframe/internal_api/pframe.d.ts +8 -7
- package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
- package/dist/pframe/internal_api/table.d.ts +1 -3
- package/dist/pframe/internal_api/table.d.ts.map +1 -1
- package/dist/project.d.ts +1 -2
- package/dist/project.d.ts.map +1 -1
- package/dist/project_list.d.ts +1 -3
- package/dist/project_list.d.ts.map +1 -1
- package/dist/project_overview.d.ts +25 -15
- package/dist/project_overview.d.ts.map +1 -1
- package/dist/storage_debug_view.d.ts +1 -2
- package/dist/storage_debug_view.d.ts.map +1 -1
- package/dist/update_info.d.ts +3 -3
- package/dist/update_info.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -4,14 +4,16 @@ import { ProjectMeta } from "./project.js";
|
|
|
4
4
|
import { BlockPackSpec } from "./block_registry/block_pack_spec.js";
|
|
5
5
|
import { UpdateSuggestions } from "./update_info.js";
|
|
6
6
|
import { AuthorMarker, BlockCodeFeatureFlags, BlockRenderingMode, BlockSection, NavigationState, StringifiedJson } from "@milaboratories/pl-model-common";
|
|
7
|
-
|
|
8
7
|
//#region src/project_overview.d.ts
|
|
9
8
|
/** Generalized block status, to be used in block item "styling". */
|
|
10
|
-
type BlockCalculationStatus = "NotCalculated" | "Running" | "Done" | "Limbo";
|
|
9
|
+
export type BlockCalculationStatus = "NotCalculated" | "Running" | "Done" | "Limbo";
|
|
11
10
|
/** Overview of the whole project state, required to render a left panel. */
|
|
12
|
-
type ProjectOverview = {
|
|
13
|
-
/** Metadata, like project label associated with the project */
|
|
14
|
-
|
|
11
|
+
export type ProjectOverview = {
|
|
12
|
+
/** Metadata, like project label associated with the project */
|
|
13
|
+
meta: ProjectMeta;
|
|
14
|
+
/** Creation timestamp. */
|
|
15
|
+
created: Date;
|
|
16
|
+
/** Last modification timestamp. */
|
|
15
17
|
lastModified: Date;
|
|
16
18
|
/**
|
|
17
19
|
* Marker of the party last doing modification of the project structure
|
|
@@ -20,12 +22,15 @@ type ProjectOverview = {
|
|
|
20
22
|
* - block renaming
|
|
21
23
|
* - block-pack update
|
|
22
24
|
*/
|
|
23
|
-
authorMarker?: AuthorMarker;
|
|
25
|
+
authorMarker?: AuthorMarker;
|
|
26
|
+
/** Overview information for each block */
|
|
24
27
|
blocks: BlockStateOverview[];
|
|
25
28
|
};
|
|
26
29
|
/** Overview of the block state, required for visualization in the left panel */
|
|
27
|
-
type BlockStateOverview = {
|
|
28
|
-
/** Project resource id (one of the goals it to be used for debugging purposes) */
|
|
30
|
+
export type BlockStateOverview = {
|
|
31
|
+
/** Project resource id (one of the goals it to be used for debugging purposes) */
|
|
32
|
+
projectResourceId: string;
|
|
33
|
+
/** Block id */
|
|
29
34
|
id: string;
|
|
30
35
|
/**
|
|
31
36
|
* Blocks label visible to the user.
|
|
@@ -48,7 +53,8 @@ type BlockStateOverview = {
|
|
|
48
53
|
* Tags for search functionality.
|
|
49
54
|
* Undefined when block-pack for this block is not yet materialized.
|
|
50
55
|
*/
|
|
51
|
-
tags: string[] | undefined;
|
|
56
|
+
tags: string[] | undefined;
|
|
57
|
+
/** Block rendering mode */
|
|
52
58
|
renderingMode: BlockRenderingMode;
|
|
53
59
|
/**
|
|
54
60
|
* True if block have missing references, e.g. referenced block was deleted
|
|
@@ -76,7 +82,8 @@ type BlockStateOverview = {
|
|
|
76
82
|
* If exports context have errors, this field will contain the error message
|
|
77
83
|
* extracted from the exports context resource.
|
|
78
84
|
*/
|
|
79
|
-
exportsError?: string;
|
|
85
|
+
exportsError?: string;
|
|
86
|
+
/** Generalized block calculation status */
|
|
80
87
|
calculationStatus: BlockCalculationStatus;
|
|
81
88
|
/**
|
|
82
89
|
* All upstream blocks of this block. In other words all dependencies of this
|
|
@@ -119,15 +126,19 @@ type BlockStateOverview = {
|
|
|
119
126
|
* This block should not be openable; the only available action for it is deletion.
|
|
120
127
|
* Undefined when block-pack for this block is not yet materialized.
|
|
121
128
|
*/
|
|
122
|
-
isIncompatibleWithRuntime: boolean | undefined;
|
|
129
|
+
isIncompatibleWithRuntime: boolean | undefined;
|
|
130
|
+
/** Information on where the block pack for this block came from */
|
|
123
131
|
currentBlockPack: BlockPackSpec | undefined;
|
|
124
132
|
/**
|
|
125
133
|
* If block pack update is available this field will contain latest specs to
|
|
126
134
|
* perform the update
|
|
127
135
|
*/
|
|
128
|
-
updatedBlockPack: BlockPackSpec | undefined;
|
|
129
|
-
|
|
130
|
-
|
|
136
|
+
updatedBlockPack: BlockPackSpec | undefined;
|
|
137
|
+
/** Current block settings */
|
|
138
|
+
settings: BlockSettings;
|
|
139
|
+
/** Detailed update options */
|
|
140
|
+
updateSuggestions: UpdateSuggestions;
|
|
141
|
+
/** Current navigation state of the block */
|
|
131
142
|
navigationState: NavigationState;
|
|
132
143
|
/**
|
|
133
144
|
* Storage debug view as JSON string (e.g., '{"dataVersion": "v1"}').
|
|
@@ -137,5 +148,4 @@ type BlockStateOverview = {
|
|
|
137
148
|
storageDebugView: StringifiedJson<StorageDebugView> | undefined;
|
|
138
149
|
};
|
|
139
150
|
//#endregion
|
|
140
|
-
export { BlockCalculationStatus, BlockStateOverview, ProjectOverview };
|
|
141
151
|
//# sourceMappingURL=project_overview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project_overview.d.ts","names":[],"sources":["../src/project_overview.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"project_overview.d.ts","names":[],"sources":["../src/project_overview.ts"],"mappings":";;;;;;;;YAeY;;YAGA;;EAEV,MAAM;;EAGN,SAAS;;EAGT,cAAc;;;;;;;;EASd,eAAe;;EAGf,QAAQ;;;YAIE;;EAEV;;EAGA;;;;;;;EAQA;;;;;EAMA;;;;;EAMA;;;;;EAMA;;EAGA,eAAe;;;;;EAMf;;;;;;;EAQA;;;;;EAMA;;;;;EAMA;;;;;EAMA;;EAGA,mBAAmB;;;;;EAMnB;;;;;EAMA;;;;;EAMA,UAAU;;;;;EAMV;;;;;EAMA;;;;;EAMA;;;;;EAMA,cAAc;;;;;;;EAQd;;EAGA,kBAAkB;;;;;EAMlB,kBAAkB;;EAGlB,UAAU;;EAGV,mBAAmB;;EAGnB,iBAAiB;;;;;;EAOjB,kBAAkB,gBAAgB"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
//#region src/storage_debug_view.d.ts
|
|
2
2
|
/** Debug representation of block storage state. */
|
|
3
|
-
interface StorageDebugView {
|
|
3
|
+
export interface StorageDebugView {
|
|
4
4
|
/** Current data version key */
|
|
5
5
|
dataVersion: string;
|
|
6
6
|
/** Raw data payload stored in BlockStorage */
|
|
7
7
|
data: unknown;
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
|
-
export { StorageDebugView };
|
|
11
10
|
//# sourceMappingURL=storage_debug_view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage_debug_view.d.ts","names":[],"sources":["../src/storage_debug_view.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"storage_debug_view.d.ts","names":[],"sources":["../src/storage_debug_view.ts"],"mappings":";;iBACiB;;EAEf;;EAEA"}
|
package/dist/update_info.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BlockPackSpec } from "./block_registry/block_pack_spec.js";
|
|
2
|
+
import "./block_registry/index.js";
|
|
2
3
|
//#region src/update_info.d.ts
|
|
3
4
|
/** Communicates possible block update option */
|
|
4
|
-
type UpdateSuggestion<V = BlockPackSpec> = {
|
|
5
|
+
export type UpdateSuggestion<V = BlockPackSpec> = {
|
|
5
6
|
type: "major" | "minor" | "patch";
|
|
6
7
|
update: V;
|
|
7
8
|
};
|
|
8
9
|
/** Communicates possible block update options */
|
|
9
|
-
type UpdateSuggestions<V = BlockPackSpec> = UpdateSuggestion<V>[];
|
|
10
|
+
export type UpdateSuggestions<V = BlockPackSpec> = UpdateSuggestion<V>[];
|
|
10
11
|
//#endregion
|
|
11
|
-
export { UpdateSuggestion, UpdateSuggestions };
|
|
12
12
|
//# sourceMappingURL=update_info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update_info.d.ts","names":[],"sources":["../src/update_info.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update_info.d.ts","names":[],"sources":["../src/update_info.ts"],"mappings":";;;;YAGY,iBAAiB,IAAI;EAC/B;EACA,QAAQ;;;YAIE,kBAAkB,IAAI,iBAAiB,iBAAiB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-middle-layer",
|
|
3
|
-
"version": "1.32.
|
|
3
|
+
"version": "1.32.1",
|
|
4
4
|
"description": "Common model between middle layer and non-block UI code",
|
|
5
5
|
"files": [
|
|
6
6
|
"./dist/**/*",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"utility-types": "^3.11.0",
|
|
22
22
|
"zod": "~3.25.76",
|
|
23
23
|
"@milaboratories/helpers": "1.14.5",
|
|
24
|
-
"@milaboratories/pl-model-common": "1.
|
|
24
|
+
"@milaboratories/pl-model-common": "1.49.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "~24.5.2",
|
|
28
|
-
"typescript": "
|
|
29
|
-
"@milaboratories/
|
|
30
|
-
"@milaboratories/ts-
|
|
31
|
-
"@milaboratories/
|
|
28
|
+
"typescript": "7.0.2",
|
|
29
|
+
"@milaboratories/ts-builder": "1.7.2",
|
|
30
|
+
"@milaboratories/ts-configs": "1.4.0",
|
|
31
|
+
"@milaboratories/build-configs": "2.0.1"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "ts-builder build --target node",
|