@dbx-tools/dbx-model-catalog 0.1.4 → 0.1.6
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 +62 -10
- package/dist/_generated/json-schema.d.ts +3830 -0
- package/dist/_generated/published.d.ts +7 -0
- package/dist/_generated/schemas.d.ts +27 -2
- package/dist/browser.d.ts +12 -3
- package/dist/browser.js +9487 -1141
- package/dist/browser.js.map +32 -9
- package/dist/catalog-index.d.ts +28 -0
- package/dist/catalog.json +1 -0
- package/dist/cli.js +8811 -49414
- package/dist/cli.js.map +16 -222
- 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 -49435
- package/dist/index.js.map +15 -221
- 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 +6 -0
- package/dist/snapshot.js +9494 -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 -79
- package/dist/python/src/dbx_model_catalog/client.py +0 -251
- 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 -847
- package/dist/python/src/dbx_model_catalog/publishing.py +0 -27
- 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
package/dist/search.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CatalogModelRecord, CatalogSearchIndexPayload } from "./_generated/schemas.js";
|
|
2
|
+
export interface CatalogSearchMatch {
|
|
3
|
+
readonly exact: boolean;
|
|
4
|
+
readonly kind: "exact" | "fuzzy" | "token";
|
|
5
|
+
readonly record: CatalogModelRecord;
|
|
6
|
+
readonly relevance: number;
|
|
7
|
+
readonly score: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function searchCatalogRecords<T extends CatalogModelRecord>(index: CatalogSearchIndexPayload, models: readonly T[], query: string, limit?: number | null): T[];
|
|
10
|
+
export declare function searchCatalogMatches<T extends CatalogModelRecord>(index: CatalogSearchIndexPayload, models: readonly T[], query: string, limit?: number | null): CatalogSearchMatch[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const BUNDLED_MODEL_CATALOG: import("./browser.js").ModelCatalog;
|
|
2
|
+
export declare const BUNDLED_CATALOG_SEARCH_INDEX: import("./browser.js").CatalogSearchIndexPayload;
|
|
3
|
+
/** Offline, synchronous index shipped with the npm package. */
|
|
4
|
+
export declare const bundledModelCatalogIndex: import("./catalog-index.js").ModelCatalogIndex;
|
|
5
|
+
export * from "./catalog-index.js";
|
|
6
|
+
export * from "./identity.js";
|