@milaboratories/pl-model-common 1.47.3 → 1.49.0
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/author_marker.d.ts +1 -2
- package/dist/author_marker.d.ts.map +1 -1
- package/dist/base64.d.ts +4 -6
- package/dist/base64.d.ts.map +1 -1
- package/dist/block_state.d.ts +13 -9
- package/dist/block_state.d.ts.map +1 -1
- package/dist/bmodel/block_config.d.ts +51 -29
- package/dist/bmodel/block_config.d.ts.map +1 -1
- package/dist/bmodel/block_kind_ref.cjs +45 -0
- package/dist/bmodel/block_kind_ref.cjs.map +1 -0
- package/dist/bmodel/block_kind_ref.d.ts +55 -0
- package/dist/bmodel/block_kind_ref.d.ts.map +1 -0
- package/dist/bmodel/block_kind_ref.js +43 -0
- package/dist/bmodel/block_kind_ref.js.map +1 -0
- package/dist/bmodel/code.d.ts +4 -5
- package/dist/bmodel/code.d.ts.map +1 -1
- package/dist/bmodel/container.d.ts +13 -5
- package/dist/bmodel/container.d.ts.map +1 -1
- package/dist/bmodel/index.cjs +4 -0
- package/dist/bmodel/index.d.ts +2 -1
- package/dist/bmodel/index.js +2 -1
- package/dist/bmodel/normalization.d.ts +1 -3
- package/dist/bmodel/normalization.d.ts.map +1 -1
- package/dist/bmodel/types.d.ts +1 -2
- package/dist/bmodel/types.d.ts.map +1 -1
- package/dist/branding.d.ts +2 -3
- package/dist/branding.d.ts.map +1 -1
- package/dist/columns/accessor_traversal.d.ts +6 -8
- package/dist/columns/accessor_traversal.d.ts.map +1 -1
- package/dist/columns/column_registry.d.ts +2 -3
- package/dist/columns/column_registry.d.ts.map +1 -1
- package/dist/columns/column_selector.d.ts +9 -9
- package/dist/columns/column_selector.d.ts.map +1 -1
- package/dist/columns/dedup.cjs +1 -1
- package/dist/columns/dedup.cjs.map +1 -1
- package/dist/columns/dedup.d.ts +2 -4
- package/dist/columns/dedup.d.ts.map +1 -1
- package/dist/columns/dedup.js +1 -1
- package/dist/columns/dedup.js.map +1 -1
- package/dist/columns/providers.cjs +1 -1
- package/dist/columns/providers.cjs.map +1 -1
- package/dist/columns/providers.d.ts +4 -5
- package/dist/columns/providers.d.ts.map +1 -1
- package/dist/columns/providers.js +1 -1
- package/dist/columns/providers.js.map +1 -1
- package/dist/columns/types.d.ts +12 -9
- package/dist/columns/types.d.ts.map +1 -1
- package/dist/common_types.d.ts +4 -6
- package/dist/common_types.d.ts.map +1 -1
- package/dist/dialog/index.d.ts +4 -5
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/driver_kit.d.ts +2 -2
- package/dist/driver_kit.d.ts.map +1 -1
- package/dist/drivers/ChunkedStreamReader.d.ts +3 -5
- package/dist/drivers/ChunkedStreamReader.d.ts.map +1 -1
- package/dist/drivers/blob.d.ts +36 -25
- package/dist/drivers/blob.d.ts.map +1 -1
- package/dist/drivers/columns/columns_collection_driver.d.ts +6 -7
- package/dist/drivers/columns/columns_collection_driver.d.ts.map +1 -1
- package/dist/drivers/columns/discover_columns_options.d.ts +9 -8
- package/dist/drivers/columns/discover_columns_options.d.ts.map +1 -1
- package/dist/drivers/index.cjs +5 -0
- package/dist/drivers/index.d.ts +5 -3
- package/dist/drivers/index.js +3 -3
- package/dist/drivers/interfaces.d.ts +2 -3
- package/dist/drivers/interfaces.d.ts.map +1 -1
- package/dist/drivers/log.d.ts +26 -28
- package/dist/drivers/log.d.ts.map +1 -1
- package/dist/drivers/ls.d.ts +37 -27
- package/dist/drivers/ls.d.ts.map +1 -1
- package/dist/drivers/pframe/column_filter.d.ts +1 -3
- package/dist/drivers/pframe/column_filter.d.ts.map +1 -1
- package/dist/drivers/pframe/data_info.d.ts +77 -50
- package/dist/drivers/pframe/data_info.d.ts.map +1 -1
- package/dist/drivers/pframe/data_types.d.ts +50 -45
- package/dist/drivers/pframe/data_types.d.ts.map +1 -1
- package/dist/drivers/pframe/driver.d.ts +5 -5
- package/dist/drivers/pframe/driver.d.ts.map +1 -1
- package/dist/drivers/pframe/filter_spec.d.ts +10 -12
- package/dist/drivers/pframe/filter_spec.d.ts.map +1 -1
- package/dist/drivers/pframe/find_columns.d.ts +2 -4
- package/dist/drivers/pframe/find_columns.d.ts.map +1 -1
- package/dist/drivers/pframe/index.cjs +5 -0
- package/dist/drivers/pframe/index.d.ts +5 -3
- package/dist/drivers/pframe/index.js +3 -3
- package/dist/drivers/pframe/linker_columns.d.ts +4 -10
- package/dist/drivers/pframe/linker_columns.d.ts.map +1 -1
- package/dist/drivers/pframe/pframe.d.ts +3 -3
- package/dist/drivers/pframe/pframe.d.ts.map +1 -1
- package/dist/drivers/pframe/query/query_common.d.ts +52 -46
- package/dist/drivers/pframe/query/query_common.d.ts.map +1 -1
- package/dist/drivers/pframe/query/query_data.d.ts +26 -21
- package/dist/drivers/pframe/query/query_data.d.ts.map +1 -1
- package/dist/drivers/pframe/query/query_spec.d.ts +22 -19
- package/dist/drivers/pframe/query/query_spec.d.ts.map +1 -1
- package/dist/drivers/pframe/query/utils.d.ts +15 -11
- package/dist/drivers/pframe/query/utils.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/anchored.d.ts +3 -5
- package/dist/drivers/pframe/spec/anchored.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/discovered_column.d.ts +10 -11
- package/dist/drivers/pframe/spec/discovered_column.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/filtered_column.d.ts +17 -18
- package/dist/drivers/pframe/spec/filtered_column.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/ids.cjs +151 -0
- package/dist/drivers/pframe/spec/ids.cjs.map +1 -1
- package/dist/drivers/pframe/spec/ids.d.ts +63 -11
- package/dist/drivers/pframe/spec/ids.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/ids.js +150 -3
- package/dist/drivers/pframe/spec/ids.js.map +1 -1
- package/dist/drivers/pframe/spec/index.cjs +5 -0
- package/dist/drivers/pframe/spec/index.d.ts +3 -3
- package/dist/drivers/pframe/spec/index.js +3 -3
- package/dist/drivers/pframe/spec/native_id.d.ts +3 -3
- package/dist/drivers/pframe/spec/native_id.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/overridden.d.ts +14 -16
- package/dist/drivers/pframe/spec/overridden.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/selectors.d.ts +22 -22
- package/dist/drivers/pframe/spec/selectors.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/spec.cjs +31 -0
- package/dist/drivers/pframe/spec/spec.cjs.map +1 -1
- package/dist/drivers/pframe/spec/spec.d.ts +94 -70
- package/dist/drivers/pframe/spec/spec.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/spec.js +31 -1
- package/dist/drivers/pframe/spec/spec.js.map +1 -1
- package/dist/drivers/pframe/spec_driver.d.ts +30 -25
- package/dist/drivers/pframe/spec_driver.d.ts.map +1 -1
- package/dist/drivers/pframe/table.d.ts +1 -3
- package/dist/drivers/pframe/table.d.ts.map +1 -1
- package/dist/drivers/pframe/table_calculate.d.ts +55 -46
- package/dist/drivers/pframe/table_calculate.d.ts.map +1 -1
- package/dist/drivers/pframe/table_common.d.ts +9 -10
- package/dist/drivers/pframe/table_common.d.ts.map +1 -1
- package/dist/drivers/pframe/unique_values.d.ts +3 -3
- package/dist/drivers/pframe/unique_values.d.ts.map +1 -1
- package/dist/drivers/upload.d.ts +2 -3
- package/dist/drivers/upload.d.ts.map +1 -1
- package/dist/drivers/urls.d.ts +7 -8
- package/dist/drivers/urls.d.ts.map +1 -1
- package/dist/errors.d.ts +35 -36
- package/dist/errors.d.ts.map +1 -1
- package/dist/flags/block_flags.cjs.map +1 -1
- package/dist/flags/block_flags.d.ts +7 -7
- package/dist/flags/block_flags.d.ts.map +1 -1
- package/dist/flags/block_flags.js.map +1 -1
- package/dist/flags/flag_utils.d.ts +6 -8
- package/dist/flags/flag_utils.d.ts.map +1 -1
- package/dist/flags/type_utils.d.ts +6 -7
- package/dist/flags/type_utils.d.ts.map +1 -1
- package/dist/httpAuth.d.ts +4 -5
- package/dist/httpAuth.d.ts.map +1 -1
- package/dist/index.cjs +30 -0
- package/dist/index.d.ts +15 -3
- package/dist/index.js +9 -3
- package/dist/json.d.ts +11 -12
- package/dist/json.d.ts.map +1 -1
- package/dist/navigation.d.ts +16 -11
- package/dist/navigation.d.ts.map +1 -1
- package/dist/plid.cjs +1 -1
- package/dist/plid.cjs.map +1 -1
- package/dist/plid.d.ts +8 -9
- package/dist/plid.d.ts.map +1 -1
- package/dist/plid.js +1 -1
- package/dist/plid.js.map +1 -1
- package/dist/pool/entry.d.ts +8 -6
- package/dist/pool/entry.d.ts.map +1 -1
- package/dist/pool/query.d.ts +3 -4
- package/dist/pool/query.d.ts.map +1 -1
- package/dist/pool/spec.d.ts +33 -30
- package/dist/pool/spec.d.ts.map +1 -1
- package/dist/pool_entry.d.ts +2 -3
- package/dist/pool_entry.d.ts.map +1 -1
- package/dist/project_id.d.ts +1 -3
- package/dist/project_id.d.ts.map +1 -1
- package/dist/ref.d.ts +22 -23
- package/dist/ref.d.ts.map +1 -1
- package/dist/resource_types.d.ts +2 -3
- package/dist/resource_types.d.ts.map +1 -1
- package/dist/services/node_service_handlers.d.ts +1 -3
- package/dist/services/node_service_handlers.d.ts.map +1 -1
- package/dist/services/service_capabilities.d.ts +7 -9
- package/dist/services/service_capabilities.d.ts.map +1 -1
- package/dist/services/service_declarations.d.ts +2 -2
- package/dist/services/service_declarations.d.ts.map +1 -1
- package/dist/services/service_injectors.d.ts +7 -8
- package/dist/services/service_injectors.d.ts.map +1 -1
- package/dist/services/service_registry.d.ts +2 -4
- package/dist/services/service_registry.d.ts.map +1 -1
- package/dist/services/service_types.d.ts +24 -26
- package/dist/services/service_types.d.ts.map +1 -1
- package/dist/template/index.cjs +20 -0
- package/dist/template/index.d.ts +5 -0
- package/dist/template/index.js +5 -0
- package/dist/template/kind_selector.cjs +92 -0
- package/dist/template/kind_selector.cjs.map +1 -0
- package/dist/template/kind_selector.d.ts +78 -0
- package/dist/template/kind_selector.d.ts.map +1 -0
- package/dist/template/kind_selector.js +87 -0
- package/dist/template/kind_selector.js.map +1 -0
- package/dist/template/project_template_v1.cjs +231 -0
- package/dist/template/project_template_v1.cjs.map +1 -0
- package/dist/template/project_template_v1.d.ts +217 -0
- package/dist/template/project_template_v1.d.ts.map +1 -0
- package/dist/template/project_template_v1.js +225 -0
- package/dist/template/project_template_v1.js.map +1 -0
- package/dist/template/template_ref_form.cjs +73 -0
- package/dist/template/template_ref_form.cjs.map +1 -0
- package/dist/template/template_ref_form.d.ts +75 -0
- package/dist/template/template_ref_form.d.ts.map +1 -0
- package/dist/template/template_ref_form.js +72 -0
- package/dist/template/template_ref_form.js.map +1 -0
- package/dist/template/template_relocate.cjs +67 -0
- package/dist/template/template_relocate.cjs.map +1 -0
- package/dist/template/template_relocate.d.ts +36 -0
- package/dist/template/template_relocate.d.ts.map +1 -0
- package/dist/template/template_relocate.js +67 -0
- package/dist/template/template_relocate.js.map +1 -0
- package/dist/utag.d.ts +2 -4
- package/dist/utag.d.ts.map +1 -1
- package/dist/util.d.ts +2 -3
- package/dist/util.d.ts.map +1 -1
- package/dist/value_or_error.d.ts +2 -3
- package/dist/value_or_error.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/bmodel/block_kind_ref.ts +59 -0
- package/src/bmodel/container.ts +9 -0
- package/src/bmodel/index.ts +1 -0
- package/src/columns/dedup.ts +1 -1
- package/src/columns/providers.ts +1 -1
- package/src/drivers/pframe/spec/ids.test.ts +90 -0
- package/src/drivers/pframe/spec/ids.ts +191 -1
- package/src/drivers/pframe/spec/spec.ts +31 -0
- package/src/flags/block_flags.ts +1 -1
- package/src/index.ts +1 -0
- package/src/plid.ts +5 -5
- package/src/template/index.ts +4 -0
- package/src/template/kind_selector.ts +126 -0
- package/src/template/project_template_v1.test.ts +315 -0
- package/src/template/project_template_v1.ts +444 -0
- package/src/template/template_ref_form.test.ts +86 -0
- package/src/template/template_ref_form.ts +108 -0
- package/src/template/template_relocate.test.ts +239 -0
- package/src/template/template_relocate.ts +89 -0
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { PoolEntry } from "../../pool_entry.js";
|
|
2
2
|
import { AxesId, AxesSpec, AxisSpec, AxisValueType, ColumnValueType, PColumnIdAndSpec, PColumnSpec } from "./spec/spec.js";
|
|
3
|
+
import "./spec/index.js";
|
|
3
4
|
import { PTableColumnId, PTableColumnSpec } from "./table_common.js";
|
|
4
5
|
import { SpecQuery, SpecQueryJoinEntry } from "./query/query_spec.js";
|
|
5
6
|
import { PTableRecordFilter } from "./table_calculate.js";
|
|
6
7
|
import { DataQuery, DataQueryBooleanExpression } from "./query/query_data.js";
|
|
8
|
+
import "./query/index.js";
|
|
7
9
|
import { AxisQualification, SingleAxisSelector } from "./spec/selectors.js";
|
|
8
10
|
import { PObjectId } from "../../pool/spec.js";
|
|
11
|
+
import "../../index.js";
|
|
9
12
|
import { Branded } from "@milaboratories/helpers";
|
|
10
|
-
|
|
11
13
|
//#region src/drivers/pframe/spec_driver.d.ts
|
|
12
14
|
/** Matches a string value either exactly or by regex pattern */
|
|
13
|
-
type StringMatcher = {
|
|
15
|
+
export type StringMatcher = {
|
|
14
16
|
type: "exact";
|
|
15
17
|
value: string;
|
|
16
18
|
} | {
|
|
@@ -18,9 +20,9 @@ type StringMatcher = {
|
|
|
18
20
|
value: string;
|
|
19
21
|
};
|
|
20
22
|
/** Map of key to array of string matchers (OR-ed per key, AND-ed across keys) */
|
|
21
|
-
type MatcherMap = Record<string, StringMatcher[]>;
|
|
23
|
+
export type MatcherMap = Record<string, StringMatcher[]>;
|
|
22
24
|
/** Selector for matching axes by various criteria */
|
|
23
|
-
interface MultiAxisSelector {
|
|
25
|
+
export interface MultiAxisSelector {
|
|
24
26
|
/** Match any of the axis types listed here */
|
|
25
27
|
readonly type?: AxisValueType[];
|
|
26
28
|
/** Match any of the axis names listed here */
|
|
@@ -34,7 +36,7 @@ interface MultiAxisSelector {
|
|
|
34
36
|
}
|
|
35
37
|
/** Column selector for discover columns request, matching columns by various criteria.
|
|
36
38
|
* Multiple selectors are OR-ed: a column matches if it satisfies any selector. */
|
|
37
|
-
interface MultiColumnSelector {
|
|
39
|
+
export interface MultiColumnSelector {
|
|
38
40
|
/** Match any of the value types listed here */
|
|
39
41
|
readonly type?: ColumnValueType[];
|
|
40
42
|
/** Match any of the names listed here */
|
|
@@ -51,14 +53,14 @@ interface MultiColumnSelector {
|
|
|
51
53
|
readonly partialAxesMatch?: boolean;
|
|
52
54
|
}
|
|
53
55
|
/** Qualifications needed for both query (already-integrated) columns and the hit column. */
|
|
54
|
-
interface ColumnAxesWithQualifications {
|
|
56
|
+
export interface ColumnAxesWithQualifications {
|
|
55
57
|
/** Already integrated (query) columns with their qualifications. */
|
|
56
58
|
axesSpec: AxisSpec[];
|
|
57
59
|
/** Qualifications for each already integrated (query) column. */
|
|
58
60
|
qualifications: AxisQualification[];
|
|
59
61
|
}
|
|
60
62
|
/** Fine-grained constraints controlling axes matching and qualification behavior */
|
|
61
|
-
interface DiscoverColumnsConstraints {
|
|
63
|
+
export interface DiscoverColumnsConstraints {
|
|
62
64
|
/** Allow source (query) axes that have no match in the hit column */
|
|
63
65
|
allowFloatingSourceAxes: boolean;
|
|
64
66
|
/** Allow hit column axes that have no match in the source (query) */
|
|
@@ -69,7 +71,7 @@ interface DiscoverColumnsConstraints {
|
|
|
69
71
|
allowHitQualifications: boolean;
|
|
70
72
|
}
|
|
71
73
|
/** Request for discovering columns compatible with a given axes integration */
|
|
72
|
-
interface DiscoverColumnsRequest {
|
|
74
|
+
export interface DiscoverColumnsRequest {
|
|
73
75
|
/** Include columns matching these selectors (OR-ed); empty or omitted matches all columns */
|
|
74
76
|
includeColumns?: MultiColumnSelector[];
|
|
75
77
|
/** Exclude columns matching these selectors (OR-ed); applied after include filter */
|
|
@@ -82,7 +84,7 @@ interface DiscoverColumnsRequest {
|
|
|
82
84
|
constraints: DiscoverColumnsConstraints;
|
|
83
85
|
}
|
|
84
86
|
/** Linker step: traversal through a linker column */
|
|
85
|
-
interface DiscoverColumnsLinkerStep {
|
|
87
|
+
export interface DiscoverColumnsLinkerStep {
|
|
86
88
|
type: "linker";
|
|
87
89
|
/** The linker column traversed in this step */
|
|
88
90
|
linker: PColumnIdAndSpec;
|
|
@@ -93,13 +95,13 @@ interface DiscoverColumnsLinkerStep {
|
|
|
93
95
|
* axes, so the inner-join narrows the key space to rows where the filter is
|
|
94
96
|
* present.
|
|
95
97
|
*/
|
|
96
|
-
interface DiscoverColumnsFilterStep {
|
|
98
|
+
export interface DiscoverColumnsFilterStep {
|
|
97
99
|
type: "filter";
|
|
98
100
|
/** The filter column applied in this step */
|
|
99
101
|
filter: PColumnIdAndSpec;
|
|
100
102
|
}
|
|
101
103
|
/** A step traversed during path-based column discovery. Discriminated by `type`. */
|
|
102
|
-
type DiscoverColumnsStepInfo = DiscoverColumnsLinkerStep | DiscoverColumnsFilterStep;
|
|
104
|
+
export type DiscoverColumnsStepInfo = DiscoverColumnsLinkerStep | DiscoverColumnsFilterStep;
|
|
103
105
|
/**
|
|
104
106
|
* Input to `buildQuery`: a terminal column plus an ordered
|
|
105
107
|
* path of wrapping steps (linker hops, filter joins). Produces a
|
|
@@ -117,28 +119,32 @@ type DiscoverColumnsStepInfo = DiscoverColumnsLinkerStep | DiscoverColumnsFilter
|
|
|
117
119
|
* Qualifications annotate the resulting outermost entry; they do not
|
|
118
120
|
* propagate into the inner query.
|
|
119
121
|
*/
|
|
120
|
-
type BuildQueryInput = {
|
|
121
|
-
/** Shape version marker — bumped only on breaking structural changes. */
|
|
122
|
-
readonly
|
|
123
|
-
|
|
122
|
+
export type BuildQueryInput = {
|
|
123
|
+
/** Shape version marker — bumped only on breaking structural changes. */
|
|
124
|
+
readonly version: "v1";
|
|
125
|
+
/** Terminal column id — the column actually returning data. */
|
|
126
|
+
readonly column: PObjectId;
|
|
127
|
+
/** Ordered path from source integration to `column`. Outermost first. */
|
|
128
|
+
readonly path?: DiscoverColumnsStepInfo[];
|
|
129
|
+
/** Axis qualifications attached to the resulting join entry. */
|
|
124
130
|
readonly qualifications?: AxisQualification[];
|
|
125
131
|
};
|
|
126
132
|
/** Qualifications info for a discover columns response mapping variant */
|
|
127
|
-
interface DiscoverColumnsResponseQualifications {
|
|
133
|
+
export interface DiscoverColumnsResponseQualifications {
|
|
128
134
|
/** Qualifications for each query (already-integrated) column set */
|
|
129
135
|
forQueries: AxisQualification[][];
|
|
130
136
|
/** Qualifications for the hit column */
|
|
131
137
|
forHit: AxisQualification[];
|
|
132
138
|
}
|
|
133
139
|
/** A single mapping variant describing how a hit column can be integrated */
|
|
134
|
-
interface DiscoverColumnsMappingVariant {
|
|
140
|
+
export interface DiscoverColumnsMappingVariant {
|
|
135
141
|
/** Full qualifications needed for integration */
|
|
136
142
|
qualifications: DiscoverColumnsResponseQualifications;
|
|
137
143
|
/** Distinctive (minimal) qualifications needed for integration */
|
|
138
144
|
distinctiveQualifications: DiscoverColumnsResponseQualifications;
|
|
139
145
|
}
|
|
140
146
|
/** A single hit in the discover columns response */
|
|
141
|
-
interface DiscoverColumnsResponseHit {
|
|
147
|
+
export interface DiscoverColumnsResponseHit {
|
|
142
148
|
/** The column that was found compatible */
|
|
143
149
|
hit: PColumnIdAndSpec;
|
|
144
150
|
/** Linker steps traversed to reach this hit; empty for direct matches */
|
|
@@ -147,23 +153,23 @@ interface DiscoverColumnsResponseHit {
|
|
|
147
153
|
mappingVariants: DiscoverColumnsMappingVariant[];
|
|
148
154
|
}
|
|
149
155
|
/** Response from discover columns */
|
|
150
|
-
interface DiscoverColumnsResponse {
|
|
156
|
+
export interface DiscoverColumnsResponse {
|
|
151
157
|
/** Columns that could be integrated and possible ways to integrate them */
|
|
152
158
|
hits: DiscoverColumnsResponseHit[];
|
|
153
159
|
}
|
|
154
160
|
/** Request for deleting an entry from a given axes integration */
|
|
155
|
-
interface DeleteColumnRequest {
|
|
161
|
+
export interface DeleteColumnRequest {
|
|
156
162
|
/** Already integrated axes with qualifications */
|
|
157
163
|
axes: ColumnAxesWithQualifications[];
|
|
158
164
|
/** Zero based index of the entry to be deleted */
|
|
159
165
|
delete: number;
|
|
160
166
|
}
|
|
161
167
|
/** Response from delete column */
|
|
162
|
-
interface DeleteColumnResponse {
|
|
168
|
+
export interface DeleteColumnResponse {
|
|
163
169
|
axes: ColumnAxesWithQualifications[];
|
|
164
170
|
}
|
|
165
171
|
/** Response from evaluating a query against a PFrame. */
|
|
166
|
-
type EvaluateQueryResponse = {
|
|
172
|
+
export type EvaluateQueryResponse = {
|
|
167
173
|
/**
|
|
168
174
|
* The table specification describing the structure of the query result,
|
|
169
175
|
* including all axes and columns that will be present in the output.
|
|
@@ -176,7 +182,7 @@ type EvaluateQueryResponse = {
|
|
|
176
182
|
dataQuery: DataQuery;
|
|
177
183
|
};
|
|
178
184
|
/** Handle to a spec-only PFrame (no data, synchronous operations). */
|
|
179
|
-
type SpecFrameHandle = Branded<string, "SpecFrameHandle">;
|
|
185
|
+
export type SpecFrameHandle = Branded<string, "SpecFrameHandle">;
|
|
180
186
|
/**
|
|
181
187
|
* Synchronous driver for spec-level PFrame operations.
|
|
182
188
|
*
|
|
@@ -184,7 +190,7 @@ type SpecFrameHandle = Branded<string, "SpecFrameHandle">;
|
|
|
184
190
|
* operates on column specifications only. All methods are synchronous
|
|
185
191
|
* because the underlying WASM PFrame computes results immediately.
|
|
186
192
|
*/
|
|
187
|
-
interface PFrameSpecDriver {
|
|
193
|
+
export interface PFrameSpecDriver {
|
|
188
194
|
/** Create a spec-only PFrame from column specs. Returns a pool entry with handle and unref. */
|
|
189
195
|
createSpecFrame(specs: Record<string, PColumnSpec>): PoolEntry<SpecFrameHandle>;
|
|
190
196
|
/** List all columns currently registered in the frame. */
|
|
@@ -222,5 +228,4 @@ interface PFrameSpecDriver {
|
|
|
222
228
|
}): DataQueryBooleanExpression[];
|
|
223
229
|
}
|
|
224
230
|
//#endregion
|
|
225
|
-
export { BuildQueryInput, ColumnAxesWithQualifications, DeleteColumnRequest, DeleteColumnResponse, DiscoverColumnsConstraints, DiscoverColumnsFilterStep, DiscoverColumnsLinkerStep, DiscoverColumnsMappingVariant, DiscoverColumnsRequest, DiscoverColumnsResponse, DiscoverColumnsResponseHit, DiscoverColumnsResponseQualifications, DiscoverColumnsStepInfo, EvaluateQueryResponse, MatcherMap, MultiAxisSelector, MultiColumnSelector, PFrameSpecDriver, SpecFrameHandle, StringMatcher };
|
|
226
231
|
//# sourceMappingURL=spec_driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec_driver.d.ts","names":[],"sources":["../../../src/drivers/pframe/spec_driver.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"spec_driver.d.ts","names":[],"sources":["../../../src/drivers/pframe/spec_driver.ts"],"mappings":";;;;;;;;;;;;;;YAmBY;EAEN;EACA;;EAGA;EACA;;;YAIM,aAAa,eAAe;;iBAGvB;;WAEN,OAAO;;WAEP,OAAO;;WAEP,SAAS;;WAET,gBAAgB;;WAEhB,cAAc;;;;iBAKR;;WAEN,OAAO;;WAEP,OAAO;;WAEP,SAAS;;WAET,gBAAgB;;WAEhB,cAAc;;WAEd,OAAO;;WAEP;;;iBAIM;;EAEf,UAAU;;EAEV,gBAAgB;;;iBAID;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf,iBAAiB;;EAEjB,iBAAiB;;EAEjB,MAAM;;EAEN;;EAEA,aAAa;;;iBAIE;EACf;;EAEA,QAAQ;;;;;;;;iBASO;EACf;;EAEA,QAAQ;;;YAIE,0BAA0B,4BAA4B;;;;;;;;;;;;;;;;;;YAmBtD;;WAED;;WAEA,QAAQ;;WAER,OAAO;;WAEP,iBAAiB;;;iBAIX;;EAEf,YAAY;;EAEZ,QAAQ;;;iBAIO;;EAEf,gBAAgB;;EAEhB,2BAA2B;;;iBAIZ;;EAEf,KAAK;;EAEL,MAAM;;EAEN,iBAAiB;;;iBAIF;;EAEf,MAAM;;;iBAIS;;EAEf,MAAM;;EAEN;;;iBAIe;EACf,MAAM;;;YAII;;;;;EAKV,WAAW;;;;;EAKX,WAAW;;;YAID,kBAAkB;;;;;;;;iBASb;;EAEf,gBAAgB,OAAO,eAAe,eAAe,UAAU;;EAG/D,YAAY,QAAQ,kBAAkB;;EAGtC,gBACE,QAAQ,iBACR,SAAS,yBACR;;EAGH,aAAa,QAAQ,iBAAiB,SAAS,sBAAsB;;EAGrE,cAAc,QAAQ,iBAAiB,SAAS,YAAY;;;;;;;;EAS5D,WAAW,OAAO,kBAAkB;;EAGpC,WAAW,MAAM,WAAW;;EAG5B,aAAa,KAAK,SAAS;;EAG3B,SAAS,MAAM,UAAU,UAAU;;EAGnC,gBAAgB,WAAW,oBAAoB,UAAU;;;;;;EAOzD,qBAAqB;IACnB,WAAW;IACX,SAAS;MACP"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { PTableColumnSpec } from "./table_common.js";
|
|
2
2
|
import { PTableShape, PTableVector, TableRange } from "./data_types.js";
|
|
3
|
-
|
|
4
3
|
//#region src/drivers/pframe/table.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Table view.
|
|
7
6
|
* */
|
|
8
|
-
interface PTable {
|
|
7
|
+
export interface PTable {
|
|
9
8
|
/** Unified table shape */
|
|
10
9
|
getShape(): Promise<PTableShape>;
|
|
11
10
|
/**
|
|
@@ -29,5 +28,4 @@ interface PTable {
|
|
|
29
28
|
getData(columnIndices: number[], range?: TableRange): Promise<PTableVector[]>;
|
|
30
29
|
}
|
|
31
30
|
//#endregion
|
|
32
|
-
export { PTable };
|
|
33
31
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/drivers/pframe/table.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/drivers/pframe/table.ts"],"mappings":";;;;;;iBAMiB;;EAEf,YAAY,QAAQ;;;;;;;;;;EAWpB,WAAW,QAAQ;;;;;;;;;EAUnB,QAAQ,yBAAyB,QAAQ,aAAa,QAAQ"}
|
|
@@ -4,9 +4,10 @@ import { PTableVector } from "./data_types.js";
|
|
|
4
4
|
import { PColumnValues } from "./data_info.js";
|
|
5
5
|
import { SpecQuery, SpecQueryJoinEntry } from "./query/query_spec.js";
|
|
6
6
|
import { PObjectId } from "../../pool/spec.js";
|
|
7
|
+
import "../../pool/index.js";
|
|
7
8
|
//#region src/drivers/pframe/table_calculate.d.ts
|
|
8
9
|
/** Defines a terminal column node in the join request tree */
|
|
9
|
-
interface ColumnJoinEntry<Col> {
|
|
10
|
+
export interface ColumnJoinEntry<Col> {
|
|
10
11
|
/** Node type discriminator */
|
|
11
12
|
readonly type: "column";
|
|
12
13
|
/** Local column */
|
|
@@ -16,7 +17,7 @@ interface ColumnJoinEntry<Col> {
|
|
|
16
17
|
* Axis filter slicing target axis from column axes.
|
|
17
18
|
* If the axis has parents or is a parent, slicing cannot be applied (an error will be thrown).
|
|
18
19
|
* */
|
|
19
|
-
interface ConstantAxisFilter {
|
|
20
|
+
export interface ConstantAxisFilter {
|
|
20
21
|
/** Filter type discriminator */
|
|
21
22
|
readonly type: "constant";
|
|
22
23
|
/** Index of axis to slice (zero-based) */
|
|
@@ -25,7 +26,7 @@ interface ConstantAxisFilter {
|
|
|
25
26
|
readonly constant: string | number;
|
|
26
27
|
}
|
|
27
28
|
/** Defines a terminal column node in the join request tree */
|
|
28
|
-
interface SlicedColumnJoinEntry<Col> {
|
|
29
|
+
export interface SlicedColumnJoinEntry<Col> {
|
|
29
30
|
/** Node type discriminator */
|
|
30
31
|
readonly type: "slicedColumn";
|
|
31
32
|
/** Local column */
|
|
@@ -35,7 +36,7 @@ interface SlicedColumnJoinEntry<Col> {
|
|
|
35
36
|
/** Non-empty list of axis filters */
|
|
36
37
|
readonly axisFilters: ConstantAxisFilter[];
|
|
37
38
|
}
|
|
38
|
-
interface ArtificialColumnJoinEntry<Col> {
|
|
39
|
+
export interface ArtificialColumnJoinEntry<Col> {
|
|
39
40
|
/** Node type discriminator */
|
|
40
41
|
readonly type: "artificialColumn";
|
|
41
42
|
/** Column definition */
|
|
@@ -46,7 +47,7 @@ interface ArtificialColumnJoinEntry<Col> {
|
|
|
46
47
|
readonly axesIndices: number[];
|
|
47
48
|
}
|
|
48
49
|
/** Defines a terminal column node in the join request tree */
|
|
49
|
-
interface InlineColumnJoinEntry {
|
|
50
|
+
export interface InlineColumnJoinEntry {
|
|
50
51
|
/** Node type discriminator */
|
|
51
52
|
readonly type: "inlineColumn";
|
|
52
53
|
/** Column definition */
|
|
@@ -56,7 +57,7 @@ interface InlineColumnJoinEntry {
|
|
|
56
57
|
* Defines a join request tree node that will output only records present in
|
|
57
58
|
* all child nodes ({@link entries}).
|
|
58
59
|
* */
|
|
59
|
-
interface InnerJoin<Col> {
|
|
60
|
+
export interface InnerJoin<Col> {
|
|
60
61
|
/** Node type discriminator */
|
|
61
62
|
readonly type: "inner";
|
|
62
63
|
/** Child nodes to be inner joined */
|
|
@@ -67,7 +68,7 @@ interface InnerJoin<Col> {
|
|
|
67
68
|
* least in one of the child nodes ({@link entries}), values for those PColumns
|
|
68
69
|
* that lack corresponding combinations of axis values will be null.
|
|
69
70
|
* */
|
|
70
|
-
interface FullJoin<Col> {
|
|
71
|
+
export interface FullJoin<Col> {
|
|
71
72
|
/** Node type discriminator */
|
|
72
73
|
readonly type: "full";
|
|
73
74
|
/** Child nodes to be fully outer joined */
|
|
@@ -83,7 +84,7 @@ interface FullJoin<Col> {
|
|
|
83
84
|
* This node can be thought as a chain of SQL LEFT JOIN operations starting from
|
|
84
85
|
* the {@link primary} node and adding {@link secondary} nodes one by one.
|
|
85
86
|
* */
|
|
86
|
-
interface OuterJoin<Col> {
|
|
87
|
+
export interface OuterJoin<Col> {
|
|
87
88
|
/** Node type discriminator */
|
|
88
89
|
readonly type: "outer";
|
|
89
90
|
/** Primes the join operation. Left part of LEFT JOIN. */
|
|
@@ -99,79 +100,79 @@ interface OuterJoin<Col> {
|
|
|
99
100
|
* the PColumns. Common axis are those axis which have equal {@link AxisId} derived
|
|
100
101
|
* from the columns axes spec.
|
|
101
102
|
* */
|
|
102
|
-
type JoinEntry<Col> = ColumnJoinEntry<Col> | SlicedColumnJoinEntry<Col> | ArtificialColumnJoinEntry<Col> | InlineColumnJoinEntry | InnerJoin<Col> | FullJoin<Col> | OuterJoin<Col>;
|
|
103
|
+
export type JoinEntry<Col> = ColumnJoinEntry<Col> | SlicedColumnJoinEntry<Col> | ArtificialColumnJoinEntry<Col> | InlineColumnJoinEntry | InnerJoin<Col> | FullJoin<Col> | OuterJoin<Col>;
|
|
103
104
|
/** Container representing whole data stored in specific PTable column. */
|
|
104
|
-
interface FullPTableColumnData {
|
|
105
|
+
export interface FullPTableColumnData {
|
|
105
106
|
/** Unified spec */
|
|
106
107
|
readonly spec: PTableColumnSpec;
|
|
107
108
|
/** Data */
|
|
108
109
|
readonly data: PTableVector;
|
|
109
110
|
}
|
|
110
|
-
interface SingleValueIsNAPredicate {
|
|
111
|
+
export interface SingleValueIsNAPredicate {
|
|
111
112
|
/** Comparison operator */
|
|
112
113
|
readonly operator: "IsNA";
|
|
113
114
|
}
|
|
114
|
-
interface SingleValueEqualPredicate {
|
|
115
|
+
export interface SingleValueEqualPredicate {
|
|
115
116
|
/** Comparison operator */
|
|
116
117
|
readonly operator: "Equal";
|
|
117
118
|
/** Reference value, NA values will not match */
|
|
118
119
|
readonly reference: string | number;
|
|
119
120
|
}
|
|
120
|
-
interface SingleValueInSetPredicate {
|
|
121
|
+
export interface SingleValueInSetPredicate {
|
|
121
122
|
/** Comparison operator */
|
|
122
123
|
readonly operator: "InSet";
|
|
123
124
|
/** Reference values, NA values will not match */
|
|
124
125
|
readonly references: (string | number)[];
|
|
125
126
|
}
|
|
126
|
-
interface SingleValueIEqualPredicate {
|
|
127
|
+
export interface SingleValueIEqualPredicate {
|
|
127
128
|
/** Comparison operator (case insensitive) */
|
|
128
129
|
readonly operator: "IEqual";
|
|
129
130
|
/** Reference value, NA values will not match */
|
|
130
131
|
readonly reference: string;
|
|
131
132
|
}
|
|
132
|
-
interface SingleValueLessPredicate {
|
|
133
|
+
export interface SingleValueLessPredicate {
|
|
133
134
|
/** Comparison operator */
|
|
134
135
|
readonly operator: "Less";
|
|
135
136
|
/** Reference value, NA values will not match */
|
|
136
137
|
readonly reference: string | number;
|
|
137
138
|
}
|
|
138
|
-
interface SingleValueLessOrEqualPredicate {
|
|
139
|
+
export interface SingleValueLessOrEqualPredicate {
|
|
139
140
|
/** Comparison operator */
|
|
140
141
|
readonly operator: "LessOrEqual";
|
|
141
142
|
/** Reference value, NA values will not match */
|
|
142
143
|
readonly reference: string | number;
|
|
143
144
|
}
|
|
144
|
-
interface SingleValueGreaterPredicate {
|
|
145
|
+
export interface SingleValueGreaterPredicate {
|
|
145
146
|
/** Comparison operator */
|
|
146
147
|
readonly operator: "Greater";
|
|
147
148
|
/** Reference value, NA values will not match */
|
|
148
149
|
readonly reference: string | number;
|
|
149
150
|
}
|
|
150
|
-
interface SingleValueGreaterOrEqualPredicate {
|
|
151
|
+
export interface SingleValueGreaterOrEqualPredicate {
|
|
151
152
|
/** Comparison operator */
|
|
152
153
|
readonly operator: "GreaterOrEqual";
|
|
153
154
|
/** Reference value, NA values will not match */
|
|
154
155
|
readonly reference: string | number;
|
|
155
156
|
}
|
|
156
|
-
interface SingleValueStringContainsPredicate {
|
|
157
|
+
export interface SingleValueStringContainsPredicate {
|
|
157
158
|
/** Comparison operator */
|
|
158
159
|
readonly operator: "StringContains";
|
|
159
160
|
/** Reference substring, NA values are skipped */
|
|
160
161
|
readonly substring: string;
|
|
161
162
|
}
|
|
162
|
-
interface SingleValueStringIContainsPredicate {
|
|
163
|
+
export interface SingleValueStringIContainsPredicate {
|
|
163
164
|
/** Comparison operator (case insensitive) */
|
|
164
165
|
readonly operator: "StringIContains";
|
|
165
166
|
/** Reference substring, NA values are skipped */
|
|
166
167
|
readonly substring: string;
|
|
167
168
|
}
|
|
168
|
-
interface SingleValueMatchesPredicate {
|
|
169
|
+
export interface SingleValueMatchesPredicate {
|
|
169
170
|
/** Comparison operator */
|
|
170
171
|
readonly operator: "Matches";
|
|
171
172
|
/** Regular expression, NA values are skipped */
|
|
172
173
|
readonly regex: string;
|
|
173
174
|
}
|
|
174
|
-
interface SingleValueStringContainsFuzzyPredicate {
|
|
175
|
+
export interface SingleValueStringContainsFuzzyPredicate {
|
|
175
176
|
/** Comparison operator */
|
|
176
177
|
readonly operator: "StringContainsFuzzy";
|
|
177
178
|
/** Reference value, NA values are skipped */
|
|
@@ -195,7 +196,7 @@ interface SingleValueStringContainsFuzzyPredicate {
|
|
|
195
196
|
*/
|
|
196
197
|
readonly wildcard?: string;
|
|
197
198
|
}
|
|
198
|
-
interface SingleValueStringIContainsFuzzyPredicate {
|
|
199
|
+
export interface SingleValueStringIContainsFuzzyPredicate {
|
|
199
200
|
/** Comparison operator (case insensitive) */
|
|
200
201
|
readonly operator: "StringIContainsFuzzy";
|
|
201
202
|
/** Reference value, NA values are skipped */
|
|
@@ -219,33 +220,33 @@ interface SingleValueStringIContainsFuzzyPredicate {
|
|
|
219
220
|
*/
|
|
220
221
|
readonly wildcard?: string;
|
|
221
222
|
}
|
|
222
|
-
interface SingleValueNotPredicateV2 {
|
|
223
|
+
export interface SingleValueNotPredicateV2 {
|
|
223
224
|
/** Comparison operator */
|
|
224
225
|
readonly operator: "Not";
|
|
225
226
|
/** Operand to negate */
|
|
226
227
|
readonly operand: SingleValuePredicateV2;
|
|
227
228
|
}
|
|
228
|
-
interface SingleValueAndPredicateV2 {
|
|
229
|
+
export interface SingleValueAndPredicateV2 {
|
|
229
230
|
/** Comparison operator */
|
|
230
231
|
readonly operator: "And";
|
|
231
232
|
/** Operands to combine */
|
|
232
233
|
readonly operands: SingleValuePredicateV2[];
|
|
233
234
|
}
|
|
234
|
-
interface SingleValueOrPredicateV2 {
|
|
235
|
+
export interface SingleValueOrPredicateV2 {
|
|
235
236
|
/** Comparison operator */
|
|
236
237
|
readonly operator: "Or";
|
|
237
238
|
/** Operands to combine */
|
|
238
239
|
readonly operands: SingleValuePredicateV2[];
|
|
239
240
|
}
|
|
240
241
|
/** Filtering predicate for a single axis or column value */
|
|
241
|
-
type SingleValuePredicateV2 = SingleValueIsNAPredicate | SingleValueEqualPredicate | SingleValueInSetPredicate | SingleValueLessPredicate | SingleValueLessOrEqualPredicate | SingleValueGreaterPredicate | SingleValueGreaterOrEqualPredicate | SingleValueStringContainsPredicate | SingleValueMatchesPredicate | SingleValueStringContainsFuzzyPredicate | SingleValueNotPredicateV2 | SingleValueAndPredicateV2 | SingleValueOrPredicateV2 | SingleValueIEqualPredicate | SingleValueStringIContainsPredicate | SingleValueStringIContainsFuzzyPredicate;
|
|
242
|
+
export type SingleValuePredicateV2 = SingleValueIsNAPredicate | SingleValueEqualPredicate | SingleValueInSetPredicate | SingleValueLessPredicate | SingleValueLessOrEqualPredicate | SingleValueGreaterPredicate | SingleValueGreaterOrEqualPredicate | SingleValueStringContainsPredicate | SingleValueMatchesPredicate | SingleValueStringContainsFuzzyPredicate | SingleValueNotPredicateV2 | SingleValueAndPredicateV2 | SingleValueOrPredicateV2 | SingleValueIEqualPredicate | SingleValueStringIContainsPredicate | SingleValueStringIContainsFuzzyPredicate;
|
|
242
243
|
/**
|
|
243
244
|
* Filter PTable records based on specific axis or column value. If this is an
|
|
244
245
|
* axis value filter and the axis is part of a partitioning key in some of the
|
|
245
246
|
* source PColumns, the filter will be pushed down to those columns, so only
|
|
246
247
|
* specific partitions will be retrieved from the remote storage.
|
|
247
248
|
* */
|
|
248
|
-
interface PTableRecordSingleValueFilterV2 {
|
|
249
|
+
export interface PTableRecordSingleValueFilterV2 {
|
|
249
250
|
/** Filter type discriminator */
|
|
250
251
|
readonly type: "bySingleColumnV2";
|
|
251
252
|
/** Target axis selector to examine values from */
|
|
@@ -254,15 +255,18 @@ interface PTableRecordSingleValueFilterV2 {
|
|
|
254
255
|
readonly predicate: SingleValuePredicateV2;
|
|
255
256
|
}
|
|
256
257
|
/** Generic PTable records filter */
|
|
257
|
-
type PTableRecordFilter = PTableRecordSingleValueFilterV2;
|
|
258
|
+
export type PTableRecordFilter = PTableRecordSingleValueFilterV2;
|
|
258
259
|
/** Sorting parameters for a PTable. */
|
|
259
|
-
type PTableSorting = {
|
|
260
|
-
/** Unified column identifier */
|
|
261
|
-
readonly
|
|
260
|
+
export type PTableSorting = {
|
|
261
|
+
/** Unified column identifier */
|
|
262
|
+
readonly column: PTableColumnId;
|
|
263
|
+
/** Sorting order */
|
|
264
|
+
readonly ascending: boolean;
|
|
265
|
+
/** Sorting in respect to NA and absent values */
|
|
262
266
|
readonly naAndAbsentAreLeastValues: boolean;
|
|
263
267
|
};
|
|
264
268
|
/** Information required to instantiate a PTable. */
|
|
265
|
-
interface PTableDef<Col> {
|
|
269
|
+
export interface PTableDef<Col> {
|
|
266
270
|
/** Join tree to populate the PTable */
|
|
267
271
|
readonly src: JoinEntry<Col>;
|
|
268
272
|
/** Partition filters */
|
|
@@ -273,27 +277,32 @@ interface PTableDef<Col> {
|
|
|
273
277
|
readonly sorting: PTableSorting[];
|
|
274
278
|
}
|
|
275
279
|
/** Information required to instantiate a PTable (V2, query-based). */
|
|
276
|
-
interface PTableDefV2<Col> {
|
|
280
|
+
export interface PTableDefV2<Col> {
|
|
277
281
|
/** Pre-built query spec describing joins, filters and sorting */
|
|
278
282
|
readonly query: SpecQuery<Col>;
|
|
279
283
|
}
|
|
280
284
|
/** Request to create and retrieve entirety of data of PTable. */
|
|
281
|
-
type CalculateTableDataRequest<Col> = {
|
|
282
|
-
/** Join tree to populate the PTable */
|
|
283
|
-
readonly
|
|
285
|
+
export type CalculateTableDataRequest<Col> = {
|
|
286
|
+
/** Join tree to populate the PTable */
|
|
287
|
+
readonly src: JoinEntry<Col>;
|
|
288
|
+
/** Record filters */
|
|
289
|
+
readonly filters: PTableRecordFilter[];
|
|
290
|
+
/** Table sorting */
|
|
284
291
|
readonly sorting: PTableSorting[];
|
|
285
292
|
};
|
|
286
293
|
/** Response for {@link CalculateTableDataRequest} */
|
|
287
|
-
type CalculateTableDataResponse = FullPTableColumnData[];
|
|
288
|
-
declare function mapPTableDef<C1, C2>(def: PTableDef<C1>, cb: (c: C1) => C2): PTableDef<C2>;
|
|
289
|
-
declare function sortPTableDef(def: PTableDef<PObjectId>): PTableDef<PObjectId>;
|
|
290
|
-
declare function mapPTableDefV2<C1, C2>(def: PTableDefV2<C1>, visitor: {
|
|
291
|
-
/** Transform column references in leaf nodes (column, sparseToDenseColumn). */
|
|
292
|
-
|
|
294
|
+
export type CalculateTableDataResponse = FullPTableColumnData[];
|
|
295
|
+
export declare function mapPTableDef<C1, C2>(def: PTableDef<C1>, cb: (c: C1) => C2): PTableDef<C2>;
|
|
296
|
+
export declare function sortPTableDef(def: PTableDef<PObjectId>): PTableDef<PObjectId>;
|
|
297
|
+
export declare function mapPTableDefV2<C1, C2>(def: PTableDefV2<C1>, visitor: {
|
|
298
|
+
/** Transform column references in leaf nodes (column, sparseToDenseColumn). */
|
|
299
|
+
column: (c: C1) => C2;
|
|
300
|
+
/** Visit a node after its children have been traversed. */
|
|
301
|
+
node?: (node: SpecQuery<C2>) => SpecQuery<C2>;
|
|
302
|
+
/** Visit a join entry after its inner query has been traversed. */
|
|
293
303
|
joinEntry?: (entry: SpecQueryJoinEntry<C2>) => SpecQueryJoinEntry<C2>;
|
|
294
304
|
}): PTableDefV2<C2>;
|
|
295
|
-
declare function mapJoinEntry<C1, C2>(entry: JoinEntry<C1>, cb: (c: C1) => C2): JoinEntry<C2>;
|
|
296
|
-
declare function sortJoinEntry(entry: JoinEntry<PObjectId>): JoinEntry<PObjectId>;
|
|
305
|
+
export declare function mapJoinEntry<C1, C2>(entry: JoinEntry<C1>, cb: (c: C1) => C2): JoinEntry<C2>;
|
|
306
|
+
export declare function sortJoinEntry(entry: JoinEntry<PObjectId>): JoinEntry<PObjectId>;
|
|
297
307
|
//#endregion
|
|
298
|
-
export { ArtificialColumnJoinEntry, CalculateTableDataRequest, CalculateTableDataResponse, ColumnJoinEntry, ConstantAxisFilter, FullJoin, FullPTableColumnData, InlineColumnJoinEntry, InnerJoin, JoinEntry, OuterJoin, PTableDef, PTableDefV2, PTableRecordFilter, PTableRecordSingleValueFilterV2, PTableSorting, SingleValueAndPredicateV2, SingleValueEqualPredicate, SingleValueGreaterOrEqualPredicate, SingleValueGreaterPredicate, SingleValueIEqualPredicate, SingleValueInSetPredicate, SingleValueIsNAPredicate, SingleValueLessOrEqualPredicate, SingleValueLessPredicate, SingleValueMatchesPredicate, SingleValueNotPredicateV2, SingleValueOrPredicateV2, SingleValuePredicateV2, SingleValueStringContainsFuzzyPredicate, SingleValueStringContainsPredicate, SingleValueStringIContainsFuzzyPredicate, SingleValueStringIContainsPredicate, SlicedColumnJoinEntry, mapJoinEntry, mapPTableDef, mapPTableDefV2, sortJoinEntry, sortPTableDef };
|
|
299
308
|
//# sourceMappingURL=table_calculate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table_calculate.d.ts","names":[],"sources":["../../../src/drivers/pframe/table_calculate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table_calculate.d.ts","names":[],"sources":["../../../src/drivers/pframe/table_calculate.ts"],"mappings":";;;;;;;;;iBAWiB,gBAAgB;;WAEtB;;WAGA,QAAQ;;;;;;iBAOF;;WAEN;;WAGA;;WAGA;;;iBAIM,sBAAsB;;WAE5B;;WAGA,QAAQ;;WAGR,OAAO;;WAGP,aAAa;;iBAGP,0BAA0B;;WAEhC;;WAGA,QAAQ;;WAGR,OAAO;;WAGP;;;iBAIM;;WAEN;;WAGA,QAAQ,QAAQ;;;;;;iBAOV,UAAU;;WAEhB;;WAGA,SAAS,UAAU;;;;;;;iBAQb,SAAS;;WAEf;;WAGA,SAAS,UAAU;;;;;;;;;;;;iBAab,UAAU;;WAEhB;;WAGA,SAAS,UAAU;;;WAInB,WAAW,UAAU;;;;;;;;;YAUpB,UAAU,OAClB,gBAAgB,OAChB,sBAAsB,OACtB,0BAA0B,OAC1B,wBACA,UAAU,OACV,SAAS,OACT,UAAU;;iBAGG;;WAEN,MAAM;;WAGN,MAAM;;iBAGA;;WAEN;;iBAGM;;WAEN;;WAGA;;iBAGM;;WAEN;;WAGA;;iBAGM;;WAEN;;WAGA;;iBAGM;;WAEN;;WAGA;;iBAGM;;WAEN;;WAGA;;iBAGM;;WAEN;;WAGA;;iBAGM;;WAEN;;WAGA;;iBAGM;;WAEN;;WAGA;;iBAGM;;WAEN;;WAGA;;iBAGM;;WAEN;;WAGA;;iBAGM;;WAEN;;WAGA;;;;;;;;;;;WAYA;;WAGA;;;;;WAMA;;iBAGM;;WAEN;;WAGA;;;;;;;;;;;WAYA;;WAGA;;;;;WAMA;;iBAGM;;WAEN;;WAGA,SAAS;;iBAGH;;WAEN;;WAGA,UAAU;;iBAGJ;;WAEN;;WAGA,UAAU;;;YAIT,yBACR,2BACA,4BACA,4BACA,2BACA,kCACA,8BACA,qCACA,qCACA,8BACA,0CACA,4BACA,4BACA,2BACA,6BACA,sCACA;;;;;;;iBAQa;;WAEN;;WAGA,QAAQ;;WAGR,WAAW;;;YAIV,qBAAqB;;YAGrB;;WAED,QAAQ;;WAGR;;WAGA;;;iBAIM,UAAU;;WAEhB,KAAK,UAAU;;WAGf,kBAAkB;;WAGlB,SAAS;;WAGT,SAAS;;;iBAIH,YAAY;;WAElB,OAAO,UAAU;;;YAIhB,0BAA0B;;WAE3B,KAAK,UAAU;;WAGf,SAAS;;WAGT,SAAS;;;YAIR,6BAA6B;wBAEzB,aAAa,IAAI,IAAI,KAAK,UAAU,KAAK,KAAK,GAAG,OAAO,KAAK,UAAU;wBAIvE,cAAc,KAAK,UAAU,aAAa,UAAU;wBAsBpD,eAAe,IAAI,IACjC,KAAK,YAAY,KACjB;;EAEE,SAAS,GAAG,OAAO;;EAEnB,QAAQ,MAAM,UAAU,QAAQ,UAAU;;EAE1C,aAAa,OAAO,mBAAmB,QAAQ,mBAAmB;IAEnE,YAAY;wBAIC,aAAa,IAAI,IAAI,OAAO,UAAU,KAAK,KAAK,GAAG,OAAO,KAAK,UAAU;wBA0FzE,cAAc,OAAO,UAAU,aAAa,UAAU"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { AxisId, AxisSpec, PColumnSpec } from "./spec/spec.js";
|
|
2
2
|
import { ColumnUniversalId } from "./spec/ids.js";
|
|
3
|
-
|
|
4
3
|
//#region src/drivers/pframe/table_common.d.ts
|
|
5
|
-
type PTableColumnSpecAxis = {
|
|
4
|
+
export type PTableColumnSpecAxis = {
|
|
6
5
|
type: "axis";
|
|
7
6
|
id: AxisId;
|
|
8
7
|
spec: AxisSpec;
|
|
9
8
|
};
|
|
10
|
-
type PTableColumnSpecColumn = {
|
|
9
|
+
export type PTableColumnSpecColumn = {
|
|
11
10
|
type: "column";
|
|
12
11
|
/**
|
|
13
12
|
* Leaf column id as it appears in the SpecQuery — may be a rich
|
|
@@ -19,18 +18,18 @@ type PTableColumnSpecColumn = {
|
|
|
19
18
|
spec: PColumnSpec;
|
|
20
19
|
};
|
|
21
20
|
/** Unified spec object for axes and columns */
|
|
22
|
-
type PTableColumnSpec = PTableColumnSpecAxis | PTableColumnSpecColumn;
|
|
23
|
-
type PTableColumnIdAxis = {
|
|
21
|
+
export type PTableColumnSpec = PTableColumnSpecAxis | PTableColumnSpecColumn;
|
|
22
|
+
export type PTableColumnIdAxis = {
|
|
24
23
|
type: "axis";
|
|
25
24
|
id: AxisId;
|
|
26
25
|
};
|
|
27
|
-
type PTableColumnIdColumn = {
|
|
28
|
-
type: "column";
|
|
26
|
+
export type PTableColumnIdColumn = {
|
|
27
|
+
type: "column";
|
|
28
|
+
/** @see PTableColumnSpecColumn.id */
|
|
29
29
|
id: ColumnUniversalId;
|
|
30
30
|
};
|
|
31
31
|
/** Unified PTable column identifier */
|
|
32
|
-
type PTableColumnId = PTableColumnIdAxis | PTableColumnIdColumn;
|
|
33
|
-
declare function getPTableColumnId(spec: PTableColumnSpec): PTableColumnId;
|
|
32
|
+
export type PTableColumnId = PTableColumnIdAxis | PTableColumnIdColumn;
|
|
33
|
+
export declare function getPTableColumnId(spec: PTableColumnSpec): PTableColumnId;
|
|
34
34
|
//#endregion
|
|
35
|
-
export { PTableColumnId, PTableColumnIdAxis, PTableColumnIdColumn, PTableColumnSpec, PTableColumnSpecAxis, PTableColumnSpecColumn, getPTableColumnId };
|
|
36
35
|
//# sourceMappingURL=table_common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table_common.d.ts","names":[],"sources":["../../../src/drivers/pframe/table_common.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table_common.d.ts","names":[],"sources":["../../../src/drivers/pframe/table_common.ts"],"mappings":";;;YAGY;EACV;EACA,IAAI;EACJ,MAAM;;YAGI;EACV;;;;;;;EAOA,IAAI;EACJ,MAAM;;;YAII,mBAAmB,uBAAuB;YAE1C;EACV;EACA,IAAI;;YAGM;EACV;;EAEA,IAAI;;;YAIM,iBAAiB,qBAAqB;wBAElC,kBAAkB,MAAM,mBAAmB"}
|
|
@@ -2,9 +2,10 @@ import { AxisId } from "./spec/spec.js";
|
|
|
2
2
|
import { PTableVector } from "./data_types.js";
|
|
3
3
|
import { PTableRecordFilter } from "./table_calculate.js";
|
|
4
4
|
import { PObjectId } from "../../pool/spec.js";
|
|
5
|
+
import "../../pool/index.js";
|
|
5
6
|
//#region src/drivers/pframe/unique_values.d.ts
|
|
6
7
|
/** Calculate set of unique values for a specific axis for the filtered set of records */
|
|
7
|
-
interface UniqueValuesRequest {
|
|
8
|
+
export interface UniqueValuesRequest {
|
|
8
9
|
/** Target axis id */
|
|
9
10
|
readonly columnId: PObjectId;
|
|
10
11
|
/** Target axis id, if not specified calculates unique column values */
|
|
@@ -14,12 +15,11 @@ interface UniqueValuesRequest {
|
|
|
14
15
|
/** Max number of values to return, if reached response will contain overflow flag */
|
|
15
16
|
readonly limit: number;
|
|
16
17
|
}
|
|
17
|
-
interface UniqueValuesResponse {
|
|
18
|
+
export interface UniqueValuesResponse {
|
|
18
19
|
/** Unique values */
|
|
19
20
|
readonly values: PTableVector;
|
|
20
21
|
/** True if limit was reached and response contain non-exhaustive list of values. */
|
|
21
22
|
readonly overflow: boolean;
|
|
22
23
|
}
|
|
23
24
|
//#endregion
|
|
24
|
-
export { UniqueValuesRequest, UniqueValuesResponse };
|
|
25
25
|
//# sourceMappingURL=unique_values.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unique_values.d.ts","names":[],"sources":["../../../src/drivers/pframe/unique_values.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"unique_values.d.ts","names":[],"sources":["../../../src/drivers/pframe/unique_values.ts"],"mappings":";;;;;;;iBAMiB;;WAEN,UAAU;;WAGV,OAAO;;WAGP,SAAS;;WAGT;;iBAGM;;WAEN,QAAQ;;WAGR"}
|
package/dist/drivers/upload.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/drivers/upload.d.ts
|
|
2
|
-
interface ImportProgress {
|
|
2
|
+
export interface ImportProgress {
|
|
3
3
|
done: boolean;
|
|
4
4
|
/** Status of indexing/uploading got from platforma gRPC. */
|
|
5
5
|
status?: ImportStatus;
|
|
@@ -14,12 +14,11 @@ interface ImportProgress {
|
|
|
14
14
|
lastError?: string;
|
|
15
15
|
}
|
|
16
16
|
/** Almost direct mapping from proto struct got from gRPC. */
|
|
17
|
-
interface ImportStatus {
|
|
17
|
+
export interface ImportStatus {
|
|
18
18
|
/** A float from 0 to 1 and is equal to bytesProcessed / bytesTotal. */
|
|
19
19
|
readonly progress: number;
|
|
20
20
|
readonly bytesProcessed?: number;
|
|
21
21
|
readonly bytesTotal?: number;
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
|
-
export { ImportProgress, ImportStatus };
|
|
25
24
|
//# sourceMappingURL=upload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","names":[],"sources":["../../src/drivers/upload.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"upload.d.ts","names":[],"sources":["../../src/drivers/upload.ts"],"mappings":";iBAAiB;EACf;;EAEA,SAAS;;WAEA;;EAET;;;;;EAKA;;;iBAIe;;WAEN;WACA;WACA"}
|