lakutata 2.0.56 → 2.0.58

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 (121) hide show
  1. package/com/database.cjs +2 -0
  2. package/com/database.d.ts +2 -2
  3. package/com/database.mjs +2 -0
  4. package/com/entrypoint.cjs +2 -0
  5. package/com/entrypoint.d.ts +1 -1
  6. package/com/entrypoint.mjs +2 -0
  7. package/decorator/ctrl.d.ts +8 -1
  8. package/decorator/orm.cjs +88 -86
  9. package/decorator/orm.d.ts +74 -50
  10. package/decorator/orm.mjs +46 -44
  11. package/lakutata.cjs +6 -4
  12. package/lakutata.mjs +2 -0
  13. package/orm.cjs +112 -1075
  14. package/orm.d.ts +5 -5
  15. package/orm.mjs +17 -1015
  16. package/package.json +1 -1
  17. package/provider/database.cjs +2 -0
  18. package/provider/database.d.ts +2 -2
  19. package/provider/database.mjs +2 -0
  20. package/src/components/Database.cjs +2 -0
  21. package/src/components/Database.mjs +2 -0
  22. package/src/components/entrypoint/Entrypoint.cjs +853 -742
  23. package/src/components/entrypoint/Entrypoint.mjs +822 -711
  24. package/src/components/entrypoint/exceptions/InvalidActionGroupException.cjs +34 -0
  25. package/src/components/entrypoint/exceptions/InvalidActionGroupException.mjs +28 -0
  26. package/src/decorators/orm/AfterInsert.cjs +7 -27
  27. package/src/decorators/orm/AfterInsert.mjs +6 -28
  28. package/src/decorators/orm/AfterLoad.cjs +7 -27
  29. package/src/decorators/orm/AfterLoad.mjs +6 -28
  30. package/src/decorators/orm/AfterRecover.cjs +7 -27
  31. package/src/decorators/orm/AfterRecover.mjs +6 -28
  32. package/src/decorators/orm/AfterRemove.cjs +7 -27
  33. package/src/decorators/orm/AfterRemove.mjs +6 -28
  34. package/src/decorators/orm/AfterSoftRemove.cjs +7 -27
  35. package/src/decorators/orm/AfterSoftRemove.mjs +6 -28
  36. package/src/decorators/orm/AfterUpdate.cjs +7 -27
  37. package/src/decorators/orm/AfterUpdate.mjs +6 -28
  38. package/src/decorators/orm/BeforeInsert.cjs +7 -27
  39. package/src/decorators/orm/BeforeInsert.mjs +6 -28
  40. package/src/decorators/orm/BeforeRecover.cjs +7 -27
  41. package/src/decorators/orm/BeforeRecover.mjs +6 -28
  42. package/src/decorators/orm/BeforeRemove.cjs +7 -27
  43. package/src/decorators/orm/BeforeRemove.mjs +6 -28
  44. package/src/decorators/orm/BeforeSoftRemove.cjs +7 -27
  45. package/src/decorators/orm/BeforeSoftRemove.mjs +6 -28
  46. package/src/decorators/orm/BeforeUpdate.cjs +7 -27
  47. package/src/decorators/orm/BeforeUpdate.mjs +6 -28
  48. package/src/decorators/orm/Check.cjs +7 -30
  49. package/src/decorators/orm/Check.mjs +6 -31
  50. package/src/decorators/orm/ChildEntity.cjs +7 -30
  51. package/src/decorators/orm/ChildEntity.mjs +6 -31
  52. package/src/decorators/orm/Column.cjs +7 -62
  53. package/src/decorators/orm/Column.mjs +6 -63
  54. package/src/decorators/orm/CreateDateColumn.cjs +7 -26
  55. package/src/decorators/orm/CreateDateColumn.mjs +6 -27
  56. package/src/decorators/orm/DeleteDateColumn.cjs +7 -26
  57. package/src/decorators/orm/DeleteDateColumn.mjs +6 -27
  58. package/src/decorators/orm/Entity.cjs +7 -36
  59. package/src/decorators/orm/Entity.mjs +6 -37
  60. package/src/decorators/orm/EventSubscriber.cjs +7 -23
  61. package/src/decorators/orm/EventSubscriber.mjs +6 -24
  62. package/src/decorators/orm/Exclusion.cjs +7 -30
  63. package/src/decorators/orm/Exclusion.mjs +6 -31
  64. package/src/decorators/orm/Generated.cjs +7 -25
  65. package/src/decorators/orm/Generated.mjs +6 -26
  66. package/src/decorators/orm/Index.cjs +7 -42
  67. package/src/decorators/orm/Index.mjs +6 -43
  68. package/src/decorators/orm/JoinColumn.cjs +7 -30
  69. package/src/decorators/orm/JoinColumn.mjs +6 -31
  70. package/src/decorators/orm/JoinTable.cjs +7 -31
  71. package/src/decorators/orm/JoinTable.mjs +6 -32
  72. package/src/decorators/orm/ManyToMany.cjs +7 -43
  73. package/src/decorators/orm/ManyToMany.mjs +6 -44
  74. package/src/decorators/orm/ManyToOne.cjs +7 -43
  75. package/src/decorators/orm/ManyToOne.mjs +6 -44
  76. package/src/decorators/orm/ObjectIdColumn.cjs +7 -29
  77. package/src/decorators/orm/ObjectIdColumn.mjs +6 -30
  78. package/src/decorators/orm/OneToMany.cjs +7 -35
  79. package/src/decorators/orm/OneToMany.mjs +6 -36
  80. package/src/decorators/orm/OneToOne.cjs +7 -43
  81. package/src/decorators/orm/OneToOne.mjs +6 -44
  82. package/src/decorators/orm/PrimaryColumn.cjs +7 -50
  83. package/src/decorators/orm/PrimaryColumn.mjs +6 -51
  84. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +7 -55
  85. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +6 -56
  86. package/src/decorators/orm/RelationId.cjs +7 -27
  87. package/src/decorators/orm/RelationId.mjs +6 -28
  88. package/src/decorators/orm/TableInheritance.cjs +7 -27
  89. package/src/decorators/orm/TableInheritance.mjs +6 -28
  90. package/src/decorators/orm/Tree.cjs +7 -25
  91. package/src/decorators/orm/Tree.mjs +6 -26
  92. package/src/decorators/orm/TreeChildren.cjs +7 -32
  93. package/src/decorators/orm/TreeChildren.mjs +6 -33
  94. package/src/decorators/orm/TreeLevelColumn.cjs +7 -26
  95. package/src/decorators/orm/TreeLevelColumn.mjs +6 -27
  96. package/src/decorators/orm/TreeParent.cjs +7 -32
  97. package/src/decorators/orm/TreeParent.mjs +6 -33
  98. package/src/decorators/orm/Unique.cjs +7 -45
  99. package/src/decorators/orm/Unique.mjs +6 -46
  100. package/src/decorators/orm/UpdateDateColumn.cjs +7 -26
  101. package/src/decorators/orm/UpdateDateColumn.mjs +6 -27
  102. package/src/decorators/orm/VersionColumn.cjs +7 -26
  103. package/src/decorators/orm/VersionColumn.mjs +6 -27
  104. package/src/decorators/orm/ViewColumn.cjs +7 -26
  105. package/src/decorators/orm/ViewColumn.mjs +6 -27
  106. package/src/decorators/orm/ViewEntity.cjs +7 -35
  107. package/src/decorators/orm/ViewEntity.mjs +6 -36
  108. package/src/decorators/orm/VirtualColumn.cjs +7 -43
  109. package/src/decorators/orm/VirtualColumn.mjs +6 -44
  110. package/src/lib/core/Application.cjs +9 -7
  111. package/src/lib/core/Application.mjs +19 -17
  112. package/src/providers/Database.cjs +2 -0
  113. package/src/providers/Database.mjs +2 -0
  114. package/vendor/Package.122.cjs +19932 -14856
  115. package/vendor/Package.122.mjs +32675 -27699
  116. package/vendor/Package.19.cjs +1 -1
  117. package/vendor/Package.19.mjs +1 -1
  118. package/vendor/Package.6.cjs +1 -1
  119. package/vendor/Package.6.mjs +1 -1
  120. package/vendor/TypeDef.13.d.ts +61 -6
  121. package/vendor/TypeDef.4.d.ts +347 -181
