@snowtop/ent 0.2.1 → 0.2.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.
@@ -21,7 +21,6 @@ function getRawCountLoader(viewer, opts) {
21
21
  });
22
22
  }
23
23
  const name = `custom_query_count_loader:${opts.name}`;
24
- console.debug(opts.name);
25
24
  return viewer.context.cache.getLoader(name, () => new loaders_1.RawCountLoader({
26
25
  tableName: opts.loadEntOptions.tableName,
27
26
  groupCol: opts.groupCol,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowtop/ent",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "snowtop ent framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -2,6 +2,7 @@ import { Data, Ent, LoaderInfo, PrivacyPolicy, Viewer } from "../core/base";
2
2
  import { Builder, Changeset } from "../action/action";
3
3
  import { Clause } from "../core/clause";
4
4
  import { AssocEdgeInput } from "../action/operations";
5
+ import { OrderBy } from "../core/query_impl";
5
6
  export declare type FieldMap = {
6
7
  [key: string]: Field;
7
8
  };
@@ -189,12 +190,14 @@ export interface Type {
189
190
  unionFields?: FieldMap;
190
191
  [x: string]: any;
191
192
  }
193
+ type OnDeleteFkey = "CASCADE" | "RESTRICT" | "SET NULL" | "SET DEFAULT" | "NO ACTION";
192
194
  export interface ForeignKey {
193
195
  schema: string;
194
196
  column: string;
195
197
  name?: string;
196
198
  disableIndex?: boolean;
197
199
  disableBuilderType?: boolean;
200
+ ondelete?: OnDeleteFkey;
198
201
  [x: string]: any;
199
202
  }
200
203
  type getLoaderInfoFn = (type: string) => LoaderInfo;
@@ -206,6 +209,7 @@ export interface InverseFieldEdge {
206
209
  }
207
210
  export interface IndexEdgeOptions {
208
211
  name: string;
212
+ orderby?: OrderBy;
209
213
  }
210
214
  export interface FieldEdge {
211
215
  schema: string;
@@ -359,7 +363,7 @@ export interface Index {
359
363
  }
360
364
  export interface ForeignKeyInfo {
361
365
  tableName: string;
362
- ondelete?: "RESTRICT" | "CASCADE" | "SET NULL" | "SET DEFAULT" | "NO ACTION";
366
+ ondelete?: OnDeleteFkey;
363
367
  columns: string[];
364
368
  [x: string]: any;
365
369
  }