taon-typeorm 19.0.21 → 19.0.22

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 (432) hide show
  1. package/browser/package.json +1 -1
  2. package/client/package.json +1 -1
  3. package/lib/build-info._auto-generated_.d.ts +1 -1
  4. package/lib/build-info._auto-generated_.js +1 -1
  5. package/lib/env/env.angular-node-app.d.ts +13 -0
  6. package/lib/env/env.angular-node-app.js +19 -0
  7. package/lib/env/env.angular-node-app.js.map +1 -0
  8. package/lib/env/env.electron-app.d.ts +13 -0
  9. package/lib/env/env.electron-app.js +19 -0
  10. package/lib/env/env.electron-app.js.map +1 -0
  11. package/lib/env/env.mobile-app.d.ts +13 -0
  12. package/lib/env/env.mobile-app.js +19 -0
  13. package/lib/env/env.mobile-app.js.map +1 -0
  14. package/lib/env/env.npm-lib-and-cli-tool.d.ts +13 -0
  15. package/lib/env/env.npm-lib-and-cli-tool.js +19 -0
  16. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
  17. package/lib/env/env.vscode-plugin.d.ts +13 -0
  18. package/lib/env/env.vscode-plugin.js +19 -0
  19. package/lib/env/env.vscode-plugin.js.map +1 -0
  20. package/lib/env/index.d.ts +5 -0
  21. package/lib/env/index.js +22 -0
  22. package/lib/env/index.js.map +1 -0
  23. package/package.json +1 -1
  24. package/websql/package.json +1 -1
  25. package/client/README.md +0 -24
  26. package/client/fesm2022/taon-typeorm.mjs +0 -30436
  27. package/client/fesm2022/taon-typeorm.mjs.map +0 -1
  28. package/client/index.d.ts +0 -6
  29. package/client/lib/index.d.ts +0 -2
  30. package/client/lib/typeorm/cache/DbQueryResultCache.d.ts +0 -53
  31. package/client/lib/typeorm/cache/QueryResultCache.d.ts +0 -40
  32. package/client/lib/typeorm/cache/QueryResultCacheFactory.d.ts +0 -14
  33. package/client/lib/typeorm/cache/QueryResultCacheOptions.d.ts +0 -27
  34. package/client/lib/typeorm/cache/RedisQueryResultCache.d.ts +0 -66
  35. package/client/lib/typeorm/common/DeepPartial.d.ts +0 -7
  36. package/client/lib/typeorm/common/EntityTarget.d.ts +0 -10
  37. package/client/lib/typeorm/common/MixedList.d.ts +0 -9
  38. package/client/lib/typeorm/common/ObjectLiteral.d.ts +0 -7
  39. package/client/lib/typeorm/common/ObjectType.d.ts +0 -7
  40. package/client/lib/typeorm/common/RelationType.d.ts +0 -15
  41. package/client/lib/typeorm/connection/Connection.d.ts +0 -11
  42. package/client/lib/typeorm/connection/ConnectionManager.d.ts +0 -34
  43. package/client/lib/typeorm/connection/ConnectionMetadataBuilder.d.ts +0 -25
  44. package/client/lib/typeorm/connection/ConnectionOptions.d.ts +0 -10
  45. package/client/lib/typeorm/connection/ConnectionOptionsReader.d.ts +0 -65
  46. package/client/lib/typeorm/constants.d.ts +0 -2
  47. package/client/lib/typeorm/container.d.ts +0 -40
  48. package/client/lib/typeorm/data-source/BaseDataSourceOptions.d.ts +0 -172
  49. package/client/lib/typeorm/data-source/DataSource.d.ts +0 -247
  50. package/client/lib/typeorm/data-source/DataSourceOptions.d.ts +0 -9
  51. package/client/lib/typeorm/data-source/index.d.ts +0 -3
  52. package/client/lib/typeorm/decorator/Check.d.ts +0 -13
  53. package/client/lib/typeorm/decorator/EntityRepository.d.ts +0 -10
  54. package/client/lib/typeorm/decorator/Exclusion.d.ts +0 -13
  55. package/client/lib/typeorm/decorator/Generated.d.ts +0 -11
  56. package/client/lib/typeorm/decorator/Index.d.ts +0 -50
  57. package/client/lib/typeorm/decorator/Unique.d.ts +0 -22
  58. package/client/lib/typeorm/decorator/columns/Column.d.ts +0 -75
  59. package/client/lib/typeorm/decorator/columns/CreateDateColumn.d.ts +0 -8
  60. package/client/lib/typeorm/decorator/columns/DeleteDateColumn.d.ts +0 -7
  61. package/client/lib/typeorm/decorator/columns/ObjectIdColumn.d.ts +0 -7
  62. package/client/lib/typeorm/decorator/columns/PrimaryColumn.d.ts +0 -22
  63. package/client/lib/typeorm/decorator/columns/PrimaryGeneratedColumn.d.ts +0 -25
  64. package/client/lib/typeorm/decorator/columns/UpdateDateColumn.d.ts +0 -7
  65. package/client/lib/typeorm/decorator/columns/VersionColumn.d.ts +0 -8
  66. package/client/lib/typeorm/decorator/columns/ViewColumn.d.ts +0 -6
  67. package/client/lib/typeorm/decorator/columns/VirtualColumn.d.ts +0 -11
  68. package/client/lib/typeorm/decorator/entity/ChildEntity.d.ts +0 -5
  69. package/client/lib/typeorm/decorator/entity/Entity.d.ts +0 -12
  70. package/client/lib/typeorm/decorator/entity/TableInheritance.d.ts +0 -9
  71. package/client/lib/typeorm/decorator/entity-view/ViewEntity.d.ts +0 -12
  72. package/client/lib/typeorm/decorator/listeners/AfterInsert.d.ts +0 -5
  73. package/client/lib/typeorm/decorator/listeners/AfterLoad.d.ts +0 -5
  74. package/client/lib/typeorm/decorator/listeners/AfterRecover.d.ts +0 -5
  75. package/client/lib/typeorm/decorator/listeners/AfterRemove.d.ts +0 -5
  76. package/client/lib/typeorm/decorator/listeners/AfterSoftRemove.d.ts +0 -5
  77. package/client/lib/typeorm/decorator/listeners/AfterUpdate.d.ts +0 -5
  78. package/client/lib/typeorm/decorator/listeners/BeforeInsert.d.ts +0 -5
  79. package/client/lib/typeorm/decorator/listeners/BeforeRecover.d.ts +0 -5
  80. package/client/lib/typeorm/decorator/listeners/BeforeRemove.d.ts +0 -5
  81. package/client/lib/typeorm/decorator/listeners/BeforeSoftRemove.d.ts +0 -5
  82. package/client/lib/typeorm/decorator/listeners/BeforeUpdate.d.ts +0 -5
  83. package/client/lib/typeorm/decorator/listeners/EventSubscriber.d.ts +0 -6
  84. package/client/lib/typeorm/decorator/options/ColumnCommonOptions.d.ts +0 -58
  85. package/client/lib/typeorm/decorator/options/ColumnEmbeddedOptions.d.ts +0 -17
  86. package/client/lib/typeorm/decorator/options/ColumnEnumOptions.d.ts +0 -14
  87. package/client/lib/typeorm/decorator/options/ColumnHstoreOptions.d.ts +0 -11
  88. package/client/lib/typeorm/decorator/options/ColumnNumericOptions.d.ts +0 -25
  89. package/client/lib/typeorm/decorator/options/ColumnOptions.d.ts +0 -159
  90. package/client/lib/typeorm/decorator/options/ColumnWithLengthOptions.d.ts +0 -11
  91. package/client/lib/typeorm/decorator/options/ColumnWithWidthOptions.d.ts +0 -20
  92. package/client/lib/typeorm/decorator/options/EntityOptions.d.ts +0 -43
  93. package/client/lib/typeorm/decorator/options/IndexOptions.d.ts +0 -53
  94. package/client/lib/typeorm/decorator/options/JoinColumnOptions.d.ts +0 -18
  95. package/client/lib/typeorm/decorator/options/JoinTableMultipleColumnsOptions.d.ts +0 -30
  96. package/client/lib/typeorm/decorator/options/JoinTableOptions.d.ts +0 -30
  97. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnIdentityOptions.d.ts +0 -27
  98. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnNumericOptions.d.ts +0 -32
  99. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnUUIDOptions.d.ts +0 -18
  100. package/client/lib/typeorm/decorator/options/RelationOptions.d.ts +0 -65
  101. package/client/lib/typeorm/decorator/options/SpatialColumnOptions.d.ts +0 -16
  102. package/client/lib/typeorm/decorator/options/UniqueOptions.d.ts +0 -11
  103. package/client/lib/typeorm/decorator/options/ValueTransformer.d.ts +0 -14
  104. package/client/lib/typeorm/decorator/options/ViewColumnOptions.d.ts +0 -16
  105. package/client/lib/typeorm/decorator/options/ViewEntityOptions.d.ts +0 -40
  106. package/client/lib/typeorm/decorator/options/VirtualColumnOptions.d.ts +0 -28
  107. package/client/lib/typeorm/decorator/relations/JoinColumn.d.ts +0 -20
  108. package/client/lib/typeorm/decorator/relations/JoinTable.d.ts +0 -18
  109. package/client/lib/typeorm/decorator/relations/ManyToMany.d.ts +0 -15
  110. package/client/lib/typeorm/decorator/relations/ManyToOne.d.ts +0 -15
  111. package/client/lib/typeorm/decorator/relations/OneToMany.d.ts +0 -9
  112. package/client/lib/typeorm/decorator/relations/OneToOne.d.ts +0 -13
  113. package/client/lib/typeorm/decorator/relations/RelationCount.d.ts +0 -8
  114. package/client/lib/typeorm/decorator/relations/RelationId.d.ts +0 -8
  115. package/client/lib/typeorm/decorator/tree/Tree.d.ts +0 -10
  116. package/client/lib/typeorm/decorator/tree/TreeChildren.d.ts +0 -8
  117. package/client/lib/typeorm/decorator/tree/TreeLevelColumn.d.ts +0 -5
  118. package/client/lib/typeorm/decorator/tree/TreeParent.d.ts +0 -9
  119. package/client/lib/typeorm/driver/Driver.d.ts +0 -208
  120. package/client/lib/typeorm/driver/DriverFactory.d.ts +0 -12
  121. package/client/lib/typeorm/driver/DriverUtils.d.ts +0 -62
  122. package/client/lib/typeorm/driver/Query.d.ts +0 -10
  123. package/client/lib/typeorm/driver/SqlInMemory.d.ts +0 -9
  124. package/client/lib/typeorm/driver/cordova/CordovaConnectionOptions.d.ts +0 -25
  125. package/client/lib/typeorm/driver/cordova/CordovaDriver.d.ts +0 -26
  126. package/client/lib/typeorm/driver/cordova/CordovaQueryRunner.d.ts +0 -81
  127. package/client/lib/typeorm/driver/mongodb/typings.d.ts +0 -46
  128. package/client/lib/typeorm/driver/nativescript/NativescriptConnectionOptions.d.ts +0 -46
  129. package/client/lib/typeorm/driver/nativescript/NativescriptDriver.d.ts +0 -45
  130. package/client/lib/typeorm/driver/nativescript/NativescriptQueryRunner.d.ts +0 -30
  131. package/client/lib/typeorm/driver/react-native/ReactNativeConnectionOptions.d.ts +0 -25
  132. package/client/lib/typeorm/driver/react-native/ReactNativeDriver.d.ts +0 -26
  133. package/client/lib/typeorm/driver/react-native/ReactNativeQueryRunner.d.ts +0 -30
  134. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteDriver.d.ts +0 -238
  135. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.d.ts +0 -301
  136. package/client/lib/typeorm/driver/sqljs/SqljsConnectionOptions.d.ts +0 -47
  137. package/client/lib/typeorm/driver/sqljs/SqljsDriver.d.ts +0 -68
  138. package/client/lib/typeorm/driver/sqljs/SqljsQueryRunner.d.ts +0 -36
  139. package/client/lib/typeorm/driver/types/ColumnTypes.d.ts +0 -26
  140. package/client/lib/typeorm/driver/types/CteCapabilities.d.ts +0 -19
  141. package/client/lib/typeorm/driver/types/DataTypeDefaults.d.ts +0 -9
  142. package/client/lib/typeorm/driver/types/DatabaseType.d.ts +0 -5
  143. package/client/lib/typeorm/driver/types/IsolationLevel.d.ts +0 -2
  144. package/client/lib/typeorm/driver/types/MappedColumnTypes.d.ts +0 -113
  145. package/client/lib/typeorm/driver/types/MetadataTableType.d.ts +0 -6
  146. package/client/lib/typeorm/driver/types/ReplicationMode.d.ts +0 -2
  147. package/client/lib/typeorm/driver/types/UpsertType.d.ts +0 -2
  148. package/client/lib/typeorm/entity-manager/EntityManager.d.ts +0 -353
  149. package/client/lib/typeorm/entity-manager/EntityManagerFactory.d.ts +0 -13
  150. package/client/lib/typeorm/entity-manager/SqljsEntityManager.d.ts +0 -27
  151. package/client/lib/typeorm/entity-schema/EntitySchema.d.ts +0 -10
  152. package/client/lib/typeorm/entity-schema/EntitySchemaCheckOptions.d.ts +0 -11
  153. package/client/lib/typeorm/entity-schema/EntitySchemaColumnOptions.d.ts +0 -175
  154. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedColumnOptions.d.ts +0 -19
  155. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedError.d.ts +0 -7
  156. package/client/lib/typeorm/entity-schema/EntitySchemaExclusionOptions.d.ts +0 -11
  157. package/client/lib/typeorm/entity-schema/EntitySchemaIndexOptions.d.ts +0 -54
  158. package/client/lib/typeorm/entity-schema/EntitySchemaOptions.d.ts +0 -104
  159. package/client/lib/typeorm/entity-schema/EntitySchemaRelationIdOptions.d.ts +0 -16
  160. package/client/lib/typeorm/entity-schema/EntitySchemaRelationOptions.d.ts +0 -96
  161. package/client/lib/typeorm/entity-schema/EntitySchemaTransformer.d.ts +0 -14
  162. package/client/lib/typeorm/entity-schema/EntitySchemaUniqueOptions.d.ts +0 -18
  163. package/client/lib/typeorm/error/AlreadyHasActiveConnectionError.d.ts +0 -8
  164. package/client/lib/typeorm/error/CannotAttachTreeChildrenEntityError.d.ts +0 -8
  165. package/client/lib/typeorm/error/CannotConnectAlreadyConnectedError.d.ts +0 -8
  166. package/client/lib/typeorm/error/CannotCreateEntityIdMapError.d.ts +0 -10
  167. package/client/lib/typeorm/error/CannotDetermineEntityError.d.ts +0 -8
  168. package/client/lib/typeorm/error/CannotExecuteNotConnectedError.d.ts +0 -8
  169. package/client/lib/typeorm/error/CannotGetEntityManagerNotConnectedError.d.ts +0 -8
  170. package/client/lib/typeorm/error/CannotReflectMethodParameterTypeError.d.ts +0 -9
  171. package/client/lib/typeorm/error/CircularRelationsError.d.ts +0 -8
  172. package/client/lib/typeorm/error/ColumnTypeUndefinedError.d.ts +0 -9
  173. package/client/lib/typeorm/error/ConnectionIsNotSetError.d.ts +0 -8
  174. package/client/lib/typeorm/error/ConnectionNotFoundError.d.ts +0 -8
  175. package/client/lib/typeorm/error/CustomRepositoryCannotInheritRepositoryError.d.ts +0 -8
  176. package/client/lib/typeorm/error/CustomRepositoryDoesNotHaveEntityError.d.ts +0 -8
  177. package/client/lib/typeorm/error/CustomRepositoryNotFoundError.d.ts +0 -8
  178. package/client/lib/typeorm/error/DataTypeNotSupportedError.d.ts +0 -8
  179. package/client/lib/typeorm/error/DriverOptionNotSetError.d.ts +0 -8
  180. package/client/lib/typeorm/error/DriverPackageNotInstalledError.d.ts +0 -8
  181. package/client/lib/typeorm/error/EntityMetadataNotFoundError.d.ts +0 -7
  182. package/client/lib/typeorm/error/EntityNotFoundError.d.ts +0 -11
  183. package/client/lib/typeorm/error/EntityPropertyNotFoundError.d.ts +0 -9
  184. package/client/lib/typeorm/error/FindRelationsNotFoundError.d.ts +0 -8
  185. package/client/lib/typeorm/error/InitializedRelationError.d.ts +0 -12
  186. package/client/lib/typeorm/error/InsertValuesMissingError.d.ts +0 -8
  187. package/client/lib/typeorm/error/LimitOnUpdateNotSupportedError.d.ts +0 -8
  188. package/client/lib/typeorm/error/LockNotSupportedOnGivenDriverError.d.ts +0 -8
  189. package/client/lib/typeorm/error/MetadataAlreadyExistsError.d.ts +0 -5
  190. package/client/lib/typeorm/error/MetadataWithSuchNameAlreadyExistsError.d.ts +0 -5
  191. package/client/lib/typeorm/error/MissingDeleteDateColumnError.d.ts +0 -6
  192. package/client/lib/typeorm/error/MissingDriverError.d.ts +0 -8
  193. package/client/lib/typeorm/error/MissingJoinColumnError.d.ts +0 -7
  194. package/client/lib/typeorm/error/MissingJoinTableError.d.ts +0 -7
  195. package/client/lib/typeorm/error/MissingPrimaryColumnError.d.ts +0 -6
  196. package/client/lib/typeorm/error/MustBeEntityError.d.ts +0 -8
  197. package/client/lib/typeorm/error/NamingStrategyNotFoundError.d.ts +0 -8
  198. package/client/lib/typeorm/error/NestedSetMultipleRootError.d.ts +0 -5
  199. package/client/lib/typeorm/error/NoConnectionForRepositoryError.d.ts +0 -8
  200. package/client/lib/typeorm/error/NoConnectionOptionError.d.ts +0 -8
  201. package/client/lib/typeorm/error/NoNeedToReleaseEntityManagerError.d.ts +0 -8
  202. package/client/lib/typeorm/error/NoVersionOrUpdateDateColumnError.d.ts +0 -8
  203. package/client/lib/typeorm/error/OffsetWithoutLimitNotSupportedError.d.ts +0 -8
  204. package/client/lib/typeorm/error/OptimisticLockCanNotBeUsedError.d.ts +0 -8
  205. package/client/lib/typeorm/error/OptimisticLockVersionMismatchError.d.ts +0 -8
  206. package/client/lib/typeorm/error/PersistedEntityNotFoundError.d.ts +0 -8
  207. package/client/lib/typeorm/error/PessimisticLockTransactionRequiredError.d.ts +0 -8
  208. package/client/lib/typeorm/error/PrimaryColumnCannotBeNullableError.d.ts +0 -5
  209. package/client/lib/typeorm/error/QueryFailedError.d.ts +0 -11
  210. package/client/lib/typeorm/error/QueryRunnerAlreadyReleasedError.d.ts +0 -5
  211. package/client/lib/typeorm/error/QueryRunnerProviderAlreadyReleasedError.d.ts +0 -8
  212. package/client/lib/typeorm/error/RepositoryNotTreeError.d.ts +0 -9
  213. package/client/lib/typeorm/error/ReturningStatementNotSupportedError.d.ts +0 -9
  214. package/client/lib/typeorm/error/SubjectRemovedAndUpdatedError.d.ts +0 -9
  215. package/client/lib/typeorm/error/SubjectWithoutIdentifierError.d.ts +0 -11
  216. package/client/lib/typeorm/error/TransactionAlreadyStartedError.d.ts +0 -8
  217. package/client/lib/typeorm/error/TransactionNotStartedError.d.ts +0 -8
  218. package/client/lib/typeorm/error/TreeRepositoryNotSupportedError.d.ts +0 -6
  219. package/client/lib/typeorm/error/TypeORMError.d.ts +0 -5
  220. package/client/lib/typeorm/error/UpdateValuesMissingError.d.ts +0 -5
  221. package/client/lib/typeorm/error/UsingJoinColumnIsNotAllowedError.d.ts +0 -7
  222. package/client/lib/typeorm/error/UsingJoinColumnOnlyOnOneSideAllowedError.d.ts +0 -7
  223. package/client/lib/typeorm/error/UsingJoinTableIsNotAllowedError.d.ts +0 -7
  224. package/client/lib/typeorm/error/UsingJoinTableOnlyOnOneSideAllowedError.d.ts +0 -7
  225. package/client/lib/typeorm/error/index.d.ts +0 -62
  226. package/client/lib/typeorm/find-options/EqualOperator.d.ts +0 -6
  227. package/client/lib/typeorm/find-options/FindManyOptions.d.ts +0 -15
  228. package/client/lib/typeorm/find-options/FindOneOptions.d.ts +0 -89
  229. package/client/lib/typeorm/find-options/FindOperator.d.ts +0 -66
  230. package/client/lib/typeorm/find-options/FindOperatorType.d.ts +0 -5
  231. package/client/lib/typeorm/find-options/FindOptionsOrder.d.ts +0 -19
  232. package/client/lib/typeorm/find-options/FindOptionsRelations.d.ts +0 -19
  233. package/client/lib/typeorm/find-options/FindOptionsSelect.d.ts +0 -18
  234. package/client/lib/typeorm/find-options/FindOptionsUtils.d.ts +0 -191
  235. package/client/lib/typeorm/find-options/FindOptionsWhere.d.ts +0 -14
  236. package/client/lib/typeorm/find-options/FindTreeOptions.d.ts +0 -14
  237. package/client/lib/typeorm/find-options/JoinOptions.d.ts +0 -77
  238. package/client/lib/typeorm/find-options/OrderByCondition.d.ts +0 -18
  239. package/client/lib/typeorm/find-options/operator/Any.d.ts +0 -7
  240. package/client/lib/typeorm/find-options/operator/ArrayContainedBy.d.ts +0 -7
  241. package/client/lib/typeorm/find-options/operator/ArrayContains.d.ts +0 -7
  242. package/client/lib/typeorm/find-options/operator/ArrayOverlap.d.ts +0 -7
  243. package/client/lib/typeorm/find-options/operator/Between.d.ts +0 -7
  244. package/client/lib/typeorm/find-options/operator/Equal.d.ts +0 -12
  245. package/client/lib/typeorm/find-options/operator/ILike.d.ts +0 -7
  246. package/client/lib/typeorm/find-options/operator/In.d.ts +0 -7
  247. package/client/lib/typeorm/find-options/operator/IsNull.d.ts +0 -7
  248. package/client/lib/typeorm/find-options/operator/LessThan.d.ts +0 -7
  249. package/client/lib/typeorm/find-options/operator/LessThanOrEqual.d.ts +0 -7
  250. package/client/lib/typeorm/find-options/operator/Like.d.ts +0 -7
  251. package/client/lib/typeorm/find-options/operator/MoreThan.d.ts +0 -7
  252. package/client/lib/typeorm/find-options/operator/MoreThanOrEqual.d.ts +0 -7
  253. package/client/lib/typeorm/find-options/operator/Not.d.ts +0 -8
  254. package/client/lib/typeorm/find-options/operator/Raw.d.ts +0 -19
  255. package/client/lib/typeorm/globals.d.ts +0 -104
  256. package/client/lib/typeorm/index.d.ts +0 -168
  257. package/client/lib/typeorm/logger/AdvancedConsoleLogger.d.ts +0 -42
  258. package/client/lib/typeorm/logger/DebugLogger.d.ts +0 -41
  259. package/client/lib/typeorm/logger/Logger.d.ts +0 -32
  260. package/client/lib/typeorm/logger/LoggerFactory.d.ts +0 -12
  261. package/client/lib/typeorm/logger/LoggerOptions.d.ts +0 -14
  262. package/client/lib/typeorm/logger/SimpleConsoleLogger.d.ts +0 -42
  263. package/client/lib/typeorm/metadata/CheckMetadata.d.ts +0 -40
  264. package/client/lib/typeorm/metadata/ColumnMetadata.d.ts +0 -316
  265. package/client/lib/typeorm/metadata/EmbeddedMetadata.d.ts +0 -166
  266. package/client/lib/typeorm/metadata/EntityListenerMetadata.d.ts +0 -49
  267. package/client/lib/typeorm/metadata/EntityMetadata.d.ts +0 -562
  268. package/client/lib/typeorm/metadata/ExclusionMetadata.d.ts +0 -40
  269. package/client/lib/typeorm/metadata/ForeignKeyMetadata.d.ts +0 -78
  270. package/client/lib/typeorm/metadata/IndexMetadata.d.ts +0 -112
  271. package/client/lib/typeorm/metadata/RelationCountMetadata.d.ts +0 -47
  272. package/client/lib/typeorm/metadata/RelationIdMetadata.d.ts +0 -54
  273. package/client/lib/typeorm/metadata/RelationMetadata.d.ts +0 -291
  274. package/client/lib/typeorm/metadata/UniqueMetadata.d.ts +0 -66
  275. package/client/lib/typeorm/metadata/types/ClosureTreeOptions.d.ts +0 -11
  276. package/client/lib/typeorm/metadata/types/DeferrableType.d.ts +0 -5
  277. package/client/lib/typeorm/metadata/types/EventListenerTypes.d.ts +0 -21
  278. package/client/lib/typeorm/metadata/types/OnDeleteType.d.ts +0 -5
  279. package/client/lib/typeorm/metadata/types/OnUpdateType.d.ts +0 -5
  280. package/client/lib/typeorm/metadata/types/PropertyTypeInFunction.d.ts +0 -5
  281. package/client/lib/typeorm/metadata/types/RelationTypeInFunction.d.ts +0 -6
  282. package/client/lib/typeorm/metadata/types/RelationTypes.d.ts +0 -5
  283. package/client/lib/typeorm/metadata/types/TableTypes.d.ts +0 -5
  284. package/client/lib/typeorm/metadata/types/TreeTypes.d.ts +0 -6
  285. package/client/lib/typeorm/metadata-args/CheckMetadataArgs.d.ts +0 -18
  286. package/client/lib/typeorm/metadata-args/ColumnMetadataArgs.d.ts +0 -26
  287. package/client/lib/typeorm/metadata-args/DiscriminatorValueMetadataArgs.d.ts +0 -14
  288. package/client/lib/typeorm/metadata-args/EmbeddedMetadataArgs.d.ts +0 -27
  289. package/client/lib/typeorm/metadata-args/EntityListenerMetadataArgs.d.ts +0 -19
  290. package/client/lib/typeorm/metadata-args/EntityRepositoryMetadataArgs.d.ts +0 -15
  291. package/client/lib/typeorm/metadata-args/EntitySubscriberMetadataArgs.d.ts +0 -10
  292. package/client/lib/typeorm/metadata-args/ExclusionMetadataArgs.d.ts +0 -18
  293. package/client/lib/typeorm/metadata-args/GeneratedMetadataArgs.d.ts +0 -18
  294. package/client/lib/typeorm/metadata-args/IndexMetadataArgs.d.ts +0 -71
  295. package/client/lib/typeorm/metadata-args/InheritanceMetadataArgs.d.ts +0 -19
  296. package/client/lib/typeorm/metadata-args/JoinColumnMetadataArgs.d.ts +0 -27
  297. package/client/lib/typeorm/metadata-args/JoinTableMetadataArgs.d.ts +0 -38
  298. package/client/lib/typeorm/metadata-args/MetadataArgsStorage.d.ts +0 -109
  299. package/client/lib/typeorm/metadata-args/NamingStrategyMetadataArgs.d.ts +0 -14
  300. package/client/lib/typeorm/metadata-args/RelationCountMetadataArgs.d.ts +0 -27
  301. package/client/lib/typeorm/metadata-args/RelationIdMetadataArgs.d.ts +0 -27
  302. package/client/lib/typeorm/metadata-args/RelationMetadataArgs.d.ts +0 -56
  303. package/client/lib/typeorm/metadata-args/TableMetadataArgs.d.ts +0 -62
  304. package/client/lib/typeorm/metadata-args/TransactionEntityMetadataArgs.d.ts +0 -18
  305. package/client/lib/typeorm/metadata-args/TransactionRepositoryMetadataArgs.d.ts +0 -26
  306. package/client/lib/typeorm/metadata-args/TreeMetadataArgs.d.ts +0 -20
  307. package/client/lib/typeorm/metadata-args/UniqueMetadataArgs.d.ts +0 -25
  308. package/client/lib/typeorm/metadata-args/types/ColumnMode.d.ts +0 -8
  309. package/client/lib/typeorm/metadata-builder/ClosureJunctionEntityMetadataBuilder.d.ts +0 -15
  310. package/client/lib/typeorm/metadata-builder/EntityMetadataBuilder.d.ts +0 -58
  311. package/client/lib/typeorm/metadata-builder/EntityMetadataValidator.d.ts +0 -24
  312. package/client/lib/typeorm/metadata-builder/JunctionEntityMetadataBuilder.d.ts +0 -27
  313. package/client/lib/typeorm/metadata-builder/MetadataUtils.d.ts +0 -24
  314. package/client/lib/typeorm/metadata-builder/RelationJoinColumnBuilder.d.ts +0 -57
  315. package/client/lib/typeorm/migration/Migration.d.ts +0 -25
  316. package/client/lib/typeorm/migration/MigrationExecutor.d.ts +0 -100
  317. package/client/lib/typeorm/migration/MigrationInterface.d.ts +0 -19
  318. package/client/lib/typeorm/naming-strategy/DefaultNamingStrategy.d.ts +0 -50
  319. package/client/lib/typeorm/naming-strategy/NamingStrategyInterface.d.ts +0 -117
  320. package/client/lib/typeorm/persistence/EntityPersistExecutor.d.ts +0 -22
  321. package/client/lib/typeorm/persistence/Subject.d.ts +0 -156
  322. package/client/lib/typeorm/persistence/SubjectChangeMap.d.ts +0 -24
  323. package/client/lib/typeorm/persistence/SubjectChangedColumnsComputer.d.ts +0 -19
  324. package/client/lib/typeorm/persistence/SubjectDatabaseEntityLoader.d.ts +0 -36
  325. package/client/lib/typeorm/persistence/SubjectExecutor.d.ts +0 -119
  326. package/client/lib/typeorm/persistence/SubjectTopoligicalSorter.d.ts +0 -46
  327. package/client/lib/typeorm/persistence/subject-builder/CascadesSubjectBuilder.d.ts +0 -20
  328. package/client/lib/typeorm/persistence/subject-builder/ManyToManySubjectBuilder.d.ts +0 -35
  329. package/client/lib/typeorm/persistence/subject-builder/OneToManySubjectBuilder.d.ts +0 -28
  330. package/client/lib/typeorm/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.d.ts +0 -28
  331. package/client/lib/typeorm/persistence/tree/ClosureSubjectExecutor.d.ts +0 -27
  332. package/client/lib/typeorm/persistence/tree/MaterializedPathSubjectExecutor.d.ts +0 -19
  333. package/client/lib/typeorm/persistence/tree/NestedSetSubjectExecutor.d.ts +0 -39
  334. package/client/lib/typeorm/platform/PlatformTools.d.ts +0 -65
  335. package/client/lib/typeorm/query-builder/Alias.d.ts +0 -23
  336. package/client/lib/typeorm/query-builder/Brackets.d.ts +0 -17
  337. package/client/lib/typeorm/query-builder/DeleteQueryBuilder.d.ts +0 -92
  338. package/client/lib/typeorm/query-builder/InsertOrUpdateOptions.d.ts +0 -4
  339. package/client/lib/typeorm/query-builder/InsertQueryBuilder.d.ts +0 -118
  340. package/client/lib/typeorm/query-builder/JoinAttribute.d.ts +0 -84
  341. package/client/lib/typeorm/query-builder/NotBrackets.d.ts +0 -9
  342. package/client/lib/typeorm/query-builder/QueryBuilder.d.ts +0 -268
  343. package/client/lib/typeorm/query-builder/QueryBuilderCte.d.ts +0 -18
  344. package/client/lib/typeorm/query-builder/QueryBuilderUtils.d.ts +0 -11
  345. package/client/lib/typeorm/query-builder/QueryExpressionMap.d.ts +0 -306
  346. package/client/lib/typeorm/query-builder/QueryPartialEntity.d.ts +0 -16
  347. package/client/lib/typeorm/query-builder/RelationIdLoader.d.ts +0 -71
  348. package/client/lib/typeorm/query-builder/RelationLoader.d.ts +0 -60
  349. package/client/lib/typeorm/query-builder/RelationQueryBuilder.d.ts +0 -70
  350. package/client/lib/typeorm/query-builder/RelationRemover.d.ts +0 -17
  351. package/client/lib/typeorm/query-builder/RelationUpdater.d.ts +0 -17
  352. package/client/lib/typeorm/query-builder/ReturningResultsEntityUpdator.d.ts +0 -31
  353. package/client/lib/typeorm/query-builder/SelectQuery.d.ts +0 -6
  354. package/client/lib/typeorm/query-builder/SelectQueryBuilder.d.ts +0 -665
  355. package/client/lib/typeorm/query-builder/SelectQueryBuilderOption.d.ts +0 -2
  356. package/client/lib/typeorm/query-builder/SoftDeleteQueryBuilder.d.ts +0 -139
  357. package/client/lib/typeorm/query-builder/UpdateQueryBuilder.d.ts +0 -144
  358. package/client/lib/typeorm/query-builder/WhereClause.d.ts +0 -17
  359. package/client/lib/typeorm/query-builder/WhereExpressionBuilder.d.ts +0 -127
  360. package/client/lib/typeorm/query-builder/relation-count/RelationCountAttribute.d.ts +0 -54
  361. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoadResult.d.ts +0 -9
  362. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoader.d.ts +0 -12
  363. package/client/lib/typeorm/query-builder/relation-count/RelationCountMetadataToAttributeTransformer.d.ts +0 -8
  364. package/client/lib/typeorm/query-builder/relation-id/RelationIdAttribute.d.ts +0 -65
  365. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoadResult.d.ts +0 -6
  366. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoader.d.ts +0 -12
  367. package/client/lib/typeorm/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.d.ts +0 -8
  368. package/client/lib/typeorm/query-builder/result/DeleteResult.d.ts +0 -17
  369. package/client/lib/typeorm/query-builder/result/InsertResult.d.ts +0 -23
  370. package/client/lib/typeorm/query-builder/result/UpdateResult.d.ts +0 -27
  371. package/client/lib/typeorm/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.d.ts +0 -13
  372. package/client/lib/typeorm/query-builder/transformer/PlainObjectToNewEntityTransformer.d.ts +0 -15
  373. package/client/lib/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer.d.ts +0 -56
  374. package/client/lib/typeorm/query-runner/BaseQueryRunner.d.ts +0 -204
  375. package/client/lib/typeorm/query-runner/QueryResult.d.ts +0 -18
  376. package/client/lib/typeorm/query-runner/QueryRunner.d.ts +0 -359
  377. package/client/lib/typeorm/relation-path.d.ts +0 -7
  378. package/client/lib/typeorm/repository/AbstractRepository.d.ts +0 -52
  379. package/client/lib/typeorm/repository/BaseEntity.d.ts +0 -298
  380. package/client/lib/typeorm/repository/FindTreesOptions.d.ts +0 -10
  381. package/client/lib/typeorm/repository/RemoveOptions.d.ts +0 -28
  382. package/client/lib/typeorm/repository/Repository.d.ts +0 -292
  383. package/client/lib/typeorm/repository/SaveOptions.d.ts +0 -36
  384. package/client/lib/typeorm/repository/TreeRepository.d.ts +0 -56
  385. package/client/lib/typeorm/repository/UpsertOptions.d.ts +0 -11
  386. package/client/lib/typeorm/schema-builder/RdbmsSchemaBuilder.d.ts +0 -145
  387. package/client/lib/typeorm/schema-builder/SchemaBuilder.d.ts +0 -15
  388. package/client/lib/typeorm/schema-builder/options/TableCheckOptions.d.ts +0 -18
  389. package/client/lib/typeorm/schema-builder/options/TableColumnOptions.d.ts +0 -123
  390. package/client/lib/typeorm/schema-builder/options/TableExclusionOptions.d.ts +0 -14
  391. package/client/lib/typeorm/schema-builder/options/TableForeignKeyOptions.d.ts +0 -45
  392. package/client/lib/typeorm/schema-builder/options/TableIndexOptions.d.ts +0 -45
  393. package/client/lib/typeorm/schema-builder/options/TableOptions.d.ts +0 -62
  394. package/client/lib/typeorm/schema-builder/options/TableUniqueOptions.d.ts +0 -19
  395. package/client/lib/typeorm/schema-builder/options/ViewOptions.d.ts +0 -27
  396. package/client/lib/typeorm/schema-builder/table/Table.d.ts +0 -143
  397. package/client/lib/typeorm/schema-builder/table/TableCheck.d.ts +0 -30
  398. package/client/lib/typeorm/schema-builder/table/TableColumn.d.ts +0 -127
  399. package/client/lib/typeorm/schema-builder/table/TableExclusion.d.ts +0 -26
  400. package/client/lib/typeorm/schema-builder/table/TableForeignKey.d.ts +0 -58
  401. package/client/lib/typeorm/schema-builder/table/TableIndex.d.ts +0 -57
  402. package/client/lib/typeorm/schema-builder/table/TableUnique.d.ts +0 -31
  403. package/client/lib/typeorm/schema-builder/util/TableUtils.d.ts +0 -7
  404. package/client/lib/typeorm/schema-builder/util/ViewUtils.d.ts +0 -8
  405. package/client/lib/typeorm/schema-builder/view/View.d.ts +0 -38
  406. package/client/lib/typeorm/subscriber/Broadcaster.d.ts +0 -168
  407. package/client/lib/typeorm/subscriber/BroadcasterResult.d.ts +0 -18
  408. package/client/lib/typeorm/subscriber/EntitySubscriberInterface.d.ts +0 -93
  409. package/client/lib/typeorm/subscriber/event/InsertEvent.d.ts +0 -32
  410. package/client/lib/typeorm/subscriber/event/LoadEvent.d.ts +0 -32
  411. package/client/lib/typeorm/subscriber/event/RecoverEvent.d.ts +0 -7
  412. package/client/lib/typeorm/subscriber/event/RemoveEvent.d.ts +0 -41
  413. package/client/lib/typeorm/subscriber/event/SoftRemoveEvent.d.ts +0 -7
  414. package/client/lib/typeorm/subscriber/event/TransactionCommitEvent.d.ts +0 -23
  415. package/client/lib/typeorm/subscriber/event/TransactionRollbackEvent.d.ts +0 -23
  416. package/client/lib/typeorm/subscriber/event/TransactionStartEvent.d.ts +0 -23
  417. package/client/lib/typeorm/subscriber/event/UpdateEvent.d.ts +0 -47
  418. package/client/lib/typeorm/util/ApplyValueTransformers.d.ts +0 -6
  419. package/client/lib/typeorm/util/DateUtils.d.ts +0 -59
  420. package/client/lib/typeorm/util/DepGraph.d.ts +0 -65
  421. package/client/lib/typeorm/util/DirectoryExportedClassesLoader.d.ts +0 -10
  422. package/client/lib/typeorm/util/ImportUtils.d.ts +0 -2
  423. package/client/lib/typeorm/util/InstanceChecker.d.ts +0 -60
  424. package/client/lib/typeorm/util/ObjectUtils.d.ts +0 -38
  425. package/client/lib/typeorm/util/OrmUtils.d.ts +0 -53
  426. package/client/lib/typeorm/util/PathUtils.d.ts +0 -11
  427. package/client/lib/typeorm/util/RandomGenerator.d.ts +0 -16
  428. package/client/lib/typeorm/util/StringUtils.d.ts +0 -64
  429. package/client/lib/typeorm/util/TreeRepositoryUtils.d.ts +0 -24
  430. package/client/lib/typeorm/util/VersionUtils.d.ts +0 -5
  431. package/client/lib/typeorm/util/escapeRegExp.d.ts +0 -2
  432. package/client/public-api.d.ts +0 -2