package/com/database.cjs CHANGED
@@ -182,6 +182,8 @@ require("crypto");
182
182
 
183
183
  require("fs/promises");
184
184
 
185
+ require("node:util");
186
+
185
187
  require("../vendor/Package.63.cjs");
186
188
 
187
189
  require("node:url");
package/com/database.d.ts CHANGED
@@ -3,9 +3,9 @@ import { C as Component } from '../vendor/TypeDef.3.js';
3
3
  import { D as DataSourceOptions, a as DataSource, b as Driver, E as EntityManager, N as NamingStrategyInterface, c as EntitySubscriberInterface, d as EntityMetadata, e as EntityTarget, Q as QueryResultCache, M as Migration, O as ObjectLiteral, R as Repository, T as TreeRepository, f as MongoRepository, I as IsolationLevel, g as QueryRunner, S as SelectQueryBuilder, h as ReplicationMode } from '../vendor/TypeDef.4.js';
4
4
  import '../vendor/TypeDef.5.js';
5
5
  import 'fs';
6
- import 'tls';
7
- import 'net';
8
6
  import 'dns';
7
+ import 'net';
8
+ import 'tls';
9
9
  import 'events';
10
10
  import 'stream';
11
11
 
package/com/database.mjs CHANGED
@@ -176,6 +176,8 @@ import "crypto";
176
176
 
