@dbsp/core 1.5.0 → 1.7.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.
package/dist/index.d.ts CHANGED
@@ -3097,10 +3097,6 @@ declare class IntentBuilder<TResult = unknown> {
3097
3097
  * Apply relation hints to includes that don't have explicit `via`.
3098
3098
  */
3099
3099
  applyRelationHints(intent: QueryIntent): QueryIntent;
3100
- /**
3101
- * Apply relation hint to a single include (recursively).
3102
- */
3103
- private applyHintToInclude;
3104
3100
  /**
3105
3101
  * Clone the current state for immutable builder pattern.
3106
3102
  */
@@ -4444,10 +4440,6 @@ declare class QueryBuilderImpl<TResult = unknown> implements QueryBuilder<TResul
4444
4440
  */
4445
4441
  /** @internal — called by stream-impl */
4446
4442
  applyRelationHints(intent: QueryIntent): QueryIntent;
4447
- /**
4448
- * Apply relation hint to a single include (recursively).
4449
- */
4450
- private applyHintToInclude;
4451
4443
  /**
4452
4444
  * Build the QueryIntent from current state.
4453
4445
  * Handles exactOptionalPropertyTypes by only including defined properties.
@@ -6670,6 +6662,19 @@ declare class AmbiguousRelationError extends Error {
6670
6662
  * ```
6671
6663
  */
6672
6664
  declare function findClosestMatch(target: string, candidates: readonly string[]): string | undefined;
6665
+ type TableScopedErrorOptions = {
6666
+ table: string;
6667
+ requested: string;
6668
+ available: readonly string[];
6669
+ };
6670
+ declare abstract class TableScopedError extends Error {
6671
+ readonly table: string;
6672
+ readonly requested: string;
6673
+ readonly available: readonly string[];
6674
+ readonly suggestion?: string;
6675
+ readonly publicMessage: string;
6676
+ protected constructor(opts: TableScopedErrorOptions, genericMessage: string);
6677
+ }
6673
6678
  /**
6674
6679
  * Error thrown when a requested relation does not exist.
6675
6680
  *
@@ -6688,7 +6693,7 @@ declare function findClosestMatch(target: string, candidates: readonly string[])
6688
6693
  * // err.suggestion === 'comments'
6689
6694
  * ```
6690
6695
  */
6691
- declare class RelationNotFoundError extends Error {
6696
+ declare class RelationNotFoundError extends TableScopedError {
6692
6697
  readonly name: "RelationNotFoundError";
6693
6698
  /**
6694
6699
  * The table where the relation was requested.
@@ -6807,7 +6812,7 @@ declare class TableNotFoundError extends Error {
6807
6812
  * // err.suggestion === 'email'
6808
6813
  * ```
6809
6814
  */
6810
- declare class ColumnNotFoundError extends Error {
6815
+ declare class ColumnNotFoundError extends TableScopedError {
6811
6816
  readonly name: "ColumnNotFoundError";
6812
6817
  /**
6813
6818
  * The table where the column was requested.