@@ -1,316 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnType } from "../driver/types/ColumnTypes";
3
- import { EntityMetadata } from "./EntityMetadata";
4
- import { EmbeddedMetadata } from "./EmbeddedMetadata";
5
- import { RelationMetadata } from "./RelationMetadata";
6
- import { ObjectLiteral } from "../common/ObjectLiteral";
7
- import { ColumnMetadataArgs } from "../metadata-args/ColumnMetadataArgs";
8
- import { DataSource } from "../data-source/DataSource";
9
- import { ValueTransformer } from "../decorator/options/ValueTransformer";
10
- /**
11
- * This metadata contains all information about entity's column.
12
- */
13
- export declare class ColumnMetadata {
14
- readonly "@instanceof": symbol;
15
- /**
16
- * Target class where column decorator is used.
17
- * This may not be always equal to entity metadata (for example embeds or inheritance cases).
18
- */
19
- target: Function | string;
20
- /**
21
- * Entity metadata where this column metadata is.
22
- *
23
- * For example for @Column() name: string in Post, entityMetadata will be metadata of Post entity.
24
- */
25
- entityMetadata: EntityMetadata;
26
- /**
27
- * Embedded metadata where this column metadata is.
28
- * If this column is not in embed then this property value is undefined.
29
- */
30
- embeddedMetadata?: EmbeddedMetadata;
31
- /**
32
- * If column is a foreign key of some relation then this relation's metadata will be there.
33
- * If this column does not have a foreign key then this property value is undefined.
34
- */
35
- relationMetadata?: RelationMetadata;
36
- /**
37
- * Class's property name on which this column is applied.
38
- */
39
- propertyName: string;
40
- /**
41
- * The database type of the column.
42
- */
43
- type: ColumnType;
44
- /**
45
- * Type's length in the database.
46
- */
47
- length: string;
48
- /**
49
- * Type's display width in the database.
50
- */
51
- width?: number;
52
- /**
53
- * Defines column character set.
54
- */
55
- charset?: string;
56
- /**
57
- * Defines column collation.
58
- */
59
- collation?: string;
60
- /**
61
- * Indicates if this column is a primary key.
62
- */
63
- isPrimary: boolean;
64
- /**
65
- * Indicates if this column is generated (auto increment or generated other way).
66
- */
67
- isGenerated: boolean;
68
- /**
69
- * Indicates if column can contain nulls or not.
70
- */
71
- isNullable: boolean;
72
- /**
73
- * Indicates if column is selected by query builder or not.
74
- */
75
- isSelect: boolean;
76
- /**
77
- * Indicates if column is inserted by default or not.
78
- */
79
- isInsert: boolean;
80
- /**
81
- * Indicates if column allows updates or not.
82
- */
83
- isUpdate: boolean;
84
- /**
85
- * Specifies generation strategy if this column will use auto increment.
86
- */
87
- generationStrategy?: "uuid" | "increment" | "rowid";
88
- /**
89
- * Identity column type. Supports only in Postgres 10+.
90
- */
91
- generatedIdentity?: "ALWAYS" | "BY DEFAULT";
92
- /**
93
- * Column comment.
94
- * This feature is not supported by all databases.
95
- */
96
- comment?: string;
97
- /**
98
- * Default database value.
99
- */
100
- default?: number | boolean | string | null | (number | boolean | string)[] | Record<string, object> | (() => string);
101
- /**
102
- * ON UPDATE trigger. Works only for MySQL.
103
- */
104
- onUpdate?: string;
105
- /**
106
- * The precision for a decimal (exact numeric) column (applies only for decimal column),
107
- * which is the maximum number of digits that are stored for the values.
108
- */
109
- precision?: number | null;
110
- /**
111
- * The scale for a decimal (exact numeric) column (applies only for decimal column),
112
- * which represents the number of digits to the right of the decimal point and must not be greater than precision.
113
- */
114
- scale?: number;
115
- /**
116
- * Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
117
- * If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column
118
- */
119
- zerofill: boolean;
120
- /**
121
- * Puts UNSIGNED attribute on to numeric column. Works only for MySQL.
122
- */
123
- unsigned: boolean;
124
- /**
125
- * Array of possible enumerated values.
126
- *
127
- * `postgres` and `mysql` store enum values as strings but we want to keep support
128
- * for numeric and heterogeneous based typescript enums, so we need (string|number)[]
129
- */
130
- enum?: (string | number)[];
131
- /**
132
- * Exact name of enum
133
- */
134
- enumName?: string;
135
- /**
136
- * Generated column expression.
137
- */
138
- asExpression?: string;
139
- /**
140
- * Generated column type.
141
- */
142
- generatedType?: "VIRTUAL" | "STORED";
143
- /**
144
- * Return type of HSTORE column.
145
- * Returns value as string or as object.
146
- */
147
- hstoreType?: "object" | "string";
148
- /**
149
- * Indicates if this column is an array.
150
- */
151
- isArray: boolean;
152
- /**
153
- * Gets full path to this column property (including column property name).
154
- * Full path is relevant when column is used in embeds (one or multiple nested).
155
- * For example it will return "counters.subcounters.likes".
156
- * If property is not in embeds then it returns just property name of the column.
157
- */
158
- propertyPath: string;
159
- /**
160
- * Same as property path, but dots are replaced with '_'.
161
- * Used in query builder statements.
162
- */
163
- propertyAliasName: string;
164
- /**
165
- * Gets full path to this column database name (including column database name).
166
- * Full path is relevant when column is used in embeds (one or multiple nested).
167
- * For example it will return "counters.subcounters.likes".
168
- * If property is not in embeds then it returns just database name of the column.
169
- */
170
- databasePath: string;
171
- /**
172
- * Complete column name in the database including its embedded prefixes.
173
- */
174
- databaseName: string;
175
- /**
176
- * Database name in the database without embedded prefixes applied.
177
- */
178
- databaseNameWithoutPrefixes: string;
179
- /**
180
- * Database name set by entity metadata builder, not yet passed naming strategy process and without embedded prefixes.
181
- */
182
- givenDatabaseName?: string;
183
- /**
184
- * Indicates if column is virtual. Virtual columns are not mapped to the entity.
185
- */
186
- isVirtual: boolean;
187
- /**
188
- * Indicates if column is a virtual property. Virtual properties are not mapped to the entity.
189
- * This property is used in tandem the virtual column decorator.
190
- * @See https://typeorm.io/decorator-reference#virtualcolumn for more details.
191
- */
192
- isVirtualProperty: boolean;
193
- /**
194
- * Query to be used to populate the column data. This query is used when generating the relational db script.
195
- * The query function is called with the current entities alias either defined by the Entity Decorator or automatically
196
- * @See https://typeorm.io/decorator-reference#virtualcolumn for more details.
197
- */
198
- query?: (alias: string) => string;
199
- /**
200
- * Indicates if column is discriminator. Discriminator columns are not mapped to the entity.
201
- */
202
- isDiscriminator: boolean;
203
- /**
204
- * Indicates if column is tree-level column. Tree-level columns are used in closure entities.
205
- */
206
- isTreeLevel: boolean;
207
- /**
208
- * Indicates if this column contains an entity creation date.
209
- */
210
- isCreateDate: boolean;
211
- /**
212
- * Indicates if this column contains an entity update date.
213
- */
214
- isUpdateDate: boolean;
215
- /**
216
- * Indicates if this column contains an entity delete date.
217
- */
218
- isDeleteDate: boolean;
219
- /**
220
- * Indicates if this column contains an entity version.
221
- */
222
- isVersion: boolean;
223
- /**
224
- * Indicates if this column contains an object id.
225
- */
226
- isObjectId: boolean;
227
- /**
228
- * If this column is foreign key then it references some other column,
229
- * and this property will contain reference to this column.
230
- */
231
- referencedColumn: ColumnMetadata | undefined;
232
- /**
233
- * If this column is primary key then this specifies the name for it.
234
- */
235
- primaryKeyConstraintName?: string;
236
- /**
237
- * If this column is foreign key then this specifies the name for it.
238
- */
239
- foreignKeyConstraintName?: string;
240
- /**
241
- * Specifies a value transformer that is to be used to (un)marshal
242
- * this column when reading or writing to the database.
243
- */
244
- transformer?: ValueTransformer | ValueTransformer[];
245
- /**
246
- * Column type in the case if this column is in the closure table.
247
- * Column can be ancestor or descendant in the closure tables.
248
- */
249
- closureType?: "ancestor" | "descendant";
250
- /**
251
- * Indicates if this column is nested set's left column.
252
- * Used only in tree entities with nested-set type.
253
- */
254
- isNestedSetLeft: boolean;
255
- /**
256
- * Indicates if this column is nested set's right column.
257
- * Used only in tree entities with nested-set type.
258
- */
259
- isNestedSetRight: boolean;
260
- /**
261
- * Indicates if this column is materialized path's path column.
262
- * Used only in tree entities with materialized path type.
263
- */
264
- isMaterializedPath: boolean;
265
- /**
266
- * Spatial Feature Type (Geometry, Point, Polygon, etc.)
267
- */
268
- spatialFeatureType?: string;
269
- /**
270
- * SRID (Spatial Reference ID (EPSG code))
271
- */
272
- srid?: number;
273
- constructor(options: {
274
- connection: DataSource;
275
- entityMetadata: EntityMetadata;
276
- embeddedMetadata?: EmbeddedMetadata;
277
- referencedColumn?: ColumnMetadata;
278
- args: ColumnMetadataArgs;
279
- closureType?: "ancestor" | "descendant";
280
- nestedSetLeft?: boolean;
281
- nestedSetRight?: boolean;
282
- materializedPath?: boolean;
283
- });
284
- /**
285
- * Creates entity id map from the given entity ids array.
286
- */
287
- createValueMap(value: any, useDatabaseName?: boolean): any;
288
- /**
289
- * Extracts column value and returns its column name with this value in a literal object.
290
- * If column is in embedded (or recursive embedded) it returns complex literal object.
291
- *
292
- * Examples what this method can return depend if this column is in embeds.
293
- * { id: 1 } or { title: "hello" }, { counters: { code: 1 } }, { data: { information: { counters: { code: 1 } } } }
294
- */
295
- getEntityValueMap(entity: ObjectLiteral, options?: {
296
- skipNulls?: boolean;
297
- }): ObjectLiteral | undefined;
298
- /**
299
- * Extracts column value from the given entity.
300
- * If column is in embedded (or recursive embedded) it extracts its value from there.
301
- */
302
- getEntityValue(entity: ObjectLiteral, transform?: boolean): any | undefined;
303
- /**
304
- * Sets given entity's column value.
305
- * Using of this method helps to set entity relation's value of the lazy and non-lazy relations.
306
- */
307
- setEntityValue(entity: ObjectLiteral, value: any): void;
308
- /**
309
- * Compares given entity's column value with a given value.
310
- */
311
- compareEntityValue(entity: any, valueToCompareWith: any): any;
312
- build(connection: DataSource): this;
313
- protected buildPropertyPath(): string;
314
- protected buildDatabasePath(): string;
315
- protected buildDatabaseName(connection: DataSource): string;
316
- }
@@ -1,166 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnMetadata } from "./ColumnMetadata";
3
- import { RelationMetadata } from "./RelationMetadata";
4
- import { EntityMetadata } from "./EntityMetadata";
5
- import { EmbeddedMetadataArgs } from "../metadata-args/EmbeddedMetadataArgs";
6
- import { RelationIdMetadata } from "./RelationIdMetadata";
7
- import { RelationCountMetadata } from "./RelationCountMetadata";
8
- import { DataSource } from "../data-source/DataSource";
9
- import { EntityListenerMetadata } from "./EntityListenerMetadata";
10
- import { IndexMetadata } from "./IndexMetadata";
11
- import { UniqueMetadata } from "./UniqueMetadata";
12
- /**
13
- * Contains all information about entity's embedded property.
14
- */
15
- export declare class EmbeddedMetadata {
16
- /**
17
- * Entity metadata where this embedded is.
18
- */
19
- entityMetadata: EntityMetadata;
20
- /**
21
- * Parent embedded in the case if this embedded inside other embedded.
22
- */
23
- parentEmbeddedMetadata?: EmbeddedMetadata;
24
- /**
25
- * Embedded target type.
26
- */
27
- type: Function | string;
28
- /**
29
- * Property name on which this embedded is attached.
30
- */
31
- propertyName: string;
32
- /**
33
- * Gets full path to this embedded property (including embedded property name).
34
- * Full path is relevant when embedded is used inside other embeds (one or multiple nested).
35
- * For example it will return "counters.subcounters".
36
- */
37
- propertyPath: string;
38
- /**
39
- * Columns inside this embed.
40
- */
41
- columns: ColumnMetadata[];
42
- /**
43
- * Relations inside this embed.
44
- */
45
- relations: RelationMetadata[];
46
- /**
47
- * Entity listeners inside this embed.
48
- */
49
- listeners: EntityListenerMetadata[];
50
- /**
51
- * Indices applied to the embed columns.
52
- */
53
- indices: IndexMetadata[];
54
- /**
55
- * Uniques applied to the embed columns.
56
- */
57
- uniques: UniqueMetadata[];
58
- /**
59
- * Relation ids inside this embed.
60
- */
61
- relationIds: RelationIdMetadata[];
62
- /**
63
- * Relation counts inside this embed.
64
- */
65
- relationCounts: RelationCountMetadata[];
66
- /**
67
- * Nested embeddable in this embeddable (which has current embedded as parent embedded).
68
- */
69
- embeddeds: EmbeddedMetadata[];
70
- /**
71
- * Indicates if the entity should be instantiated using the constructor
72
- * or via allocating a new object via `Object.create()`.
73
- */
74
- isAlwaysUsingConstructor: boolean;
75
- /**
76
- * Indicates if this embedded is in array mode.
77
- *
78
- * This option works only in mongodb.
79
- */
80
- isArray: boolean;
81
- /**
82
- * Prefix of the embedded, used instead of propertyName.
83
- * If set to empty string or false, then prefix is not set at all.
84
- */
85
- customPrefix: string | boolean | undefined;
86
- /**
87
- * Gets the prefix of the columns.
88
- * By default its a property name of the class where this prefix is.
89
- * But if custom prefix is set then it takes its value as a prefix.
90
- * However if custom prefix is set to empty string or false, then prefix to column is not applied at all.
91
- */
92
- prefix: string;
93
- /**
94
- * Returns array of property names of current embed and all its parent embeds.
95
- *
96
- * example: post[data][information][counters].id where "data", "information" and "counters" are embeds
97
- * we need to get value of "id" column from the post real entity object.
98
- * this method will return ["data", "information", "counters"]
99
- */
100
- parentPropertyNames: string[];
101
- /**
102
- * Returns array of prefixes of current embed and all its parent embeds.
103
- */
104
- parentPrefixes: string[];
105
- /**
106
- * Returns embed metadatas from all levels of the parent tree.
107
- *
108
- * example: post[data][information][counters].id where "data", "information" and "counters" are embeds
109
- * this method will return [embed metadata of data, embed metadata of information, embed metadata of counters]
110
- */
111
- embeddedMetadataTree: EmbeddedMetadata[];
112
- /**
113
- * Embed metadatas from all levels of the parent tree.
114
- *
115
- * example: post[data][information][counters].id where "data", "information" and "counters" are embeds
116
- * this method will return [embed metadata of data, embed metadata of information, embed metadata of counters]
117
- */
118
- columnsFromTree: ColumnMetadata[];
119
- /**
120
- * Relations of this embed and all relations from its child embeds.
121
- */
122
- relationsFromTree: RelationMetadata[];
123
- /**
124
- * Relations of this embed and all relations from its child embeds.
125
- */
126
- listenersFromTree: EntityListenerMetadata[];
127
- /**
128
- * Indices of this embed and all indices from its child embeds.
129
- */
130
- indicesFromTree: IndexMetadata[];
131
- /**
132
- * Uniques of this embed and all uniques from its child embeds.
133
- */
134
- uniquesFromTree: UniqueMetadata[];
135
- /**
136
- * Relation ids of this embed and all relation ids from its child embeds.
137
- */
138
- relationIdsFromTree: RelationIdMetadata[];
139
- /**
140
- * Relation counts of this embed and all relation counts from its child embeds.
141
- */
142
- relationCountsFromTree: RelationCountMetadata[];
143
- constructor(options: {
144
- entityMetadata: EntityMetadata;
145
- args: EmbeddedMetadataArgs;
146
- });
147
- /**
148
- * Creates a new embedded object.
149
- */
150
- create(options?: {
151
- fromDeserializer?: boolean;
152
- }): any;
153
- build(connection: DataSource): this;
154
- protected buildPartialPrefix(): string[];
155
- protected buildPrefix(connection: DataSource): string;
156
- protected buildParentPropertyNames(): string[];
157
- protected buildParentPrefixes(): string[];
158
- protected buildEmbeddedMetadataTree(): EmbeddedMetadata[];
159
- protected buildColumnsFromTree(): ColumnMetadata[];
160
- protected buildRelationsFromTree(): RelationMetadata[];
161
- protected buildListenersFromTree(): EntityListenerMetadata[];
162
- protected buildIndicesFromTree(): IndexMetadata[];
163
- protected buildUniquesFromTree(): UniqueMetadata[];
164
- protected buildRelationIdsFromTree(): RelationIdMetadata[];
165
- protected buildRelationCountsFromTree(): RelationCountMetadata[];
166
- }
@@ -1,49 +0,0 @@
1
- // @ts-nocheck
2
- import { EventListenerType } from "./types/EventListenerTypes";
3
- import { EntityListenerMetadataArgs } from "../metadata-args/EntityListenerMetadataArgs";
4
- import { ObjectLiteral } from "../common/ObjectLiteral";
5
- import { EntityMetadata } from "./EntityMetadata";
6
- import { EmbeddedMetadata } from "./EmbeddedMetadata";
7
- /**
8
- * This metadata contains all information about entity's listeners.
9
- */
10
- export declare class EntityListenerMetadata {
11
- /**
12
- * Entity metadata of the listener.
13
- */
14
- entityMetadata: EntityMetadata;
15
- /**
16
- * Embedded metadata of the listener, in the case if listener is in embedded.
17
- */
18
- embeddedMetadata?: EmbeddedMetadata;
19
- /**
20
- * Target class to which metadata is applied.
21
- * This can be different then entityMetadata.target in the case if listener is in the embedded.
22
- */
23
- target: Function | string;
24
- /**
25
- * Target's property name to which this metadata is applied.
26
- */
27
- propertyName: string;
28
- /**
29
- * The type of the listener.
30
- */
31
- type: EventListenerType;
32
- constructor(options: {
33
- entityMetadata: EntityMetadata;
34
- embeddedMetadata?: EmbeddedMetadata;
35
- args: EntityListenerMetadataArgs;
36
- });
37
- /**
38
- * Checks if entity listener is allowed to be executed on the given entity.
39
- */
40
- isAllowed(entity: ObjectLiteral): boolean;
41
- /**
42
- * Executes listener method of the given entity.
43
- */
44
- execute(entity: ObjectLiteral): any;
45
- /**
46
- * Calls embedded entity listener method no matter how nested it is.
47
- */
48
- protected callEntityEmbeddedMethod(entity: ObjectLiteral, propertyPaths: string[]): void;
49
- }