lakutata 2.0.64 → 2.0.66

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 (233) hide show
  1. package/com/database.cjs +0 -2
  2. package/com/database.d.ts +2 -2
  3. package/com/database.mjs +0 -2
  4. package/com/docker.mjs +1 -1
  5. package/com/logger.mjs +1 -1
  6. package/decorator/orm.cjs +86 -88
  7. package/decorator/orm.d.ts +50 -74
  8. package/decorator/orm.mjs +44 -46
  9. package/helper.mjs +2 -2
  10. package/lakutata.mjs +2 -2
  11. package/orm.cjs +1075 -112
  12. package/orm.d.ts +4 -4
  13. package/orm.mjs +1015 -17
  14. package/package.json +1 -1
  15. package/provider/database.cjs +0 -2
  16. package/provider/database.d.ts +2 -2
  17. package/provider/database.mjs +0 -2
  18. package/src/components/Database.cjs +0 -2
  19. package/src/components/Database.mjs +2 -4
  20. package/src/components/Logger.mjs +1 -1
  21. package/src/components/cacher/Cacher.mjs +10 -10
  22. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +3 -3
  23. package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +1 -1
  24. package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +1 -1
  25. package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +1 -1
  26. package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +1 -1
  27. package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +21 -21
  28. package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +8 -8
  29. package/src/components/cacher/options/FileCacheOptions.mjs +2 -2
  30. package/src/components/cacher/options/MemcacheCacheOptions.mjs +2 -2
  31. package/src/components/cacher/options/MongoCacheOptions.mjs +2 -2
  32. package/src/components/cacher/options/MysqlCacheOptions.mjs +2 -2
  33. package/src/components/cacher/options/PostgresCacheOptions.mjs +2 -2
  34. package/src/components/cacher/options/RedisCacheOptions.mjs +2 -2
  35. package/src/components/cacher/options/SqliteCacheOptions.mjs +2 -2
  36. package/src/components/docker/Docker.mjs +5 -5
  37. package/src/components/docker/lib/DockerContainer.mjs +3 -3
  38. package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
  39. package/src/components/docker/lib/DockerImage.mjs +2 -2
  40. package/src/components/docker/options/DockerPruneOptions.mjs +2 -2
  41. package/src/components/docker/options/auth/DockerAuthOptions.mjs +2 -2
  42. package/src/components/docker/options/container/ContainerCommitOptions.mjs +2 -2
  43. package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +2 -2
  44. package/src/components/docker/options/container/ContainerExecOptions.mjs +2 -2
  45. package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +2 -2
  46. package/src/components/docker/options/container/ContainerKillOptions.mjs +2 -2
  47. package/src/components/docker/options/container/ContainerLogsOptions.mjs +2 -2
  48. package/src/components/docker/options/container/ContainerRemoveOptions.mjs +2 -2
  49. package/src/components/docker/options/container/ContainerSettingOptions.mjs +2 -2
  50. package/src/components/docker/options/container/ContainerStopOptions.mjs +2 -2
  51. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +2 -2
  52. package/src/components/docker/options/image/ImageBuildOptions.mjs +2 -2
  53. package/src/components/docker/options/image/ImageExportOptions.mjs +2 -2
  54. package/src/components/docker/options/image/ImageImportOptions.mjs +2 -2
  55. package/src/components/docker/options/image/ImagePullOptions.mjs +2 -2
  56. package/src/components/docker/options/image/ImagePushOptions.mjs +2 -2
  57. package/src/components/docker/options/image/ImageRemoveOptions.mjs +2 -2
  58. package/src/components/docker/options/image/ImageTagOptions.mjs +2 -2
  59. package/src/components/docker/options/network/NetworkCreateOptions.mjs +2 -2
  60. package/src/components/entrypoint/Entrypoint.mjs +3 -3
  61. package/src/components/entrypoint/lib/AccessControl.mjs +21 -21
  62. package/src/components/entrypoint/lib/AccessControlRule.mjs +2 -2
  63. package/src/components/entrypoint/lib/Controller.mjs +3 -3
  64. package/src/components/monitor/AliveMonitor.mjs +2 -2
  65. package/src/components/monitor/CpuMonitor.mjs +1 -1
  66. package/src/components/monitor/HttpRequestMonitor.mjs +14 -14
  67. package/src/components/monitor/MemoryMonitor.mjs +1 -1
  68. package/src/decorators/di/Configurable.mjs +1 -1
  69. package/src/decorators/dto/Expect.mjs +1 -1
  70. package/src/decorators/dto/IndexSignature.mjs +1 -1
  71. package/src/decorators/orm/AfterInsert.cjs +27 -7
  72. package/src/decorators/orm/AfterInsert.mjs +28 -6
  73. package/src/decorators/orm/AfterLoad.cjs +27 -7
  74. package/src/decorators/orm/AfterLoad.mjs +28 -6
  75. package/src/decorators/orm/AfterRecover.cjs +27 -7
  76. package/src/decorators/orm/AfterRecover.mjs +28 -6
  77. package/src/decorators/orm/AfterRemove.cjs +27 -7
  78. package/src/decorators/orm/AfterRemove.mjs +28 -6
  79. package/src/decorators/orm/AfterSoftRemove.cjs +27 -7
  80. package/src/decorators/orm/AfterSoftRemove.mjs +28 -6
  81. package/src/decorators/orm/AfterUpdate.cjs +27 -7
  82. package/src/decorators/orm/AfterUpdate.mjs +28 -6
  83. package/src/decorators/orm/BeforeInsert.cjs +27 -7
  84. package/src/decorators/orm/BeforeInsert.mjs +28 -6
  85. package/src/decorators/orm/BeforeRecover.cjs +27 -7
  86. package/src/decorators/orm/BeforeRecover.mjs +28 -6
  87. package/src/decorators/orm/BeforeRemove.cjs +27 -7
  88. package/src/decorators/orm/BeforeRemove.mjs +28 -6
  89. package/src/decorators/orm/BeforeSoftRemove.cjs +27 -7
  90. package/src/decorators/orm/BeforeSoftRemove.mjs +28 -6
  91. package/src/decorators/orm/BeforeUpdate.cjs +27 -7
  92. package/src/decorators/orm/BeforeUpdate.mjs +28 -6
  93. package/src/decorators/orm/Check.cjs +30 -7
  94. package/src/decorators/orm/Check.mjs +31 -6
  95. package/src/decorators/orm/ChildEntity.cjs +30 -7
  96. package/src/decorators/orm/ChildEntity.mjs +31 -6
  97. package/src/decorators/orm/Column.cjs +62 -7
  98. package/src/decorators/orm/Column.mjs +63 -6
  99. package/src/decorators/orm/CreateDateColumn.cjs +26 -7
  100. package/src/decorators/orm/CreateDateColumn.mjs +27 -6
  101. package/src/decorators/orm/DeleteDateColumn.cjs +26 -7
  102. package/src/decorators/orm/DeleteDateColumn.mjs +27 -6
  103. package/src/decorators/orm/Entity.cjs +36 -7
  104. package/src/decorators/orm/Entity.mjs +37 -6
  105. package/src/decorators/orm/EventSubscriber.cjs +23 -7
  106. package/src/decorators/orm/EventSubscriber.mjs +24 -6
  107. package/src/decorators/orm/Exclusion.cjs +30 -7
  108. package/src/decorators/orm/Exclusion.mjs +31 -6
  109. package/src/decorators/orm/Generated.cjs +25 -7
  110. package/src/decorators/orm/Generated.mjs +26 -6
  111. package/src/decorators/orm/Index.cjs +42 -7
  112. package/src/decorators/orm/Index.mjs +43 -6
  113. package/src/decorators/orm/JoinColumn.cjs +30 -7
  114. package/src/decorators/orm/JoinColumn.mjs +31 -6
  115. package/src/decorators/orm/JoinTable.cjs +31 -7
  116. package/src/decorators/orm/JoinTable.mjs +32 -6
  117. package/src/decorators/orm/ManyToMany.cjs +43 -7
  118. package/src/decorators/orm/ManyToMany.mjs +44 -6
  119. package/src/decorators/orm/ManyToOne.cjs +43 -7
  120. package/src/decorators/orm/ManyToOne.mjs +44 -6
  121. package/src/decorators/orm/ObjectIdColumn.cjs +29 -7
  122. package/src/decorators/orm/ObjectIdColumn.mjs +30 -6
  123. package/src/decorators/orm/OneToMany.cjs +35 -7
  124. package/src/decorators/orm/OneToMany.mjs +36 -6
  125. package/src/decorators/orm/OneToOne.cjs +43 -7
  126. package/src/decorators/orm/OneToOne.mjs +44 -6
  127. package/src/decorators/orm/PrimaryColumn.cjs +50 -7
  128. package/src/decorators/orm/PrimaryColumn.mjs +51 -6
  129. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +55 -7
  130. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +56 -6
  131. package/src/decorators/orm/RelationId.cjs +27 -7
  132. package/src/decorators/orm/RelationId.mjs +28 -6
  133. package/src/decorators/orm/TableInheritance.cjs +27 -7
  134. package/src/decorators/orm/TableInheritance.mjs +28 -6
  135. package/src/decorators/orm/Tree.cjs +25 -7
  136. package/src/decorators/orm/Tree.mjs +26 -6
  137. package/src/decorators/orm/TreeChildren.cjs +32 -7
  138. package/src/decorators/orm/TreeChildren.mjs +33 -6
  139. package/src/decorators/orm/TreeLevelColumn.cjs +26 -7
  140. package/src/decorators/orm/TreeLevelColumn.mjs +27 -6
  141. package/src/decorators/orm/TreeParent.cjs +32 -7
  142. package/src/decorators/orm/TreeParent.mjs +33 -6
  143. package/src/decorators/orm/Unique.cjs +45 -7
  144. package/src/decorators/orm/Unique.mjs +46 -6
  145. package/src/decorators/orm/UpdateDateColumn.cjs +26 -7
  146. package/src/decorators/orm/UpdateDateColumn.mjs +27 -6
  147. package/src/decorators/orm/VersionColumn.cjs +26 -7
  148. package/src/decorators/orm/VersionColumn.mjs +27 -6
  149. package/src/decorators/orm/ViewColumn.cjs +26 -7
  150. package/src/decorators/orm/ViewColumn.mjs +27 -6
  151. package/src/decorators/orm/ViewEntity.cjs +35 -7
  152. package/src/decorators/orm/ViewEntity.mjs +36 -6
  153. package/src/decorators/orm/VirtualColumn.cjs +43 -7
  154. package/src/decorators/orm/VirtualColumn.mjs +44 -6
  155. package/src/lib/base/BaseObject.mjs +1 -1
  156. package/src/lib/base/Context.mjs +10 -10
  157. package/src/lib/base/EventEmitter.mjs +1 -1
  158. package/src/lib/base/internal/ActionOptions.mjs +2 -2
  159. package/src/lib/base/internal/BasicInfo.mjs +10 -10
  160. package/src/lib/base/internal/DataValidator.mjs +2 -2
  161. package/src/lib/base/internal/FlexibleDTO.mjs +2 -2
  162. package/src/lib/base/internal/MethodValidation.mjs +1 -1
  163. package/src/lib/base/internal/ModuleConfigLoader.mjs +1 -1
  164. package/src/lib/base/internal/ObjectConfiguration.mjs +1 -1
  165. package/src/lib/base/internal/ObjectSchemaValidation.mjs +1 -1
  166. package/src/lib/base/internal/ObjectType.mjs +1 -1
  167. package/src/lib/base/internal/PatternManager.mjs +1 -1
  168. package/src/lib/base/internal/StringifyPattern.mjs +1 -1
  169. package/src/lib/context/CLIContext.mjs +5 -5
  170. package/src/lib/context/HTTPContext.mjs +2 -2
  171. package/src/lib/context/ServiceContext.mjs +2 -2
  172. package/src/lib/core/Application.mjs +10 -10
  173. package/src/lib/core/Component.mjs +2 -2
  174. package/src/lib/core/Container.mjs +1 -1
  175. package/src/lib/core/DTO.mjs +1 -1
  176. package/src/lib/core/Module.mjs +2 -2
  177. package/src/lib/core/Provider.mjs +5 -5
  178. package/src/lib/core/Time.mjs +1 -1
  179. package/src/lib/helpers/Glob.mjs +1 -1
  180. package/src/lib/helpers/IsGlobString.mjs +1 -1
  181. package/src/lib/helpers/IsHtml.mjs +5 -5
  182. package/src/lib/helpers/IsSymbol.mjs +1 -1
  183. package/src/lib/helpers/IsXML.mjs +1 -1
  184. package/src/lib/helpers/MD5.mjs +1 -1
  185. package/src/lib/helpers/ObjectHash.mjs +1 -1
  186. package/src/lib/helpers/RandomString.mjs +1 -1
  187. package/src/lib/helpers/SHA1.mjs +3 -3
  188. package/src/lib/helpers/SHA256.mjs +3 -3
  189. package/src/lib/helpers/SortArray.mjs +14 -14
  190. package/src/lib/helpers/Statistics.mjs +59 -59
  191. package/src/lib/helpers/URLBuilder.mjs +34 -34
  192. package/src/lib/ioc/Errors.mjs +8 -8
  193. package/src/lib/ioc/ListModules.mjs +2 -2
  194. package/src/lib/ioc/Utils.mjs +1 -1
  195. package/src/lib/validation/VLD.mjs +1 -1
  196. package/src/options/ApplicationOptions.mjs +2 -2
  197. package/src/options/LoadAnonymousObjectOptions.mjs +3 -3
  198. package/src/options/LoadNamedObjectOptions.mjs +3 -3
  199. package/src/options/LoadObjectOptions.mjs +1 -1
  200. package/src/options/ModuleLoadObjectsOptions.mjs +3 -3
  201. package/src/options/ModuleOptions.mjs +3 -3
  202. package/src/options/OverridableNamedObjectOptions.mjs +2 -2
  203. package/src/options/OverridableObjectOptions.mjs +3 -3
  204. package/src/providers/Database.cjs +0 -2
  205. package/src/providers/Database.mjs +2 -4
  206. package/src/providers/PasswordHash.mjs +19 -19
  207. package/vendor/Package.1.mjs +1 -1
  208. package/vendor/Package.12.mjs +5 -5
  209. package/vendor/Package.122.cjs +13223 -16706
  210. package/vendor/Package.122.mjs +15550 -18933
  211. package/vendor/Package.13.mjs +4 -4
  212. package/vendor/Package.132.mjs +1 -1
  213. package/vendor/Package.16.mjs +1 -1
  214. package/vendor/Package.17.mjs +5 -5
  215. package/vendor/Package.19.cjs +1 -1
  216. package/vendor/Package.19.mjs +194 -183
  217. package/vendor/Package.2.mjs +114 -114
  218. package/vendor/Package.3.mjs +30 -30
  219. package/vendor/Package.4.mjs +1 -1
  220. package/vendor/Package.5.mjs +1 -1
  221. package/vendor/Package.6.mjs +3 -3
  222. package/vendor/Package.610.mjs +1 -1
  223. package/vendor/Package.611.mjs +11 -11
  224. package/vendor/Package.62.mjs +148 -148
  225. package/vendor/Package.63.mjs +43 -43
  226. package/vendor/Package.64.mjs +1 -1
  227. package/vendor/Package.65.mjs +3 -3
  228. package/vendor/Package.66.mjs +1 -1
  229. package/vendor/Package.67.mjs +1 -1
  230. package/vendor/Package.68.mjs +1 -1
  231. package/vendor/Package.7.mjs +1 -1
  232. package/vendor/Package.9.mjs +36 -36
  233. package/vendor/TypeDef.internal.4.d.ts +181 -347
