@milaboratories/pl-model-middle-layer 1.10.7 → 1.10.8
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,6 +1,6 @@
|
|
|
1
1
|
import type { FindColumnsRequest, FindColumnsResponse } from './find_columns';
|
|
2
2
|
import type { DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse } from './delete_column';
|
|
3
|
-
import type { PColumnInfo, PColumnSpec, PObjectId, UniqueValuesRequest, UniqueValuesResponse } from '@milaboratories/pl-model-common';
|
|
3
|
+
import type { PColumnInfo, PColumnSpec, PObjectId, UniqueValuesRequest, UniqueValuesResponse, QueryData } from '@milaboratories/pl-model-common';
|
|
4
4
|
import type { CreateTableRequestV4 } from './create_table';
|
|
5
5
|
import type { PTableV8 } from './table';
|
|
6
6
|
import type { PTableId } from './common';
|
|
@@ -26,6 +26,8 @@ export interface PFrameReadAPIV11 {
|
|
|
26
26
|
listColumns(): Promise<PColumnInfo[]>;
|
|
27
27
|
/** Calculates data for the table and returns an object to access it */
|
|
28
28
|
createTable(tableId: PTableId, request: CreateTableRequestV4): PTableV8;
|
|
29
|
+
/** Creates table from data query and returns an object to access it */
|
|
30
|
+
createTableByDataQuery(tableId: PTableId, request: QueryData): PTableV8;
|
|
29
31
|
/** Calculate set of unique values for a specific axis for the filtered set of records */
|
|
30
32
|
getUniqueValues(request: UniqueValuesRequest, ops?: {
|
|
31
33
|
signal?: AbortSignal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_read.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/api_read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,SAAS,EACT,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AM,CAAC,EAAE,WAAW,CAAC;KACtB,GACA,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAClC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-middle-layer",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.8",
|
|
4
4
|
"description": "Common model between middle layer and non-block UI code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"remeda": "^2.28.0",
|
|
21
21
|
"zod": "~3.23.8",
|
|
22
22
|
"utility-types": "^3.11.0",
|
|
23
|
-
"@
|
|
24
|
-
"@
|
|
23
|
+
"@milaboratories/pl-model-common": "1.24.3",
|
|
24
|
+
"@platforma-sdk/model": "1.53.5"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"eslint": "^9.25.1",
|
|
28
28
|
"typescript": "~5.6.3",
|
|
29
29
|
"@types/node": "~24.5.2",
|
|
30
|
-
"@milaboratories/build-configs": "1.4.0",
|
|
31
|
-
"@milaboratories/ts-configs": "1.2.0",
|
|
32
30
|
"@milaboratories/ts-builder": "1.2.4",
|
|
33
|
-
"@platforma-sdk/eslint-config": "1.2.0"
|
|
31
|
+
"@platforma-sdk/eslint-config": "1.2.0",
|
|
32
|
+
"@milaboratories/ts-configs": "1.2.0",
|
|
33
|
+
"@milaboratories/build-configs": "1.4.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"type-check": "ts-builder types --target node",
|
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
PObjectId,
|
|
7
7
|
UniqueValuesRequest,
|
|
8
8
|
UniqueValuesResponse,
|
|
9
|
+
QueryData,
|
|
9
10
|
} from '@milaboratories/pl-model-common';
|
|
10
11
|
import type { CreateTableRequestV4 } from './create_table';
|
|
11
12
|
import type { PTableV8 } from './table';
|
|
@@ -38,6 +39,9 @@ export interface PFrameReadAPIV11 {
|
|
|
38
39
|
/** Calculates data for the table and returns an object to access it */
|
|
39
40
|
createTable(tableId: PTableId, request: CreateTableRequestV4): PTableV8;
|
|
40
41
|
|
|
42
|
+
/** Creates table from data query and returns an object to access it */
|
|
43
|
+
createTableByDataQuery(tableId: PTableId, request: QueryData): PTableV8;
|
|
44
|
+
|
|
41
45
|
/** Calculate set of unique values for a specific axis for the filtered set of records */
|
|
42
46
|
getUniqueValues(
|
|
43
47
|
request: UniqueValuesRequest,
|