@rljson/rljson 0.0.64 → 0.0.66

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.
@@ -25,6 +25,13 @@ export interface ColumnCfg extends Json {
25
25
  * An optional short title of the column
26
26
  */
27
27
  titleShort: string;
28
+ /**
29
+ * Defines if the column is reference column to another table (foreign key)
30
+ */
31
+ ref?: {
32
+ tableKey: TableKey;
33
+ columnKey?: ColumnKey;
34
+ };
28
35
  }
29
36
  /**
30
37
  * A column configuration with route
@@ -4,7 +4,7 @@ import { CakesTable } from '../content/cake.ts';
4
4
  import { ComponentsTable } from '../content/components.ts';
5
5
  import { LayersTable } from '../content/layer.ts';
6
6
  import { SliceIdsTable } from '../content/slice-ids.ts';
7
- import { History } from '../edit/history.ts';
7
+ import { History } from '../history/history.ts';
8
8
  import { Rljson } from '../rljson.ts';
9
9
  import { Ref } from '../typedefs.ts';
10
10
  export interface Ingredient extends Json {
package/dist/example.d.ts CHANGED
@@ -7,11 +7,9 @@ export declare class Example {
7
7
  singleRow: () => Rljson;
8
8
  multipleRows: () => Rljson;
9
9
  singleRef: () => Rljson;
10
+ multiRef: () => Rljson;
10
11
  singleSliceIdRef: () => Rljson;
11
12
  multiSliceIdRef: () => Rljson;
12
- singleNamedRef: () => Rljson;
13
- multiRef: () => Rljson;
14
- multiMixedRef: () => Rljson;
15
13
  complete: () => Rljson;
16
14
  };
17
15
  static readonly broken: {
@@ -24,7 +22,6 @@ export declare class Example {
24
22
  missingData: () => Rljson;
25
23
  dataNotBeingAnArray: () => Rljson;
26
24
  missingRef: () => Rljson;
27
- missingNamedRef: () => Rljson;
28
25
  missingMultiRef: () => Rljson;
29
26
  missingReferencedTable: () => Rljson;
30
27
  missingSliceId: () => Rljson;
package/dist/index.d.ts CHANGED
@@ -5,11 +5,11 @@ export * from './content/layer.ts';
5
5
  export * from './content/revision.ts';
6
6
  export * from './content/slice-ids.ts';
7
7
  export * from './content/table-cfg.ts';
8
- export * from './edit/history.ts';
9
- export * from './edit/insert-validator.ts';
10
- export * from './edit/insert.ts';
11
8
  export * from './example.ts';
12
9
  export * from './example/bakery-example.ts';
10
+ export * from './history/history.ts';
11
+ export * from './insert/insert-validator.ts';
12
+ export * from './insert/insert.ts';
13
13
  export * from './rljson.ts';
14
14
  export * from './route/route.ts';
15
15
  export * from './tools/remove-duplicates.ts';
@@ -17,3 +17,4 @@ export type Insert<T extends Json> = {
17
17
  origin?: Ref;
18
18
  acknowledged?: boolean;
19
19
  };
20
+ export declare const exampleInsert: () => Insert<Json>;
package/dist/rljson.d.ts CHANGED
@@ -6,7 +6,7 @@ import { LayersTable } from './content/layer.ts';
6
6
  import { RevisionsTable } from './content/revision.ts';
7
7
  import { SliceIdsTable } from './content/slice-ids.ts';
8
8
  import { TableCfgRef, TablesCfgTable } from './content/table-cfg.ts';
9
- import { History } from './edit/history.ts';
9
+ import { History } from './history/history.ts';
10
10
  import { ContentType, Ref, TableKey } from './typedefs.ts';
11
11
  export declare const reservedFieldNames: string[];
12
12
  export declare const reservedTableKeys: string[];