@dbx-tools/dbx-model-catalog 0.1.5 → 0.1.7
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 +46 -9
- package/dist/_generated/json-schema.d.ts +3830 -0
- package/dist/_generated/published.d.ts +1 -1
- package/dist/_generated/schemas.d.ts +27 -2
- package/dist/browser.d.ts +11 -3
- package/dist/browser.js +9480 -1150
- package/dist/browser.js.map +32 -10
- package/dist/catalog-index.d.ts +28 -0
- package/dist/catalog.json +1 -0
- package/dist/cli.js +8847 -49461
- package/dist/cli.js.map +16 -223
- package/dist/filter.d.ts +2 -0
- package/dist/identity.d.ts +15 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.js +8843 -49453
- package/dist/index.js.map +15 -222
- package/dist/local-client.d.ts +4 -0
- package/dist/{client.d.ts → pynect.d.ts} +1 -1
- package/dist/pynect.js +553 -0
- package/dist/pynect.js.map +15 -0
- package/dist/search-index.json +1 -0
- package/dist/search.d.ts +10 -0
- package/dist/snapshot.d.ts +7 -0
- package/dist/snapshot.js +9495 -0
- package/dist/snapshot.js.map +36 -0
- package/dist/types.d.ts +5 -0
- package/dist/validation.d.ts +5 -0
- package/package.json +27 -2
- package/dist/python/pyproject.toml +0 -16
- package/dist/python/src/dbx_model_catalog/__init__.py +0 -93
- package/dist/python/src/dbx_model_catalog/client.py +0 -256
- package/dist/python/src/dbx_model_catalog/database.py +0 -296
- package/dist/python/src/dbx_model_catalog/filters.py +0 -41
- package/dist/python/src/dbx_model_catalog/models.py +0 -853
- package/dist/python/src/dbx_model_catalog/publishing.py +0 -118
- package/dist/python/src/dbx_model_catalog/py.typed +0 -0
- package/dist/python/src/dbx_model_catalog/query.py +0 -593
- package/dist/python/src/dbx_model_catalog/schema/__init__.py +0 -0
- package/dist/python/src/dbx_model_catalog/schema/model-catalog.schema.json +0 -1016
- package/dist/python/src/dbx_model_catalog/search.py +0 -912
- package/dist/python/src/dbx_model_catalog_server/__init__.py +0 -3
- package/dist/python/src/dbx_model_catalog_server/app.py +0 -142
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { CatalogFilters, CatalogModelRecord, CatalogSearchIndexPayload, ModelCatalog } from "./_generated/schemas.js";
|
|
2
|
+
import { type ModelIdentity } from "./identity.js";
|
|
3
|
+
import { type CatalogSearchMatch } from "./search.js";
|
|
4
|
+
export interface CatalogIdentityMatch {
|
|
5
|
+
readonly identity: ModelIdentity;
|
|
6
|
+
readonly record: CatalogModelRecord;
|
|
7
|
+
}
|
|
8
|
+
export interface EnrichedLiveModel<T> {
|
|
9
|
+
readonly live: T;
|
|
10
|
+
readonly published?: CatalogIdentityMatch;
|
|
11
|
+
}
|
|
12
|
+
/** Immutable identity and search index over one catalog snapshot. */
|
|
13
|
+
export declare class ModelCatalogIndex {
|
|
14
|
+
readonly catalog: ModelCatalog;
|
|
15
|
+
readonly searchIndex: CatalogSearchIndexPayload;
|
|
16
|
+
readonly records: readonly CatalogModelRecord[];
|
|
17
|
+
private readonly exact;
|
|
18
|
+
private readonly normalized;
|
|
19
|
+
constructor(catalog: ModelCatalog, searchIndex: CatalogSearchIndexPayload);
|
|
20
|
+
get(id: string): CatalogModelRecord | undefined;
|
|
21
|
+
resolve(value: string): CatalogIdentityMatch | undefined;
|
|
22
|
+
matchAny(values: readonly string[]): CatalogIdentityMatch | undefined;
|
|
23
|
+
list(filters?: CatalogFilters): CatalogModelRecord[];
|
|
24
|
+
search(query: string, limit?: number | null): CatalogSearchMatch[];
|
|
25
|
+
}
|
|
26
|
+
export declare function createModelCatalogIndex(catalog: ModelCatalog, searchIndex: CatalogSearchIndexPayload): ModelCatalogIndex;
|
|
27
|
+
/** Join live models to published facts without dropping undocumented live entries. */
|
|
28
|
+
export declare function enrichLiveModels<T>(index: ModelCatalogIndex, models: readonly T[], identities: (model: T) => readonly string[]): EnrichedLiveModel<T>[];
|