177
177
  import "fs/promises";
178
178
 
179
+ import "node:util";
180
+
179
181
  import "../vendor/Package.63.mjs";
180
182
 
181
183
  import "node:url";
@@ -202,6 +202,8 @@ require("../src/lib/helpers/UniqueArray.cjs");
202
202
 
203
203
  require("../src/components/entrypoint/lib/AccessControl.cjs");
204
204
 
205
+ require("../src/components/entrypoint/exceptions/InvalidActionGroupException.cjs");
206
+
205
207
  require("node:http");
206
208
 
207
209
  exports.BuildCLIEntrypoint = e.BuildCLIEntrypoint;
@@ -1,5 +1,5 @@
1
1
  import '../vendor/TypeDef.2.js';
2
- export { w as AccessControlRule, A as AccessControlRuleHandler, B as BaseActionInfo, q as BaseContext, k as BuildCLIEntrypoint, n as BuildEntrypoints, l as BuildHTTPEntrypoint, m as BuildServiceEntrypoint, j as CLIActionInfo, r as CLIContext, C as CLIEntrypoint, c as CLIEntrypointHandler, a as CLIMap, p as ContextType, v as Controller, u as ControllerProperty, o as Entrypoint, E as EntrypointDestroyer, f as EntrypointDestroyerRegistrar, g as EntrypointOptions, h as HTTPActionInfo, s as HTTPContext, H as HTTPEntrypoint, d as HTTPEntrypointHandler, b as HTTPRouteMap, i as ServiceActionInfo, t as ServiceContext, S as ServiceEntrypoint, e as ServiceEntrypointHandler } from '../vendor/TypeDef.13.js';
2
+ export { y as AccessControlRule, x as AccessControlRuleHandler, A as ActionGroupInfo, B as BaseActionInfo, r as BaseContext, l as BuildCLIEntrypoint, o as BuildEntrypoints, m as BuildHTTPEntrypoint, n as BuildServiceEntrypoint, j as CLIActionInfo, s as CLIContext, C as CLIEntrypoint, c as CLIEntrypointHandler, a as CLIMap, q as ContextType, w as Controller, v as ControllerProperty, p as Entrypoint, k as EntrypointActions, E as EntrypointDestroyer, f as EntrypointDestroyerRegistrar, g as EntrypointOptions, h as HTTPActionInfo, t as HTTPContext, H as HTTPEntrypoint, d as HTTPEntrypointHandler, b as HTTPRouteMap, i as ServiceActionInfo, u as ServiceContext, S as ServiceEntrypoint, e as ServiceEntrypointHandler } from '../vendor/TypeDef.13.js';
3
3
  import { E as Exception } from '../vendor/TypeDef.7.js';
4
4
  import '../vendor/TypeDef.3.js';
5
5
  import '../vendor/TypeDef.5.js';
@@ -196,4 +196,6 @@ import "../src/lib/helpers/UniqueArray.mjs";
196
196
 
197
197
  import "../src/components/entrypoint/lib/AccessControl.mjs";
198
198
 
199
+ import "../src/components/entrypoint/exceptions/InvalidActionGroupException.mjs";
200
+
199
201
  import "node:http";
@@ -1,5 +1,5 @@
1
1
  import '../vendor/TypeDef.2.js';
2
- import { q as BaseContext, A as AccessControlRuleHandler, v as Controller, u as ControllerProperty, r as CLIContext, s as HTTPContext, t as ServiceContext } from '../vendor/TypeDef.13.js';
2
+ import { r as BaseContext, x as AccessControlRuleHandler, w as Controller, v as ControllerProperty, s as CLIContext, t as HTTPContext, u as ServiceContext } from '../vendor/TypeDef.13.js';
3
3
  import { M as MethodDecorator } from '../vendor/TypeDef.8.js';
4
4
  import { D as DTO } from '../vendor/TypeDef.5.js';
5
5
  import { A as ActionPattern } from '../vendor/TypeDef.10.js';
@@ -126,30 +126,37 @@ declare function HTTPAction<ClassPrototype extends Controller, Method, DTOConstr
126
126
 
127
127
  declare function DELETE<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
128
128
  declare function DELETE<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
129
+ declare function DELETE<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
129
130
  declare function DELETE<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
130
131
 
131
132
  declare function GET<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
132
133
  declare function GET<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
134
+ declare function GET<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
133
135
  declare function GET<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
134
136
 
