@tsed/objection 8.0.0-alpha.5 → 8.0.0-alpha.7

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.
Files changed (114) hide show
  1. package/lib/esm/components/createBooleanColumn.js.map +1 -1
  2. package/lib/esm/components/createIdColumn.js +1 -1
  3. package/lib/esm/components/createIdColumn.js.map +1 -1
  4. package/lib/esm/components/createNumberColumn.js.map +1 -1
  5. package/lib/esm/components/createStringColumn.js.map +1 -1
  6. package/lib/esm/decorators/belongsToOne.js.map +1 -1
  7. package/lib/esm/decorators/columnOptions.js.map +1 -1
  8. package/lib/esm/decorators/decimal.js.map +1 -1
  9. package/lib/esm/decorators/entity.js +1 -1
  10. package/lib/esm/decorators/entity.js.map +1 -1
  11. package/lib/esm/decorators/hasMany.js.map +1 -1
  12. package/lib/esm/decorators/hasOne.js.map +1 -1
  13. package/lib/esm/decorators/hasOneThroughRelation.js.map +1 -1
  14. package/lib/esm/decorators/idColumn.js +2 -2
  15. package/lib/esm/decorators/idColumn.js.map +1 -1
  16. package/lib/esm/decorators/manyToMany.js.map +1 -1
  17. package/lib/esm/decorators/relatesTo.js +2 -2
  18. package/lib/esm/decorators/relatesTo.js.map +1 -1
  19. package/lib/esm/services/ColumnTypesContainer.js.map +1 -1
  20. package/lib/esm/services/ObjectionConnection.js.map +1 -1
  21. package/lib/esm/utils/createColumns.js +1 -1
  22. package/lib/esm/utils/createColumns.js.map +1 -1
  23. package/lib/esm/utils/createJoinKeys.js +1 -1
  24. package/lib/esm/utils/createJoinKeys.js.map +1 -1
  25. package/lib/esm/utils/createRelationshipMapping.js.map +1 -1
  26. package/lib/esm/utils/getColumnCtx.js.map +1 -1
  27. package/lib/types/components/createIdColumn.d.ts +1 -1
  28. package/lib/types/decorators/relatesTo.d.ts +1 -1
  29. package/lib/types/utils/createColumns.d.ts +4 -4
  30. package/package.json +18 -19
  31. package/vitest.config.mts +5 -5
  32. package/lib/cjs/components/createBooleanColumn.js +0 -13
  33. package/lib/cjs/components/createBooleanColumn.js.map +0 -1
  34. package/lib/cjs/components/createIdColumn.js +0 -23
  35. package/lib/cjs/components/createIdColumn.js.map +0 -1
  36. package/lib/cjs/components/createNumberColumn.js +0 -13
  37. package/lib/cjs/components/createNumberColumn.js.map +0 -1
  38. package/lib/cjs/components/createStringColumn.js +0 -13
  39. package/lib/cjs/components/createStringColumn.js.map +0 -1
  40. package/lib/cjs/decorators/belongsToOne.js +0 -16
  41. package/lib/cjs/decorators/belongsToOne.js.map +0 -1
  42. package/lib/cjs/decorators/columnOptions.js +0 -15
  43. package/lib/cjs/decorators/columnOptions.js.map +0 -1
  44. package/lib/cjs/decorators/decimal.js +0 -29
  45. package/lib/cjs/decorators/decimal.js.map +0 -1
  46. package/lib/cjs/decorators/entity.js +0 -26
  47. package/lib/cjs/decorators/entity.js.map +0 -1
  48. package/lib/cjs/decorators/hasMany.js +0 -16
  49. package/lib/cjs/decorators/hasMany.js.map +0 -1
  50. package/lib/cjs/decorators/hasOne.js +0 -16
  51. package/lib/cjs/decorators/hasOne.js.map +0 -1
  52. package/lib/cjs/decorators/hasOneThroughRelation.js +0 -16
  53. package/lib/cjs/decorators/hasOneThroughRelation.js.map +0 -1
  54. package/lib/cjs/decorators/idColumn.js +0 -25
  55. package/lib/cjs/decorators/idColumn.js.map +0 -1
  56. package/lib/cjs/decorators/manyToMany.js +0 -16
  57. package/lib/cjs/decorators/manyToMany.js.map +0 -1
  58. package/lib/cjs/decorators/relatesTo.js +0 -25
  59. package/lib/cjs/decorators/relatesTo.js.map +0 -1
  60. package/lib/cjs/domain/ColumnOpts.js +0 -3
  61. package/lib/cjs/domain/ColumnOpts.js.map +0 -1
  62. package/lib/cjs/domain/RelationshipOpts.js +0 -9
  63. package/lib/cjs/domain/RelationshipOpts.js.map +0 -1
  64. package/lib/cjs/domain/interfaces.js +0 -3
  65. package/lib/cjs/domain/interfaces.js.map +0 -1
  66. package/lib/cjs/index.js +0 -33
  67. package/lib/cjs/index.js.map +0 -1
  68. package/lib/cjs/package.json +0 -3
  69. package/lib/cjs/services/ColumnTypesContainer.js +0 -8
  70. package/lib/cjs/services/ColumnTypesContainer.js.map +0 -1
  71. package/lib/cjs/services/ObjectionConnection.js +0 -24
  72. package/lib/cjs/services/ObjectionConnection.js.map +0 -1
  73. package/lib/cjs/utils/connect.js +0 -13
  74. package/lib/cjs/utils/connect.js.map +0 -1
  75. package/lib/cjs/utils/createColumns.js +0 -38
  76. package/lib/cjs/utils/createColumns.js.map +0 -1
  77. package/lib/cjs/utils/createJoinKeys.js +0 -40
  78. package/lib/cjs/utils/createJoinKeys.js.map +0 -1
  79. package/lib/cjs/utils/createRelationshipMapping.js +0 -22
  80. package/lib/cjs/utils/createRelationshipMapping.js.map +0 -1
  81. package/lib/cjs/utils/defineStaticGetter.js +0 -14
  82. package/lib/cjs/utils/defineStaticGetter.js.map +0 -1
  83. package/lib/cjs/utils/getColumnCtx.js +0 -13
  84. package/lib/cjs/utils/getColumnCtx.js.map +0 -1
  85. package/lib/cjs/utils/getJsonEntityRelationships.js +0 -19
  86. package/lib/cjs/utils/getJsonEntityRelationships.js.map +0 -1
  87. package/lib/esm/package.json +0 -3
  88. package/lib/types-esm/components/createBooleanColumn.d.ts +0 -6
  89. package/lib/types-esm/components/createIdColumn.d.ts +0 -6
  90. package/lib/types-esm/components/createNumberColumn.d.ts +0 -6
  91. package/lib/types-esm/components/createStringColumn.d.ts +0 -6
  92. package/lib/types-esm/decorators/belongsToOne.d.ts +0 -8
  93. package/lib/types-esm/decorators/columnOptions.d.ts +0 -8
  94. package/lib/types-esm/decorators/decimal.d.ts +0 -11
  95. package/lib/types-esm/decorators/entity.d.ts +0 -11
  96. package/lib/types-esm/decorators/hasMany.d.ts +0 -9
  97. package/lib/types-esm/decorators/hasOne.d.ts +0 -8
  98. package/lib/types-esm/decorators/hasOneThroughRelation.d.ts +0 -8
  99. package/lib/types-esm/decorators/idColumn.d.ts +0 -7
  100. package/lib/types-esm/decorators/manyToMany.d.ts +0 -9
  101. package/lib/types-esm/decorators/relatesTo.d.ts +0 -10
  102. package/lib/types-esm/domain/ColumnOpts.d.ts +0 -4
  103. package/lib/types-esm/domain/RelationshipOpts.d.ts +0 -8
  104. package/lib/types-esm/domain/interfaces.d.ts +0 -8
  105. package/lib/types-esm/index.d.ts +0 -29
  106. package/lib/types-esm/services/ColumnTypesContainer.d.ts +0 -6
  107. package/lib/types-esm/services/ObjectionConnection.d.ts +0 -3
  108. package/lib/types-esm/utils/connect.d.ts +0 -2
  109. package/lib/types-esm/utils/createColumns.d.ts +0 -18
  110. package/lib/types-esm/utils/createJoinKeys.d.ts +0 -14
  111. package/lib/types-esm/utils/createRelationshipMapping.d.ts +0 -24
  112. package/lib/types-esm/utils/defineStaticGetter.d.ts +0 -4
  113. package/lib/types-esm/utils/getColumnCtx.d.ts +0 -13
  114. 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,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.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;
@@ -1,8 +0,0 @@
1
- /**
2
- * @ignore
3
- */
4
- export declare const OBJECTION_RELATIONSHIP_KEY = "objectionRelationship";
5
- /**
6
- * @ignore
7
- */
8
- export declare function getJsonEntityRelationships(target: any): any;