@clivly/core 0.10.0 → 0.10.2
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.
|
@@ -495,6 +495,7 @@ function toFieldMap(scored) {
|
|
|
495
495
|
}
|
|
496
496
|
//#endregion
|
|
497
497
|
exports.TARGET_CONCEPTS = TARGET_CONCEPTS;
|
|
498
|
+
exports.hasDefiningColumn = hasDefiningColumn;
|
|
498
499
|
exports.hasSensitiveColumns = hasSensitiveColumns;
|
|
499
500
|
exports.matchesConcept = matchesConcept;
|
|
500
501
|
exports.requiredFieldsFor = requiredFieldsFor;
|
|
@@ -19,6 +19,7 @@ interface ScoredTable {
|
|
|
19
19
|
* They stay manually selectable — an explicit, informed choice is legitimate.
|
|
20
20
|
*/
|
|
21
21
|
declare function hasSensitiveColumns(columns: string[]): boolean;
|
|
22
|
+
declare function hasDefiningColumn(concept: TargetConcept, columns: string[]): boolean;
|
|
22
23
|
declare function scoreConcepts(table: ScoredTable): Scored<TargetConcept>[];
|
|
23
24
|
declare function topConcept(table: ScoredTable): {
|
|
24
25
|
best: Scored<TargetConcept>;
|
|
@@ -60,4 +61,4 @@ interface FieldSuggestion {
|
|
|
60
61
|
declare function scoreFieldMap(concept: TargetConcept, table: ScoredTable): Scored<FieldSuggestion>[];
|
|
61
62
|
declare function toFieldMap(scored: Scored<FieldSuggestion>[]): Record<string, string>;
|
|
62
63
|
//#endregion
|
|
63
|
-
export { type DiscoveredColumnMeta, FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasSensitiveColumns, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
|
|
64
|
+
export { type DiscoveredColumnMeta, FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasDefiningColumn, hasSensitiveColumns, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
|
|
@@ -19,6 +19,7 @@ interface ScoredTable {
|
|
|
19
19
|
* They stay manually selectable — an explicit, informed choice is legitimate.
|
|
20
20
|
*/
|
|
21
21
|
declare function hasSensitiveColumns(columns: string[]): boolean;
|
|
22
|
+
declare function hasDefiningColumn(concept: TargetConcept, columns: string[]): boolean;
|
|
22
23
|
declare function scoreConcepts(table: ScoredTable): Scored<TargetConcept>[];
|
|
23
24
|
declare function topConcept(table: ScoredTable): {
|
|
24
25
|
best: Scored<TargetConcept>;
|
|
@@ -60,4 +61,4 @@ interface FieldSuggestion {
|
|
|
60
61
|
declare function scoreFieldMap(concept: TargetConcept, table: ScoredTable): Scored<FieldSuggestion>[];
|
|
61
62
|
declare function toFieldMap(scored: Scored<FieldSuggestion>[]): Record<string, string>;
|
|
62
63
|
//#endregion
|
|
63
|
-
export { type DiscoveredColumnMeta, FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasSensitiveColumns, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
|
|
64
|
+
export { type DiscoveredColumnMeta, FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasDefiningColumn, hasSensitiveColumns, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
|
|
@@ -493,4 +493,4 @@ function toFieldMap(scored) {
|
|
|
493
493
|
return map;
|
|
494
494
|
}
|
|
495
495
|
//#endregion
|
|
496
|
-
export { TARGET_CONCEPTS, hasSensitiveColumns, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
|
|
496
|
+
export { TARGET_CONCEPTS, hasDefiningColumn, hasSensitiveColumns, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
|