135
137
  declare function HEAD<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
136
138
  declare function HEAD<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
139
+ declare function HEAD<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
137
140
  declare function HEAD<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
138
141
 
139
142
  declare function OPTIONS<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
140
143
  declare function OPTIONS<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
144
+ declare function OPTIONS<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
141
145
  declare function OPTIONS<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
142
146
 
143
147
  declare function PATCH<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
144
148
  declare function PATCH<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
149
+ declare function PATCH<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
145
150
  declare function PATCH<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
146
151
 
147
152
  declare function POST<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
148
153
  declare function POST<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
154
+ declare function POST<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
149
155
  declare function POST<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
150
156
 
151
157
  declare function PUT<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
152
158
  declare function PUT<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
159
+ declare function PUT<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
153
160
  declare function PUT<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
154
161
 
155
162
  /**
package/decorator/orm.cjs CHANGED
@@ -6,93 +6,93 @@ Object.defineProperty(exports, Symbol.toStringTag, {
6
6
 
7
7
  require("../vendor/Package.4.cjs");
8
8
 
9
- const e = require("../src/decorators/orm/AfterRecover.cjs");
9
+ require("../src/decorators/orm/AfterRecover.cjs");
10
10
 
11
- const r = require("../src/decorators/orm/AfterRemove.cjs");
11
+ require("../src/decorators/orm/AfterRemove.cjs");
12
12
 
13
- const o = require("../src/decorators/orm/AfterInsert.cjs");
13
+ require("../src/decorators/orm/AfterInsert.cjs");
14
14
 
15
- const s = require("../src/decorators/orm/AfterLoad.cjs");
15
+ require("../src/decorators/orm/AfterLoad.cjs");
16
16
 
17
- const t = require("../src/decorators/orm/AfterSoftRemove.cjs");
17
+ require("../src/decorators/orm/AfterSoftRemove.cjs");
18
18
 
19
- const c = require("../src/decorators/orm/AfterUpdate.cjs");
19
+ require("../src/decorators/orm/AfterUpdate.cjs");
20
20
 
21
- const n = require("../src/decorators/orm/BeforeInsert.cjs");
21
+ require("../src/decorators/orm/BeforeInsert.cjs");
22
22
 
23
- const a = require("../src/decorators/orm/BeforeRecover.cjs");
23
+ require("../src/decorators/orm/BeforeRecover.cjs");
24
24
 
25
- const i = require("../src/decorators/orm/BeforeRemove.cjs");
25
+ require("../src/decorators/orm/BeforeRemove.cjs");
26
26
 
27
- const u = require("../src/decorators/orm/BeforeSoftRemove.cjs");
27
+ require("../src/decorators/orm/BeforeSoftRemove.cjs");
28
28
 
29
- const m = require("../src/decorators/orm/BeforeUpdate.cjs");
29
+ require("../src/decorators/orm/BeforeUpdate.cjs");
30
30
 
31
- const d = require("../src/decorators/orm/Check.cjs");
31
+ require("../src/decorators/orm/Check.cjs");
32
32
 
33
- const q = require("../src/decorators/orm/ChildEntity.cjs");
33
+ require("../src/decorators/orm/ChildEntity.cjs");
34
34
 
35
- const l = require("../src/decorators/orm/Column.cjs");
35
+ require("../src/decorators/orm/Column.cjs");
36
36
 
37
- const j = require("../src/decorators/orm/CreateDateColumn.cjs");
37
+ require("../src/decorators/orm/CreateDateColumn.cjs");
38
38
 
39
- const p = require("../src/decorators/orm/DeleteDateColumn.cjs");
39
+ require("../src/decorators/orm/DeleteDateColumn.cjs");
40
40
 
41
- const x = require("../src/decorators/orm/Entity.cjs");
41
+ require("../src/decorators/orm/Entity.cjs");
42
42
 
43
- const C = require("../src/decorators/orm/EventSubscriber.cjs");
43
+ require("../src/decorators/orm/EventSubscriber.cjs");
44
44
 
45
- const f = require("../src/decorators/orm/Exclusion.cjs");
45
+ require("../src/decorators/orm/Exclusion.cjs");
46
46
 
47
- const v = require("../src/decorators/orm/Generated.cjs");
47
+ require("../src/decorators/orm/Generated.cjs");
48
48
 
49
- const y = require("../src/decorators/orm/Index.cjs");
49
+ require("../src/decorators/orm/Index.cjs");
50
50
 
51
- const T = require("../src/decorators/orm/JoinColumn.cjs");
51
+ require("../src/decorators/orm/JoinColumn.cjs");
52
52
 
53
- const P = require("../src/decorators/orm/JoinTable.cjs");
53
+ require("../src/decorators/orm/JoinTable.cjs");
54
54
 
55
- const R = require("../src/decorators/orm/ManyToMany.cjs");
55
+ require("../src/decorators/orm/ManyToMany.cjs");
56
56
 
57
- const b = require("../src/decorators/orm/ManyToOne.cjs");
57
+ require("../src/decorators/orm/ManyToOne.cjs");
58
58
 
59
- const A = require("../src/decorators/orm/ObjectIdColumn.cjs");
59
+ require("../src/decorators/orm/ObjectIdColumn.cjs");
60
60
 
61
- const I = require("../src/decorators/orm/OneToMany.cjs");
61
+ require("../src/decorators/orm/OneToMany.cjs");
62
62
 
63
- const g = require("../src/decorators/orm/OneToOne.cjs");
63
+ require("../src/decorators/orm/OneToOne.cjs");
64
64
 
65
- const k = require("../src/decorators/orm/PrimaryColumn.cjs");
65
+ require("../src/decorators/orm/PrimaryColumn.cjs");
66
66
 
67
- const O = require("../src/decorators/orm/PrimaryGeneratedColumn.cjs");
67
+ require("../src/decorators/orm/PrimaryGeneratedColumn.cjs");
68
68
 
69
- const B = require("../src/decorators/orm/RelationId.cjs");
69
+ require("../src/decorators/orm/RelationId.cjs");
70
70
 
71
- const E = require("../src/decorators/orm/TableInheritance.cjs");
71
+ require("../src/decorators/orm/TableInheritance.cjs");
72
72
 
73
- const h = require("../src/decorators/orm/Tree.cjs");
73
+ require("../src/decorators/orm/Tree.cjs");
74
74
 
75
- const M = require("../src/decorators/orm/TreeChildren.cjs");
75
+ require("../src/decorators/orm/TreeChildren.cjs");
76
76
 
77
- const D = require("../src/decorators/orm/TreeLevelColumn.cjs");
77
+ require("../src/decorators/orm/TreeLevelColumn.cjs");
78
78
 
79
- const U = require("../src/decorators/orm/TreeParent.cjs");
79
+ require("../src/decorators/orm/TreeParent.cjs");
80
80
 
81
- const V = require("../src/decorators/orm/Unique.cjs");
81
+ require("../src/decorators/orm/Unique.cjs");
82
82
 
83
- const S = require("../src/decorators/orm/UpdateDateColumn.cjs");
83
+ require("../src/decorators/orm/UpdateDateColumn.cjs");
84
84
 
85
- const w = require("../src/decorators/orm/VersionColumn.cjs");
85
+ require("../src/decorators/orm/VersionColumn.cjs");
86
86
 
87
- const G = require("../src/decorators/orm/ViewColumn.cjs");
87
+ require("../src/decorators/orm/ViewColumn.cjs");
88
88
 
89
- const J = require("../src/decorators/orm/ViewEntity.cjs");
89
+ require("../src/decorators/orm/ViewEntity.cjs");
90
90
 
91
- const L = require("../src/decorators/orm/VirtualColumn.cjs");
91
+ require("../src/decorators/orm/VirtualColumn.cjs");
92
92
 
93
- require("../vendor/Package.5.cjs");
93
+ const e = require("../vendor/Package.122.cjs");
94
94
 
95
- require("../vendor/Package.122.cjs");
95
+ require("../vendor/Package.5.cjs");
96
96
 
97
97
  require("../vendor/Package.13.cjs");
98
98
 
@@ -138,6 +138,8 @@ require("../vendor/Package.11.cjs");
138
138
 
139
139
  require("url");
140
140
 
141
+ require("node:util");
142
+
141
143
  require("../vendor/Package.63.cjs");
142
144
 
143
145
  require("node:url");
@@ -154,86 +156,86 @@ require("node:stream");
154
156
 
155
157
  require("node:string_decoder");
156
158
 
157
- exports.AfterRecover = e.AfterRecover;
159
+ exports.AfterInsert = e.AfterInsert_2;
158
160
 
159
- exports.AfterRemove = r.AfterRemove;
161
+ exports.AfterLoad = e.AfterLoad_2;
160
162
 
161
- exports.AfterInsert = o.AfterInsert;
163
+ exports.AfterRecover = e.AfterRecover_2;
162
164
 
163
- exports.AfterLoad = s.AfterLoad;
165
+ exports.AfterRemove = e.AfterRemove_2;
164
166
 
165
- exports.AfterSoftRemove = t.AfterSoftRemove;
167
+ exports.AfterSoftRemove = e.AfterSoftRemove_2;
166
168
 
167
- exports.AfterUpdate = c.AfterUpdate;
169
+ exports.AfterUpdate = e.AfterUpdate_2;
168
170
 
169
- exports.BeforeInsert = n.BeforeInsert;
171
+ exports.BeforeInsert = e.BeforeInsert_2;
170
172
 
171
- exports.BeforeRecover = a.BeforeRecover;
173
+ exports.BeforeRecover = e.BeforeRecover_2;
172
174
 
173
- exports.BeforeRemove = i.BeforeRemove;
175
+ exports.BeforeRemove = e.BeforeRemove_2;
174
176
 
175
- exports.BeforeSoftRemove = u.BeforeSoftRemove;
177
+ exports.BeforeSoftRemove = e.BeforeSoftRemove_2;
176
178
 
177
- exports.BeforeUpdate = m.BeforeUpdate;
179
+ exports.BeforeUpdate = e.BeforeUpdate_2;
178
180
 
179
- exports.Check = d.Check;
181
+ exports.Check = e.Check_2;
180
182
 
181
- exports.ChildEntity = q.ChildEntity;
183
+ exports.ChildEntity = e.ChildEntity_2;
182
184
 
183
- exports.Column = l.Column;
185
+ exports.Column = e.Column_2;
184
186
 
185
- exports.CreateDateColumn = j.CreateDateColumn;
187
+ exports.CreateDateColumn = e.CreateDateColumn_2;
186
188
 
187
- exports.DeleteDateColumn = p.DeleteDateColumn;
189
+ exports.DeleteDateColumn = e.DeleteDateColumn_2;
188
190
 
189
- exports.Entity = x.Entity;
191
+ exports.Entity = e.Entity_2;
190
192
 
191
- exports.EventSubscriber = C.EventSubscriber;
193
+ exports.EventSubscriber = e.EventSubscriber_2;
192
194
 
193
- exports.Exclusion = f.Exclusion;
195
+ exports.Exclusion = e.Exclusion_2;
194
196
 
195
- exports.Generated = v.Generated;
197
+ exports.Generated = e.Generated_2;
196
198
 
197
- exports.Index = y.Index;
199
+ exports.Index = e.Index_2;
198
200
 
199
- exports.JoinColumn = T.JoinColumn;
201
+ exports.JoinColumn = e.JoinColumn_2;
200
202
 
201
- exports.JoinTable = P.JoinTable;
203
+ exports.JoinTable = e.JoinTable_2;
202
204
 
203
- exports.ManyToMany = R.ManyToMany;
205
+ exports.ManyToMany = e.ManyToMany_2;
204
206
 
205
- exports.ManyToOne = b.ManyToOne;
207
+ exports.ManyToOne = e.ManyToOne_2;
206
208
 
207
- exports.ObjectIdColumn = A.ObjectIdColumn;
209
+ exports.ObjectIdColumn = e.ObjectIdColumn_2;
208
210
 
209
- exports.OneToMany = I.OneToMany;
211
+ exports.OneToMany = e.OneToMany_2;
210
212
 
211
- exports.OneToOne = g.OneToOne;
213
+ exports.OneToOne = e.OneToOne_2;
212
214
 
213
- exports.PrimaryColumn = k.PrimaryColumn;
215
+ exports.PrimaryColumn = e.PrimaryColumn_2;
214
216
 
215
- exports.PrimaryGeneratedColumn = O.PrimaryGeneratedColumn;
217
+ exports.PrimaryGeneratedColumn = e.PrimaryGeneratedColumn_2;
216
218
 
217
- exports.RelationId = B.RelationId;
219
+ exports.RelationId = e.RelationId_2;
218
220
 
219
- exports.TableInheritance = E.TableInheritance;
221
+ exports.TableInheritance = e.TableInheritance_2;
220
222
 
221
- exports.Tree = h.Tree;
223
+ exports.Tree = e.Tree_2;
222
224
 
223
- exports.TreeChildren = M.TreeChildren;
225
+ exports.TreeChildren = e.TreeChildren_2;
224
226
 
225
- exports.TreeLevelColumn = D.TreeLevelColumn;
227
+ exports.TreeLevelColumn = e.TreeLevelColumn_2;
226
228
 
227
- exports.TreeParent = U.TreeParent;
229
+ exports.TreeParent = e.TreeParent_2;
228
230
 
229
- exports.Unique = V.Unique;
231
+ exports.Unique = e.Unique_2;
230
232
 
231
- exports.UpdateDateColumn = S.UpdateDateColumn;
233
+ exports.UpdateDateColumn = e.UpdateDateColumn_2;
232
234
 
233
- exports.VersionColumn = w.VersionColumn;
235
+ exports.VersionColumn = e.VersionColumn_2;
234
236
 
235
- exports.ViewColumn = G.ViewColumn;
237
+ exports.ViewColumn = e.ViewColumn_2;
236
238
 
237
- exports.ViewEntity = J.ViewEntity;
239
+ exports.ViewEntity = e.ViewEntity_2;
238
240
 
239
- exports.VirtualColumn = L.VirtualColumn;
241
+ exports.VirtualColumn = e.VirtualColumn_2;
@@ -1,47 +1,28 @@
1
1
  import '../vendor/TypeDef.2.js';
2
- import { C as ColumnOptions, l as SimpleColumnType, m as ColumnCommonOptions, n as SpatialColumnType, o as SpatialColumnOptions, W as WithLengthColumnType, p as WithWidthColumnType, q as WithPrecisionColumnType, P as PrimaryGeneratedColumnType, r as ColumnType, V as ValueTransformer, J as JoinColumnOptions, s as JoinTableOptions, t as JoinTableMultipleColumnsOptions, u as ObjectType, v as RelationOptions, S as SelectQueryBuilder, a as DataSource, w as OnDeleteType, x as TreeType, y as ClosureTreeOptions, z as DeferrableType } from '../vendor/TypeDef.4.js';
2
+ import { C as ColumnOptions, l as SimpleColumnType, m as ColumnCommonOptions, n as SpatialColumnType, o as SpatialColumnOptions, W as WithLengthColumnType, U as UnsignedColumnType, p as WithPrecisionColumnType, P as PrimaryGeneratedColumnType, q as ColumnType, V as ValueTransformer, J as JoinColumnOptions, r as JoinTableOptions, s as JoinTableMultipleColumnsOptions, t as ObjectType, u as RelationOptions, S as SelectQueryBuilder, a as DataSource, v as OnDeleteType, w as TreeType, x as ClosureTreeOptions, y as DeferrableType } from '../vendor/TypeDef.4.js';
3
3
  import { E as EntityOptions, I as IndexOptions } from '../vendor/TypeDef.12.js';
4
4
  import 'fs';
5
- import 'tls';
6
- import 'net';
7
5
  import 'dns';
6
+ import 'net';
7
+ import 'tls';
8
8
  import 'events';
9
9
  import 'stream';
10
10
 
11
11
  /**
12
- * Options for columns that can define a length of the column type.
13
- */
14
- interface ColumnWithLengthOptions {
15
- /**
16
- * Column type's length.
17
- * For example type = "varchar" and length = "100" means ORM will create a column with type varchar(100).
18
- */
19
- length?: string | number;
20
- }
21
-
22
- /**
23
- * Options for numeric column types where user can specify scale and precision.
12
+ * Column options specific to embedded column.
24
13
  */
