@rljson/db 0.0.10 → 0.0.11

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.
@@ -19,7 +19,6 @@ export declare class CakeController<N extends string, C extends Cake> extends Ba
19
19
  protected readonly _core: Core;
20
20
  protected readonly _tableKey: TableKey;
21
21
  private _refs?;
22
- private _table;
23
22
  constructor(_core: Core, _tableKey: TableKey, _refs?: CakeControllerRefs | undefined);
24
23
  private _baseLayers;
25
24
  init(): Promise<void>;
package/dist/db.d.ts CHANGED
@@ -17,6 +17,11 @@ export type Container = {
17
17
  tree: Json;
18
18
  cell: Cell[];
19
19
  };
20
+ export type GetOptions = {
21
+ skipRljson?: boolean;
22
+ skipTree?: boolean;
23
+ skipCell?: boolean;
24
+ };
20
25
  export type ContainerWithControllers = Container & {
21
26
  controllers: Record<string, Controller<any, any, any>>;
22
27
  };
@@ -48,7 +53,7 @@ export declare class Db {
48
53
  * @returns An array of Rljson objects matching the route and filter
49
54
  * @throws {Error} If the route is not valid or if any controller cannot be created
50
55
  */
51
- get(route: Route, where: string | Json, filter?: ControllerChildProperty[], sliceIds?: SliceId[]): Promise<ContainerWithControllers>;
56
+ get(route: Route, where: string | Json, filter?: ControllerChildProperty[], sliceIds?: SliceId[], options?: GetOptions): Promise<ContainerWithControllers>;
52
57
  /**
53
58
  * Resolves the route and returns corresponding data for any segment of the route,
54
59
  * matching recursive filters and where clauses
@@ -58,9 +63,11 @@ export declare class Db {
58
63
  * @param controllers - The controllers to use for fetching data
59
64
  * @param filter - Optional filter to apply to the data at the current route segment
60
65
  * @param sliceIds - Optional slice IDs to filter the data at the current route segment
66
+ * @param routeAccumulator - The accumulated route up to the current segment
67
+ * @param options - Additional options for fetching data
61
68
  * @returns - An Rljson object matching the route and filters
62
69
  */
63
- _get(route: Route, where: string | Json, controllers: Record<string, Controller<any, any, any>>, filter?: ControllerChildProperty[], sliceIds?: SliceId[], routeAccumulator?: Route): Promise<Container>;
70
+ _get(route: Route, where: string | Json, controllers: Record<string, Controller<any, any, any>>, filter?: ControllerChildProperty[], sliceIds?: SliceId[], routeAccumulator?: Route, options?: GetOptions): Promise<Container>;
64
71
  /**
65
72
  * Get the reference (hash) of a route segment, considering default refs and insertHistory refs
66
73
  * @param segment - The route segment to get the reference for