@milaboratories/pl-model-common 1.26.1 → 1.28.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.
@@ -0,0 +1,137 @@
1
+ import { AxisSpec, PColumnIdAndSpec, PColumnSpec, ValueType } from "./pframe/spec/spec.js";
2
+ import { SingleAxisSelector } from "./pframe/spec/selectors.js";
3
+ import "./pframe/index.js";
4
+ import { Branded } from "@milaboratories/helpers";
5
+
6
+ //#region src/drivers/pspec.d.ts
7
+ /** Matches a string value either exactly or by regex pattern */
8
+ type StringMatcher = {
9
+ type: "exact";
10
+ value: string;
11
+ } | {
12
+ type: "regex";
13
+ value: string;
14
+ };
15
+ /** Map of key to array of string matchers (OR-ed per key, AND-ed across keys) */
16
+ type MatcherMap = Record<string, StringMatcher[]>;
17
+ /** Selector for matching axes by various criteria */
18
+ interface MultiAxisSelector {
19
+ /** Match any of the axis types listed here */
20
+ readonly type?: ValueType[];
21
+ /** Match any of the axis names listed here */
22
+ readonly name?: StringMatcher[];
23
+ /** Match requires all the domains listed here */
24
+ readonly domain?: MatcherMap;
25
+ /** Match requires all the context domains listed here */
26
+ readonly contextDomain?: MatcherMap;
27
+ /** Match requires all the annotations listed here */
28
+ readonly annotations?: MatcherMap;
29
+ }
30
+ /** Column selector for discover columns request, matching columns by various criteria.
31
+ * Multiple selectors are OR-ed: a column matches if it satisfies any selector. */
32
+ interface MultiColumnSelector {
33
+ /** Match any of the value types listed here */
34
+ readonly type?: ValueType[];
35
+ /** Match any of the names listed here */
36
+ readonly name?: StringMatcher[];
37
+ /** Match requires all the domains listed here */
38
+ readonly domain?: MatcherMap;
39
+ /** Match requires all the context domains listed here */
40
+ readonly contextDomain?: MatcherMap;
41
+ /** Match requires all the annotations listed here */
42
+ readonly annotations?: MatcherMap;
43
+ /** Match any of the axis selectors listed here */
44
+ readonly axes?: MultiAxisSelector[];
45
+ /** When true (default), allows matching if only a subset of axes match */
46
+ readonly partialAxesMatch?: boolean;
47
+ }
48
+ /** Qualification applied to a single axis to make it compatible during integration. */
49
+ interface AxisQualification {
50
+ /** Axis selector identifying which axis is qualified. */
51
+ readonly axis: SingleAxisSelector;
52
+ /** Additional context domain entries applied to the axis. */
53
+ readonly contextDomain: Record<string, string>;
54
+ }
55
+ /** Qualifications needed for both query (already-integrated) columns and the hit column. */
56
+ interface ColumnAxesWithQualifications {
57
+ /** Already integrated (query) columns with their qualifications. */
58
+ axesSpec: AxisSpec[];
59
+ /** Qualifications for each already integrated (query) column. */
60
+ qualifications: AxisQualification[];
61
+ }
62
+ /** Fine-grained constraints controlling axes matching and qualification behavior */
63
+ interface DiscoverColumnsConstraints {
64
+ /** Allow source (query) axes that have no match in the hit column */
65
+ allowFloatingSourceAxes: boolean;
66
+ /** Allow hit column axes that have no match in the source (query) */
67
+ allowFloatingHitAxes: boolean;
68
+ /** Allow source (query) axes to be qualified (contextDomain extended) */
69
+ allowSourceQualifications: boolean;
70
+ /** Allow hit column axes to be qualified (contextDomain extended) */
71
+ allowHitQualifications: boolean;
72
+ }
73
+ /** Request for discovering columns compatible with a given axes integration */
74
+ interface DiscoverColumnsRequest {
75
+ /** Column filters (OR-ed); empty array matches all columns */
76
+ columnFilter?: MultiColumnSelector[];
77
+ /** Already integrated axes with qualifications */
78
+ axes: ColumnAxesWithQualifications[];
79
+ /** Constraints controlling axes matching and qualification behavior */
80
+ constraints: DiscoverColumnsConstraints;
81
+ }
82
+ /** Linker step: traversal through a linker column */
83
+ interface DiscoverColumnsLinkerStep {
84
+ type: "linker";
85
+ /** The linker column traversed in this step */
86
+ linker: PColumnIdAndSpec;
87
+ /** Axis qualifications produced when matching the linker's many-side axes */
88
+ qualifications: AxisQualification[];
89
+ }
90
+ /** A step traversed during path-based column discovery. Discriminated by `type`. */
91
+ type DiscoverColumnsStepInfo = DiscoverColumnsLinkerStep;
92
+ /** Qualifications info for a discover columns response mapping variant */
93
+ interface DiscoverColumnsResponseQualifications {
94
+ /** Qualifications for each query (already-integrated) column set */
95
+ forQueries: AxisQualification[][];
96
+ /** Qualifications for the hit column */
97
+ forHit: AxisQualification[];
98
+ }
99
+ /** A single mapping variant describing how a hit column can be integrated */
100
+ interface DiscoverColumnsMappingVariant {
101
+ /** Full qualifications needed for integration */
102
+ qualifications: DiscoverColumnsResponseQualifications;
103
+ /** Distinctive (minimal) qualifications needed for integration */
104
+ distinctiveQualifications: DiscoverColumnsResponseQualifications;
105
+ }
106
+ /** A single hit in the discover columns response */
107
+ interface DiscoverColumnsResponseHit {
108
+ /** The column that was found compatible */
109
+ hit: PColumnIdAndSpec;
110
+ /** Possible ways to integrate this column with the existing set */
111
+ mappingVariants: DiscoverColumnsMappingVariant[];
112
+ }
113
+ /** Response from discover columns */
114
+ interface DiscoverColumnsResponse {
115
+ /** Columns that could be integrated and possible ways to integrate them */
116
+ hits: DiscoverColumnsResponseHit[];
117
+ }
118
+ /** Handle to a spec-only PFrame (no data, synchronous operations). */
119
+ type SpecFrameHandle = Branded<string, "SpecFrameHandle">;
120
+ /**
121
+ * Synchronous driver for spec-level PFrame operations.
122
+ *
123
+ * Unlike the async PFrameDriver (which works with data), this driver
124
+ * operates on column specifications only. All methods are synchronous
125
+ * because the underlying WASM PFrame computes results immediately.
126
+ */
127
+ interface PSpecDriver {
128
+ /** Create a spec-only PFrame from column specs. Returns a handle. */
129
+ createSpecFrame(specs: Record<string, PColumnSpec>): SpecFrameHandle;
130
+ /** Discover columns compatible with given axes integration. */
131
+ specFrameDiscoverColumns(handle: SpecFrameHandle, request: DiscoverColumnsRequest): DiscoverColumnsResponse;
132
+ /** Dispose a spec frame, freeing WASM resources. */
133
+ disposeSpecFrame(handle: SpecFrameHandle): void;
134
+ }
135
+ //#endregion
136
+ export { AxisQualification, ColumnAxesWithQualifications, DiscoverColumnsConstraints, DiscoverColumnsLinkerStep, DiscoverColumnsMappingVariant, DiscoverColumnsRequest, DiscoverColumnsResponse, DiscoverColumnsResponseHit, DiscoverColumnsResponseQualifications, DiscoverColumnsStepInfo, MatcherMap, MultiAxisSelector, MultiColumnSelector, PSpecDriver, SpecFrameHandle, StringMatcher };
137
+ //# sourceMappingURL=pspec.d.ts.map
package/dist/index.cjs CHANGED
@@ -34,6 +34,7 @@ const require_ref = require('./ref.cjs');
34
34
  const require_value_or_error = require('./value_or_error.cjs');
35
35
  const require_base64 = require('./base64.cjs');
36
36
  const require_httpAuth = require('./httpAuth.cjs');
