@tsed/objection 8.0.0-alpha.1 → 8.0.0-alpha.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.
- package/lib/esm/components/createBooleanColumn.js.map +1 -1
- package/lib/esm/components/createIdColumn.js +1 -1
- package/lib/esm/components/createIdColumn.js.map +1 -1
- package/lib/esm/components/createNumberColumn.js.map +1 -1
- package/lib/esm/components/createStringColumn.js.map +1 -1
- package/lib/esm/decorators/belongsToOne.js.map +1 -1
- package/lib/esm/decorators/columnOptions.js.map +1 -1
- package/lib/esm/decorators/decimal.js.map +1 -1
- package/lib/esm/decorators/entity.js +1 -1
- package/lib/esm/decorators/entity.js.map +1 -1
- package/lib/esm/decorators/hasMany.js.map +1 -1
- package/lib/esm/decorators/hasOne.js.map +1 -1
- package/lib/esm/decorators/hasOneThroughRelation.js.map +1 -1
- package/lib/esm/decorators/idColumn.js +2 -2
- package/lib/esm/decorators/idColumn.js.map +1 -1
- package/lib/esm/decorators/manyToMany.js.map +1 -1
- package/lib/esm/decorators/relatesTo.js +2 -2
- package/lib/esm/decorators/relatesTo.js.map +1 -1
- package/lib/esm/services/ColumnTypesContainer.js.map +1 -1
- package/lib/esm/services/ObjectionConnection.js.map +1 -1
- package/lib/esm/utils/createColumns.js +1 -1
- package/lib/esm/utils/createColumns.js.map +1 -1
- package/lib/esm/utils/createJoinKeys.js +1 -1
- package/lib/esm/utils/createJoinKeys.js.map +1 -1
- package/lib/esm/utils/createRelationshipMapping.js.map +1 -1
- package/lib/esm/utils/getColumnCtx.js.map +1 -1
- package/lib/types/components/createIdColumn.d.ts +1 -1
- package/lib/types/decorators/relatesTo.d.ts +1 -1
- package/lib/types/utils/createColumns.d.ts +4 -4
- package/package.json +20 -21
- package/vitest.config.mts +5 -5
- package/lib/cjs/components/createBooleanColumn.js +0 -13
- package/lib/cjs/components/createBooleanColumn.js.map +0 -1
- package/lib/cjs/components/createIdColumn.js +0 -23
- package/lib/cjs/components/createIdColumn.js.map +0 -1
- package/lib/cjs/components/createNumberColumn.js +0 -13
- package/lib/cjs/components/createNumberColumn.js.map +0 -1
- package/lib/cjs/components/createStringColumn.js +0 -13
- package/lib/cjs/components/createStringColumn.js.map +0 -1
- package/lib/cjs/decorators/belongsToOne.js +0 -16
- package/lib/cjs/decorators/belongsToOne.js.map +0 -1
- package/lib/cjs/decorators/columnOptions.js +0 -15
- package/lib/cjs/decorators/columnOptions.js.map +0 -1
- package/lib/cjs/decorators/decimal.js +0 -29
- package/lib/cjs/decorators/decimal.js.map +0 -1
- package/lib/cjs/decorators/entity.js +0 -26
- package/lib/cjs/decorators/entity.js.map +0 -1
- package/lib/cjs/decorators/hasMany.js +0 -16
- package/lib/cjs/decorators/hasMany.js.map +0 -1
- package/lib/cjs/decorators/hasOne.js +0 -16
- package/lib/cjs/decorators/hasOne.js.map +0 -1
- package/lib/cjs/decorators/hasOneThroughRelation.js +0 -16
- package/lib/cjs/decorators/hasOneThroughRelation.js.map +0 -1
- package/lib/cjs/decorators/idColumn.js +0 -25
- package/lib/cjs/decorators/idColumn.js.map +0 -1
- package/lib/cjs/decorators/manyToMany.js +0 -16
- package/lib/cjs/decorators/manyToMany.js.map +0 -1
- package/lib/cjs/decorators/relatesTo.js +0 -25
- package/lib/cjs/decorators/relatesTo.js.map +0 -1
- package/lib/cjs/domain/ColumnOpts.js +0 -3
- package/lib/cjs/domain/ColumnOpts.js.map +0 -1
- package/lib/cjs/domain/RelationshipOpts.js +0 -9
- package/lib/cjs/domain/RelationshipOpts.js.map +0 -1
- package/lib/cjs/domain/interfaces.js +0 -3
- package/lib/cjs/domain/interfaces.js.map +0 -1
- package/lib/cjs/index.js +0 -33
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/services/ColumnTypesContainer.js +0 -8
- package/lib/cjs/services/ColumnTypesContainer.js.map +0 -1
- package/lib/cjs/services/ObjectionConnection.js +0 -24
- package/lib/cjs/services/ObjectionConnection.js.map +0 -1
- package/lib/cjs/utils/connect.js +0 -13
- package/lib/cjs/utils/connect.js.map +0 -1
- package/lib/cjs/utils/createColumns.js +0 -38
- package/lib/cjs/utils/createColumns.js.map +0 -1
- package/lib/cjs/utils/createJoinKeys.js +0 -40
- package/lib/cjs/utils/createJoinKeys.js.map +0 -1
- package/lib/cjs/utils/createRelationshipMapping.js +0 -22
- package/lib/cjs/utils/createRelationshipMapping.js.map +0 -1
- package/lib/cjs/utils/defineStaticGetter.js +0 -14
- package/lib/cjs/utils/defineStaticGetter.js.map +0 -1
- package/lib/cjs/utils/getColumnCtx.js +0 -13
- package/lib/cjs/utils/getColumnCtx.js.map +0 -1
- package/lib/cjs/utils/getJsonEntityRelationships.js +0 -19
- package/lib/cjs/utils/getJsonEntityRelationships.js.map +0 -1
- package/lib/esm/package.json +0 -3
- package/lib/types-esm/components/createBooleanColumn.d.ts +0 -6
- package/lib/types-esm/components/createIdColumn.d.ts +0 -6
- package/lib/types-esm/components/createNumberColumn.d.ts +0 -6
- package/lib/types-esm/components/createStringColumn.d.ts +0 -6
- package/lib/types-esm/decorators/belongsToOne.d.ts +0 -8
- package/lib/types-esm/decorators/columnOptions.d.ts +0 -8
- package/lib/types-esm/decorators/decimal.d.ts +0 -11
- package/lib/types-esm/decorators/entity.d.ts +0 -11
- package/lib/types-esm/decorators/hasMany.d.ts +0 -9
- package/lib/types-esm/decorators/hasOne.d.ts +0 -8
- package/lib/types-esm/decorators/hasOneThroughRelation.d.ts +0 -8
- package/lib/types-esm/decorators/idColumn.d.ts +0 -7
- package/lib/types-esm/decorators/manyToMany.d.ts +0 -9
- package/lib/types-esm/decorators/relatesTo.d.ts +0 -10
- package/lib/types-esm/domain/ColumnOpts.d.ts +0 -4
- package/lib/types-esm/domain/RelationshipOpts.d.ts +0 -8
- package/lib/types-esm/domain/interfaces.d.ts +0 -8
- package/lib/types-esm/index.d.ts +0 -29
- package/lib/types-esm/services/ColumnTypesContainer.d.ts +0 -6
- package/lib/types-esm/services/ObjectionConnection.d.ts +0 -3
- package/lib/types-esm/utils/connect.d.ts +0 -2
- package/lib/types-esm/utils/createColumns.d.ts +0 -18
- package/lib/types-esm/utils/createJoinKeys.d.ts +0 -14
- package/lib/types-esm/utils/createRelationshipMapping.d.ts +0 -24
- package/lib/types-esm/utils/defineStaticGetter.d.ts +0 -4
- package/lib/types-esm/utils/getColumnCtx.d.ts +0 -13
- package/lib/types-esm/utils/getJsonEntityRelationships.d.ts +0 -8
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DecoratorParameters } from "@tsed/core";
|
|
2
|
-
import { RelationType } from "objection";
|
|
3
|
-
import { RelationshipOpts } from "../domain/RelationshipOpts.js";
|
|
4
|
-
/**
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
|
-
export declare function createRelationshipMapping([target, propertyKey]: DecoratorParameters, relation: RelationType, opts?: RelationshipOpts): (targetClass: any) => {
|
|
8
|
-
[x: string]: {
|
|
9
|
-
relation: RelationType;
|
|
10
|
-
modelClass: any;
|
|
11
|
-
join: {
|
|
12
|
-
from: string;
|
|
13
|
-
to: string;
|
|
14
|
-
through?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
from: string;
|
|
17
|
-
through: import("objection").RelationThrough<any>;
|
|
18
|
-
to: string;
|
|
19
|
-
};
|
|
20
|
-
modify: import("objection").Modifier<any> | undefined;
|
|
21
|
-
filter: import("objection").Modifier<any> | undefined;
|
|
22
|
-
beforeInsert: import("objection").RelationMappingHook<any> | undefined;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { JsonEntityStore } from "@tsed/schema";
|
|
2
|
-
import { ColumnOpts } from "../domain/ColumnOpts.js";
|
|
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;
|