@tsed/objection 6.95.9 → 6.95.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/objection",
3
- "version": "6.95.9",
3
+ "version": "6.95.10",
4
4
  "description": "Objection.js package for Ts.ED framework",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -22,11 +22,11 @@
22
22
  "tslib": "2.2.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@tsed/ajv": "6.95.9",
26
- "@tsed/core": "6.95.9",
27
- "@tsed/di": "6.95.9",
28
- "@tsed/json-mapper": "6.95.9",
29
- "@tsed/schema": "6.95.9",
25
+ "@tsed/ajv": "6.95.10",
26
+ "@tsed/core": "6.95.10",
27
+ "@tsed/di": "6.95.10",
28
+ "@tsed/json-mapper": "6.95.10",
29
+ "@tsed/schema": "6.95.10",
30
30
  "knex": "^0.95.11",
31
31
  "mssql": "^7.2.1",
32
32
  "mysql": "^2.18.1",
@@ -38,11 +38,11 @@
38
38
  "sqlite3": "^5.0.2"
39
39
  },
40
40
  "peerDependencies": {
41
- "@tsed/ajv": "^6.95.9",
42
- "@tsed/core": "^6.95.9",
43
- "@tsed/di": "^6.95.9",
44
- "@tsed/json-mapper": "^6.95.9",
45
- "@tsed/schema": "^6.95.9",
41
+ "@tsed/ajv": "^6.95.10",
42
+ "@tsed/core": "^6.95.10",
43
+ "@tsed/di": "^6.95.10",
44
+ "@tsed/json-mapper": "^6.95.10",
45
+ "@tsed/schema": "^6.95.10",
46
46
  "knex": ">=0.94.0",
47
47
  "objection": ">=2.0.0"
48
48
  },
@@ -1,6 +0,0 @@
1
- import type { Knex } from "knex";
2
- import { ColumnCtx } from "../utils/getColumnCtx";
3
- /**
4
- * @ignore
5
- */
6
- export declare function createBooleanColumn(table: Knex.TableBuilder, { entity }: ColumnCtx): void;
@@ -1,6 +0,0 @@
1
- import type { Knex } from "knex";
2
- import { ColumnCtx } from "../utils/getColumnCtx";
3
- /**
4
- * @ignore
5
- */
6
- export declare function createIdColumn(table: Knex.TableBuilder, { entity, options }: ColumnCtx): void;
@@ -1,6 +0,0 @@
1
- import type { Knex } from "knex";
2
- import { ColumnCtx } from "../utils/getColumnCtx";
3
- /**
4
- * @ignore
5
- */
6
- export declare function createNumberColumn(table: Knex.TableBuilder, { entity, options }: ColumnCtx): void;
@@ -1,6 +0,0 @@
1
- import type { Knex } from "knex";
2
- import { ColumnCtx } from "../utils/getColumnCtx";
3
- /**
4
- * @ignore
5
- */
6
- export declare function createStringColumn(table: Knex.TableBuilder, { entity, schema }: ColumnCtx): void;
@@ -1,8 +0,0 @@
1
- import type { ColumnOpts } from "../domain/ColumnOpts";
2
- /**
3
- *
4
- * @param options
5
- * @decorator
6
- * @objection
7
- */
8
- export declare function ColumnOptions(options: Partial<ColumnOpts>): PropertyDecorator;
@@ -1,11 +0,0 @@
1
- export interface DecimalOptions {
2
- precision?: number | null;
3
- scale?: number;
4
- }
5
- /**
6
- *
7
- * @param options
8
- * @decorator
9
- * @objection
10
- */
11
- export declare function Decimal(options?: DecimalOptions): any;
@@ -1,11 +0,0 @@
1
- import { Type } from "@tsed/core";
2
- /**
3
- *
4
- * @param tableName
5
- * @decorator
6
- * @objection
7
- */
8
- export declare function Entity(tableName: string): ClassDecorator;
9
- export interface EntityMethods<T> extends Type<T> {
10
- readonly tableName: string;
11
- }
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * @param type
4
- * @decorator
5
- * @objection
6
- */
7
- export declare function IdColumn(type?: "increments" | "bigIncrements"): PropertyDecorator;
@@ -1,4 +0,0 @@
1
- export interface ColumnOpts {
2
- columnType: "idColumn" | "string" | "number" | "boolean";
3
- options: any;
4
- }
@@ -1,21 +0,0 @@
1
- import { Knex } from "knex";
2
- declare global {
3
- namespace TsED {
4
- interface Configuration {
5
- knex: Knex.Config;
6
- }
7
- }
8
- }
9
- export * from "./components/createStringColumn";
10
- export * from "./components/createIdColumn";
11
- export * from "./components/createBooleanColumn";
12
- export * from "./components/createNumberColumn";
13
- export * from "./decorators/entity";
14
- export * from "./decorators/decimal";
15
- export * from "./decorators/idColumn";
16
- export * from "./decorators/columnOptions";
17
- export * from "./domain/ColumnOpts";
18
- export * from "./services/ObjectionConnection";
19
- export * from "./utils/connect";
20
- export * from "./utils/createColumns";
21
- export * from "./utils/getColumnCtx";
@@ -1,6 +0,0 @@
1
- import type { Knex } from "knex";
2
- import { ColumnCtx } from "../utils/getColumnCtx";
3
- /**
4
- * @ignore
5
- */
6
- export declare const ColumnTypesContainer: Map<string, (table: Knex.TableBuilder, ctx: ColumnCtx) => void>;
@@ -1,3 +0,0 @@
1
- import type { Knex } from "knex";
2
- export declare const OBJECTION_CONNECTION: unique symbol;
3
- export declare type OBJECTION_CONNECTION = Knex<any, unknown[]>;
@@ -1,2 +0,0 @@
1
- import { Knex } from "knex";
2
- export declare function createConnection(connectionOptions: Knex.Config): Knex;
@@ -1,18 +0,0 @@
1
- import { JsonEntityStore } from "@tsed/schema";
2
- import { Knex } from "knex";
3
- import "../components/createBooleanColumn";
4
- import "../components/createIdColumn";
5
- import "../components/createNumberColumn";
6
- import "../components/createStringColumn";
7
- /**
8
- * @ignore
9
- */
10
- export declare function createColumn(table: Knex.TableBuilder, entity: JsonEntityStore): void;
11
- /**
12
- * @ignore
13
- */
14
- export declare function getColumns(model: any): import("@tsed/schema").JsonPropertyStore[];
15
- /**
16
- * @ignore
17
- */
18
- export declare function createColumns(table: Knex.TableBuilder, model: any): void;
@@ -1,4 +0,0 @@
1
- /**
2
- * @ignore
3
- */
4
- export declare function defineStaticGetter(target: any, propertyKey: string, fn: any): any;
@@ -1,13 +0,0 @@
1
- import { JsonEntityStore } from "@tsed/schema";
2
- import { ColumnOpts } from "../domain/ColumnOpts";
3
- /**
4
- * @ignore
5
- */
6
- export interface ColumnCtx extends ColumnOpts {
7
- entity: JsonEntityStore;
8
- schema: any;
9
- }
10
- /**
11
- * @ignore
12
- */
13
- export declare function getColumnCtx(entity: JsonEntityStore): ColumnCtx;