37
+ const require_resource_types = require('./resource_types.cjs');
37
38
 
38
39
  exports.AbortError = require_errors.AbortError;
39
40
  exports.AllRequiresFeatureFlags = require_block_flags.AllRequiresFeatureFlags;
@@ -59,6 +60,8 @@ exports.PlIdBytes = require_plid.PlIdBytes;
59
60
  exports.PlIdLength = require_plid.PlIdLength;
60
61
  exports.PlRef = require_ref.PlRef;
61
62
  exports.RangeBytes = require_blob.RangeBytes;
63
+ exports.ResourceTypeName = require_resource_types.ResourceTypeName;
64
+ exports.ResourceTypePrefix = require_resource_types.ResourceTypePrefix;
62
65
  exports.RuntimeCapabilities = require_flag_utils.RuntimeCapabilities;
63
66
  exports.UiError = require_errors.UiError;
64
67
  exports.ValueType = require_spec.ValueType;
@@ -126,6 +129,7 @@ exports.isPTableNA = require_data_types.isPTableNA;
126
129
  exports.isPTableValueAxis = require_data_types.isPTableValueAxis;
127
130
  exports.isPartitionedDataInfoEntries = require_data_info.isPartitionedDataInfoEntries;
128
131
  exports.isPlRef = require_ref.isPlRef;
132
+ exports.legacyColumnSelectorsToPredicate = require_selectors.legacyColumnSelectorsToPredicate;
129
133
  exports.mapDataInfo = require_data_info.mapDataInfo;
130
134
  exports.mapDataInfoEntries = require_data_info.mapDataInfoEntries;
131
135
  exports.mapJoinEntry = require_table_calculate.mapJoinEntry;
@@ -155,7 +159,6 @@ exports.readMetadata = require_spec.readMetadata;
155
159
  exports.readMetadataJson = require_spec.readMetadataJson;
156
160
  exports.readMetadataJsonOrThrow = require_spec.readMetadataJsonOrThrow;
157
161
  exports.resolveAnchors = require_anchored.resolveAnchors;
158
- exports.selectorsToPredicate = require_selectors.selectorsToPredicate;
159
162
  exports.serializeError = require_errors.serializeError;
160
163
  exports.serializeHttpAuth = require_httpAuth.serializeHttpAuth;
161
164
  exports.serializeResult = require_errors.serializeResult;
package/dist/index.d.ts CHANGED
@@ -26,7 +26,7 @@ import "./pool/index.js";
26
26
  import { Annotation, AnnotationJson, AxesId, AxesSpec, AxisId, AxisSpec, AxisSpecNormalized, AxisTree, AxisValueType, ColumnValueType, Domain, DomainJson, Metadata, MetadataJson, PAxisName, PColumn, PColumnIdAndSpec, PColumnInfo, PColumnLazy, PColumnName, PColumnSpec, PColumnSpecId, PDataColumnSpec, PUniversalColumnSpec, ValueType, canonicalizeAxisId, canonicalizeAxisWithParents, getArrayFromAxisTree, getAxesId, getAxesTree, getAxisId, getColumnIdAndSpec, getDenormalizedAxesList, getNormalizedAxesList, getPColumnSpecId, getSetFromAxisTree, getTypeFromPColumnOrAxisSpec, isAxisId, isLabelColumn, isLinkerColumn, matchAxisId, readAnnotation, readAnnotationJson, readAnnotationJsonOrThrow, readDomain, readDomainJson, readDomainJsonOrThrow, readMetadata, readMetadataJson, readMetadataJsonOrThrow } from "./drivers/pframe/spec/spec.js";
27
27
  import { ColumnFilter } from "./drivers/pframe/column_filter.js";
28
28
  import { BinaryChunk, BinaryPartitionedDataInfo, BinaryPartitionedDataInfoEntries, DataInfo, DataInfoEntries, JsonDataInfo, JsonDataInfoEntries, JsonPartitionedDataInfo, JsonPartitionedDataInfoEntries, PColumnDataEntry, PColumnKey, PColumnValue, PColumnValues, PColumnValuesEntry, ParquetChunk, ParquetChunkMapping, ParquetChunkMappingAxis, ParquetChunkMappingColumn, ParquetChunkMetadata, ParquetChunkStats, ParquetPartitionedDataInfo, ParquetPartitionedDataInfoEntries, PartitionedDataInfoEntries, dataInfoToEntries, entriesToDataInfo, isDataInfo, isDataInfoEntries, isPartitionedDataInfoEntries, mapDataInfo, mapDataInfoEntries, visitDataInfo } from "./drivers/pframe/data_info.js";
29
- import { AAxisSelector, ADomain, AnchorAxisIdOrRefBasic, AnchorAxisRef, AnchorAxisRefByIdx, AnchorAxisRefByMatcher, AnchorAxisRefByName, AnchorDomainRef, AnchoredColumnMatchStrategy, AnchoredPColumnId, AnchoredPColumnSelector, AxisSelector, PColumnSelector, SingleAxisSelector, isAnchoredPColumnId, matchAxis, matchPColumn, selectorsToPredicate } from "./drivers/pframe/spec/selectors.js";
29
+ import { AAxisSelector, ADomain, AnchorAxisIdOrRefBasic, AnchorAxisRef, AnchorAxisRefByIdx, AnchorAxisRefByMatcher, AnchorAxisRefByName, AnchorDomainRef, AnchoredColumnMatchStrategy, AnchoredPColumnId, AnchoredPColumnSelector, LegacyAxisSelector, PColumnSelector, SingleAxisSelector, isAnchoredPColumnId, legacyColumnSelectorsToPredicate, matchAxis, matchPColumn } from "./drivers/pframe/spec/selectors.js";
30
30
  import { AxisFilter, AxisFilterByIdx, AxisFilterByName, AxisFilterValue, FilteredPColumn, FilteredPColumnId, isFilteredPColumn } from "./drivers/pframe/spec/filtered_column.js";
31
31
  import { SUniversalPColumnId, UniversalPColumnId, parseColumnId, stringifyColumnId } from "./drivers/pframe/spec/ids.js";
32
32
  import { FilterSpec, FilterSpecLeaf, FilterSpecNode, FilterSpecOfType, FilterSpecType, InferFilterSpecCommonLeaf, InferFilterSpecCommonNode, InferFilterSpecLeaf, InferFilterSpecLeafColumn, RootFilterSpec } from "./drivers/pframe/filter_spec.js";