package/orm.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import "./vendor/Package.4.mjs";
2
2
 
3
- import { getDefaultExportFromCjs as e } from "./vendor/Package.5.mjs";
3
+ import { g as e } from "./vendor/Package.5.mjs";
4
4
 
5
- import { requireGlobals as a, requireEntityManager as r, requireAbstractRepository as t, requireMongoEntityManager as o } from "./vendor/Package.122.mjs";
5
+ import { a as r, F as a, c, d, O as f, B as O, f as _, R as b, D as E, e as R } from "./vendor/Package.122.mjs";
6
6
 
7
- export { AbstractLogger_2 as AbstractLogger, AdvancedConsoleLogger_2 as AdvancedConsoleLogger, And_2 as And, Any_2 as Any, ArrayContainedBy_2 as ArrayContainedBy, ArrayContains_2 as ArrayContains, ArrayOverlap_2 as ArrayOverlap, BaseEntity_2 as BaseEntity, Between_2 as Between, Brackets_2 as Brackets, ConnectionOptionsReader_2 as ConnectionOptionsReader, DefaultNamingStrategy_2 as DefaultNamingStrategy, DeleteQueryBuilder_2 as DeleteQueryBuilder, DeleteResult_2 as DeleteResult, EntityMetadata_2 as EntityMetadata, EntitySchema_2 as EntitySchema, EntitySchemaEmbeddedColumnOptions_2 as EntitySchemaEmbeddedColumnOptions, EntitySchemaOptions_2 as EntitySchemaOptions, Equal_2 as Equal, EqualOperator_2 as EqualOperator, FileLogger_2 as FileLogger, FindOperator_2 as FindOperator, FindOptionsUtils_2 as FindOptionsUtils, ILike_2 as ILike, In_2 as In, InsertQueryBuilder_2 as InsertQueryBuilder, InsertResult_2 as InsertResult, InstanceChecker_2 as InstanceChecker, IsNull_2 as IsNull, JsonContains_2 as JsonContains, LegacyOracleNamingStrategy_2 as LegacyOracleNamingStrategy, LessThan_2 as LessThan, LessThanOrEqual_2 as LessThanOrEqual, Like_2 as Like, Migration_2 as Migration, MigrationExecutor_2 as MigrationExecutor, MongoRepository_2 as MongoRepository, MoreThan_2 as MoreThan, MoreThanOrEqual_2 as MoreThanOrEqual, MssqlParameter_2 as MssqlParameter, Not_2 as Not, NotBrackets_2 as NotBrackets, QueryBuilder_2 as QueryBuilder, QueryResult_2 as QueryResult, Raw_2 as Raw, RelationQueryBuilder_2 as RelationQueryBuilder, Repository_2 as Repository, SelectQueryBuilder_2 as SelectQueryBuilder, SimpleConsoleLogger_2 as SimpleConsoleLogger, Table_2 as Table, TableCheck_2 as TableCheck, TableColumn_2 as TableColumn, TableExclusion_2 as TableExclusion, TableForeignKey_2 as TableForeignKey, TableIndex_2 as TableIndex, TableUnique_2 as TableUnique, TreeRepository_2 as TreeRepository, TreeRepositoryUtils_2 as TreeRepositoryUtils, UpdateQueryBuilder_2 as UpdateQueryBuilder, UpdateResult_2 as UpdateResult, getFromContainer_1 as getFromContainer, useContainer_1 as useContainer } from "./vendor/Package.122.mjs";
7
+ export { A as AbstractLogger, x as AdvancedConsoleLogger, j as Brackets, g as ConnectionOptionsReader, p as DefaultNamingStrategy, h as DeleteQueryBuilder, m as DeleteResult, G as EntityMetadata, z as FileLogger, v as FindOperator, w as FindOptionsUtils, t as In, I as InsertQueryBuilder, k as InsertResult, q as InstanceChecker, M as Migration, o as MigrationExecutor, K as MongoRepository, Z as MssqlParameter, Q as QueryBuilder, n as QueryResult, i as RelationQueryBuilder, H as Repository, S as SelectQueryBuilder, y as SimpleConsoleLogger, Y as Table, L as TableCheck, N as TableColumn, P as TableExclusion, V as TableForeignKey, W as TableIndex, X as TableUnique, J as TreeRepository, T as TreeRepositoryUtils, U as UpdateQueryBuilder, l as UpdateResult, s as getFromContainer, u as useContainer } from "./vendor/Package.122.mjs";
8
8
 
