semanticdb-v2 2.0.0-alpha.4 → 2.0.0-alpha.5
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/README.md +26 -10
- package/dist/compiler/compile-cte.d.ts +1 -1
- package/dist/errors.d.ts +2 -1
- package/dist/executor/components.d.ts +8 -3
- package/dist/executor/fetch-entities.d.ts +2 -0
- package/dist/executor/types.d.ts +9 -3
- package/dist/i18n/index.d.ts +4 -0
- package/dist/i18n/locales/en-US.d.ts +2 -0
- package/dist/i18n/locales/zh-CN.d.ts +2 -0
- package/dist/i18n/registry.d.ts +13 -0
- package/dist/i18n/types.d.ts +9 -0
- package/dist/index.d.ts +4 -2
- package/dist/normalizer/core.d.ts +5 -0
- package/dist/normalizer/default-pred-name.d.ts +2 -0
- package/dist/normalizer/index.d.ts +1 -0
- package/dist/normalizer/property-resolve.d.ts +1 -0
- package/dist/operators/builtins/period-name.d.ts +2 -1
- package/dist/operators/index.d.ts +1 -0
- package/dist/operators/registry.d.ts +1 -1
- package/dist/operators/resolve.d.ts +3 -0
- package/dist/operators/types.d.ts +17 -8
- package/dist/physical/clickhouse-provider.d.ts +8 -0
- package/dist/physical/provider.d.ts +4 -0
- package/dist/planner/index.d.ts +1 -1
- package/dist/planner/semantics/annual-periods.d.ts +11 -0
- package/dist/planner/semantics/index.d.ts +1 -0
- package/dist/planner/semantics/lifecycle/classification.d.ts +5 -7
- package/dist/planner/semantics/lifecycle/query-policy.d.ts +2 -3
- package/dist/planner/semantics/lifecycle/rule.d.ts +2 -2
- package/dist/planner/semantics/observation/index.d.ts +2 -0
- package/dist/planner/semantics/observation/periods.d.ts +19 -0
- package/dist/planner/semantics/validity/classification.d.ts +14 -0
- package/dist/planner/semantics/validity/index.d.ts +6 -0
- package/dist/planner/semantics/validity/periods.d.ts +16 -0
- package/dist/planner/semantics/validity/query-policy.d.ts +4 -0
- package/dist/planner/semantics/validity/rule.d.ts +2 -0
- package/dist/planner/types.d.ts +31 -0
- package/dist/schema/dependent-projection.d.ts +8 -0
- package/dist/schema/index.d.ts +1 -0
- package/dist/semantic-types/index.d.ts +1 -1
- package/dist/semantic-types/types.d.ts +8 -1
- package/dist/semanticdb.esm.js +3 -3
- package/dist/semanticdb.js +3 -3
- package/package.json +2 -1
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { buildFieldMap, getProperty, getSchema, } from './schema-registry';
|
|
2
2
|
export { resolvePropertyPath } from './resolve-property-path';
|
|
3
|
+
export { isDependentProjection } from './dependent-projection';
|
|
3
4
|
export { isConcreteEntityId, resolveEntityFilterProperty, resolveEntityIdProperty, } from './entity-identity';
|
|
4
5
|
export type { ResolvedPropertyPath, ResolvedRelationSegment, ResolvedSchemaLookup, } from './resolve-property-path';
|
|
@@ -4,6 +4,6 @@ export { SemanticTypeRegistry } from './registry';
|
|
|
4
4
|
export { resolveSchema } from './resolve-schema';
|
|
5
5
|
export { validateResolvedSchema } from './validate-resolved-schema';
|
|
6
6
|
export { normalizePrimalQuery } from './primal-types/index';
|
|
7
|
-
export type { ComparableCategoryDefinition, PropertySqlDefinition, PrimalType, ResolvedSemanticProperty, ResolvedSemanticSchema, LegacySemanticSchemaMetadata, ResolvedSemanticSchemaMetadata, SemanticSchemaMetadata, SemanticTypeNormalizeContext, SemanticPeriodEvaluationContext, SemanticTypeResultContext, SemanticTypeResultProperty, SemanticPropertyDraft, SemanticSchemaDraft, SemanticTypeDefinition, TimeGranularity, TemporalSemantics, TimeWatermarkPolicy, } from './types';
|
|
7
|
+
export type { ComparableCategoryDefinition, PropertyHierarchyDefinition, PropertySqlDefinition, PrimalType, ResolvedSemanticProperty, ResolvedSemanticSchema, LegacySemanticSchemaMetadata, ResolvedSemanticSchemaMetadata, SemanticSchemaMetadata, SemanticTypeNormalizeContext, SemanticPeriodEvaluationContext, SemanticTypeResultContext, SemanticTypeResultProperty, SemanticPropertyDraft, SemanticSchemaDraft, SemanticTypeDefinition, TimeGranularity, TemporalSemantics, TimeWatermarkPolicy, } from './types';
|
|
8
8
|
export type { HierarchyDefinition, HierarchyLevelDefinition, ResolvedHierarchyDefinition, } from '../plugins/hierarchy/index';
|
|
9
9
|
export declare const createSemanticTypeRegistry: () => SemanticTypeRegistry;
|
|
@@ -17,6 +17,11 @@ export interface ComparableCategoryDefinition {
|
|
|
17
17
|
readonly values: readonly string[];
|
|
18
18
|
readonly direction: 1 | -1;
|
|
19
19
|
}
|
|
20
|
+
/** Same-Schema Property drill metadata. `up` is the single-valued side. */
|
|
21
|
+
export interface PropertyHierarchyDefinition {
|
|
22
|
+
readonly up?: string;
|
|
23
|
+
readonly down?: string;
|
|
24
|
+
}
|
|
20
25
|
/** Extension point for plugin-owned Schema draft metadata. */
|
|
21
26
|
export interface SemanticSchemaMetadata {
|
|
22
27
|
}
|
|
@@ -26,7 +31,7 @@ export interface ResolvedSemanticSchemaMetadata {
|
|
|
26
31
|
/** Extension point for legacy plugin metadata removed from the canonical Schema shape. */
|
|
27
32
|
export interface LegacySemanticSchemaMetadata {
|
|
28
33
|
}
|
|
29
|
-
export interface SemanticPropertyDraft extends Omit<PropertyTypeDraft, '_id' | '_sid' | 'id' | 'sid' | 'type' | 'primal_type' | 'isArray' | 'granularity' | 'is_observation' | 'is_snapshot' | 'temporalSemantics' | 'is_dynamic' | 'udf' | 'is_comparable' | 'comparable_order'> {
|
|
34
|
+
export interface SemanticPropertyDraft extends Omit<PropertyTypeDraft, '_id' | '_sid' | 'id' | 'sid' | 'type' | 'primal_type' | 'isArray' | 'granularity' | 'is_observation' | 'is_snapshot' | 'temporalSemantics' | 'is_dynamic' | 'udf' | 'is_comparable' | 'comparable_order' | 'hierarchy'> {
|
|
30
35
|
readonly id?: string;
|
|
31
36
|
readonly type: string;
|
|
32
37
|
readonly primal_type?: PrimalType;
|
|
@@ -39,6 +44,8 @@ export interface SemanticPropertyDraft extends Omit<PropertyTypeDraft, '_id' | '
|
|
|
39
44
|
readonly udf?: PropertySqlDefinition;
|
|
40
45
|
readonly comparable?: ComparableCategoryDefinition;
|
|
41
46
|
readonly timeWatermark?: TimeWatermarkPolicy;
|
|
47
|
+
/** Same-Schema drill relationship. `up` identifies the single-valued parent Property. */
|
|
48
|
+
readonly hierarchy?: PropertyHierarchyDefinition;
|
|
42
49
|
}
|
|
43
50
|
export interface ResolvedSemanticProperty extends Omit<SemanticPropertyDraft, 'id' | 'primal_type' | 'isArray' | 'is_dynamic'> {
|
|
44
51
|
readonly id: string;
|