@@ -45,6 +45,7 @@ import { collectSpecQueryColumns, isBooleanExpression, mapSpecQueryColumns, sort
45
45
  import { PFrameDriver, PFrameHandle, PTableHandle } from "./drivers/pframe/driver.js";
46
46
  import { CompositeLinkerMap, LinkerMap } from "./drivers/pframe/linker_columns.js";
47
47
  import { FileRange, ImportFileHandle, ImportFileHandleIndex, ImportFileHandleUpload, ListFilesResult, LocalImportFileHandle, LsDriver, LsEntry, OpenDialogFilter, OpenDialogOps, OpenMultipleFilesResponse, OpenSingleFileResponse, StorageEntry, StorageHandle, StorageHandleLocal, StorageHandleRemote, getFileNameFromHandle, getFilePathFromHandle, isImportFileHandleIndex, isImportFileHandleUpload } from "./drivers/ls.js";
48
+ import { AxisQualification, ColumnAxesWithQualifications, DiscoverColumnsConstraints, DiscoverColumnsLinkerStep, DiscoverColumnsMappingVariant, DiscoverColumnsRequest, DiscoverColumnsResponse, DiscoverColumnsResponseHit, DiscoverColumnsResponseQualifications, DiscoverColumnsStepInfo, MatcherMap, MultiAxisSelector, MultiColumnSelector, PSpecDriver, SpecFrameHandle, StringMatcher } from "./drivers/pspec.js";
48
49
  import { ChunkedStreamReader, ChunkedStreamReaderOptions, ErrorHandlerStatus } from "./drivers/ChunkedStreamReader.js";
49
50
  import "./drivers/index.js";
50
51
  import { DriverKit } from "./driver_kit.js";
@@ -55,4 +56,5 @@ import { ValueOrError, mapValueInVOE } from "./value_or_error.js";
55
56
  import { Base64Compatible, Base64Encoded, base64Decode, base64Encode } from "./base64.js";
56
57
  import { assertNever, uniqueBy } from "./util.js";
57
58
  import { BasicHttpAuth, HttpAuth, parseHttpAuth, serializeHttpAuth } from "./httpAuth.js";
58
- export { AAxisSelector, ADomain, AbortError, AllRequiresFeatureFlags, AllSupportsFeatureFlags, AnchorAxisIdOrRefBasic, AnchorAxisRef, AnchorAxisRefByIdx, AnchorAxisRefByMatcher, AnchorAxisRefByName, AnchorDomainRef, AnchoredColumnMatchStrategy, AnchoredIdDeriver, AnchoredPColumnId, AnchoredPColumnSelector, Annotation, AnnotationJson, AnyFunction, AnyLogHandle, ArchiveFormat, ArrayTypeUnion, ArtificialColumnJoinEntry, Assert, AssertKeysEqual, AuthorMarker, AxesId, AxesSpec, AxisFilter, AxisFilterByIdx, AxisFilterByName, AxisFilterValue, AxisId, AxisSelector, AxisSpec, AxisSpecNormalized, AxisTree, AxisValueType, Base64Compatible, Base64Encoded, BasicHttpAuth, BinaryChunk, BinaryPartitionedDataInfo, BinaryPartitionedDataInfoEntries, BlobDriver, BlobHandleAndSize, BlobLike, BlobToURLDriver, BlockCodeFeatureFlags, BlockCodeKnownFeatureFlags, BlockCodeWithInfo, BlockConfigContainer, BlockConfigGeneric, BlockConfigV3Generic, BlockConfigV4Generic, BlockOutputsBase, BlockRenderingMode, BlockSection, BlockSectionDelimiter, BlockSectionLink, BlockSectionLinkAppearance, BlockState, BlockStateV3, BlockUIURL, Branded, CalculateTableDataRequest, CalculateTableDataResponse, CanonicalizedJson, ChunkedStreamReader, ChunkedStreamReaderOptions, Code, ColumnFilter, ColumnJoinEntry, ColumnValueType, CompositeLinkerMap, ConstantAxisFilter, ContentHandler, DataExprAxisRef, DataExprColumnRef, DataInfo, DataInfoEntries, DataQuery, DataQueryBooleanExpression, DataQueryColumn, DataQueryExpression, DataQueryFilter, DataQueryInlineColumn, DataQueryJoinEntry, DataQueryOuterJoin, DataQuerySliceAxes, DataQuerySort, DataQuerySparseToDenseColumn, DataQuerySymmetricJoin, DefaultNavigationState, Domain, DomainJson, DriverKit, ErrorHandlerStatus, FileLike, FileRange, FilterKeysByPrefix, FilterSpec, FilterSpecLeaf, FilterSpecNode, FilterSpecOfType, FilterSpecType, FilteredPColumn, FilteredPColumnId, FindColumnsRequest, FindColumnsResponse, FolderURL, FrontendDriver, FullJoin, FullPTableColumnData, GetContentOptions, HttpAuth, ImportFileHandle, ImportFileHandleIndex, ImportFileHandleUpload, ImportProgress, ImportStatus, IncompatibleFlagsError, InferFilterSpecCommonLeaf, InferFilterSpecCommonNode, InferFilterSpecLeaf, InferFilterSpecLeafColumn, InlineColumnJoinEntry, InnerJoin, Is, IsSubtypeOf, JoinEntry, JsonCompatible, JsonDataInfo, JsonDataInfoEntries, JsonPartitionedDataInfo, JsonPartitionedDataInfoEntries, JsonSerializable, LinkerMap, ListFilesResult, ListOptionBase, LiveLogHandle, LocalBlobHandle, LocalBlobHandleAndSize, LocalImportFileHandle, LogsDriver, LsDriver, LsEntry, Metadata, MetadataJson, NativePObjectId, NavigationState, OpenDialogFilter, OpenDialogOps, OpenMultipleFilesResponse, OpenSingleFileResponse, Option, OuterJoin, OutputWithStatus, PAxisName, PColumn, PColumnDataEntry, PColumnIdAndSpec, PColumnInfo, PColumnKey, PColumnLazy, PColumnName, PColumnSelector, PColumnSpec, PColumnSpecId, PColumnValue, PColumnValues, PColumnValuesEntry, PDataColumnSpec, PFrame, PFrameDef, PFrameDriver, PFrameDriverError, PFrameError, PFrameHandle, PObject, PObjectId, PObjectSpec, PSpecPredicate, PTable, PTableAbsent, PTableColumnId, PTableColumnIdAxis, PTableColumnIdColumn, PTableColumnSpec, PTableColumnSpecAxis, PTableColumnSpecColumn, PTableDef, PTableDefV2, PTableHandle, PTableNA, PTableRecordFilter, PTableRecordSingleValueFilterV2, PTableShape, PTableSorting, PTableValue, PTableValueAxis, PTableValueBranded, PTableValueData, PTableValueDataBranded, PTableValueDouble, PTableValueFloat, PTableValueInt, PTableValueLong, PTableValueString, PTableVector, PTableVectorTyped, PUniversalColumnSpec, PVectorData, PVectorDataBytes, PVectorDataDouble, PVectorDataFloat, PVectorDataInt, PVectorDataLong, PVectorDataString, PVectorDataTyped, ParquetChunk, ParquetChunkMapping, ParquetChunkMappingAxis, ParquetChunkMappingColumn, ParquetChunkMetadata, ParquetChunkStats, ParquetPartitionedDataInfo, ParquetPartitionedDataInfoEntries, PartitionedDataInfoEntries, PlId, PlIdBytes, PlIdLength, PlRef, ProgressLogWithInfo, RangeBytes, ReadyLogHandle, Ref, RemoteBlobHandle, RemoteBlobHandleAndSize, ResolveAnchorsOptions, ResultCollection, ResultOrError, ResultPoolEntry, RootFilterSpec, RuntimeCapabilities, SUniversalPColumnId, SerializedError, SingleAxisSelector, SingleValueAndPredicateV2, SingleValueEqualPredicate, SingleValueGreaterOrEqualPredicate, SingleValueGreaterPredicate, SingleValueIEqualPredicate, SingleValueInSetPredicate, SingleValueIsNAPredicate, SingleValueLessOrEqualPredicate, SingleValueLessPredicate, SingleValueMatchesPredicate, SingleValueNotPredicateV2, SingleValueOrPredicateV2, SingleValuePredicateV2, SingleValueStringContainsFuzzyPredicate, SingleValueStringContainsPredicate, SingleValueStringIContainsFuzzyPredicate, SingleValueStringIContainsPredicate, SlicedColumnJoinEntry, SpecExprAxisRef, SpecExprColumnRef, SpecQuery, SpecQueryBooleanExpression, SpecQueryColumn, SpecQueryExpression, SpecQueryFilter, SpecQueryInlineColumn, SpecQueryJoinEntry, SpecQueryOuterJoin, SpecQuerySliceAxes, SpecQuerySort, SpecQuerySparseToDenseColumn, SpecQuerySymmetricJoin, StorageEntry, StorageHandle, StorageHandleLocal, StorageHandleRemote, StreamingApiResponse, StreamingApiResponseHandleOutdated, StreamingApiResponseOk, StringifiedJson, SupportedRequirement, TableRange, UiError, UniqueValuesRequest, UniqueValuesResponse, UniversalPColumnId, ValueOrError, ValueType, ValueTypeSupported, ValueWithUTag, ValueWithUTagAndAuthor, assertNever, base64Decode, base64Encode, bigintReplacer, canonicalizeAxisId, canonicalizeAxisWithParents, canonicalizeJson, checkBlockFlag, collectSpecQueryColumns, createPlRef, dataInfoToEntries, deriveNativeId, deserializeError, deserializeResult, digestPlId, ensureError, ensurePColumn, entriesToDataInfo, executePSpecPredicate, extractAllColumns, extractAllRequirements, extractAllSupports, extractCodeWithInfo, extractConfigGeneric, getArrayFromAxisTree, getAxesId, getAxesTree, getAxisId, getColumnIdAndSpec, getDenormalizedAxesList, getFileNameFromHandle, getFilePathFromHandle, getNormalizedAxesList, getPColumnSpecId, getPTableColumnId, getSetFromAxisTree, getTypeFromPColumnOrAxisSpec, hasAbortError, isAbortError, isAggregateError, isAnchoredPColumnId, isAxisId, isBlockUIURL, isBooleanExpression, isDataInfo, isDataInfoEntries, isFilteredPColumn, isFolderURL, isImportFileHandleIndex, isImportFileHandleUpload, isLabelColumn, isLinkerColumn, isLiveLog, isPColumn, isPColumnResult, isPColumnSpec, isPColumnSpecResult, isPFrameDriverError, isPFrameError, isPTableAbsent, isPTableNA, isPTableValueAxis, isPartitionedDataInfoEntries, isPlRef, mapDataInfo, mapDataInfoEntries, mapJoinEntry, mapPObjectData, mapPTableDef, mapPTableDefV2, mapSpecQueryColumns, mapValueInVOE, matchAxis, matchAxisId, matchPColumn, newRangeBytesOpt, pTableValue, pTableValueBranded, parseColumnId, parseHttpAuth, parseJson, plId, plRefsEqual, readAnnotation, readAnnotationJson, readAnnotationJsonOrThrow, readDomain, readDomainJson, readDomainJsonOrThrow, readMetadata, readMetadataJson, readMetadataJsonOrThrow, resolveAnchors, selectorsToPredicate, serializeError, serializeHttpAuth, serializeResult, sortJoinEntry, sortPTableDef, sortSpecQuery, stringifyColumnId, stringifyJson, traverseQuerySpec, uniqueBy, uniquePlId, unwrapResult, validateRangeBytes, visitDataInfo, withEnrichments, wrapAndSerialize, wrapAndSerializeAsync, wrapAsyncCallback, wrapCallback };
59
+ import { ResourceTypeName, ResourceTypePrefix } from "./resource_types.js";
60
+ export { AAxisSelector, ADomain, AbortError, AllRequiresFeatureFlags, AllSupportsFeatureFlags, AnchorAxisIdOrRefBasic, AnchorAxisRef, AnchorAxisRefByIdx, AnchorAxisRefByMatcher, AnchorAxisRefByName, AnchorDomainRef, AnchoredColumnMatchStrategy, AnchoredIdDeriver, AnchoredPColumnId, AnchoredPColumnSelector, Annotation, AnnotationJson, AnyFunction, AnyLogHandle, ArchiveFormat, ArrayTypeUnion, ArtificialColumnJoinEntry, Assert, AssertKeysEqual, AuthorMarker, AxesId, AxesSpec, AxisFilter, AxisFilterByIdx, AxisFilterByName, AxisFilterValue, AxisId, AxisQualification, AxisSpec, AxisSpecNormalized, AxisTree, AxisValueType, Base64Compatible, Base64Encoded, BasicHttpAuth, BinaryChunk, BinaryPartitionedDataInfo, BinaryPartitionedDataInfoEntries, BlobDriver, BlobHandleAndSize, BlobLike, BlobToURLDriver, BlockCodeFeatureFlags, BlockCodeKnownFeatureFlags, BlockCodeWithInfo, BlockConfigContainer, BlockConfigGeneric, BlockConfigV3Generic, BlockConfigV4Generic, BlockOutputsBase, BlockRenderingMode, BlockSection, BlockSectionDelimiter, BlockSectionLink, BlockSectionLinkAppearance, BlockState, BlockStateV3, BlockUIURL, Branded, CalculateTableDataRequest, CalculateTableDataResponse, CanonicalizedJson, ChunkedStreamReader, ChunkedStreamReaderOptions, Code, ColumnAxesWithQualifications, ColumnFilter, ColumnJoinEntry, ColumnValueType, CompositeLinkerMap, ConstantAxisFilter, ContentHandler, DataExprAxisRef, DataExprColumnRef, DataInfo, DataInfoEntries, DataQuery, DataQueryBooleanExpression, DataQueryColumn, DataQueryExpression, DataQueryFilter, DataQueryInlineColumn, DataQueryJoinEntry, DataQueryOuterJoin, DataQuerySliceAxes, DataQuerySort, DataQuerySparseToDenseColumn, DataQuerySymmetricJoin, DefaultNavigationState, DiscoverColumnsConstraints, DiscoverColumnsLinkerStep, DiscoverColumnsMappingVariant, DiscoverColumnsRequest, DiscoverColumnsResponse, DiscoverColumnsResponseHit, DiscoverColumnsResponseQualifications, DiscoverColumnsStepInfo, Domain, DomainJson, DriverKit, ErrorHandlerStatus, FileLike, FileRange, FilterKeysByPrefix, FilterSpec, FilterSpecLeaf, FilterSpecNode, FilterSpecOfType, FilterSpecType, FilteredPColumn, FilteredPColumnId, FindColumnsRequest, FindColumnsResponse, FolderURL, FrontendDriver, FullJoin, FullPTableColumnData, GetContentOptions, HttpAuth, ImportFileHandle, ImportFileHandleIndex, ImportFileHandleUpload, ImportProgress, ImportStatus, IncompatibleFlagsError, InferFilterSpecCommonLeaf, InferFilterSpecCommonNode, InferFilterSpecLeaf, InferFilterSpecLeafColumn, InlineColumnJoinEntry, InnerJoin, Is, IsSubtypeOf, JoinEntry, JsonCompatible, JsonDataInfo, JsonDataInfoEntries, JsonPartitionedDataInfo, JsonPartitionedDataInfoEntries, JsonSerializable, LegacyAxisSelector, LinkerMap, ListFilesResult, ListOptionBase, LiveLogHandle, LocalBlobHandle, LocalBlobHandleAndSize, LocalImportFileHandle, LogsDriver, LsDriver, LsEntry, MatcherMap, Metadata, MetadataJson, MultiAxisSelector, MultiColumnSelector, NativePObjectId, NavigationState, OpenDialogFilter, OpenDialogOps, OpenMultipleFilesResponse, OpenSingleFileResponse, Option, OuterJoin, OutputWithStatus, PAxisName, PColumn, PColumnDataEntry, PColumnIdAndSpec, PColumnInfo, PColumnKey, PColumnLazy, PColumnName, PColumnSelector, PColumnSpec, PColumnSpecId, PColumnValue, PColumnValues, PColumnValuesEntry, PDataColumnSpec, PFrame, PFrameDef, PFrameDriver, PFrameDriverError, PFrameError, PFrameHandle, PObject, PObjectId, PObjectSpec, PSpecDriver, PSpecPredicate, PTable, PTableAbsent, PTableColumnId, PTableColumnIdAxis, PTableColumnIdColumn, PTableColumnSpec, PTableColumnSpecAxis, PTableColumnSpecColumn, PTableDef, PTableDefV2, PTableHandle, PTableNA, PTableRecordFilter, PTableRecordSingleValueFilterV2, PTableShape, PTableSorting, PTableValue, PTableValueAxis, PTableValueBranded, PTableValueData, PTableValueDataBranded, PTableValueDouble, PTableValueFloat, PTableValueInt, PTableValueLong, PTableValueString, PTableVector, PTableVectorTyped, PUniversalColumnSpec, PVectorData, PVectorDataBytes, PVectorDataDouble, PVectorDataFloat, PVectorDataInt, PVectorDataLong, PVectorDataString, PVectorDataTyped, ParquetChunk, ParquetChunkMapping, ParquetChunkMappingAxis, ParquetChunkMappingColumn, ParquetChunkMetadata, ParquetChunkStats, ParquetPartitionedDataInfo, ParquetPartitionedDataInfoEntries, PartitionedDataInfoEntries, PlId, PlIdBytes, PlIdLength, PlRef, ProgressLogWithInfo, RangeBytes, ReadyLogHandle, Ref, RemoteBlobHandle, RemoteBlobHandleAndSize, ResolveAnchorsOptions, ResourceTypeName, ResourceTypePrefix, ResultCollection, ResultOrError, ResultPoolEntry, RootFilterSpec, RuntimeCapabilities, SUniversalPColumnId, SerializedError, SingleAxisSelector, SingleValueAndPredicateV2, SingleValueEqualPredicate, SingleValueGreaterOrEqualPredicate, SingleValueGreaterPredicate, SingleValueIEqualPredicate, SingleValueInSetPredicate, SingleValueIsNAPredicate, SingleValueLessOrEqualPredicate, SingleValueLessPredicate, SingleValueMatchesPredicate, SingleValueNotPredicateV2, SingleValueOrPredicateV2, SingleValuePredicateV2, SingleValueStringContainsFuzzyPredicate, SingleValueStringContainsPredicate, SingleValueStringIContainsFuzzyPredicate, SingleValueStringIContainsPredicate, SlicedColumnJoinEntry, SpecExprAxisRef, SpecExprColumnRef, SpecFrameHandle, SpecQuery, SpecQueryBooleanExpression, SpecQueryColumn, SpecQueryExpression, SpecQueryFilter, SpecQueryInlineColumn, SpecQueryJoinEntry, SpecQueryOuterJoin, SpecQuerySliceAxes, SpecQuerySort, SpecQuerySparseToDenseColumn, SpecQuerySymmetricJoin, StorageEntry, StorageHandle, StorageHandleLocal, StorageHandleRemote, StreamingApiResponse, StreamingApiResponseHandleOutdated, StreamingApiResponseOk, StringMatcher, StringifiedJson, SupportedRequirement, TableRange, UiError, UniqueValuesRequest, UniqueValuesResponse, UniversalPColumnId, ValueOrError, ValueType, ValueTypeSupported, ValueWithUTag, ValueWithUTagAndAuthor, assertNever, base64Decode, base64Encode, bigintReplacer, canonicalizeAxisId, canonicalizeAxisWithParents, canonicalizeJson, checkBlockFlag, collectSpecQueryColumns, createPlRef, dataInfoToEntries, deriveNativeId, deserializeError, deserializeResult, digestPlId, ensureError, ensurePColumn, entriesToDataInfo, executePSpecPredicate, extractAllColumns, extractAllRequirements, extractAllSupports, extractCodeWithInfo, extractConfigGeneric, getArrayFromAxisTree, getAxesId, getAxesTree, getAxisId, getColumnIdAndSpec, getDenormalizedAxesList, getFileNameFromHandle, getFilePathFromHandle, getNormalizedAxesList, getPColumnSpecId, getPTableColumnId, getSetFromAxisTree, getTypeFromPColumnOrAxisSpec, hasAbortError, isAbortError, isAggregateError, isAnchoredPColumnId, isAxisId, isBlockUIURL, isBooleanExpression, isDataInfo, isDataInfoEntries, isFilteredPColumn, isFolderURL, isImportFileHandleIndex, isImportFileHandleUpload, isLabelColumn, isLinkerColumn, isLiveLog, isPColumn, isPColumnResult, isPColumnSpec, isPColumnSpecResult, isPFrameDriverError, isPFrameError, isPTableAbsent, isPTableNA, isPTableValueAxis, isPartitionedDataInfoEntries, isPlRef, legacyColumnSelectorsToPredicate, mapDataInfo, mapDataInfoEntries, mapJoinEntry, mapPObjectData, mapPTableDef, mapPTableDefV2, mapSpecQueryColumns, mapValueInVOE, matchAxis, matchAxisId, matchPColumn, newRangeBytesOpt, pTableValue, pTableValueBranded, parseColumnId, parseHttpAuth, parseJson, plId, plRefsEqual, readAnnotation, readAnnotationJson, readAnnotationJsonOrThrow, readDomain, readDomainJson, readDomainJsonOrThrow, readMetadata, readMetadataJson, readMetadataJsonOrThrow, resolveAnchors, serializeError, serializeHttpAuth, serializeResult, sortJoinEntry, sortPTableDef, sortSpecQuery, stringifyColumnId, stringifyJson, traverseQuerySpec, uniqueBy, uniquePlId, unwrapResult, validateRangeBytes, visitDataInfo, withEnrichments, wrapAndSerialize, wrapAndSerializeAsync, wrapAsyncCallback, wrapCallback };
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ import { AnchoredIdDeriver, resolveAnchors } from "./drivers/pframe/spec/anchore
20
20
  import { isFilteredPColumn } from "./drivers/pframe/spec/filtered_column.js";
21
21
  import { ensurePColumn, extractAllColumns, isPColumn, isPColumnResult, isPColumnSpec, isPColumnSpecResult, mapPObjectData } from "./pool/spec.js";
22
22
  import { executePSpecPredicate } from "./pool/query.js";
23
- import { isAnchoredPColumnId, matchAxis, matchPColumn, selectorsToPredicate } from "./drivers/pframe/spec/selectors.js";
23
+ import { isAnchoredPColumnId, legacyColumnSelectorsToPredicate, matchAxis, matchPColumn } from "./drivers/pframe/spec/selectors.js";
24
24
  import { deriveNativeId } from "./drivers/pframe/spec/native_id.js";
25
25
  import { LinkerMap } from "./drivers/pframe/linker_columns.js";
26
26
  import { ChunkedStreamReader } from "./drivers/ChunkedStreamReader.js";
@@ -33,5 +33,6 @@ import { PlRef, createPlRef, isPlRef, plRefsEqual, withEnrichments } from "./ref
33
33
  import { mapValueInVOE } from "./value_or_error.js";
34
34
  import { base64Decode, base64Encode } from "./base64.js";
35
35
  import { parseHttpAuth, serializeHttpAuth } from "./httpAuth.js";
36
+ import { ResourceTypeName, ResourceTypePrefix } from "./resource_types.js";
36
37
 
37
- export { AbortError, AllRequiresFeatureFlags, AllSupportsFeatureFlags, AnchoredIdDeriver, Annotation, AnnotationJson, ChunkedStreamReader, Code, DefaultNavigationState, Domain, DomainJson, IncompatibleFlagsError, LinkerMap, PAxisName, PColumnName, PFrameDriverError, PFrameError, PTableAbsent, PTableNA, PlId, PlIdBytes, PlIdLength, PlRef, RangeBytes, RuntimeCapabilities, UiError, ValueType, assertNever, base64Decode, base64Encode, bigintReplacer, canonicalizeAxisId, canonicalizeAxisWithParents, canonicalizeJson, checkBlockFlag, collectSpecQueryColumns, createPlRef, dataInfoToEntries, deriveNativeId, deserializeError, deserializeResult, digestPlId, ensureError, ensurePColumn, entriesToDataInfo, executePSpecPredicate, extractAllColumns, extractAllRequirements, extractAllSupports, extractCodeWithInfo, extractConfigGeneric, getArrayFromAxisTree, getAxesId, getAxesTree, getAxisId, getColumnIdAndSpec, getDenormalizedAxesList, getFileNameFromHandle, getFilePathFromHandle, getNormalizedAxesList, getPColumnSpecId, getPTableColumnId, getSetFromAxisTree, getTypeFromPColumnOrAxisSpec, hasAbortError, isAbortError, isAggregateError, isAnchoredPColumnId, isAxisId, isBlockUIURL, isBooleanExpression, isDataInfo, isDataInfoEntries, isFilteredPColumn, isFolderURL, isImportFileHandleIndex, isImportFileHandleUpload, isLabelColumn, isLinkerColumn, isLiveLog, isPColumn, isPColumnResult, isPColumnSpec, isPColumnSpecResult, isPFrameDriverError, isPFrameError, isPTableAbsent, isPTableNA, isPTableValueAxis, isPartitionedDataInfoEntries, isPlRef, mapDataInfo, mapDataInfoEntries, mapJoinEntry, mapPObjectData, mapPTableDef, mapPTableDefV2, mapSpecQueryColumns, mapValueInVOE, matchAxis, matchAxisId, matchPColumn, newRangeBytesOpt, pTableValue, pTableValueBranded, parseColumnId, parseHttpAuth, parseJson, plId, plRefsEqual, readAnnotation, readAnnotationJson, readAnnotationJsonOrThrow, readDomain, readDomainJson, readDomainJsonOrThrow, readMetadata, readMetadataJson, readMetadataJsonOrThrow, resolveAnchors, selectorsToPredicate, serializeError, serializeHttpAuth, serializeResult, sortJoinEntry, sortPTableDef, sortSpecQuery, stringifyColumnId, stringifyJson, traverseQuerySpec, uniqueBy, uniquePlId, unwrapResult, validateRangeBytes, visitDataInfo, withEnrichments, wrapAndSerialize, wrapAndSerializeAsync, wrapAsyncCallback, wrapCallback };
38
+ export { AbortError, AllRequiresFeatureFlags, AllSupportsFeatureFlags, AnchoredIdDeriver, Annotation, AnnotationJson, ChunkedStreamReader, Code, DefaultNavigationState, Domain, DomainJson, IncompatibleFlagsError, LinkerMap, PAxisName, PColumnName, PFrameDriverError, PFrameError, PTableAbsent, PTableNA, PlId, PlIdBytes, PlIdLength, PlRef, RangeBytes, ResourceTypeName, ResourceTypePrefix, RuntimeCapabilities, UiError, ValueType, assertNever, base64Decode, base64Encode, bigintReplacer, canonicalizeAxisId, canonicalizeAxisWithParents, canonicalizeJson, checkBlockFlag, collectSpecQueryColumns, createPlRef, dataInfoToEntries, deriveNativeId, deserializeError, deserializeResult, digestPlId, ensureError, ensurePColumn, entriesToDataInfo, executePSpecPredicate, extractAllColumns, extractAllRequirements, extractAllSupports, extractCodeWithInfo, extractConfigGeneric, getArrayFromAxisTree, getAxesId, getAxesTree, getAxisId, getColumnIdAndSpec, getDenormalizedAxesList, getFileNameFromHandle, getFilePathFromHandle, getNormalizedAxesList, getPColumnSpecId, getPTableColumnId, getSetFromAxisTree, getTypeFromPColumnOrAxisSpec, hasAbortError, isAbortError, isAggregateError, isAnchoredPColumnId, isAxisId, isBlockUIURL, isBooleanExpression, isDataInfo, isDataInfoEntries, isFilteredPColumn, isFolderURL, isImportFileHandleIndex, isImportFileHandleUpload, isLabelColumn, isLinkerColumn, isLiveLog, isPColumn, isPColumnResult, isPColumnSpec, isPColumnSpecResult, isPFrameDriverError, isPFrameError, isPTableAbsent, isPTableNA, isPTableValueAxis, isPartitionedDataInfoEntries, isPlRef, legacyColumnSelectorsToPredicate, mapDataInfo, mapDataInfoEntries, mapJoinEntry, mapPObjectData, mapPTableDef, mapPTableDefV2, mapSpecQueryColumns, mapValueInVOE, matchAxis, matchAxisId, matchPColumn, newRangeBytesOpt, pTableValue, pTableValueBranded, parseColumnId, parseHttpAuth, parseJson, plId, plRefsEqual, readAnnotation, readAnnotationJson, readAnnotationJsonOrThrow, readDomain, readDomainJson, readDomainJsonOrThrow, readMetadata, readMetadataJson, readMetadataJsonOrThrow, resolveAnchors, serializeError, serializeHttpAuth, serializeResult, sortJoinEntry, sortPTableDef, sortSpecQuery, stringifyColumnId, stringifyJson, traverseQuerySpec, uniqueBy, uniquePlId, unwrapResult, validateRangeBytes, visitDataInfo, withEnrichments, wrapAndSerialize, wrapAndSerializeAsync, wrapAsyncCallback, wrapCallback };
@@ -0,0 +1,53 @@
1
+
2
+ //#region src/resource_types.ts
3
+ /** Well-known resource type names used across the platform. */
4
+ const ResourceTypeName = {
5
+ StreamManager: "StreamManager",
6
+ StdMap: "StdMap",
7
+ StdMapSlash: "std/map",
8
+ EphStdMap: "EphStdMap",
9
+ PFrame: "PFrame",
10
+ ParquetChunk: "ParquetChunk",
11
+ BContext: "BContext",
12
+ BlockPackCustom: "BlockPackCustom",
13
+ BinaryMap: "BinaryMap",
14
+ BinaryValue: "BinaryValue",
15
+ BlobMap: "BlobMap",
16
+ BResolveSingle: "BResolveSingle",
17
+ BResolveSingleNoResult: "BResolveSingleNoResult",
18
+ BQueryResult: "BQueryResult",
19
+ TengoTemplate: "TengoTemplate",
20
+ TengoLib: "TengoLib",
21
+ SoftwareInfo: "SoftwareInfo",
22
+ Dummy: "Dummy",
23
+ JsonResourceError: "json/resourceError",
24
+ JsonObject: "json/object",
25
+ JsonGzObject: "json-gz/object",
26
+ JsonString: "json/string",
27
+ JsonArray: "json/array",
28
+ JsonNumber: "json/number",
29
+ BContextEnd: "BContextEnd",
30
+ FrontendFromUrl: "Frontend/FromUrl",
31
+ FrontendFromFolder: "Frontend/FromFolder",
32
+ BObjectSpec: "BObjectSpec",
33
+ Blob: "Blob",
34
+ Null: "Null",
35
+ Binary: "binary",
36
+ LSProvider: "LSProvider",
37
+ UserProject: "UserProject",
38
+ Projects: "Projects",
39
+ ClientRoot: "ClientRoot"
40
+ };
41
+ /** Resource type name prefix constants. */
42
+ const ResourceTypePrefix = {
43
+ Blob: "Blob/",
44
+ BlobUpload: "BlobUpload/",
45
+ BlobIndex: "BlobIndex/",
46
+ PColumnData: "PColumnData/",
47
+ StreamWorkdir: "StreamWorkdir/"
48
+ };
49
+
50
+ //#endregion
51
+ exports.ResourceTypeName = ResourceTypeName;
52
+ exports.ResourceTypePrefix = ResourceTypePrefix;
53
+ //# sourceMappingURL=resource_types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource_types.cjs","names":[],"sources":["../src/resource_types.ts"],"sourcesContent":["/** Well-known resource type names used across the platform. */\nexport const ResourceTypeName = {\n StreamManager: \"StreamManager\",\n StdMap: \"StdMap\",\n StdMapSlash: \"std/map\",\n EphStdMap: \"EphStdMap\",\n PFrame: \"PFrame\",\n ParquetChunk: \"ParquetChunk\",\n BContext: \"BContext\",\n BlockPackCustom: \"BlockPackCustom\",\n BinaryMap: \"BinaryMap\",\n BinaryValue: \"BinaryValue\",\n BlobMap: \"BlobMap\",\n BResolveSingle: \"BResolveSingle\",\n BResolveSingleNoResult: \"BResolveSingleNoResult\",\n BQueryResult: \"BQueryResult\",\n TengoTemplate: \"TengoTemplate\",\n TengoLib: \"TengoLib\",\n SoftwareInfo: \"SoftwareInfo\",\n Dummy: \"Dummy\",\n JsonResourceError: \"json/resourceError\",\n JsonObject: \"json/object\",\n JsonGzObject: \"json-gz/object\",\n JsonString: \"json/string\",\n JsonArray: \"json/array\",\n JsonNumber: \"json/number\",\n BContextEnd: \"BContextEnd\",\n FrontendFromUrl: \"Frontend/FromUrl\",\n FrontendFromFolder: \"Frontend/FromFolder\",\n BObjectSpec: \"BObjectSpec\",\n Blob: \"Blob\",\n Null: \"Null\",\n Binary: \"binary\",\n LSProvider: \"LSProvider\",\n UserProject: \"UserProject\",\n Projects: \"Projects\",\n ClientRoot: \"ClientRoot\",\n} as const;\n\n/** Resource type name prefix constants. */\nexport const ResourceTypePrefix = {\n Blob: \"Blob/\",\n BlobUpload: \"BlobUpload/\",\n BlobIndex: \"BlobIndex/\",\n PColumnData: \"PColumnData/\",\n StreamWorkdir: \"StreamWorkdir/\",\n} as const;\n"],"mappings":";;;AACA,MAAa,mBAAmB;CAC9B,eAAe;CACf,QAAQ;CACR,aAAa;CACb,WAAW;CACX,QAAQ;CACR,cAAc;CACd,UAAU;CACV,iBAAiB;CACjB,WAAW;CACX,aAAa;CACb,SAAS;CACT,gBAAgB;CAChB,wBAAwB;CACxB,cAAc;CACd,eAAe;CACf,UAAU;CACV,cAAc;CACd,OAAO;CACP,mBAAmB;CACnB,YAAY;CACZ,cAAc;CACd,YAAY;CACZ,WAAW;CACX,YAAY;CACZ,aAAa;CACb,iBAAiB;CACjB,oBAAoB;CACpB,aAAa;CACb,MAAM;CACN,MAAM;CACN,QAAQ;CACR,YAAY;CACZ,aAAa;CACb,UAAU;CACV,YAAY;CACb;;AAGD,MAAa,qBAAqB;CAChC,MAAM;CACN,YAAY;CACZ,WAAW;CACX,aAAa;CACb,eAAe;CAChB"}
@@ -0,0 +1,50 @@
1
+ //#region src/resource_types.d.ts
2
+ /** Well-known resource type names used across the platform. */
3
+ declare const ResourceTypeName: {
4
+ readonly StreamManager: "StreamManager";
5
+ readonly StdMap: "StdMap";
6
+ readonly StdMapSlash: "std/map";
7
+ readonly EphStdMap: "EphStdMap";
8
+ readonly PFrame: "PFrame";
9
+ readonly ParquetChunk: "ParquetChunk";
10
+ readonly BContext: "BContext";
11
+ readonly BlockPackCustom: "BlockPackCustom";
12
+ readonly BinaryMap: "BinaryMap";
13
+ readonly BinaryValue: "BinaryValue";
14
+ readonly BlobMap: "BlobMap";
15
+ readonly BResolveSingle: "BResolveSingle";
16
+ readonly BResolveSingleNoResult: "BResolveSingleNoResult";
17
+ readonly BQueryResult: "BQueryResult";
18
+ readonly TengoTemplate: "TengoTemplate";
19
+ readonly TengoLib: "TengoLib";
20
+ readonly SoftwareInfo: "SoftwareInfo";
21
+ readonly Dummy: "Dummy";
22
+ readonly JsonResourceError: "json/resourceError";
23
+ readonly JsonObject: "json/object";
24
+ readonly JsonGzObject: "json-gz/object";
25
+ readonly JsonString: "json/string";
26
+ readonly JsonArray: "json/array";
27
+ readonly JsonNumber: "json/number";
28
+ readonly BContextEnd: "BContextEnd";
29
+ readonly FrontendFromUrl: "Frontend/FromUrl";
30
+ readonly FrontendFromFolder: "Frontend/FromFolder";
31
+ readonly BObjectSpec: "BObjectSpec";
32
+ readonly Blob: "Blob";
33
+ readonly Null: "Null";
34
+ readonly Binary: "binary";
35
+ readonly LSProvider: "LSProvider";
36
+ readonly UserProject: "UserProject";
37
+ readonly Projects: "Projects";
38
+ readonly ClientRoot: "ClientRoot";
39
+ };
40
+ /** Resource type name prefix constants. */
41
+ declare const ResourceTypePrefix: {
42
+ readonly Blob: "Blob/";
43
+ readonly BlobUpload: "BlobUpload/";
44
+ readonly BlobIndex: "BlobIndex/";
45
+ readonly PColumnData: "PColumnData/";
46
+ readonly StreamWorkdir: "StreamWorkdir/";
47
+ };
48
+ //#endregion
49
+ export { ResourceTypeName, ResourceTypePrefix };
50
+ //# sourceMappingURL=resource_types.d.ts.map
@@ -0,0 +1,51 @@
1
+ //#region src/resource_types.ts
2
+ /** Well-known resource type names used across the platform. */
3
+ const ResourceTypeName = {
4
+ StreamManager: "StreamManager",
5
+ StdMap: "StdMap",
6
+ StdMapSlash: "std/map",
7
+ EphStdMap: "EphStdMap",
8
+ PFrame: "PFrame",
9
+ ParquetChunk: "ParquetChunk",
10
+ BContext: "BContext",
11
+ BlockPackCustom: "BlockPackCustom",
12
+ BinaryMap: "BinaryMap",
13
+ BinaryValue: "BinaryValue",
14
+ BlobMap: "BlobMap",
15
+ BResolveSingle: "BResolveSingle",
16
+ BResolveSingleNoResult: "BResolveSingleNoResult",
17
+ BQueryResult: "BQueryResult",
18
+ TengoTemplate: "TengoTemplate",
19
+ TengoLib: "TengoLib",
20
+ SoftwareInfo: "SoftwareInfo",
21
+ Dummy: "Dummy",
22
+ JsonResourceError: "json/resourceError",
23
+ JsonObject: "json/object",
24
+ JsonGzObject: "json-gz/object",
25
+ JsonString: "json/string",
26
+ JsonArray: "json/array",
27
+ JsonNumber: "json/number",
28
+ BContextEnd: "BContextEnd",
29
+ FrontendFromUrl: "Frontend/FromUrl",
30
+ FrontendFromFolder: "Frontend/FromFolder",
31
+ BObjectSpec: "BObjectSpec",
32
+ Blob: "Blob",
33
+ Null: "Null",
34
+ Binary: "binary",
35
+ LSProvider: "LSProvider",
36
+ UserProject: "UserProject",
37
+ Projects: "Projects",
38
+ ClientRoot: "ClientRoot"
39
+ };
40
+ /** Resource type name prefix constants. */
41
+ const ResourceTypePrefix = {
42
+ Blob: "Blob/",
43
+ BlobUpload: "BlobUpload/",
44
+ BlobIndex: "BlobIndex/",
45
+ PColumnData: "PColumnData/",
46
+ StreamWorkdir: "StreamWorkdir/"
47
+ };
48
+
49
+ //#endregion
50
+ export { ResourceTypeName, ResourceTypePrefix };
51
+ //# sourceMappingURL=resource_types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource_types.js","names":[],"sources":["../src/resource_types.ts"],"sourcesContent":["/** Well-known resource type names used across the platform. */\nexport const ResourceTypeName = {\n StreamManager: \"StreamManager\",\n StdMap: \"StdMap\",\n StdMapSlash: \"std/map\",\n EphStdMap: \"EphStdMap\",\n PFrame: \"PFrame\",\n ParquetChunk: \"ParquetChunk\",\n BContext: \"BContext\",\n BlockPackCustom: \"BlockPackCustom\",\n BinaryMap: \"BinaryMap\",\n BinaryValue: \"BinaryValue\",\n BlobMap: \"BlobMap\",\n BResolveSingle: \"BResolveSingle\",\n BResolveSingleNoResult: \"BResolveSingleNoResult\",\n BQueryResult: \"BQueryResult\",\n TengoTemplate: \"TengoTemplate\",\n TengoLib: \"TengoLib\",\n SoftwareInfo: \"SoftwareInfo\",\n Dummy: \"Dummy\",\n JsonResourceError: \"json/resourceError\",\n JsonObject: \"json/object\",\n JsonGzObject: \"json-gz/object\",\n JsonString: \"json/string\",\n JsonArray: \"json/array\",\n JsonNumber: \"json/number\",\n BContextEnd: \"BContextEnd\",\n FrontendFromUrl: \"Frontend/FromUrl\",\n FrontendFromFolder: \"Frontend/FromFolder\",\n BObjectSpec: \"BObjectSpec\",\n Blob: \"Blob\",\n Null: \"Null\",\n Binary: \"binary\",\n LSProvider: \"LSProvider\",\n UserProject: \"UserProject\",\n Projects: \"Projects\",\n ClientRoot: \"ClientRoot\",\n} as const;\n\n/** Resource type name prefix constants. */\nexport const ResourceTypePrefix = {\n Blob: \"Blob/\",\n BlobUpload: \"BlobUpload/\",\n BlobIndex: \"BlobIndex/\",\n PColumnData: \"PColumnData/\",\n StreamWorkdir: \"StreamWorkdir/\",\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,eAAe;CACf,QAAQ;CACR,aAAa;CACb,WAAW;CACX,QAAQ;CACR,cAAc;CACd,UAAU;CACV,iBAAiB;CACjB,WAAW;CACX,aAAa;CACb,SAAS;CACT,gBAAgB;CAChB,wBAAwB;CACxB,cAAc;CACd,eAAe;CACf,UAAU;CACV,cAAc;CACd,OAAO;CACP,mBAAmB;CACnB,YAAY;CACZ,cAAc;CACd,YAAY;CACZ,WAAW;CACX,YAAY;CACZ,aAAa;CACb,iBAAiB;CACjB,oBAAoB;CACpB,aAAa;CACb,MAAM;CACN,MAAM;CACN,QAAQ;CACR,YAAY;CACZ,aAAa;CACb,UAAU;CACV,YAAY;CACb;;AAGD,MAAa,qBAAqB;CAChC,MAAM;CACN,YAAY;CACZ,WAAW;CACX,aAAa;CACb,eAAe;CAChB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-model-common",
3
- "version": "1.26.1",
3
+ "version": "1.28.0",
4
4
  "description": "Platforma SDK Model",
5
5
  "files": [
6
6
  "./dist/**/*",
@@ -19,15 +19,16 @@
19
19
  "dependencies": {
20
20
  "canonicalize": "~2.1.0",
21
21
  "zod": "~3.23.8",
22
- "@milaboratories/pl-error-like": "1.12.9"
22
+ "@milaboratories/pl-error-like": "1.12.9",
23
+ "@milaboratories/helpers": "1.14.0"
23
24
  },
24
25
  "devDependencies": {
25
26
  "@vitest/coverage-istanbul": "^4.0.18",
26
27
  "typescript": "~5.9.3",
27
28
  "vitest": "^4.0.18",
28
- "@milaboratories/ts-configs": "1.2.2",
29
29
  "@milaboratories/ts-builder": "1.3.0",
30
- "@milaboratories/build-configs": "1.5.2"
30
+ "@milaboratories/build-configs": "1.5.2",
31
+ "@milaboratories/ts-configs": "1.2.2"
31
32
  },
32
33
  "scripts": {
33
34
  "build": "ts-builder build --target node",
@@ -1,7 +1,6 @@
1
1
  import type { ErrorLike } from "@milaboratories/pl-error-like";
2
2
 
3
3
  /** Use this as constraint instead of `Function` */
4
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
4
  export type AnyFunction = (...args: any[]) => any;
6
5
 
7
6
  export type OutputWithStatus<T> =
@@ -7,4 +7,5 @@ export * from "./log";
7
7
  export * from "./ls";
8
8
 
9
9
  export * from "./pframe";
10
+ export * from "./pspec";
10
11
  export * from "./ChunkedStreamReader";
@@ -8,7 +8,7 @@ import type {
8
8
  AnchorAxisRefByIdx,
9
9
  AnchoredPColumnId,
10
10
  AnchoredPColumnSelector,
11
- AxisSelector,
11
+ LegacyAxisSelector,
12
12
  PColumnSelector,
13
13
  } from "./selectors";
14
14
  import type { AxisId, PColumnSpec } from "./spec";
@@ -323,7 +323,7 @@ export function resolveAnchors(
323
323
  function resolveAxisReference(
324
324
  anchors: Record<string, PColumnSpec>,
325
325
  axisRef: AAxisSelector,
326
- ): AxisSelector {
326
+ ): LegacyAxisSelector {
327
327
  if (!isAnchorAxisRef(axisRef)) return axisRef;
328
328
 
329
329
  // It's an anchored reference
@@ -12,8 +12,14 @@ import { getAxisId } from "./spec";
12
12
  *
13
13
  * This interface is used in various selection and matching operations
14
14
  * throughout the PFrame system, such as column queries and axis lookups.
15
+ *
16
+ * @deprecated This selector is part of the legacy column matching API.
17
+ * The new Columns API (see sdk/model/src/columns/) now handles column and axis
18
+ * selection via {@link AxisSelector} and {@link ColumnSelector}, providing
19
+ * stricter matching semantics (StringMatcher-based) and a unified approach
20
+ * to working with columns, including domain and annotation matching.
15
21
  */
16
- export interface AxisSelector {
22
+ export interface LegacyAxisSelector {
17
23
  /**
18
24
  * Optional value type to match against.
19
25
  * When specified, only axes with this exact type will match.
@@ -94,7 +100,7 @@ export type ADomain = string | AnchorDomainRef;
94
100
  * Axis identifier that can be either a direct AxisId or a reference to an axis through an anchor
95
101
  * Allows referring to axes in a way that can be resolved in different contexts
96
102
  */
97
- export type AAxisSelector = AxisSelector | AnchorAxisRef;
103
+ export type AAxisSelector = LegacyAxisSelector | AnchorAxisRef;
98
104
 
99
105
  /**
100
106
  * Match resolution strategy for PColumns
@@ -144,7 +150,7 @@ export interface PColumnSelector extends AnchoredPColumnSelector {
144
150
  domain?: Record<string, string>;
145
151
  contextDomainAnchor?: never;
146
152
  contextDomain?: Record<string, string>;
147
- axes?: AxisSelector[];
153
+ axes?: LegacyAxisSelector[];
148
154
  }
149
155
 
150
156
  /**
@@ -187,7 +193,7 @@ export function isAnchoredPColumnId(id: unknown): id is AnchoredPColumnId {
187
193
  * @param axis - The AxisId to check against the selector
188
194
  * @returns true if the AxisId matches all specified criteria in the selector, false otherwise
189
195
  */
190
- export function matchAxis(selector: AxisSelector, axis: AxisId): boolean {
196
+ export function matchAxis(selector: LegacyAxisSelector, axis: AxisId): boolean {
191
197
  // Match name if specified
192
198
  if (selector.name !== undefined && selector.name !== axis.name) return false;
193
199
 
@@ -298,7 +304,7 @@ export function matchPColumn(pcolumn: PColumnSpec, selector: PColumnSelector): b
298
304
  * or an array of PColumnSelectors, or a single PColumnSelector
299
305
  * @returns A function that takes a PColumnSpec and returns a boolean
300
306
  */
301
- export function selectorsToPredicate(
307
+ export function legacyColumnSelectorsToPredicate(
302
308
  predicateOrSelectors: PColumnSelector | PColumnSelector[],
303
309
  ): (spec: PObjectSpec) => boolean {
304
310
  if (Array.isArray(predicateOrSelectors))
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
1
  export type AddParameters<
3
2
  TParameters extends [...args: any],
4
3
  TFunction extends (...args: any) => any,