9
- import { DataSourceExports as s } from "./vendor/Package.12.mjs";
9
+ import { D as B } from "./vendor/Package.12.mjs";
10
10
 
11
11
  import "./vendor/Package.13.mjs";
12
12
 
@@ -52,8 +52,6 @@ import "./vendor/Package.11.mjs";
52
52
 
53
53
  import "url";
54
54
 
55
- import "node:util";
56
-
57
55
  import "./vendor/Package.63.mjs";
58
56
 
59
57
  import "node:url";
@@ -70,24 +68,1024 @@ import "node:stream";
70
68
 
71
69
  import "node:string_decoder";
72
70
 
73
- var n = a();
71
+ var F = r();
72
+
73
+ const C = e(F);
74
+
75
+ var D = {};
76
+
77
+ "use strict";
78
+
79
+ Object.defineProperty(D, "__esModule", {
80
+ value: true
81
+ });
82
+
83
+ var $ = {};
84
+
85
+ "use strict";
86
+
87
+ Object.defineProperty($, "__esModule", {
88
+ value: true
89
+ });
90
+
91
+ var ee = {};
92
+
93
+ "use strict";
94
+
95
+ Object.defineProperty(ee, "__esModule", {
96
+ value: true
97
+ });
98
+
99
+ var te = {};
100
+
101
+ "use strict";
102
+
103
+ Object.defineProperty(te, "__esModule", {
104
+ value: true
105
+ });
106
+
107
+ var re = {};
108
+
109
+ "use strict";
110
+
111
+ Object.defineProperty(re, "__esModule", {
112
+ value: true
113
+ });
114
+
115
+ var se = {};
116
+
117
+ "use strict";
118
+
119
+ Object.defineProperty(se, "__esModule", {
120
+ value: true
121
+ });
122
+
123
+ var ne = {};
124
+
125
+ "use strict";
126
+
127
+ Object.defineProperty(ne, "__esModule", {
128
+ value: true
129
+ });
130
+
131
+ var ae = {};
132
+
133
+ "use strict";
134
+
135
+ Object.defineProperty(ae, "__esModule", {
136
+ value: true
137
+ });
138
+
139
+ var oe = {};
140
+
141
+ "use strict";
142
+
143
+ Object.defineProperty(oe, "__esModule", {
144
+ value: true
145
+ });
146
+
147
+ var ie = {};
148
+
149
+ "use strict";
150
+
151
+ Object.defineProperty(ie, "__esModule", {
152
+ value: true
153
+ });
154
+
155
+ var ue = {};
156
+
157
+ "use strict";
158
+
159
+ Object.defineProperty(ue, "__esModule", {
160
+ value: true
161
+ });
162
+
163
+ var ce = {};
164
+
165
+ "use strict";
166
+
167
+ Object.defineProperty(ce, "__esModule", {
168
+ value: true
169
+ });
170
+
171
+ var de = {};
172
+
173
+ "use strict";
174
+
175
+ Object.defineProperty(de, "__esModule", {
176
+ value: true
177
+ });
178
+
179
+ var le = {};
180
+
181
+ "use strict";
182
+
183
+ Object.defineProperty(le, "__esModule", {
184
+ value: true
185
+ });
186
+
187
+ var ye = le.And = ve;
188
+
189
+ const pe = a;
190
+
191
+ function ve(...e) {
192
+ return new pe.FindOperator("and", e, true, true);
193
+ }
194
+
195
+ var fe = {};
196
+
197
+ "use strict";
198
+
199
+ Object.defineProperty(fe, "__esModule", {
200
+ value: true
201
+ });
202
+
203
+ var Oe = fe.Any = _e;
204
+
205
+ const me = a;
206
+
207
+ function _e(e) {
208
+ return new me.FindOperator("any", e);
209
+ }
210
+
211
+ var ge = {};
212
+
213
+ "use strict";
214
+
215
+ Object.defineProperty(ge, "__esModule", {
216
+ value: true
217
+ });
218
+
219
+ var be = ge.ArrayContainedBy = je;
220
+
221
+ const he = a;
222
+
223
+ function je(e) {
224
+ return new he.FindOperator("arrayContainedBy", e);
225
+ }
226
+
227
+ var Pe = {};
228
+
229
+ "use strict";
230
+
231
+ Object.defineProperty(Pe, "__esModule", {
232
+ value: true
233
+ });
234
+
235
+ var Me = Pe.ArrayContains = Re;
236
+
237
+ const Ee = a;
238
+
239
+ function Re(e) {
240
+ return new Ee.FindOperator("arrayContains", e);
241
+ }
242
+
243
+ var Be = {};
244
+
245
+ "use strict";
246
+
247
+ Object.defineProperty(Be, "__esModule", {
248
+ value: true
249
+ });
250
+
251
+ var Se = Be.ArrayOverlap = Ne;
252
+
253
+ const Ie = a;
254
+
255
+ function Ne(e) {
256
+ return new Ie.FindOperator("arrayOverlap", e);
257
+ }
258
+
259
+ var Fe = {};
260
+
261
+ "use strict";
262
+
263
+ Object.defineProperty(Fe, "__esModule", {
264
+ value: true
265
+ });
266
+
267
+ var Te = Fe.Between = ke;
268
+
269
+ const we = a;
270
+
271
+ function ke(e, t) {
272
+ return new we.FindOperator("between", [ e, t ], true, true);
273
+ }
274
+
275
+ var Ce = {};
276
+
277
+ var De = {};
278
+
279
+ "use strict";
280
+
281
+ Object.defineProperty(De, "__esModule", {
282
+ value: true
283
+ });
284
+
285
+ var Le = De.EqualOperator = void 0;
286
+
287
+ const Ae = a;
288
+
289
+ class EqualOperator extends Ae.FindOperator {
290
+ constructor(e) {
291
+ super("equal", e);
292
+ this["@instanceof"] = Symbol.for("EqualOperator");
293
+ }
294
+ }
295
+
296
+ Le = De.EqualOperator = EqualOperator;
297
+
298
+ "use strict";
299
+
300
+ Object.defineProperty(Ce, "__esModule", {
301
+ value: true
302
+ });
303
+
304
+ var xe = Ce.Equal = Ue;
305
+
306
+ const qe = De;
307
+
308
+ function Ue(e) {
309
+ return new qe.EqualOperator(e);
310
+ }
311
+
312
+ var Qe = {};
313
+
314
+ "use strict";
315
+
316
+ Object.defineProperty(Qe, "__esModule", {
317
+ value: true
318
+ });
319
+
320
+ var Xe = Qe.IsNull = ze;
321
+
322
+ const Ke = a;
323
+
324
+ function ze() {
325
+ return new Ke.FindOperator("isNull", undefined, false);
326
+ }
327
+
328
+ var Ze = {};
329
+
330
+ "use strict";
331
+
332
+ Object.defineProperty(Ze, "__esModule", {
333
+ value: true
334
+ });
335
+
336
+ var Je = Ze.LessThan = He;
337
+
338
+ const Ge = a;
339
+
340
+ function He(e) {
341
+ return new Ge.FindOperator("lessThan", e);
342
+ }
343
+
344
+ var Ve = {};
345
+
346
+ "use strict";
347
+
348
+ Object.defineProperty(Ve, "__esModule", {
349
+ value: true
350
+ });
351
+
352
+ var We = Ve.LessThanOrEqual = $e;
353
+
354
+ const Ye = a;
355
+
356
+ function $e(e) {
357
+ return new Ye.FindOperator("lessThanOrEqual", e);
358
+ }
359
+
360
+ var et = {};
361
+
362
+ "use strict";
363
+
364
+ Object.defineProperty(et, "__esModule", {
365
+ value: true
366
+ });
367
+
368
+ var tt = et.ILike = st;
369
+
370
+ const rt = a;
371
+
372
+ function st(e) {
373
+ return new rt.FindOperator("ilike", e);
374
+ }
375
+
376
+ var nt = {};
377
+
378
+ "use strict";
379
+
380
+ Object.defineProperty(nt, "__esModule", {
381
+ value: true
382
+ });
383
+
384
+ var at = nt.Like = it;
385
+
386
+ const ot = a;
387
+
388
+ function it(e) {
389
+ return new ot.FindOperator("like", e);
390
+ }
391
+
392
+ var ut = {};
393
+
394
+ "use strict";
395
+
396
+ Object.defineProperty(ut, "__esModule", {
397
+ value: true
398
+ });
399
+
400
+ var ct = ut.MoreThan = lt;
401
+
402
+ const dt = a;
403
+
404
+ function lt(e) {
405
+ return new dt.FindOperator("moreThan", e);
406
+ }
407
+
408
+ var yt = {};
409
+
410
+ "use strict";
411
+
412
+ Object.defineProperty(yt, "__esModule", {
413
+ value: true
414
+ });
415
+
416
+ var pt = yt.MoreThanOrEqual = ft;
417
+
418
+ const vt = a;
419
+
420
+ function ft(e) {
421
+ return new vt.FindOperator("moreThanOrEqual", e);
422
+ }
423
+
424
+ var Ot = {};
425
+
426
+ "use strict";
427
+
428
+ Object.defineProperty(Ot, "__esModule", {
429
+ value: true
430
+ });
431
+
432
+ var mt = Ot.Not = gt;
433
+
434
+ const _t = a;
435
+
436
+ function gt(e) {
437
+ return new _t.FindOperator("not", e);
438
+ }
439
+
440
+ var bt = {};
441
+
442
+ "use strict";
443
+
444
+ Object.defineProperty(bt, "__esModule", {
445
+ value: true
446
+ });
447
+
448
+ var ht = bt.Raw = Pt;
449
+
450
+ const jt = a;
451
+
452
+ function Pt(e, t) {
453
+ if (typeof e !== "function") {
454
+ return new jt.FindOperator("raw", e, false);
455
+ }
456
+ return new jt.FindOperator("raw", [], true, true, e, t);
457
+ }
458
+
459
+ var Mt = {};
460
+
461
+ "use strict";
462
+
463
+ Object.defineProperty(Mt, "__esModule", {
464
+ value: true
465
+ });
466
+
467
+ var Et = Mt.JsonContains = Bt;
468
+
469
+ const Rt = a;
470
+
471
+ function Bt(e) {
472
+ return new Rt.FindOperator("jsonContains", e);
473
+ }
474
+
475
+ var St = {};
476
+
477
+ "use strict";
478
+
479
+ Object.defineProperty(St, "__esModule", {
480
+ value: true
481
+ });
482
+
483
+ var It = {};
484
+
485
+ "use strict";
486
+
487
+ Object.defineProperty(It, "__esModule", {
488
+ value: true
489
+ });
490
+
491
+ var Nt = {};
492
+
493
+ "use strict";
494
+
495
+ Object.defineProperty(Nt, "__esModule", {
496
+ value: true
497
+ });
498
+
499
+ var Ft = {};
500
+
501
+ "use strict";
502
+
503
+ Object.defineProperty(Ft, "__esModule", {
504
+ value: true
505
+ });
506
+
507
+ var Tt = {};
508
+
509
+ "use strict";
510
+
511
+ Object.defineProperty(Tt, "__esModule", {
512
+ value: true
513
+ });
514
+
515
+ var wt = {};
516
+
517
+ "use strict";
518
+
519
+ Object.defineProperty(wt, "__esModule", {
520
+ value: true
521
+ });
522
+
523
+ var kt = {};
524
+
525
+ "use strict";
526
+
527
+ Object.defineProperty(kt, "__esModule", {
528
+ value: true
529
+ });
530
+
531
+ var Ct = {};
532
+
533
+ "use strict";
534
+
535
+ Object.defineProperty(Ct, "__esModule", {
536
+ value: true
537
+ });
538
+
539
+ var Dt = {};
540
+
541
+ "use strict";
542
+
543
+ Object.defineProperty(Dt, "__esModule", {
544
+ value: true
545
+ });
546
+
547
+ var Lt = {};
548
+
549
+ "use strict";
550
+
551
+ Object.defineProperty(Lt, "__esModule", {
552
+ value: true
553
+ });
554
+
555
+ var At = {};
556
+
557
+ "use strict";
558
+
559
+ Object.defineProperty(At, "__esModule", {
560
+ value: true
561
+ });
562
+
563
+ var xt = {};
564
+
565
+ "use strict";
566
+
567
+ Object.defineProperty(xt, "__esModule", {
568
+ value: true
569
+ });
570
+
571
+ var qt = c();
572
+
573
+ const Ut = e(qt);
574
+
575
+ var Qt = d();
576
+
577
+ const Xt = e(Qt);
578
+
579
+ var Kt = {};
580
+
581
+ "use strict";
582
+
583
+ Object.defineProperty(Kt, "__esModule", {
584
+ value: true
585
+ });
586
+
587
+ var zt = Kt.BaseEntity = void 0;
588
+
589
+ const Zt = f;
590
+
591
+ class BaseEntity {
592
+ hasId() {
593
+ const e = this.constructor;
594
+ return e.getRepository().hasId(this);
595
+ }
596
+ save(e) {
597
+ const t = this.constructor;
598
+ return t.getRepository().save(this, e);
599
+ }
600
+ remove(e) {
601
+ const t = this.constructor;
602
+ return t.getRepository().remove(this, e);
603
+ }
604
+ softRemove(e) {
605
+ const t = this.constructor;
606
+ return t.getRepository().softRemove(this, e);
607
+ }
608
+ recover(e) {
609
+ const t = this.constructor;
610
+ return t.getRepository().recover(this, e);
611
+ }
612
+ async reload() {
613
+ const e = this.constructor;
614
+ const t = e.getRepository().metadata.getEntityIdMap(this);
615
+ if (!t) {
616
+ throw new Error(`Entity doesn't have id-s set, cannot reload entity`);
617
+ }
618
+ const r = await e.getRepository().findOneByOrFail(t);
619
+ Zt.ObjectUtils.assign(this, r);
620
+ }
621
+ static useDataSource(e) {
622
+ this.dataSource = e;
623
+ }
624
+ static getRepository() {
625
+ const e = this.dataSource;
626
+ if (!e) throw new Error(`DataSource is not set for this entity.`);
627
+ return e.getRepository(this);
628
+ }
629
+ static get target() {
630
+ return this.getRepository().target;
631
+ }
632
+ static hasId(e) {
633
+ return this.getRepository().hasId(e);
634
+ }
635
+ static getId(e) {
636
+ return this.getRepository().getId(e);
637
+ }
638
+ static createQueryBuilder(e) {
639
+ return this.getRepository().createQueryBuilder(e);
640
+ }
641
+ static create(e) {
642
+ return this.getRepository().create(e);
643
+ }
644
+ static merge(e, ...t) {
645
+ return this.getRepository().merge(e, ...t);
646
+ }
647
+ static preload(e) {
648
+ const t = this.getRepository();
649
+ return t.preload(e);
650
+ }
651
+ static save(e, t) {
652
+ return this.getRepository().save(e, t);
653
+ }
654
+ static remove(e, t) {
655
+ return this.getRepository().remove(e, t);
656
+ }
657
+ static softRemove(e, t) {
658
+ return this.getRepository().softRemove(e, t);
659
+ }
660
+ static insert(e) {
661
+ return this.getRepository().insert(e);
662
+ }
663
+ static update(e, t) {
664
+ return this.getRepository().update(e, t);
665
+ }
666
+ static upsert(e, t) {
667
+ return this.getRepository().upsert(e, t);
668
+ }
669
+ static delete(e) {
670
+ return this.getRepository().delete(e);
671
+ }
672
+ static exists(e) {
673
+ return this.getRepository().exists(e);
674
+ }
675
+ static existsBy(e) {
676
+ return this.getRepository().existsBy(e);
677
+ }
678
+ static count(e) {
679
+ return this.getRepository().count(e);
680
+ }
681
+ static countBy(e) {
682
+ return this.getRepository().countBy(e);
683
+ }
684
+ static sum(e, t) {
685
+ return this.getRepository().sum(e, t);
686
+ }
687
+ static average(e, t) {
688
+ return this.getRepository().average(e, t);
689
+ }
690
+ static minimum(e, t) {
691
+ return this.getRepository().minimum(e, t);
692
+ }
693
+ static maximum(e, t) {
694
+ return this.getRepository().maximum(e, t);
695
+ }
696
+ static find(e) {
697
+ return this.getRepository().find(e);
698
+ }
699
+ static findBy(e) {
700
+ return this.getRepository().findBy(e);
701
+ }
702
+ static findAndCount(e) {
703
+ return this.getRepository().findAndCount(e);
704
+ }
705
+ static findAndCountBy(e) {
706
+ return this.getRepository().findAndCountBy(e);
707
+ }
708
+ static findByIds(e) {
709
+ return this.getRepository().findByIds(e);
710
+ }
711
+ static findOne(e) {
712
+ return this.getRepository().findOne(e);
713
+ }
714
+ static findOneBy(e) {
715
+ return this.getRepository().findOneBy(e);
716
+ }
717
+ static findOneById(e) {
718
+ return this.getRepository().findOneById(e);
719
+ }
720
+ static findOneOrFail(e) {
721
+ return this.getRepository().findOneOrFail(e);
722
+ }
723
+ static findOneByOrFail(e) {
724
+ return this.getRepository().findOneByOrFail(e);
725
+ }
726
+ static query(e, t) {
727
+ return this.getRepository().query(e, t);
728
+ }
729
+ static clear() {
730
+ return this.getRepository().clear();
731
+ }
732
+ }
733
+
734
+ zt = Kt.BaseEntity = BaseEntity;
735
+
736
+ var Jt = {};
737
+
738
+ "use strict";
739
+
740
+ Object.defineProperty(Jt, "__esModule", {
741
+ value: true
742
+ });
743
+
744
+ var Gt = {};
745
+
746
+ "use strict";
747
+
748
+ Object.defineProperty(Gt, "__esModule", {
749
+ value: true
750
+ });
751
+
752
+ var Ht = {};
753
+
754
+ "use strict";
755
+
756
+ Object.defineProperty(Ht, "__esModule", {
757
+ value: true
758
+ });
759
+
760
+ var Vt = {};
761
+
762
+ "use strict";
763
+
764
+ Object.defineProperty(Vt, "__esModule", {
765
+ value: true
766
+ });
767
+
768
+ var Wt = {};
769
+
770
+ "use strict";
771
+
772
+ Object.defineProperty(Wt, "__esModule", {
773
+ value: true
774
+ });
775
+
776
+ var Yt = {};
777
+
778
+ "use strict";
779
+
780
+ Object.defineProperty(Yt, "__esModule", {
781
+ value: true
782
+ });
783
+
784
+ var $t = {};
785
+
786
+ "use strict";
787
+
788
+ Object.defineProperty($t, "__esModule", {
789
+ value: true
790
+ });
791
+
792
+ var er = {};
793
+
794
+ "use strict";
795
+
796
+ Object.defineProperty(er, "__esModule", {
797
+ value: true
798
+ });
799
+
800
+ var tr = {};
801
+
802
+ "use strict";
803
+
804
+ Object.defineProperty(tr, "__esModule", {
805
+ value: true
806
+ });
807
+
808
+ var rr = {};
809
+
810
+ "use strict";
811
+
812
+ Object.defineProperty(rr, "__esModule", {
813
+ value: true
814
+ });
815
+
816
+ var sr = {};
817
+
818
+ var nr = {};
819
+
820
+ "use strict";
821
+
822
+ Object.defineProperty(nr, "__esModule", {
823
+ value: true
824
+ });
825
+
826
+ var ar = nr.BSON = void 0;
827
+
828
+ (function(e) {
829
+ "use strict";
830
+ Object.defineProperty(e, "__esModule", {
831
+ value: true
832
+ });
833
+ e.Timestamp = e.serialize = e.ObjectId = e.MinKey = e.MaxKey = e.Long = e.Int32 = e.Double = e.deserialize = e.Decimal128 = e.DBRef = e.Code = e.BSONType = e.BSONSymbol = e.BSONRegExp = e.BSON = e.Binary = void 0;
834
+ const t = nr;
835
+ Object.defineProperty(e, "BSON", {
836
+ enumerable: true,
837
+ get: function() {
838
+ return t.BSON;
839
+ }
840
+ });
841
+ Object.defineProperty(e, "BSONRegExp", {
842
+ enumerable: true,
843
+ get: function() {
844
+ return t.BSONRegExp;
845
+ }
846
+ });
847
+ Object.defineProperty(e, "BSONSymbol", {
848
+ enumerable: true,
849
+ get: function() {
850
+ return t.BSONSymbol;
851
+ }
852
+ });
853
+ Object.defineProperty(e, "BSONType", {
854
+ enumerable: true,
855
+ get: function() {
856
+ return t.BSONType;
857
+ }
858
+ });
859
+ Object.defineProperty(e, "Binary", {
860
+ enumerable: true,
861
+ get: function() {
862
+ return t.Binary;
863
+ }
864
+ });
865
+ Object.defineProperty(e, "Code", {
866
+ enumerable: true,
867
+ get: function() {
868
+ return t.Code;
869
+ }
870
+ });
871
+ Object.defineProperty(e, "DBRef", {
872
+ enumerable: true,
873
+ get: function() {
874
+ return t.DBRef;
875
+ }
876
+ });
877
+ Object.defineProperty(e, "Decimal128", {
878
+ enumerable: true,
879
+ get: function() {
880
+ return t.Decimal128;
881
+ }
882
+ });
883
+ Object.defineProperty(e, "Double", {
884
+ enumerable: true,
885
+ get: function() {
886
+ return t.Double;
887
+ }
888
+ });
889
+ Object.defineProperty(e, "Int32", {
890
+ enumerable: true,
891
+ get: function() {
892
+ return t.Int32;
893
+ }
894
+ });
895
+ Object.defineProperty(e, "Long", {
896
+ enumerable: true,
897
+ get: function() {
898
+ return t.Long;
899
+ }
900
+ });
901
+ Object.defineProperty(e, "MaxKey", {
902
+ enumerable: true,
903
+ get: function() {
904
+ return t.MaxKey;
905
+ }
906
+ });
907
+ Object.defineProperty(e, "MinKey", {
908
+ enumerable: true,
909
+ get: function() {
910
+ return t.MinKey;
911
+ }
912
+ });
913
+ Object.defineProperty(e, "ObjectId", {
914
+ enumerable: true,
915
+ get: function() {
916
+ return t.ObjectId;
917
+ }
918
+ });
919
+ Object.defineProperty(e, "Timestamp", {
920
+ enumerable: true,
921
+ get: function() {
922
+ return t.Timestamp;
923
+ }
924
+ });
925
+ Object.defineProperty(e, "deserialize", {
926
+ enumerable: true,
927
+ get: function() {
928
+ return t.deserialize;
929
+ }
930
+ });
931
+ Object.defineProperty(e, "serialize", {
932
+ enumerable: true,
933
+ get: function() {
934
+ return t.serialize;
935
+ }
936
+ });
937
+ })(sr);
938
+
939
+ const or = e(sr);
940
+
941
+ var ir = {};
942
+
943
+ "use strict";
944
+
945
+ Object.defineProperty(ir, "__esModule", {
946
+ value: true
947
+ });
948
+
949
+ var ur = {};
950
+
951
+ "use strict";
952
+
953
+ Object.defineProperty(ur, "__esModule", {
954
+ value: true
955
+ });
956
+
957
+ var cr = {};
958
+
959
+ "use strict";
960
+
961
+ Object.defineProperty(cr, "__esModule", {
962
+ value: true
963
+ });
964
+
965
+ var dr = {};
966
+
967
+ "use strict";
968
+
969
+ Object.defineProperty(dr, "__esModule", {
970
+ value: true
971
+ });
972
+
973
+ var lr = dr.NotBrackets = void 0;
974
+
975
+ const yr = O;
976
+
977
+ class NotBrackets extends yr.Brackets {
978
+ constructor() {
979
+ super(...arguments);
980
+ this["@instanceof"] = Symbol.for("NotBrackets");
981
+ }
982
+ }
983
+
984
+ lr = dr.NotBrackets = NotBrackets;
985
+
986
+ var pr = _();
987
+
988
+ const vr = e(pr);
989
+
990
+ var fr = {};
991
+
992
+ "use strict";
993
+
994
+ Object.defineProperty(fr, "__esModule", {
995
+ value: true
996
+ });
997
+
998
+ var Or = fr.LegacyOracleNamingStrategy = void 0;
999
+
1000
+ const mr = b;
1001
+
1002
+ const _r = E;
1003
+
1004
+ const gr = R;
1005
+
1006
+ class LegacyOracleNamingStrategy extends _r.DefaultNamingStrategy {
1007
+ constructor(e = "hash") {
1008
+ super();
1009
+ this.IDENTIFIER_MAX_SIZE = 30;
1010
+ this.DEFAULT_COLUMN_PREFIX = "COL_";
1011
+ this.shortenStrategy = e;
1012
+ }
1013
+ columnName(e, t, r) {
1014
+ const s = super.columnName(e, t, r);
1015
+ if (this.shortenStrategy === "truncate") {
1016
+ return this.truncateIdentifier(s);
1017
+ } else if (this.shortenStrategy === "hash") {
1018
+ return this.hashIdentifier(s, this.DEFAULT_COLUMN_PREFIX);
1019
+ } else {
1020
+ throw new gr.TypeORMError(`Invalid shortenStrategy`);
1021
+ }
1022
+ }
1023
+ hashIdentifier(e, t) {
1024
+ if (t.length >= this.IDENTIFIER_MAX_SIZE) {
1025
+ throw new gr.TypeORMError(`Prefix must be shorter than IDENTIFIER_MAX_SIZE`);
1026
+ }
1027
+ return t + mr.RandomGenerator.sha1(e).substring(0, this.IDENTIFIER_MAX_SIZE - t.length);
1028
+ }
1029
+ truncateIdentifier(e) {
1030
+ if (e.length > this.IDENTIFIER_MAX_SIZE) {
1031
+ return e.substring(0, this.IDENTIFIER_MAX_SIZE);
1032
+ } else {
1033
+ return e;
1034
+ }
1035
+ }
1036
+ }
1037
+
1038
+ Or = fr.LegacyOracleNamingStrategy = LegacyOracleNamingStrategy;
1039
+
1040
+ var br = {};
1041
+
1042
+ "use strict";
1043
+
1044
+ Object.defineProperty(br, "__esModule", {
1045
+ value: true
1046
+ });
1047
+
1048
+ var hr = br.EntitySchema = void 0;
1049
+
1050
+ class EntitySchema {
1051
+ constructor(e) {
1052
+ this.options = e;
1053
+ this["@instanceof"] = Symbol.for("EntitySchema");
1054
+ }
1055
+ }
1056
+
1057
+ hr = br.EntitySchema = EntitySchema;
1058
+
1059
+ var jr = {};
1060
+
1061
+ "use strict";
1062
+
1063
+ Object.defineProperty(jr, "__esModule", {
1064
+ value: true
1065
+ });
1066
+
1067
+ var Pr = jr.EntitySchemaEmbeddedColumnOptions = void 0;
1068
+
1069
+ class EntitySchemaEmbeddedColumnOptions {}
74
1070
 
