taon-typeorm 19.0.21 → 19.0.23

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 (436) 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 +4 -0
  6. package/lib/env/env.angular-node-app.js +10 -0
  7. package/lib/env/env.angular-node-app.js.map +1 -0
  8. package/lib/env/env.docs-webapp.d.ts +4 -0
  9. package/lib/env/env.docs-webapp.js +10 -0
  10. package/lib/env/env.docs-webapp.js.map +1 -0
  11. package/lib/env/env.electron-app.d.ts +4 -0
  12. package/lib/env/env.electron-app.js +10 -0
  13. package/lib/env/env.electron-app.js.map +1 -0
  14. package/lib/env/env.mobile-app.d.ts +4 -0
  15. package/lib/env/env.mobile-app.js +10 -0
  16. package/lib/env/env.mobile-app.js.map +1 -0
  17. package/lib/env/env.npm-lib-and-cli-tool.d.ts +4 -0
  18. package/lib/env/env.npm-lib-and-cli-tool.js +10 -0
  19. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
  20. package/lib/env/env.vscode-plugin.d.ts +4 -0
  21. package/lib/env/env.vscode-plugin.js +10 -0
  22. package/lib/env/env.vscode-plugin.js.map +1 -0
  23. package/lib/env/index.d.ts +6 -0
  24. package/lib/env/index.js +23 -0
  25. package/lib/env/index.js.map +1 -0
  26. package/package.json +1 -1
  27. package/scss/vars.scss +7 -0
  28. package/websql/package.json +1 -1
  29. package/client/README.md +0 -24
  30. package/client/fesm2022/taon-typeorm.mjs +0 -30436
  31. package/client/fesm2022/taon-typeorm.mjs.map +0 -1
  32. package/client/index.d.ts +0 -6
  33. package/client/lib/index.d.ts +0 -2
  34. package/client/lib/typeorm/cache/DbQueryResultCache.d.ts +0 -53
  35. package/client/lib/typeorm/cache/QueryResultCache.d.ts +0 -40
  36. package/client/lib/typeorm/cache/QueryResultCacheFactory.d.ts +0 -14
  37. package/client/lib/typeorm/cache/QueryResultCacheOptions.d.ts +0 -27
  38. package/client/lib/typeorm/cache/RedisQueryResultCache.d.ts +0 -66
  39. package/client/lib/typeorm/common/DeepPartial.d.ts +0 -7
  40. package/client/lib/typeorm/common/EntityTarget.d.ts +0 -10
  41. package/client/lib/typeorm/common/MixedList.d.ts +0 -9
  42. package/client/lib/typeorm/common/ObjectLiteral.d.ts +0 -7
  43. package/client/lib/typeorm/common/ObjectType.d.ts +0 -7
  44. package/client/lib/typeorm/common/RelationType.d.ts +0 -15
  45. package/client/lib/typeorm/connection/Connection.d.ts +0 -11
  46. package/client/lib/typeorm/connection/ConnectionManager.d.ts +0 -34
  47. package/client/lib/typeorm/connection/ConnectionMetadataBuilder.d.ts +0 -25
  48. package/client/lib/typeorm/connection/ConnectionOptions.d.ts +0 -10
  49. package/client/lib/typeorm/connection/ConnectionOptionsReader.d.ts +0 -65
  50. package/client/lib/typeorm/constants.d.ts +0 -2
  51. package/client/lib/typeorm/container.d.ts +0 -40
  52. package/client/lib/typeorm/data-source/BaseDataSourceOptions.d.ts +0 -172
  53. package/client/lib/typeorm/data-source/DataSource.d.ts +0 -247
  54. package/client/lib/typeorm/data-source/DataSourceOptions.d.ts +0 -9
  55. package/client/lib/typeorm/data-source/index.d.ts +0 -3
  56. package/client/lib/typeorm/decorator/Check.d.ts +0 -13
  57. package/client/lib/typeorm/decorator/EntityRepository.d.ts +0 -10
  58. package/client/lib/typeorm/decorator/Exclusion.d.ts +0 -13
  59. package/client/lib/typeorm/decorator/Generated.d.ts +0 -11
  60. package/client/lib/typeorm/decorator/Index.d.ts +0 -50
  61. package/client/lib/typeorm/decorator/Unique.d.ts +0 -22
  62. package/client/lib/typeorm/decorator/columns/Column.d.ts +0 -75
  63. package/client/lib/typeorm/decorator/columns/CreateDateColumn.d.ts +0 -8
  64. package/client/lib/typeorm/decorator/columns/DeleteDateColumn.d.ts +0 -7
  65. package/client/lib/typeorm/decorator/columns/ObjectIdColumn.d.ts +0 -7
  66. package/client/lib/typeorm/decorator/columns/PrimaryColumn.d.ts +0 -22
  67. package/client/lib/typeorm/decorator/columns/PrimaryGeneratedColumn.d.ts +0 -25
  68. package/client/lib/typeorm/decorator/columns/UpdateDateColumn.d.ts +0 -7
  69. package/client/lib/typeorm/decorator/columns/VersionColumn.d.ts +0 -8
  70. package/client/lib/typeorm/decorator/columns/ViewColumn.d.ts +0 -6
  71. package/client/lib/typeorm/decorator/columns/VirtualColumn.d.ts +0 -11
  72. package/client/lib/typeorm/decorator/entity/ChildEntity.d.ts +0 -5
  73. package/client/lib/typeorm/decorator/entity/Entity.d.ts +0 -12
  74. package/client/lib/typeorm/decorator/entity/TableInheritance.d.ts +0 -9
  75. package/client/lib/typeorm/decorator/entity-view/ViewEntity.d.ts +0 -12
  76. package/client/lib/typeorm/decorator/listeners/AfterInsert.d.ts +0 -5
  77. package/client/lib/typeorm/decorator/listeners/AfterLoad.d.ts +0 -5
  78. package/client/lib/typeorm/decorator/listeners/AfterRecover.d.ts +0 -5
  79. package/client/lib/typeorm/decorator/listeners/AfterRemove.d.ts +0 -5
  80. package/client/lib/typeorm/decorator/listeners/AfterSoftRemove.d.ts +0 -5
  81. package/client/lib/typeorm/decorator/listeners/AfterUpdate.d.ts +0 -5
  82. package/client/lib/typeorm/decorator/listeners/BeforeInsert.d.ts +0 -5
  83. package/client/lib/typeorm/decorator/listeners/BeforeRecover.d.ts +0 -5
  84. package/client/lib/typeorm/decorator/listeners/BeforeRemove.d.ts +0 -5
  85. package/client/lib/typeorm/decorator/listeners/BeforeSoftRemove.d.ts +0 -5
  86. package/client/lib/typeorm/decorator/listeners/BeforeUpdate.d.ts +0 -5
  87. package/client/lib/typeorm/decorator/listeners/EventSubscriber.d.ts +0 -6
  88. package/client/lib/typeorm/decorator/options/ColumnCommonOptions.d.ts +0 -58
  89. package/client/lib/typeorm/decorator/options/ColumnEmbeddedOptions.d.ts +0 -17
  90. package/client/lib/typeorm/decorator/options/ColumnEnumOptions.d.ts +0 -14
  91. package/client/lib/typeorm/decorator/options/ColumnHstoreOptions.d.ts +0 -11
  92. package/client/lib/typeorm/decorator/options/ColumnNumericOptions.d.ts +0 -25
  93. package/client/lib/typeorm/decorator/options/ColumnOptions.d.ts +0 -159
  94. package/client/lib/typeorm/decorator/options/ColumnWithLengthOptions.d.ts +0 -11
  95. package/client/lib/typeorm/decorator/options/ColumnWithWidthOptions.d.ts +0 -20
  96. package/client/lib/typeorm/decorator/options/EntityOptions.d.ts +0 -43
  97. package/client/lib/typeorm/decorator/options/IndexOptions.d.ts +0 -53
  98. package/client/lib/typeorm/decorator/options/JoinColumnOptions.d.ts +0 -18
  99. package/client/lib/typeorm/decorator/options/JoinTableMultipleColumnsOptions.d.ts +0 -30
  100. package/client/lib/typeorm/decorator/options/JoinTableOptions.d.ts +0 -30
  101. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnIdentityOptions.d.ts +0 -27
  102. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnNumericOptions.d.ts +0 -32
  103. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnUUIDOptions.d.ts +0 -18
  104. package/client/lib/typeorm/decorator/options/RelationOptions.d.ts +0 -65
  105. package/client/lib/typeorm/decorator/options/SpatialColumnOptions.d.ts +0 -16
  106. package/client/lib/typeorm/decorator/options/UniqueOptions.d.ts +0 -11
  107. package/client/lib/typeorm/decorator/options/ValueTransformer.d.ts +0 -14
  108. package/client/lib/typeorm/decorator/options/ViewColumnOptions.d.ts +0 -16
  109. package/client/lib/typeorm/decorator/options/ViewEntityOptions.d.ts +0 -40
  110. package/client/lib/typeorm/decorator/options/VirtualColumnOptions.d.ts +0 -28
  111. package/client/lib/typeorm/decorator/relations/JoinColumn.d.ts +0 -20
  112. package/client/lib/typeorm/decorator/relations/JoinTable.d.ts +0 -18
  113. package/client/lib/typeorm/decorator/relations/ManyToMany.d.ts +0 -15
  114. package/client/lib/typeorm/decorator/relations/ManyToOne.d.ts +0 -15
  115. package/client/lib/typeorm/decorator/relations/OneToMany.d.ts +0 -9
  116. package/client/lib/typeorm/decorator/relations/OneToOne.d.ts +0 -13
  117. package/client/lib/typeorm/decorator/relations/RelationCount.d.ts +0 -8
  118. package/client/lib/typeorm/decorator/relations/RelationId.d.ts +0 -8
  119. package/client/lib/typeorm/decorator/tree/Tree.d.ts +0 -10
  120. package/client/lib/typeorm/decorator/tree/TreeChildren.d.ts +0 -8
  121. package/client/lib/typeorm/decorator/tree/TreeLevelColumn.d.ts +0 -5
  122. package/client/lib/typeorm/decorator/tree/TreeParent.d.ts +0 -9
  123. package/client/lib/typeorm/driver/Driver.d.ts +0 -208
  124. package/client/lib/typeorm/driver/DriverFactory.d.ts +0 -12
  125. package/client/lib/typeorm/driver/DriverUtils.d.ts +0 -62
  126. package/client/lib/typeorm/driver/Query.d.ts +0 -10
  127. package/client/lib/typeorm/driver/SqlInMemory.d.ts +0 -9
  128. package/client/lib/typeorm/driver/cordova/CordovaConnectionOptions.d.ts +0 -25
  129. package/client/lib/typeorm/driver/cordova/CordovaDriver.d.ts +0 -26
  130. package/client/lib/typeorm/driver/cordova/CordovaQueryRunner.d.ts +0 -81
  131. package/client/lib/typeorm/driver/mongodb/typings.d.ts +0 -46
  132. package/client/lib/typeorm/driver/nativescript/NativescriptConnectionOptions.d.ts +0 -46
  133. package/client/lib/typeorm/driver/nativescript/NativescriptDriver.d.ts +0 -45
  134. package/client/lib/typeorm/driver/nativescript/NativescriptQueryRunner.d.ts +0 -30
  135. package/client/lib/typeorm/driver/react-native/ReactNativeConnectionOptions.d.ts +0 -25
  136. package/client/lib/typeorm/driver/react-native/ReactNativeDriver.d.ts +0 -26
  137. package/client/lib/typeorm/driver/react-native/ReactNativeQueryRunner.d.ts +0 -30
  138. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteDriver.d.ts +0 -238
  139. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.d.ts +0 -301
  140. package/client/lib/typeorm/driver/sqljs/SqljsConnectionOptions.d.ts +0 -47
  141. package/client/lib/typeorm/driver/sqljs/SqljsDriver.d.ts +0 -68
  142. package/client/lib/typeorm/driver/sqljs/SqljsQueryRunner.d.ts +0 -36
  143. package/client/lib/typeorm/driver/types/ColumnTypes.d.ts +0 -26
  144. package/client/lib/typeorm/driver/types/CteCapabilities.d.ts +0 -19
  145. package/client/lib/typeorm/driver/types/DataTypeDefaults.d.ts +0 -9
  146. package/client/lib/typeorm/driver/types/DatabaseType.d.ts +0 -5
  147. package/client/lib/typeorm/driver/types/IsolationLevel.d.ts +0 -2
  148. package/client/lib/typeorm/driver/types/MappedColumnTypes.d.ts +0 -113
  149. package/client/lib/typeorm/driver/types/MetadataTableType.d.ts +0 -6
  150. package/client/lib/typeorm/driver/types/ReplicationMode.d.ts +0 -2
  151. package/client/lib/typeorm/driver/types/UpsertType.d.ts +0 -2
  152. package/client/lib/typeorm/entity-manager/EntityManager.d.ts +0 -353
  153. package/client/lib/typeorm/entity-manager/EntityManagerFactory.d.ts +0 -13
  154. package/client/lib/typeorm/entity-manager/SqljsEntityManager.d.ts +0 -27
  155. package/client/lib/typeorm/entity-schema/EntitySchema.d.ts +0 -10
  156. package/client/lib/typeorm/entity-schema/EntitySchemaCheckOptions.d.ts +0 -11
  157. package/client/lib/typeorm/entity-schema/EntitySchemaColumnOptions.d.ts +0 -175
  158. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedColumnOptions.d.ts +0 -19
  159. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedError.d.ts +0 -7
  160. package/client/lib/typeorm/entity-schema/EntitySchemaExclusionOptions.d.ts +0 -11
  161. package/client/lib/typeorm/entity-schema/EntitySchemaIndexOptions.d.ts +0 -54
  162. package/client/lib/typeorm/entity-schema/EntitySchemaOptions.d.ts +0 -104
  163. package/client/lib/typeorm/entity-schema/EntitySchemaRelationIdOptions.d.ts +0 -16
  164. package/client/lib/typeorm/entity-schema/EntitySchemaRelationOptions.d.ts +0 -96
  165. package/client/lib/typeorm/entity-schema/EntitySchemaTransformer.d.ts +0 -14
  166. package/client/lib/typeorm/entity-schema/EntitySchemaUniqueOptions.d.ts +0 -18
  167. package/client/lib/typeorm/error/AlreadyHasActiveConnectionError.d.ts +0 -8
  168. package/client/lib/typeorm/error/CannotAttachTreeChildrenEntityError.d.ts +0 -8
  169. package/client/lib/typeorm/error/CannotConnectAlreadyConnectedError.d.ts +0 -8
  170. package/client/lib/typeorm/error/CannotCreateEntityIdMapError.d.ts +0 -10
  171. package/client/lib/typeorm/error/CannotDetermineEntityError.d.ts +0 -8
  172. package/client/lib/typeorm/error/CannotExecuteNotConnectedError.d.ts +0 -8
  173. package/client/lib/typeorm/error/CannotGetEntityManagerNotConnectedError.d.ts +0 -8
  174. package/client/lib/typeorm/error/CannotReflectMethodParameterTypeError.d.ts +0 -9
  175. package/client/lib/typeorm/error/CircularRelationsError.d.ts +0 -8
  176. package/client/lib/typeorm/error/ColumnTypeUndefinedError.d.ts +0 -9
  177. package/client/lib/typeorm/error/ConnectionIsNotSetError.d.ts +0 -8
  178. package/client/lib/typeorm/error/ConnectionNotFoundError.d.ts +0 -8
  179. package/client/lib/typeorm/error/CustomRepositoryCannotInheritRepositoryError.d.ts +0 -8
  180. package/client/lib/typeorm/error/CustomRepositoryDoesNotHaveEntityError.d.ts +0 -8
  181. package/client/lib/typeorm/error/CustomRepositoryNotFoundError.d.ts +0 -8
  182. package/client/lib/typeorm/error/DataTypeNotSupportedError.d.ts +0 -8
  183. package/client/lib/typeorm/error/DriverOptionNotSetError.d.ts +0 -8
  184. package/client/lib/typeorm/error/DriverPackageNotInstalledError.d.ts +0 -8
  185. package/client/lib/typeorm/error/EntityMetadataNotFoundError.d.ts +0 -7
  186. package/client/lib/typeorm/error/EntityNotFoundError.d.ts +0 -11
  187. package/client/lib/typeorm/error/EntityPropertyNotFoundError.d.ts +0 -9
  188. package/client/lib/typeorm/error/FindRelationsNotFoundError.d.ts +0 -8
  189. package/client/lib/typeorm/error/InitializedRelationError.d.ts +0 -12
  190. package/client/lib/typeorm/error/InsertValuesMissingError.d.ts +0 -8
  191. package/client/lib/typeorm/error/LimitOnUpdateNotSupportedError.d.ts +0 -8
  192. package/client/lib/typeorm/error/LockNotSupportedOnGivenDriverError.d.ts +0 -8
  193. package/client/lib/typeorm/error/MetadataAlreadyExistsError.d.ts +0 -5
  194. package/client/lib/typeorm/error/MetadataWithSuchNameAlreadyExistsError.d.ts +0 -5
  195. package/client/lib/typeorm/error/MissingDeleteDateColumnError.d.ts +0 -6
  196. package/client/lib/typeorm/error/MissingDriverError.d.ts +0 -8
  197. package/client/lib/typeorm/error/MissingJoinColumnError.d.ts +0 -7
  198. package/client/lib/typeorm/error/MissingJoinTableError.d.ts +0 -7
  199. package/client/lib/typeorm/error/MissingPrimaryColumnError.d.ts +0 -6
  200. package/client/lib/typeorm/error/MustBeEntityError.d.ts +0 -8
  201. package/client/lib/typeorm/error/NamingStrategyNotFoundError.d.ts +0 -8
  202. package/client/lib/typeorm/error/NestedSetMultipleRootError.d.ts +0 -5
  203. package/client/lib/typeorm/error/NoConnectionForRepositoryError.d.ts +0 -8
  204. package/client/lib/typeorm/error/NoConnectionOptionError.d.ts +0 -8
  205. package/client/lib/typeorm/error/NoNeedToReleaseEntityManagerError.d.ts +0 -8
  206. package/client/lib/typeorm/error/NoVersionOrUpdateDateColumnError.d.ts +0 -8
  207. package/client/lib/typeorm/error/OffsetWithoutLimitNotSupportedError.d.ts +0 -8
  208. package/client/lib/typeorm/error/OptimisticLockCanNotBeUsedError.d.ts +0 -8
  209. package/client/lib/typeorm/error/OptimisticLockVersionMismatchError.d.ts +0 -8
  210. package/client/lib/typeorm/error/PersistedEntityNotFoundError.d.ts +0 -8
  211. package/client/lib/typeorm/error/PessimisticLockTransactionRequiredError.d.ts +0 -8
  212. package/client/lib/typeorm/error/PrimaryColumnCannotBeNullableError.d.ts +0 -5
  213. package/client/lib/typeorm/error/QueryFailedError.d.ts +0 -11
  214. package/client/lib/typeorm/error/QueryRunnerAlreadyReleasedError.d.ts +0 -5
  215. package/client/lib/typeorm/error/QueryRunnerProviderAlreadyReleasedError.d.ts +0 -8
  216. package/client/lib/typeorm/error/RepositoryNotTreeError.d.ts +0 -9
  217. package/client/lib/typeorm/error/ReturningStatementNotSupportedError.d.ts +0 -9
  218. package/client/lib/typeorm/error/SubjectRemovedAndUpdatedError.d.ts +0 -9
  219. package/client/lib/typeorm/error/SubjectWithoutIdentifierError.d.ts +0 -11
  220. package/client/lib/typeorm/error/TransactionAlreadyStartedError.d.ts +0 -8
  221. package/client/lib/typeorm/error/TransactionNotStartedError.d.ts +0 -8
  222. package/client/lib/typeorm/error/TreeRepositoryNotSupportedError.d.ts +0 -6
  223. package/client/lib/typeorm/error/TypeORMError.d.ts +0 -5
  224. package/client/lib/typeorm/error/UpdateValuesMissingError.d.ts +0 -5
  225. package/client/lib/typeorm/error/UsingJoinColumnIsNotAllowedError.d.ts +0 -7
  226. package/client/lib/typeorm/error/UsingJoinColumnOnlyOnOneSideAllowedError.d.ts +0 -7
  227. package/client/lib/typeorm/error/UsingJoinTableIsNotAllowedError.d.ts +0 -7
  228. package/client/lib/typeorm/error/UsingJoinTableOnlyOnOneSideAllowedError.d.ts +0 -7
  229. package/client/lib/typeorm/error/index.d.ts +0 -62
  230. package/client/lib/typeorm/find-options/EqualOperator.d.ts +0 -6
  231. package/client/lib/typeorm/find-options/FindManyOptions.d.ts +0 -15
  232. package/client/lib/typeorm/find-options/FindOneOptions.d.ts +0 -89
  233. package/client/lib/typeorm/find-options/FindOperator.d.ts +0 -66
  234. package/client/lib/typeorm/find-options/FindOperatorType.d.ts +0 -5
  235. package/client/lib/typeorm/find-options/FindOptionsOrder.d.ts +0 -19
  236. package/client/lib/typeorm/find-options/FindOptionsRelations.d.ts +0 -19
  237. package/client/lib/typeorm/find-options/FindOptionsSelect.d.ts +0 -18
  238. package/client/lib/typeorm/find-options/FindOptionsUtils.d.ts +0 -191
  239. package/client/lib/typeorm/find-options/FindOptionsWhere.d.ts +0 -14
  240. package/client/lib/typeorm/find-options/FindTreeOptions.d.ts +0 -14
  241. package/client/lib/typeorm/find-options/JoinOptions.d.ts +0 -77
  242. package/client/lib/typeorm/find-options/OrderByCondition.d.ts +0 -18
  243. package/client/lib/typeorm/find-options/operator/Any.d.ts +0 -7
  244. package/client/lib/typeorm/find-options/operator/ArrayContainedBy.d.ts +0 -7
  245. package/client/lib/typeorm/find-options/operator/ArrayContains.d.ts +0 -7
  246. package/client/lib/typeorm/find-options/operator/ArrayOverlap.d.ts +0 -7
  247. package/client/lib/typeorm/find-options/operator/Between.d.ts +0 -7
  248. package/client/lib/typeorm/find-options/operator/Equal.d.ts +0 -12
  249. package/client/lib/typeorm/find-options/operator/ILike.d.ts +0 -7
  250. package/client/lib/typeorm/find-options/operator/In.d.ts +0 -7
  251. package/client/lib/typeorm/find-options/operator/IsNull.d.ts +0 -7
  252. package/client/lib/typeorm/find-options/operator/LessThan.d.ts +0 -7
  253. package/client/lib/typeorm/find-options/operator/LessThanOrEqual.d.ts +0 -7
  254. package/client/lib/typeorm/find-options/operator/Like.d.ts +0 -7
  255. package/client/lib/typeorm/find-options/operator/MoreThan.d.ts +0 -7
  256. package/client/lib/typeorm/find-options/operator/MoreThanOrEqual.d.ts +0 -7
  257. package/client/lib/typeorm/find-options/operator/Not.d.ts +0 -8
  258. package/client/lib/typeorm/find-options/operator/Raw.d.ts +0 -19
  259. package/client/lib/typeorm/globals.d.ts +0 -104
  260. package/client/lib/typeorm/index.d.ts +0 -168
  261. package/client/lib/typeorm/logger/AdvancedConsoleLogger.d.ts +0 -42
  262. package/client/lib/typeorm/logger/DebugLogger.d.ts +0 -41
  263. package/client/lib/typeorm/logger/Logger.d.ts +0 -32
  264. package/client/lib/typeorm/logger/LoggerFactory.d.ts +0 -12
  265. package/client/lib/typeorm/logger/LoggerOptions.d.ts +0 -14
  266. package/client/lib/typeorm/logger/SimpleConsoleLogger.d.ts +0 -42
  267. package/client/lib/typeorm/metadata/CheckMetadata.d.ts +0 -40
  268. package/client/lib/typeorm/metadata/ColumnMetadata.d.ts +0 -316
  269. package/client/lib/typeorm/metadata/EmbeddedMetadata.d.ts +0 -166
  270. package/client/lib/typeorm/metadata/EntityListenerMetadata.d.ts +0 -49
  271. package/client/lib/typeorm/metadata/EntityMetadata.d.ts +0 -562
  272. package/client/lib/typeorm/metadata/ExclusionMetadata.d.ts +0 -40
  273. package/client/lib/typeorm/metadata/ForeignKeyMetadata.d.ts +0 -78
  274. package/client/lib/typeorm/metadata/IndexMetadata.d.ts +0 -112
  275. package/client/lib/typeorm/metadata/RelationCountMetadata.d.ts +0 -47
  276. package/client/lib/typeorm/metadata/RelationIdMetadata.d.ts +0 -54
  277. package/client/lib/typeorm/metadata/RelationMetadata.d.ts +0 -291
  278. package/client/lib/typeorm/metadata/UniqueMetadata.d.ts +0 -66
  279. package/client/lib/typeorm/metadata/types/ClosureTreeOptions.d.ts +0 -11
  280. package/client/lib/typeorm/metadata/types/DeferrableType.d.ts +0 -5
  281. package/client/lib/typeorm/metadata/types/EventListenerTypes.d.ts +0 -21
  282. package/client/lib/typeorm/metadata/types/OnDeleteType.d.ts +0 -5
  283. package/client/lib/typeorm/metadata/types/OnUpdateType.d.ts +0 -5
  284. package/client/lib/typeorm/metadata/types/PropertyTypeInFunction.d.ts +0 -5
  285. package/client/lib/typeorm/metadata/types/RelationTypeInFunction.d.ts +0 -6
  286. package/client/lib/typeorm/metadata/types/RelationTypes.d.ts +0 -5
  287. package/client/lib/typeorm/metadata/types/TableTypes.d.ts +0 -5
  288. package/client/lib/typeorm/metadata/types/TreeTypes.d.ts +0 -6
  289. package/client/lib/typeorm/metadata-args/CheckMetadataArgs.d.ts +0 -18
  290. package/client/lib/typeorm/metadata-args/ColumnMetadataArgs.d.ts +0 -26
  291. package/client/lib/typeorm/metadata-args/DiscriminatorValueMetadataArgs.d.ts +0 -14
  292. package/client/lib/typeorm/metadata-args/EmbeddedMetadataArgs.d.ts +0 -27
  293. package/client/lib/typeorm/metadata-args/EntityListenerMetadataArgs.d.ts +0 -19
  294. package/client/lib/typeorm/metadata-args/EntityRepositoryMetadataArgs.d.ts +0 -15
  295. package/client/lib/typeorm/metadata-args/EntitySubscriberMetadataArgs.d.ts +0 -10
  296. package/client/lib/typeorm/metadata-args/ExclusionMetadataArgs.d.ts +0 -18
  297. package/client/lib/typeorm/metadata-args/GeneratedMetadataArgs.d.ts +0 -18
  298. package/client/lib/typeorm/metadata-args/IndexMetadataArgs.d.ts +0 -71
  299. package/client/lib/typeorm/metadata-args/InheritanceMetadataArgs.d.ts +0 -19
  300. package/client/lib/typeorm/metadata-args/JoinColumnMetadataArgs.d.ts +0 -27
  301. package/client/lib/typeorm/metadata-args/JoinTableMetadataArgs.d.ts +0 -38
  302. package/client/lib/typeorm/metadata-args/MetadataArgsStorage.d.ts +0 -109
  303. package/client/lib/typeorm/metadata-args/NamingStrategyMetadataArgs.d.ts +0 -14
  304. package/client/lib/typeorm/metadata-args/RelationCountMetadataArgs.d.ts +0 -27
  305. package/client/lib/typeorm/metadata-args/RelationIdMetadataArgs.d.ts +0 -27
  306. package/client/lib/typeorm/metadata-args/RelationMetadataArgs.d.ts +0 -56
  307. package/client/lib/typeorm/metadata-args/TableMetadataArgs.d.ts +0 -62
  308. package/client/lib/typeorm/metadata-args/TransactionEntityMetadataArgs.d.ts +0 -18
  309. package/client/lib/typeorm/metadata-args/TransactionRepositoryMetadataArgs.d.ts +0 -26
  310. package/client/lib/typeorm/metadata-args/TreeMetadataArgs.d.ts +0 -20
  311. package/client/lib/typeorm/metadata-args/UniqueMetadataArgs.d.ts +0 -25
  312. package/client/lib/typeorm/metadata-args/types/ColumnMode.d.ts +0 -8
  313. package/client/lib/typeorm/metadata-builder/ClosureJunctionEntityMetadataBuilder.d.ts +0 -15
  314. package/client/lib/typeorm/metadata-builder/EntityMetadataBuilder.d.ts +0 -58
  315. package/client/lib/typeorm/metadata-builder/EntityMetadataValidator.d.ts +0 -24
  316. package/client/lib/typeorm/metadata-builder/JunctionEntityMetadataBuilder.d.ts +0 -27
  317. package/client/lib/typeorm/metadata-builder/MetadataUtils.d.ts +0 -24
  318. package/client/lib/typeorm/metadata-builder/RelationJoinColumnBuilder.d.ts +0 -57
  319. package/client/lib/typeorm/migration/Migration.d.ts +0 -25
  320. package/client/lib/typeorm/migration/MigrationExecutor.d.ts +0 -100
  321. package/client/lib/typeorm/migration/MigrationInterface.d.ts +0 -19
  322. package/client/lib/typeorm/naming-strategy/DefaultNamingStrategy.d.ts +0 -50
  323. package/client/lib/typeorm/naming-strategy/NamingStrategyInterface.d.ts +0 -117
  324. package/client/lib/typeorm/persistence/EntityPersistExecutor.d.ts +0 -22
  325. package/client/lib/typeorm/persistence/Subject.d.ts +0 -156
  326. package/client/lib/typeorm/persistence/SubjectChangeMap.d.ts +0 -24
  327. package/client/lib/typeorm/persistence/SubjectChangedColumnsComputer.d.ts +0 -19
  328. package/client/lib/typeorm/persistence/SubjectDatabaseEntityLoader.d.ts +0 -36
  329. package/client/lib/typeorm/persistence/SubjectExecutor.d.ts +0 -119
  330. package/client/lib/typeorm/persistence/SubjectTopoligicalSorter.d.ts +0 -46
  331. package/client/lib/typeorm/persistence/subject-builder/CascadesSubjectBuilder.d.ts +0 -20
  332. package/client/lib/typeorm/persistence/subject-builder/ManyToManySubjectBuilder.d.ts +0 -35
  333. package/client/lib/typeorm/persistence/subject-builder/OneToManySubjectBuilder.d.ts +0 -28
  334. package/client/lib/typeorm/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.d.ts +0 -28
  335. package/client/lib/typeorm/persistence/tree/ClosureSubjectExecutor.d.ts +0 -27
  336. package/client/lib/typeorm/persistence/tree/MaterializedPathSubjectExecutor.d.ts +0 -19
  337. package/client/lib/typeorm/persistence/tree/NestedSetSubjectExecutor.d.ts +0 -39
  338. package/client/lib/typeorm/platform/PlatformTools.d.ts +0 -65
  339. package/client/lib/typeorm/query-builder/Alias.d.ts +0 -23
  340. package/client/lib/typeorm/query-builder/Brackets.d.ts +0 -17
  341. package/client/lib/typeorm/query-builder/DeleteQueryBuilder.d.ts +0 -92
  342. package/client/lib/typeorm/query-builder/InsertOrUpdateOptions.d.ts +0 -4
  343. package/client/lib/typeorm/query-builder/InsertQueryBuilder.d.ts +0 -118
  344. package/client/lib/typeorm/query-builder/JoinAttribute.d.ts +0 -84
  345. package/client/lib/typeorm/query-builder/NotBrackets.d.ts +0 -9
  346. package/client/lib/typeorm/query-builder/QueryBuilder.d.ts +0 -268
  347. package/client/lib/typeorm/query-builder/QueryBuilderCte.d.ts +0 -18
  348. package/client/lib/typeorm/query-builder/QueryBuilderUtils.d.ts +0 -11
  349. package/client/lib/typeorm/query-builder/QueryExpressionMap.d.ts +0 -306
  350. package/client/lib/typeorm/query-builder/QueryPartialEntity.d.ts +0 -16
  351. package/client/lib/typeorm/query-builder/RelationIdLoader.d.ts +0 -71
  352. package/client/lib/typeorm/query-builder/RelationLoader.d.ts +0 -60
  353. package/client/lib/typeorm/query-builder/RelationQueryBuilder.d.ts +0 -70
  354. package/client/lib/typeorm/query-builder/RelationRemover.d.ts +0 -17
  355. package/client/lib/typeorm/query-builder/RelationUpdater.d.ts +0 -17
  356. package/client/lib/typeorm/query-builder/ReturningResultsEntityUpdator.d.ts +0 -31
  357. package/client/lib/typeorm/query-builder/SelectQuery.d.ts +0 -6
  358. package/client/lib/typeorm/query-builder/SelectQueryBuilder.d.ts +0 -665
  359. package/client/lib/typeorm/query-builder/SelectQueryBuilderOption.d.ts +0 -2
  360. package/client/lib/typeorm/query-builder/SoftDeleteQueryBuilder.d.ts +0 -139
  361. package/client/lib/typeorm/query-builder/UpdateQueryBuilder.d.ts +0 -144
  362. package/client/lib/typeorm/query-builder/WhereClause.d.ts +0 -17
  363. package/client/lib/typeorm/query-builder/WhereExpressionBuilder.d.ts +0 -127
  364. package/client/lib/typeorm/query-builder/relation-count/RelationCountAttribute.d.ts +0 -54
  365. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoadResult.d.ts +0 -9
  366. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoader.d.ts +0 -12
  367. package/client/lib/typeorm/query-builder/relation-count/RelationCountMetadataToAttributeTransformer.d.ts +0 -8
  368. package/client/lib/typeorm/query-builder/relation-id/RelationIdAttribute.d.ts +0 -65
  369. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoadResult.d.ts +0 -6
  370. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoader.d.ts +0 -12
  371. package/client/lib/typeorm/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.d.ts +0 -8
  372. package/client/lib/typeorm/query-builder/result/DeleteResult.d.ts +0 -17
  373. package/client/lib/typeorm/query-builder/result/InsertResult.d.ts +0 -23
  374. package/client/lib/typeorm/query-builder/result/UpdateResult.d.ts +0 -27
  375. package/client/lib/typeorm/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.d.ts +0 -13
  376. package/client/lib/typeorm/query-builder/transformer/PlainObjectToNewEntityTransformer.d.ts +0 -15
  377. package/client/lib/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer.d.ts +0 -56
  378. package/client/lib/typeorm/query-runner/BaseQueryRunner.d.ts +0 -204
  379. package/client/lib/typeorm/query-runner/QueryResult.d.ts +0 -18
  380. package/client/lib/typeorm/query-runner/QueryRunner.d.ts +0 -359
  381. package/client/lib/typeorm/relation-path.d.ts +0 -7
  382. package/client/lib/typeorm/repository/AbstractRepository.d.ts +0 -52
  383. package/client/lib/typeorm/repository/BaseEntity.d.ts +0 -298
  384. package/client/lib/typeorm/repository/FindTreesOptions.d.ts +0 -10
  385. package/client/lib/typeorm/repository/RemoveOptions.d.ts +0 -28
  386. package/client/lib/typeorm/repository/Repository.d.ts +0 -292
  387. package/client/lib/typeorm/repository/SaveOptions.d.ts +0 -36
  388. package/client/lib/typeorm/repository/TreeRepository.d.ts +0 -56
  389. package/client/lib/typeorm/repository/UpsertOptions.d.ts +0 -11
  390. package/client/lib/typeorm/schema-builder/RdbmsSchemaBuilder.d.ts +0 -145
  391. package/client/lib/typeorm/schema-builder/SchemaBuilder.d.ts +0 -15
  392. package/client/lib/typeorm/schema-builder/options/TableCheckOptions.d.ts +0 -18
  393. package/client/lib/typeorm/schema-builder/options/TableColumnOptions.d.ts +0 -123
  394. package/client/lib/typeorm/schema-builder/options/TableExclusionOptions.d.ts +0 -14
  395. package/client/lib/typeorm/schema-builder/options/TableForeignKeyOptions.d.ts +0 -45
  396. package/client/lib/typeorm/schema-builder/options/TableIndexOptions.d.ts +0 -45
  397. package/client/lib/typeorm/schema-builder/options/TableOptions.d.ts +0 -62
  398. package/client/lib/typeorm/schema-builder/options/TableUniqueOptions.d.ts +0 -19
  399. package/client/lib/typeorm/schema-builder/options/ViewOptions.d.ts +0 -27
  400. package/client/lib/typeorm/schema-builder/table/Table.d.ts +0 -143
  401. package/client/lib/typeorm/schema-builder/table/TableCheck.d.ts +0 -30
  402. package/client/lib/typeorm/schema-builder/table/TableColumn.d.ts +0 -127
  403. package/client/lib/typeorm/schema-builder/table/TableExclusion.d.ts +0 -26
  404. package/client/lib/typeorm/schema-builder/table/TableForeignKey.d.ts +0 -58
  405. package/client/lib/typeorm/schema-builder/table/TableIndex.d.ts +0 -57
  406. package/client/lib/typeorm/schema-builder/table/TableUnique.d.ts +0 -31
  407. package/client/lib/typeorm/schema-builder/util/TableUtils.d.ts +0 -7
  408. package/client/lib/typeorm/schema-builder/util/ViewUtils.d.ts +0 -8
  409. package/client/lib/typeorm/schema-builder/view/View.d.ts +0 -38
  410. package/client/lib/typeorm/subscriber/Broadcaster.d.ts +0 -168
  411. package/client/lib/typeorm/subscriber/BroadcasterResult.d.ts +0 -18
  412. package/client/lib/typeorm/subscriber/EntitySubscriberInterface.d.ts +0 -93
  413. package/client/lib/typeorm/subscriber/event/InsertEvent.d.ts +0 -32
  414. package/client/lib/typeorm/subscriber/event/LoadEvent.d.ts +0 -32
  415. package/client/lib/typeorm/subscriber/event/RecoverEvent.d.ts +0 -7
  416. package/client/lib/typeorm/subscriber/event/RemoveEvent.d.ts +0 -41
  417. package/client/lib/typeorm/subscriber/event/SoftRemoveEvent.d.ts +0 -7
  418. package/client/lib/typeorm/subscriber/event/TransactionCommitEvent.d.ts +0 -23
  419. package/client/lib/typeorm/subscriber/event/TransactionRollbackEvent.d.ts +0 -23
  420. package/client/lib/typeorm/subscriber/event/TransactionStartEvent.d.ts +0 -23
  421. package/client/lib/typeorm/subscriber/event/UpdateEvent.d.ts +0 -47
  422. package/client/lib/typeorm/util/ApplyValueTransformers.d.ts +0 -6
  423. package/client/lib/typeorm/util/DateUtils.d.ts +0 -59
  424. package/client/lib/typeorm/util/DepGraph.d.ts +0 -65
  425. package/client/lib/typeorm/util/DirectoryExportedClassesLoader.d.ts +0 -10
  426. package/client/lib/typeorm/util/ImportUtils.d.ts +0 -2
  427. package/client/lib/typeorm/util/InstanceChecker.d.ts +0 -60
  428. package/client/lib/typeorm/util/ObjectUtils.d.ts +0 -38
  429. package/client/lib/typeorm/util/OrmUtils.d.ts +0 -53
  430. package/client/lib/typeorm/util/PathUtils.d.ts +0 -11
  431. package/client/lib/typeorm/util/RandomGenerator.d.ts +0 -16
  432. package/client/lib/typeorm/util/StringUtils.d.ts +0 -64
  433. package/client/lib/typeorm/util/TreeRepositoryUtils.d.ts +0 -24
  434. package/client/lib/typeorm/util/VersionUtils.d.ts +0 -5
  435. package/client/lib/typeorm/util/escapeRegExp.d.ts +0 -2
  436. package/client/public-api.d.ts +0 -2