25
- interface ColumnNumericOptions {
26
- /**
27
- * The precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum
28
- * number of digits that are stored for the values.
29
- */
30
- precision?: number;
31
- /**
32
- * The scale for a decimal (exact numeric) column (applies only for decimal column), which represents the number
33
- * of digits to the right of the decimal point and must not be greater than precision.
34
- */
35
- scale?: number;
14
+ interface ColumnEmbeddedOptions {
36
15
  /**
37
- * Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
38
- * If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column
16
+ * Embedded column prefix.
17
+ * If set to empty string or false, then prefix is not set at all.
39
18
  */
40
- zerofill?: boolean;
19
+ prefix?: string | boolean;
41
20
  /**
42
- * Puts UNSIGNED attribute on to numeric column. Works only for MySQL.
21
+ * Indicates if this embedded is in array mode.
22
+ *
23
+ * This option works only in mongodb.
43
24
  */
44
- unsigned?: boolean;
25
+ array?: boolean;
45
26
  }
46
27
 
47
28
  /**
@@ -59,45 +40,69 @@ interface ColumnEnumOptions {
59
40
  }
60
41
 
61
42
  /**
62
- * Column options specific to embedded column.
43
+ * Column options for enum-typed columns.
63
44
  */
64
- interface ColumnEmbeddedOptions {
65
- /**
66
- * Embedded column prefix.
67
- * If set to empty string or false, then prefix is not set at all.
68
- */
69
- prefix?: string | boolean;
45
+ interface ColumnHstoreOptions {
70
46
  /**
71
- * Indicates if this embedded is in array mode.
72
- *
73
- * This option works only in mongodb.
47
+ * Return type of HSTORE column.
48
+ * Returns value as string or as object.
74
49
  */
75
- array?: boolean;
50
+ hstoreType?: string;
76
51
  }
77
52
 
78
53
  /**
79
- * Column options for enum-typed columns.
54
+ * Options for numeric column types where user can specify scale and precision.
80
55
  */
81
- interface ColumnHstoreOptions {
56
+ interface ColumnNumericOptions {
82
57
  /**
83
- * Return type of HSTORE column.
84
- * Returns value as string or as object.
58
+ * The precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum
59
+ * number of digits that are stored for the values.
85
60
  */
86
- hstoreType?: string;
61
+ precision?: number;
62
+ /**
63
+ * The scale for a decimal (exact numeric) column (applies only for decimal column), which represents the number
64
+ * of digits to the right of the decimal point and must not be greater than precision.
65
+ */
66
+ scale?: number;
67
+ /**
68
+ * Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
69
+ * If you specify ZEROFILL for a numeric column, MySQL automatically adds
70
+ * the UNSIGNED attribute to the column
71
+ * @deprecated MySQL deprecated and removed the ZEROFILL attribute. This
72
+ * will also be removed from TypeORM in an upcoming version. Use a character
73
+ * column and the `LPAD` function as suggested by MySQL or handle the
74
+ * formatting in the application layer.
75
+ */
76
+ zerofill?: boolean;
77
+ /**
78
+ * Puts UNSIGNED attribute on to numeric column. Works only for MySQL.
79
+ * @deprecated MySQL deprecated the UNSIGNED attribute for non-integer
80
+ * numeric types. This will also be removed from TypeORM in an upcoming version.
81
+ */
82
+ unsigned?: boolean;
87
83
  }
88
84
 
89
85
  /**
90
86
  * Options for columns that can define a length of the column type.
91
87
  */
92
- interface ColumnWithWidthOptions {
88
+ interface ColumnUnsignedOptions {
93
89
  /**
94
90
  * Column type's display width. Used only on some column types in MySQL.
95
91
  * For example, INT(4) specifies an INT with a display width of four digits.
92
+ * @deprecated MySQL deprecated and removed display width for integer types,
93
+ * TypeORM will also remove it in an upcoming version. Use a character
94
+ * column and the `LPAD` function as suggested by MySQL or handle the
95
+ * formatting in the application layer.
96
96
  */
97
97
  width?: number;
98
98
  /**
99
99
  * Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
100
- * If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to this column
100
+ * If you specify ZEROFILL for a numeric column, MySQL automatically adds
101
+ * the UNSIGNED attribute to this column
102
+ * @deprecated MySQL deprecated and removed the zerofill attribute. This
103
+ * will also be removed from TypeORM in an upcoming version. Use a character
104
+ * column and the `LPAD` function as suggested by MySQL or handle the
105
+ * formatting in the application layer.
101
106
  */
102
107
  zerofill?: boolean;
103
108
  /**
@@ -106,6 +111,17 @@ interface ColumnWithWidthOptions {
106
111
  unsigned?: boolean;
107
112
  }
108
113
 
114
+ /**
115
+ * Options for columns that can define a length of the column type.
116
+ */
117
+ interface ColumnWithLengthOptions {
118
+ /**
119
+ * Column type's length.
120
+ * For example type = "varchar" and length = "100" means ORM will create a column with type varchar(100).
121
+ */
122
+ length?: string | number;
123
+ }
124
+
109
125
  /**
110
126
  * Column decorator is used to mark a specific class property as a table column. Only properties decorated with this
111
127
  * decorator will be persisted to the database when entity be saved.
@@ -135,7 +151,7 @@ declare function Column(type: WithLengthColumnType, options?: ColumnCommonOption
135
151
  * Column decorator is used to mark a specific class property as a table column.
136
152
  * Only properties decorated with this decorator will be persisted to the database when entity be saved.
137
153
  */
138
- declare function Column(type: WithWidthColumnType, options?: ColumnCommonOptions & ColumnWithWidthOptions): PropertyDecorator;
154
+ declare function Column(type: UnsignedColumnType, options?: ColumnCommonOptions & ColumnUnsignedOptions): PropertyDecorator;
139
155
  /**
140
156
  * Column decorator is used to mark a specific class property as a table column.
141
157
  * Only properties decorated with this decorator will be persisted to the database when entity be saved.
@@ -203,6 +219,9 @@ interface PrimaryGeneratedColumnNumericOptions {
203
219
  /**
204
220
  * Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
205
221
  * If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column
222
+ * @deprecated No longer supported in newer MySQL versions, will be removed
223
+ * from TypeORM in an upcoming version. Use a character column and the
224
+ * `LPAD` function as suggested by MySQL
206
225
  */
207
226
  zerofill?: boolean;
208
227
  /**
@@ -322,6 +341,11 @@ interface VirtualColumnOptions {
322
341
  * Column type. Must be one of the value from the ColumnTypes class.
323
342
  */
324
343
  type?: ColumnType;
344
+ /**
345
+ * Indicates if column is always selected by QueryBuilder and find operations.
346
+ * Default value is "true".
347
+ */
348
+ select?: boolean;
325
349
  /**
326
350
  * Return type of HSTORE column.
327
351
  * Returns value as string or as object.