75
- const i = e(n);
1071
+ Pr = jr.EntitySchemaEmbeddedColumnOptions = EntitySchemaEmbeddedColumnOptions;
76
1072
 
77
- var l = r();
1073
+ var Mr = {};
78
1074
 
79
- const m = e(l);
1075
+ "use strict";
80
1076
 
81
- var p = t();
1077
+ Object.defineProperty(Mr, "__esModule", {
1078
+ value: true
1079
+ });
82
1080
 
83
- const d = e(p);
1081
+ var Er = Mr.EntitySchemaOptions = void 0;
84
1082
 
85
- var u = o();
1083
+ class EntitySchemaOptions {}
86
1084
 
87
- const _ = e(u);
1085
+ Er = Mr.EntitySchemaOptions = EntitySchemaOptions;
88
1086
 
89
- const c = s.DataSource;
1087
+ const Rr = B.DataSource;
90
1088
 
91
- const g = u.MongoEntityManager;
1089
+ const Br = pr.MongoEntityManager;
92
1090
 
93
- export { c as DataSource, g as MongoEntityManager };
1091
+ export { ye as And, Oe as Any, be as ArrayContainedBy, Me as ArrayContains, Se as ArrayOverlap, zt as BaseEntity, Te as Between, Rr as DataSource, hr as EntitySchema, Pr as EntitySchemaEmbeddedColumnOptions, Er as EntitySchemaOptions, xe as Equal, Le as EqualOperator, tt as ILike, Xe as IsNull, Et as JsonContains, Or as LegacyOracleNamingStrategy, Je as LessThan, We as LessThanOrEqual, at as Like, Br as MongoEntityManager, ct as MoreThan, pt as MoreThanOrEqual, mt as Not, lr as NotBrackets, ht as Raw };