@@ -1,168 +0,0 @@
1
- // @ts-nocheck
2
- import { EntitySubscriberInterface } from "./EntitySubscriberInterface";
3
- import { ObjectLiteral } from "../common/ObjectLiteral";
4
- import { QueryRunner } from "../query-runner/QueryRunner";
5
- import { EntityMetadata } from "../metadata/EntityMetadata";
6
- import { BroadcasterResult } from "./BroadcasterResult";
7
- import { ColumnMetadata } from "../metadata/ColumnMetadata";
8
- import { RelationMetadata } from "../metadata/RelationMetadata";
9
- interface BroadcasterEvents {
10
- BeforeTransactionCommit: () => void;
11
- AfterTransactionCommit: () => void;
12
- BeforeTransactionStart: () => void;
13
- AfterTransactionStart: () => void;
14
- BeforeTransactionRollback: () => void;
15
- AfterTransactionRollback: () => void;
16
- BeforeUpdate: (metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral, updatedColumns?: ColumnMetadata[], updatedRelations?: RelationMetadata[]) => void;
17
- AfterUpdate: (metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral, updatedColumns?: ColumnMetadata[], updatedRelations?: RelationMetadata[]) => void;
18
- BeforeInsert: (metadata: EntityMetadata, entity: ObjectLiteral | undefined) => void;
19
- AfterInsert: (metadata: EntityMetadata, entity: ObjectLiteral | undefined) => void;
20
- BeforeRemove: (metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral) => void;
21
- AfterRemove: (metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral) => void;
22
- BeforeSoftRemove: (metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral) => void;
23
- AfterSoftRemove: (metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral) => void;
24
- BeforeRecover: (metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral) => void;
25
- AfterRecover: (metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral) => void;
26
- Load: (metadata: EntityMetadata, entities: ObjectLiteral[]) => void;
27
- }
28
- /**
29
- * Broadcaster provides a helper methods to broadcast events to the subscribers.
30
- */
31
- export declare class Broadcaster {
32
- private queryRunner;
33
- constructor(queryRunner: QueryRunner);
34
- broadcast<U extends keyof BroadcasterEvents>(event: U, ...args: Parameters<BroadcasterEvents[U]>): Promise<void>;
35
- /**
36
- * Broadcasts "BEFORE_INSERT" event.
37
- * Before insert event is executed before entity is being inserted to the database for the first time.
38
- * All subscribers and entity listeners who listened to this event will be executed at this point.
39
- * Subscribers and entity listeners can return promises, it will wait until they are resolved.
40
- *
41
- * Note: this method has a performance-optimized code organization, do not change code structure.
42
- */
43
- broadcastBeforeInsertEvent(result: BroadcasterResult, metadata: EntityMetadata, entity: undefined | ObjectLiteral): void;
44
- /**
45
- * Broadcasts "BEFORE_UPDATE" event.
46
- * Before update event is executed before entity is being updated in the database.
47
- * All subscribers and entity listeners who listened to this event will be executed at this point.
48
- * Subscribers and entity listeners can return promises, it will wait until they are resolved.
49
- *
50
- * Note: this method has a performance-optimized code organization, do not change code structure.
51
- */
52
- broadcastBeforeUpdateEvent(result: BroadcasterResult, metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral, updatedColumns?: ColumnMetadata[], updatedRelations?: RelationMetadata[]): void;
53
- /**
54
- * Broadcasts "BEFORE_REMOVE" event.
55
- * Before remove event is executed before entity is being removed from the database.
56
- * All subscribers and entity listeners who listened to this event will be executed at this point.
57
- * Subscribers and entity listeners can return promises, it will wait until they are resolved.
58
- *
59
- * Note: this method has a performance-optimized code organization, do not change code structure.
60
- */
61
- broadcastBeforeRemoveEvent(result: BroadcasterResult, metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral): void;
62
- /**
63
- * Broadcasts "BEFORE_SOFT_REMOVE" event.
64
- * Before soft remove event is executed before entity is being soft removed from the database.
65
- * All subscribers and entity listeners who listened to this event will be executed at this point.
66
- * Subscribers and entity listeners can return promises, it will wait until they are resolved.
67
- *
68
- * Note: this method has a performance-optimized code organization, do not change code structure.
69
- */
70
- broadcastBeforeSoftRemoveEvent(result: BroadcasterResult, metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral): void;
71
- /**
72
- * Broadcasts "BEFORE_RECOVER" event.
73
- * Before recover event is executed before entity is being recovered in the database.
74
- * All subscribers and entity listeners who listened to this event will be executed at this point.
75
- * Subscribers and entity listeners can return promises, it will wait until they are resolved.
76
- *
77
- * Note: this method has a performance-optimized code organization, do not change code structure.
78
- */
79
- broadcastBeforeRecoverEvent(result: BroadcasterResult, metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral): void;
80
- /**
81
- * Broadcasts "AFTER_INSERT" event.
82
- * After insert event is executed after entity is being persisted to the database for the first time.
83
- * All subscribers and entity listeners who listened to this event will be executed at this point.
84
- * Subscribers and entity listeners can return promises, it will wait until they are resolved.
85
- *
86
- * Note: this method has a performance-optimized code organization, do not change code structure.
87
- */
88
- broadcastAfterInsertEvent(result: BroadcasterResult, metadata: EntityMetadata, entity?: ObjectLiteral): void;
89
- /**
90
- * Broadcasts "BEFORE_TRANSACTION_START" event.
91
- */
92
- broadcastBeforeTransactionStartEvent(result: BroadcasterResult): void;
93
- /**
94
- * Broadcasts "AFTER_TRANSACTION_START" event.
95
- */
96
- broadcastAfterTransactionStartEvent(result: BroadcasterResult): void;
97
- /**
98
- * Broadcasts "BEFORE_TRANSACTION_COMMIT" event.
99
- */
100
- broadcastBeforeTransactionCommitEvent(result: BroadcasterResult): void;
101
- /**
102
- * Broadcasts "AFTER_TRANSACTION_COMMIT" event.
103
- */
104
- broadcastAfterTransactionCommitEvent(result: BroadcasterResult): void;
105
- /**
106
- * Broadcasts "BEFORE_TRANSACTION_ROLLBACK" event.
107
- */
108
- broadcastBeforeTransactionRollbackEvent(result: BroadcasterResult): void;
109
- /**
110
- * Broadcasts "AFTER_TRANSACTION_ROLLBACK" event.
111
- */
112
- broadcastAfterTransactionRollbackEvent(result: BroadcasterResult): void;
113
- /**
114
- * Broadcasts "AFTER_UPDATE" event.
115
- * After update event is executed after entity is being updated in the database.
116
- * All subscribers and entity listeners who listened to this event will be executed at this point.
117
- * Subscribers and entity listeners can return promises, it will wait until they are resolved.
118
- *
119
- * Note: this method has a performance-optimized code organization, do not change code structure.
120
- */
121
- broadcastAfterUpdateEvent(result: BroadcasterResult, metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral, updatedColumns?: ColumnMetadata[], updatedRelations?: RelationMetadata[]): void;
122
- /**
123
- * Broadcasts "AFTER_REMOVE" event.
124
- * After remove event is executed after entity is being removed from the database.
125
- * All subscribers and entity listeners who listened to this event will be executed at this point.
126
- * Subscribers and entity listeners can return promises, it will wait until they are resolved.
127
- *
128
- * Note: this method has a performance-optimized code organization, do not change code structure.
129
- */
130
- broadcastAfterRemoveEvent(result: BroadcasterResult, metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral): void;
131
- /**
132
- * Broadcasts "AFTER_SOFT_REMOVE" event.
133
- * After soft remove event is executed after entity is being soft removed from the database.
134
- * All subscribers and entity listeners who listened to this event will be executed at this point.
135
- * Subscribers and entity listeners can return promises, it will wait until they are resolved.
136
- *
137
- * Note: this method has a performance-optimized code organization, do not change code structure.
138
- */
139
- broadcastAfterSoftRemoveEvent(result: BroadcasterResult, metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral): void;
140
- /**
141
- * Broadcasts "AFTER_RECOVER" event.
142
- * After recover event is executed after entity is being recovered in the database.
143
- * All subscribers and entity listeners who listened to this event will be executed at this point.
144
- * Subscribers and entity listeners can return promises, it will wait until they are resolved.
145
- *
146
- * Note: this method has a performance-optimized code organization, do not change code structure.
147
- */
148
- broadcastAfterRecoverEvent(result: BroadcasterResult, metadata: EntityMetadata, entity?: ObjectLiteral, databaseEntity?: ObjectLiteral): void;
149
- /**
150
- * @deprecated Use `broadcastLoadForAllEvent`
151
- */
152
- broadcastLoadEventsForAll(result: BroadcasterResult, metadata: EntityMetadata, entities: ObjectLiteral[]): void;
153
- /**
154
- * Broadcasts "AFTER_LOAD" event for all given entities, and their sub-entities.
155
- * After load event is executed after entity has been loaded from the database.
156
- * All subscribers and entity listeners who listened to this event will be executed at this point.
157
- * Subscribers and entity listeners can return promises, it will wait until they are resolved.
158
- *
159
- * Note: this method has a performance-optimized code organization, do not change code structure.
160
- */
161
- broadcastLoadEvent(result: BroadcasterResult, metadata: EntityMetadata, entities: ObjectLiteral[]): void;
162
- /**
163
- * Checks if subscriber's methods can be executed by checking if its don't listen to the particular entity,
164
- * or listens our entity.
165
- */
166
- protected isAllowedSubscriber(subscriber: EntitySubscriberInterface<any>, target: Function | string): boolean;
167
- }
168
- export {};
@@ -1,18 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Broadcaster execution result - promises executed by operations and number of executed listeners and subscribers.
4
- */
5
- export declare class BroadcasterResult {
6
- /**
7
- * Number of executed listeners and subscribers.
8
- */
9
- count: number;
10
- /**
11
- * Promises returned by listeners and subscribers which needs to be awaited.
12
- */
13
- promises: Promise<any>[];
14
- /**
15
- * Wait for all promises to settle
16
- */
17
- wait(): Promise<BroadcasterResult>;
18
- }
@@ -1,93 +0,0 @@
1
- // @ts-nocheck
2
- import { TransactionCommitEvent } from "./event/TransactionCommitEvent";
3
- import { TransactionRollbackEvent } from "./event/TransactionRollbackEvent";
4
- import { TransactionStartEvent } from "./event/TransactionStartEvent";
5
- import { UpdateEvent } from "./event/UpdateEvent";
6
- import { RemoveEvent } from "./event/RemoveEvent";
7
- import { InsertEvent } from "./event/InsertEvent";
8
- import { LoadEvent } from "./event/LoadEvent";
9
- import { SoftRemoveEvent } from "./event/SoftRemoveEvent";
10
- import { RecoverEvent } from "./event/RecoverEvent";
11
- /**
12
- * Classes that implement this interface are subscribers that subscribe for the specific events in the ORM.
13
- */
14
- export interface EntitySubscriberInterface<Entity = any> {
15
- /**
16
- * Returns the class of the entity to which events will listen.
17
- * If this method is omitted, then subscriber will listen to events of all entities.
18
- */
19
- listenTo?(): Function | string;
20
- /**
21
- * Called after entity is loaded from the database.
22
- *
23
- * For backward compatibility this signature is slightly different from the
24
- * others. `event` was added later but is always provided (it is only
25
- * optional in the signature so that its introduction does not break
26
- * compilation for existing subscribers).
27
- */
28
- afterLoad?(entity: Entity, event?: LoadEvent<Entity>): Promise<any> | void;
29
- /**
30
- * Called before entity is inserted to the database.
31
- */
32
- beforeInsert?(event: InsertEvent<Entity>): Promise<any> | void;
33
- /**
34
- * Called after entity is inserted to the database.
35
- */
36
- afterInsert?(event: InsertEvent<Entity>): Promise<any> | void;
37
- /**
38
- * Called before entity is updated in the database.
39
- */
40
- beforeUpdate?(event: UpdateEvent<Entity>): Promise<any> | void;
41
- /**
42
- * Called after entity is updated in the database.
43
- */
44
- afterUpdate?(event: UpdateEvent<Entity>): Promise<any> | void;
45
- /**
46
- * Called before entity is removed from the database.
47
- */
48
- beforeRemove?(event: RemoveEvent<Entity>): Promise<any> | void;
49
- /**
50
- * Called before entity is soft removed from the database.
51
- */
52
- beforeSoftRemove?(event: SoftRemoveEvent<Entity>): Promise<any> | void;
53
- /**
54
- * Called before entity is recovered in the database.
55
- */
56
- beforeRecover?(event: RecoverEvent<Entity>): Promise<any> | void;
57
- /**
58
- * Called after entity is removed from the database.
59
- */
60
- afterRemove?(event: RemoveEvent<Entity>): Promise<any> | void;
61
- /**
62
- * Called after entity is soft removed from the database.
63
- */
64
- afterSoftRemove?(event: SoftRemoveEvent<Entity>): Promise<any> | void;
65
- /**
66
- * Called after entity is recovered in the database.
67
- */
68
- afterRecover?(event: RecoverEvent<Entity>): Promise<any> | void;
69
- /**
70
- * Called before transaction is started.
71
- */
72
- beforeTransactionStart?(event: TransactionStartEvent): Promise<any> | void;
73
- /**
74
- * Called after transaction is started.
75
- */
76
- afterTransactionStart?(event: TransactionStartEvent): Promise<any> | void;
77
- /**
78
- * Called before transaction is committed.
79
- */
80
- beforeTransactionCommit?(event: TransactionCommitEvent): Promise<any> | void;
81
- /**
82
- * Called after transaction is committed.
83
- */
84
- afterTransactionCommit?(event: TransactionCommitEvent): Promise<any> | void;
85
- /**
86
- * Called before transaction rollback.
87
- */
88
- beforeTransactionRollback?(event: TransactionRollbackEvent): Promise<any> | void;
89
- /**
90
- * Called after transaction rollback.
91
- */
92
- afterTransactionRollback?(event: TransactionRollbackEvent): Promise<any> | void;
93
- }
@@ -1,32 +0,0 @@
1
- // @ts-nocheck
2
- import { EntityManager } from "../../entity-manager/EntityManager";
3
- import { DataSource } from "../../data-source/DataSource";
4
- import { QueryRunner } from "../../query-runner/QueryRunner";
5
- import { EntityMetadata } from "../../metadata/EntityMetadata";
6
- /**
7
- * InsertEvent is an object that broadcaster sends to the entity subscriber when entity is inserted to the database.
8
- */
9
- export interface InsertEvent<Entity> {
10
- /**
11
- * Connection used in the event.
12
- */
13
- connection: DataSource;
14
- /**
15
- * QueryRunner used in the event transaction.
16
- * All database operations in the subscribed event listener should be performed using this query runner instance.
17
- */
18
- queryRunner: QueryRunner;
19
- /**
20
- * EntityManager used in the event transaction.
21
- * All database operations in the subscribed event listener should be performed using this entity manager instance.
22
- */
23
- manager: EntityManager;
24
- /**
25
- * Inserting event.
26
- */
27
- entity: Entity;
28
- /**
29
- * Metadata of the entity.
30
- */
31
- metadata: EntityMetadata;
32
- }
@@ -1,32 +0,0 @@
1
- // @ts-nocheck
2
- import { EntityManager } from "../../entity-manager/EntityManager";
3
- import { DataSource } from "../../data-source/DataSource";
4
- import { QueryRunner } from "../../query-runner/QueryRunner";
5
- import { EntityMetadata } from "../../metadata/EntityMetadata";
6
- /**
7
- * LoadEvent is an object that broadcaster sends to the entity subscriber when an entity is loaded from the database.
8
- */
9
- export interface LoadEvent<Entity> {
10
- /**
11
- * Connection used in the event.
12
- */
13
- connection: DataSource;
14
- /**
15
- * QueryRunner used in the event transaction.
16
- * All database operations in the subscribed event listener should be performed using this query runner instance.
17
- */
18
- queryRunner: QueryRunner;
19
- /**
20
- * EntityManager used in the event transaction.
21
- * All database operations in the subscribed event listener should be performed using this entity manager instance.
22
- */
23
- manager: EntityManager;
24
- /**
25
- * Loaded entity.
26
- */
27
- entity: Entity;
28
- /**
29
- * Metadata of the entity.
30
- */
31
- metadata: EntityMetadata;
32
- }
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { RemoveEvent } from "./RemoveEvent";
3
- /**
4
- * RecoverEvent is an object that broadcaster sends to the entity subscriber when entity is being recovered in the database.
5
- */
6
- export interface RecoverEvent<Entity> extends RemoveEvent<Entity> {
7
- }
@@ -1,41 +0,0 @@
1
- // @ts-nocheck
2
- import { EntityManager } from "../../entity-manager/EntityManager";
3
- import { DataSource } from "../../data-source/DataSource";
4
- import { QueryRunner } from "../../query-runner/QueryRunner";
5
- import { EntityMetadata } from "../../metadata/EntityMetadata";
6
- /**
7
- * RemoveEvent is an object that broadcaster sends to the entity subscriber when entity is being removed to the database.
8
- */
9
- export interface RemoveEvent<Entity> {
10
- /**
11
- * Connection used in the event.
12
- */
13
- connection: DataSource;
14
- /**
15
- * QueryRunner used in the event transaction.
16
- * All database operations in the subscribed event listener should be performed using this query runner instance.
17
- */
18
- queryRunner: QueryRunner;
19
- /**
20
- * EntityManager used in the event transaction.
21
- * All database operations in the subscribed event listener should be performed using this entity manager instance.
22
- */
23
- manager: EntityManager;
24
- /**
25
- * Entity that is being removed.
26
- * This may absent if entity is removed without being loaded (for examples by cascades).
27
- */
28
- entity?: Entity;
29
- /**
30
- * Metadata of the entity.
31
- */
32
- metadata: EntityMetadata;
33
- /**
34
- * Database representation of entity that is being removed.
35
- */
36
- databaseEntity: Entity;
37
- /**
38
- * Id or ids of the entity that is being removed.
39
- */
40
- entityId?: any;
41
- }
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { RemoveEvent } from "./RemoveEvent";
3
- /**
4
- * SoftRemoveEvent is an object that broadcaster sends to the entity subscriber when entity is being soft removed to the database.
5
- */
6
- export interface SoftRemoveEvent<Entity> extends RemoveEvent<Entity> {
7
- }
@@ -1,23 +0,0 @@
1
- // @ts-nocheck
2
- import { EntityManager } from "../../entity-manager/EntityManager";
3
- import { DataSource } from "../../data-source/DataSource";
4
- import { QueryRunner } from "../../query-runner/QueryRunner";
5
- /**
6
- * TransactionCommitEvent is an object that broadcaster sends to the entity subscriber when an transaction is committed.
7
- */
8
- export interface TransactionCommitEvent {
9
- /**
10
- * Connection used in the event.
11
- */
12
- connection: DataSource;
13
- /**
14
- * QueryRunner used in the event transaction.
15
- * All database operations in the subscribed event listener should be performed using this query runner instance.
16
- */
17
- queryRunner: QueryRunner;
18
- /**
19
- * EntityManager used in the event transaction.
20
- * All database operations in the subscribed event listener should be performed using this entity manager instance.
21
- */
22
- manager: EntityManager;
23
- }
@@ -1,23 +0,0 @@
1
- // @ts-nocheck
2
- import { EntityManager } from "../../entity-manager/EntityManager";
3
- import { DataSource } from "../../data-source/DataSource";
4
- import { QueryRunner } from "../../query-runner/QueryRunner";
5
- /**
6
- * TransactionRollbackEvent is an object that broadcaster sends to the entity subscriber on transaction rollback.
7
- */
8
- export interface TransactionRollbackEvent {
9
- /**
10
- * Connection used in the event.
11
- */
12
- connection: DataSource;
13
- /**
14
- * QueryRunner used in the event transaction.
15
- * All database operations in the subscribed event listener should be performed using this query runner instance.
16
- */
17
- queryRunner: QueryRunner;
18
- /**
19
- * EntityManager used in the event transaction.
20
- * All database operations in the subscribed event listener should be performed using this entity manager instance.
21
- */
22
- manager: EntityManager;
23
- }
@@ -1,23 +0,0 @@
1
- // @ts-nocheck
2
- import { EntityManager } from "../../entity-manager/EntityManager";
3
- import { DataSource } from "../../data-source/DataSource";
4
- import { QueryRunner } from "../../query-runner/QueryRunner";
5
- /**
6
- * TransactionStartEvent is an object that broadcaster sends to the entity subscriber before transaction is started.
7
- */
8
- export interface TransactionStartEvent {
9
- /**
10
- * Connection used in the event.
11
- */
12
- connection: DataSource;
13
- /**
14
- * QueryRunner used in the event transaction.
15
- * All database operations in the subscribed event listener should be performed using this query runner instance.
16
- */
17
- queryRunner: QueryRunner;
18
- /**
19
- * EntityManager used in the event transaction.
20
- * All database operations in the subscribed event listener should be performed using this entity manager instance.
21
- */
22
- manager: EntityManager;
23
- }
@@ -1,47 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnMetadata } from "../../metadata/ColumnMetadata";
3
- import { RelationMetadata } from "../../metadata/RelationMetadata";
4
- import { EntityManager } from "../../entity-manager/EntityManager";
5
- import { QueryRunner } from "../../query-runner/QueryRunner";
6
- import { DataSource } from "../../data-source/DataSource";
7
- import { EntityMetadata } from "../../metadata/EntityMetadata";
8
- import { ObjectLiteral } from "../../common/ObjectLiteral";
9
- /**
10
- * UpdateEvent is an object that broadcaster sends to the entity subscriber when entity is being updated in the database.
11
- */
12
- export interface UpdateEvent<Entity> {
13
- /**
14
- * Connection used in the event.
15
- */
16
- connection: DataSource;
17
- /**
18
- * QueryRunner used in the event transaction.
19
- * All database operations in the subscribed event listener should be performed using this query runner instance.
20
- */
21
- queryRunner: QueryRunner;
22
- /**
23
- * EntityManager used in the event transaction.
24
- * All database operations in the subscribed event listener should be performed using this entity manager instance.
25
- */
26
- manager: EntityManager;
27
- /**
28
- * Updating entity.
29
- */
30
- entity: ObjectLiteral | undefined;
31
- /**
32
- * Metadata of the entity.
33
- */
34
- metadata: EntityMetadata;
35
- /**
36
- * Updating entity in the database.
37
- */
38
- databaseEntity: Entity;
39
- /**
40
- * List of updated columns. In query builder has no affected
41
- */
42
- updatedColumns: ColumnMetadata[];
43
- /**
44
- * List of updated relations. In query builder has no affected
45
- */
46
- updatedRelations: RelationMetadata[];
47
- }
@@ -1,6 +0,0 @@
1
- // @ts-nocheck
2
- import { ValueTransformer } from "../decorator/options/ValueTransformer";
3
- export declare class ApplyValueTransformers {
4
- static transformFrom(transformer: ValueTransformer | ValueTransformer[], databaseValue: any): any;
5
- static transformTo(transformer: ValueTransformer | ValueTransformer[], entityValue: any): any;
6
- }
@@ -1,59 +0,0 @@
1
- // @ts-nocheck
2
- import { ColumnMetadata } from "../metadata/ColumnMetadata";
3
- /**
4
- * Provides utilities to transform hydrated and persisted data.
5
- */
6
- export declare class DateUtils {
7
- /**
8
- * Normalizes date object hydrated from the database.
9
- */
10
- static normalizeHydratedDate(mixedDate: Date | string | undefined): Date | string | undefined;
11
- /**
12
- * Converts given value into date string in a "YYYY-MM-DD" format.
13
- */
14
- static mixedDateToDateString(value: string | Date): string;
15
- /**
16
- * Converts given value into date object.
17
- */
18
- static mixedDateToDate(mixedDate: Date | string, toUtc?: boolean, useMilliseconds?: boolean): Date;
19
- /**
20
- * Converts given value into time string in a "HH:mm:ss" format.
21
- */
22
- static mixedDateToTimeString(value: Date | any, skipSeconds?: boolean): string | any;
23
- /**
24
- * Converts given value into time string in a "HH:mm:ss" format.
25
- */
26
- static mixedTimeToDate(value: Date | any): string | any;
27
- /**
28
- * Converts given string value with "-" separator into a "HH:mm:ss" format.
29
- */
30
- static mixedTimeToString(value: string | any, skipSeconds?: boolean): string | any;
31
- /**
32
- * Converts given value into datetime string in a "YYYY-MM-DD HH-mm-ss" format.
33
- */
34
- static mixedDateToDatetimeString(value: Date | any, useMilliseconds?: boolean): string | any;
35
- /**
36
- * Converts given value into utc datetime string in a "YYYY-MM-DD HH-mm-ss.sss" format.
37
- */
38
- static mixedDateToUtcDatetimeString(value: Date | any): string | any;
39
- /**
40
- * Converts each item in the given array to string joined by "," separator.
41
- */
42
- static simpleArrayToString(value: any[] | any): string[] | any;
43
- /**
44
- * Converts given string to simple array split by "," separator.
45
- */
46
- static stringToSimpleArray(value: string | any): string | any;
47
- static simpleJsonToString(value: any): string;
48
- static stringToSimpleJson(value: any): any;
49
- static simpleEnumToString(value: any): string;
50
- static stringToSimpleEnum(value: any, columnMetadata: ColumnMetadata): any;
51
- /**
52
- * Formats given number to "0x" format, e.g. if the totalLength = 2 and the value is 1 then it will return "01".
53
- */
54
- private static formatZerolessValue;
55
- /**
56
- * Formats given number to "0x" format, e.g. if it is 1 then it will return "01".
57
- */
58
- private static formatMilliseconds;
59
- }
@@ -1,65 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * This source code is from https://github.com/jriecken/dependency-graph
4
- * Just added "any" types here, wrapper everything into exported class.
5
- * We cant use a package itself because we want to package "everything-in-it" for the frontend users of TypeORM.
6
- */
7
- export declare class DepGraph {
8
- nodes: any;
9
- outgoingEdges: any;
10
- incomingEdges: any;
11
- /**
12
- * Add a node to the dependency graph. If a node already exists, this method will do nothing.
13
- */
14
- addNode(node: any, data?: any): void;
15
- /**
16
- * Remove a node from the dependency graph. If a node does not exist, this method will do nothing.
17
- */
18
- removeNode(node: any): void;
19
- /**
20
- * Check if a node exists in the graph
21
- */
22
- hasNode(node: any): any;
23
- /**
24
- * Get the data associated with a node name
25
- */
26
- getNodeData(node: any): any;
27
- /**
28
- * Set the associated data for a given node name. If the node does not exist, this method will throw an error
29
- */
30
- setNodeData(node: any, data: any): void;
31
- /**
32
- * Add a dependency between two nodes. If either of the nodes does not exist,
33
- * an Error will be thrown.
34
- */
35
- addDependency(from: any, to: any): boolean;
36
- /**
37
- * Remove a dependency between two nodes.
38
- */
39
- removeDependency(from: any, to: any): void;
40
- /**
41
- * Get an array containing the nodes that the specified node depends on (transitively).
42
- *
43
- * Throws an Error if the graph has a cycle, or the specified node does not exist.
44
- *
45
- * If `leavesOnly` is true, only nodes that do not depend on any other nodes will be returned
46
- * in the array.
47
- */
48
- dependenciesOf(node: any, leavesOnly: any): any[];
49
- /**
50
- * get an array containing the nodes that depend on the specified node (transitively).
51
- *
52
- * Throws an Error if the graph has a cycle, or the specified node does not exist.
53
- *
54
- * If `leavesOnly` is true, only nodes that do not have any dependants will be returned in the array.
55
- */
56
- dependantsOf(node: any, leavesOnly: any): any[];
57
- /**
58
- * Construct the overall processing order for the dependency graph.
59
- *
60
- * Throws an Error if the graph has a cycle.
61
- *
62
- * If `leavesOnly` is true, only nodes that do not depend on any other nodes will be returned.
63
- */
64
- overallOrder(leavesOnly?: any): any[];
65
- }