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,191 +0,0 @@
1
- // @ts-nocheck
2
- import { FindManyOptions } from "./FindManyOptions";
3
- import { FindOneOptions } from "./FindOneOptions";
4
- import { SelectQueryBuilder } from "../query-builder/SelectQueryBuilder";
5
- import { EntityMetadata } from "../metadata/EntityMetadata";
6
- import { FindTreeOptions } from "./FindTreeOptions";
7
- import { ObjectLiteral } from "../common/ObjectLiteral";
8
- /**
9
- * Utilities to work with FindOptions.
10
- */
11
- export declare class FindOptionsUtils {
12
- /**
13
- * Checks if given object is really instance of FindOneOptions interface.
14
- */
15
- static isFindOneOptions<Entity = any>(obj: any): obj is FindOneOptions<Entity>;
16
- /**
17
- * Checks if given object is really instance of FindManyOptions interface.
18
- */
19
- static isFindManyOptions<Entity = any>(obj: any): obj is FindManyOptions<Entity>;
20
- /**
21
- * Checks if given object is really instance of FindOptions interface.
22
- */
23
- static extractFindManyOptionsAlias(object: any): string | undefined;
24
- /**
25
- * Applies give find many options to the given query builder.
26
-
27
- static applyFindManyOptionsOrConditionsToQueryBuilder<T>(qb: SelectQueryBuilder<T>, options: FindManyOptions<T>|Partial<T>|undefined): SelectQueryBuilder<T> {
28
- if (this.isFindManyOptions(options))
29
- return this.applyOptionsToQueryBuilder(qb, options);
30
-
31
- if (options)
32
- return qb.where(options);
33
-
34
- return qb;
35
- }*/
36
- /**
37
- * Applies give find options to the given query builder.
38
-
39
- static applyOptionsToQueryBuilder<T>(qb: SelectQueryBuilder<T>, options: FindOneOptions<T>|FindManyOptions<T>|undefined): SelectQueryBuilder<T> {
40
-
41
- // if options are not set then simply return query builder. This is made for simplicity of usage.
42
- if (!options || (!this.isFindOneOptions(options) && !this.isFindManyOptions(options)))
43
- return qb;
44
-
45
- if (options.transaction === true) {
46
- qb.expressionMap.useTransaction = true;
47
- }
48
-
49
- if (!qb.expressionMap.mainAlias || !qb.expressionMap.mainAlias.hasMetadata)
50
- return qb;
51
-
52
- const metadata = qb.expressionMap.mainAlias!.metadata;
53
-
54
- // apply all options from FindOptions
55
- if (options.comment) {
56
- qb.comment(options.comment);
57
- }
58
-
59
- if (options.withDeleted) {
60
- qb.withDeleted();
61
- }
62
-
63
- if (options.select) {
64
- qb.select([]);
65
- options.select.forEach(select => {
66
- if (!metadata.hasColumnWithPropertyPath(`${select}`))
67
- throw new TypeORMError(`${select} column was not found in the ${metadata.name} entity.`);
68
-
69
- const columns = metadata.findColumnsWithPropertyPath(`${select}`);
70
-
71
- for (const column of columns) {
72
- qb.addSelect(qb.alias + "." + column.propertyPath);
73
- }
74
- });
75
- }
76
-
77
- if (options.relations) {
78
- // Copy because `applyRelationsRecursively` modifies it
79
- const allRelations = [...options.relations];
80
- this.applyRelationsRecursively(qb, allRelations, qb.expressionMap.mainAlias!.name, qb.expressionMap.mainAlias!.metadata, "");
81
- // recursive removes found relations from allRelations array
82
- // if there are relations left in this array it means those relations were not found in the entity structure
83
- // so, we give an exception about not found relations
84
- if (allRelations.length > 0)
85
- throw new FindRelationsNotFoundError(allRelations);
86
- }
87
-
88
- if (options.join) {
89
- if (options.join.leftJoin)
90
- Object.keys(options.join.leftJoin).forEach(key => {
91
- qb.leftJoin(options.join!.leftJoin![key], key);
92
- });
93
-
94
- if (options.join.innerJoin)
95
- Object.keys(options.join.innerJoin).forEach(key => {
96
- qb.innerJoin(options.join!.innerJoin![key], key);
97
- });
98
-
99
- if (options.join.leftJoinAndSelect)
100
- Object.keys(options.join.leftJoinAndSelect).forEach(key => {
101
- qb.leftJoinAndSelect(options.join!.leftJoinAndSelect![key], key);
102
- });
103
-
104
- if (options.join.innerJoinAndSelect)
105
- Object.keys(options.join.innerJoinAndSelect).forEach(key => {
106
- qb.innerJoinAndSelect(options.join!.innerJoinAndSelect![key], key);
107
- });
108
- }
109
-
110
- if (options.cache) {
111
- if (options.cache instanceof Object) {
112
- const cache = options.cache as { id: any, milliseconds: number };
113
- qb.cache(cache.id, cache.milliseconds);
114
- } else {
115
- qb.cache(options.cache);
116
- }
117
- }
118
-
119
- if (options.lock) {
120
- if (options.lock.mode === "optimistic") {
121
- qb.setLock(options.lock.mode, options.lock.version);
122
- } else if (
123
- options.lock.mode === "pessimistic_read" ||
124
- options.lock.mode === "pessimistic_write" ||
125
- options.lock.mode === "dirty_read" ||
126
- options.lock.mode === "pessimistic_partial_write" ||
127
- options.lock.mode === "pessimistic_write_or_fail" ||
128
- options.lock.mode === "for_no_key_update" ||
129
- options.lock.mode === "for_key_share"
130
- ) {
131
- const tableNames = options.lock.tables ? options.lock.tables.map((table) => {
132
- const tableAlias = qb.expressionMap.aliases.find((alias) => {
133
- return alias.metadata.tableNameWithoutPrefix === table;
134
- });
135
- if (!tableAlias) {
136
- throw new TypeORMError(`"${table}" is not part of this query`);
137
- }
138
- return qb.escape(tableAlias.name);
139
- }) : undefined;
140
- qb.setLock(options.lock.mode, undefined, tableNames);
141
- }
142
- }
143
-
144
- if (options.loadRelationIds === true) {
145
- qb.loadAllRelationIds();
146
-
147
- } else if (options.loadRelationIds instanceof Object) {
148
- qb.loadAllRelationIds(options.loadRelationIds as any);
149
- }
150
-
151
- if (options.where)
152
- qb.where(options.where);
153
-
154
- if ((options as FindManyOptions<T>).skip)
155
- qb.skip((options as FindManyOptions<T>).skip!);
156
-
157
- if ((options as FindManyOptions<T>).take)
158
- qb.take((options as FindManyOptions<T>).take!);
159
-
160
- if (options.order)
161
- Object.keys(options.order).forEach(key => {
162
- const order = ((options as FindOneOptions<T>).order as any)[key as any];
163
-
164
- if (!metadata.findColumnWithPropertyPath(key))
165
- throw new Error(`${key} column was not found in the ${metadata.name} entity.`);
166
-
167
- switch (order) {
168
- case 1:
169
- qb.addOrderBy(qb.alias + "." + key, "ASC");
170
- break;
171
- case -1:
172
- qb.addOrderBy(qb.alias + "." + key, "DESC");
173
- break;
174
- case "ASC":
175
- qb.addOrderBy(qb.alias + "." + key, "ASC");
176
- break;
177
- case "DESC":
178
- qb.addOrderBy(qb.alias + "." + key, "DESC");
179
- break;
180
- }
181
- });
182
-
183
- return qb;
184
- }*/
185
- static applyOptionsToTreeQueryBuilder<T extends ObjectLiteral>(qb: SelectQueryBuilder<T>, options?: FindTreeOptions): SelectQueryBuilder<T>;
186
- /**
187
- * Adds joins for all relations and sub-relations of the given relations provided in the find options.
188
- */
189
- static applyRelationsRecursively(qb: SelectQueryBuilder<any>, allRelations: string[], alias: string, metadata: EntityMetadata, prefix: string): void;
190
- static joinEagerRelations(qb: SelectQueryBuilder<any>, alias: string, metadata: EntityMetadata): void;
191
- }
@@ -1,14 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "./FindOperator";
3
- import { ObjectID } from "../driver/mongodb/typings";
4
- import { EqualOperator } from "./EqualOperator";
5
- /**
6
- * A single property handler for FindOptionsWhere.
7
- */
8
- export type FindOptionsWhereProperty<Property> = Property extends Promise<infer I> ? FindOptionsWhereProperty<NonNullable<I>> : Property extends Array<infer I> ? FindOptionsWhereProperty<NonNullable<I>> : Property extends Function ? never : Property extends Date ? Property | FindOperator<Property> : Property extends ObjectID ? Property | FindOperator<Property> : Property extends object ? FindOptionsWhere<Property> | FindOptionsWhere<Property>[] | EqualOperator<Property> | FindOperator<any> | boolean : Property | FindOperator<Property>;
9
- /** :
10
- * Used for find operations.
11
- */
12
- export type FindOptionsWhere<Entity> = {
13
- [P in keyof Entity]?: P extends "toString" ? unknown : FindOptionsWhereProperty<NonNullable<Entity[P]>>;
14
- };
@@ -1,14 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Defines a special criteria to find specific entities.
4
- */
5
- export interface FindTreeOptions {
6
- /**
7
- * Indicates what relations of entity should be loaded (simplified left join form).
8
- */
9
- relations?: string[];
10
- /**
11
- * When loading a tree from a TreeRepository, limits the depth of the descendents loaded
12
- */
13
- depth?: number;
14
- }
@@ -1,77 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Used to specify what entity relations should be loaded.
4
- *
5
- * Example:
6
- * const options: JoinOptions = {
7
- * alias: "photo",
8
- * leftJoin: {
9
- * author: "photo.author",
10
- * categories: "categories",
11
- * user: "categories.user",
12
- * profile: "user.profile"
13
- * },
14
- * innerJoin: {
15
- * author: "photo.author",
16
- * categories: "categories",
17
- * user: "categories.user",
18
- * profile: "user.profile"
19
- * },
20
- * leftJoinAndSelect: {
21
- * author: "photo.author",
22
- * categories: "categories",
23
- * user: "categories.user",
24
- * profile: "user.profile"
25
- * },
26
- * innerJoinAndSelect: {
27
- * author: "photo.author",
28
- * categories: "categories",
29
- * user: "categories.user",
30
- * profile: "user.profile"
31
- * }
32
- * };
33
- *
34
- * @deprecated
35
- */
36
- export interface JoinOptions {
37
- /**
38
- * Alias of the main entity.
39
- */
40
- alias: string;
41
- /**
42
- * Object where each key represents the LEFT JOIN alias,
43
- * and the corresponding value represents the relation path.
44
- *
45
- * The columns of the joined table are included in the selection.
46
- */
47
- leftJoinAndSelect?: {
48
- [key: string]: string;
49
- };
50
- /**
51
- * Object where each key represents the INNER JOIN alias,
52
- * and the corresponding value represents the relation path.
53
- *
54
- * The columns of the joined table are included in the selection.
55
- */
56
- innerJoinAndSelect?: {
57
- [key: string]: string;
58
- };
59
- /**
60
- * Object where each key represents the LEFT JOIN alias,
61
- * and the corresponding value represents the relation path.
62
- *
63
- * This method does not select the columns of the joined table.
64
- */
65
- leftJoin?: {
66
- [key: string]: string;
67
- };
68
- /**
69
- * Object where each key represents the INNER JOIN alias,
70
- * and the corresponding value represents the relation path.
71
- *
72
- * This method does not select the columns of the joined table.
73
- */
74
- innerJoin?: {
75
- [key: string]: string;
76
- };
77
- }
@@ -1,18 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Special object that defines order condition for ORDER BY in sql.
4
- *
5
- * Example:
6
- * {
7
- * "name": "ASC",
8
- * "id": "DESC"
9
- * }
10
- *
11
- * @deprecated
12
- */
13
- export type OrderByCondition = {
14
- [columnName: string]: ("ASC" | "DESC") | {
15
- order: "ASC" | "DESC";
16
- nulls?: "NULLS FIRST" | "NULLS LAST";
17
- };
18
- };
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * Find Options Operator.
5
- * Example: { someField: Any([...]) }
6
- */
7
- export declare function Any<T>(value: T[] | FindOperator<T>): FindOperator<T>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * FindOptions Operator.
5
- * Example: { someField: ArrayContainedBy([...]) }
6
- */
7
- export declare function ArrayContainedBy<T>(value: T[] | FindOperator<T>): FindOperator<any>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * FindOptions Operator.
5
- * Example: { someField: ArrayContains([...]) }
6
- */
7
- export declare function ArrayContains<T>(value: T[] | FindOperator<T>): FindOperator<any>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * FindOptions Operator.
5
- * Example: { someField: ArrayOverlap([...]) }
6
- */
7
- export declare function ArrayOverlap<T>(value: T[] | FindOperator<T>): FindOperator<any>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * Find Options Operator.
5
- * Example: { someField: Between(x, y) }
6
- */
7
- export declare function Between<T>(from: T | FindOperator<T>, to: T | FindOperator<T>): FindOperator<T>;
@@ -1,12 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- import { EqualOperator } from "../EqualOperator";
4
- /**
5
- * Find Options Operator.
6
- * This operator is handy to provide object value for non-relational properties of the Entity.
7
- *
8
- * Examples:
9
- * { someField: Equal("value") }
10
- * { uuid: Equal(new UUID()) }
11
- */
12
- export declare function Equal<T>(value: T | FindOperator<T>): EqualOperator<T>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * Find Options Operator.
5
- * Example: { someField: ILike("%SOME string%") }
6
- */
7
- export declare function ILike<T>(value: T | FindOperator<T>): FindOperator<T>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * Find Options Operator.
5
- * Example: { someField: In([...]) }
6
- */
7
- export declare function In<T>(value: T[] | FindOperator<T>): FindOperator<any>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * Find Options Operator.
5
- * Example: { someField: IsNull() }
6
- */
7
- export declare function IsNull(): FindOperator<any>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * Find Options Operator.
5
- * Example: { someField: LessThan(10) }
6
- */
7
- export declare function LessThan<T>(value: T | FindOperator<T>): FindOperator<T>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * Find Options Operator.
5
- * Example: { someField: LessThanOrEqual(10) }
6
- */
7
- export declare function LessThanOrEqual<T>(value: T | FindOperator<T>): FindOperator<T>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * Find Options Operator.
5
- * Example: { someField: Like("%some string%") }
6
- */
7
- export declare function Like<T>(value: T | FindOperator<T>): FindOperator<T>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * Find Options Operator.
5
- * Example: { someField: MoreThan(10) }
6
- */
7
- export declare function MoreThan<T>(value: T | FindOperator<T>): FindOperator<T>;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * Find Options Operator.
5
- * Example: { someField: MoreThanOrEqual(10) }
6
- */
7
- export declare function MoreThanOrEqual<T>(value: T | FindOperator<T>): FindOperator<T>;
@@ -1,8 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- /**
4
- * Find Options Operator.
5
- * Used to negate expression.
6
- * Example: { title: not("hello") } will return entities where title not equal to "hello".
7
- */
8
- export declare function Not<T>(value: T | FindOperator<T>): FindOperator<T>;
@@ -1,19 +0,0 @@
1
- // @ts-nocheck
2
- import { FindOperator } from "../FindOperator";
3
- import { ObjectLiteral } from "../../common/ObjectLiteral";
4
- /**
5
- * Find Options Operator.
6
- * Example: { someField: Raw("12") }
7
- */
8
- export declare function Raw<T>(value: string): FindOperator<any>;
9
- /**
10
- * Find Options Operator.
11
- * Example: { someField: Raw((columnAlias) => `${columnAlias} = 5`) }
12
- */
13
- export declare function Raw<T>(sqlGenerator: (columnAlias: string) => string): FindOperator<any>;
14
- /**
15
- * Find Options Operator.
16
- * For escaping parameters use next syntax:
17
- * Example: { someField: Raw((columnAlias) => `${columnAlias} = :value`, { value: 5 }) }
18
- */
19
- export declare function Raw<T>(sqlGenerator: (columnAlias: string) => string, parameters: ObjectLiteral): FindOperator<any>;
@@ -1,104 +0,0 @@
1
- // @ts-nocheck
2
- import { MetadataArgsStorage } from "./metadata-args/MetadataArgsStorage";
3
- import { DataSourceOptions } from "./data-source/DataSourceOptions";
4
- import { ConnectionManager } from "./connection/ConnectionManager";
5
- import { DataSource } from "./data-source/DataSource";
6
- import { EntityManager } from "./entity-manager/EntityManager";
7
- import { SqljsEntityManager } from "./entity-manager/SqljsEntityManager";
8
- import { EntityTarget } from "./common/EntityTarget";
9
- import { Repository } from "./repository/Repository";
10
- import { TreeRepository } from "./repository/TreeRepository";
11
- import { ObjectType } from "./common/ObjectType";
12
- import { SelectQueryBuilder } from "./query-builder/SelectQueryBuilder";
13
- import { ObjectLiteral } from "./common/ObjectLiteral";
14
- /**
15
- * Gets metadata args storage.
16
- */
17
- export declare function getMetadataArgsStorage(): MetadataArgsStorage;
18
- /**
19
- * Reads connection options stored in ormconfig configuration file.
20
- *
21
- * @deprecated
22
- */
23
- export declare function getConnectionOptions(connectionName?: string): Promise<DataSourceOptions>;
24
- /**
25
- * Gets a ConnectionManager which creates connections.
26
- *
27
- * @deprecated
28
- */
29
- export declare function getConnectionManager(): ConnectionManager;
30
- /**
31
- * Creates a new connection and registers it in the manager.
32
- * Only one connection from ormconfig will be created (name "default" or connection without name).
33
- *
34
- * @deprecated
35
- */
36
- export declare function createConnection(): Promise<DataSource>;
37
- /**
38
- * Creates a new connection from the ormconfig file with a given name.
39
- *
40
- * @deprecated
41
- */
42
- export declare function createConnection(name: string): Promise<DataSource>;
43
- /**
44
- * Creates a new connection and registers it in the manager.
45
- *
46
- * @deprecated
47
- */
48
- export declare function createConnection(options: DataSourceOptions): Promise<DataSource>;
49
- /**
50
- * Creates new connections and registers them in the manager.
51
- *
52
- * If connection options were not specified, then it will try to create connection automatically,
53
- * based on content of ormconfig (json/js/yml/xml/env) file or environment variables.
54
- * All connections from the ormconfig will be created.
55
- *
56
- * @deprecated
57
- */
58
- export declare function createConnections(options?: DataSourceOptions[]): Promise<DataSource[]>;
59
- /**
60
- * Gets connection from the connection manager.
61
- * If connection name wasn't specified, then "default" connection will be retrieved.
62
- *
63
- * @deprecated
64
- */
65
- export declare function getConnection(connectionName?: string): DataSource;
66
- /**
67
- * Gets entity manager from the connection.
68
- * If connection name wasn't specified, then "default" connection will be retrieved.
69
- *
70
- * @deprecated
71
- */
72
- export declare function getManager(connectionName?: string): EntityManager;
73
- /**
74
- * Gets Sqljs entity manager from connection name.
75
- * "default" connection is used, when no name is specified.
76
- * Only works when Sqljs driver is used.
77
- *
78
- * @deprecated
79
- */
80
- export declare function getSqljsManager(connectionName?: string): SqljsEntityManager;
81
- /**
82
- * Gets repository for the given entity class.
83
- *
84
- * @deprecated
85
- */
86
- export declare function getRepository<Entity extends ObjectLiteral>(entityClass: EntityTarget<Entity>, connectionName?: string): Repository<Entity>;
87
- /**
88
- * Gets tree repository for the given entity class.
89
- *
90
- * @deprecated
91
- */
92
- export declare function getTreeRepository<Entity extends ObjectLiteral>(entityClass: EntityTarget<Entity>, connectionName?: string): TreeRepository<Entity>;
93
- /**
94
- * Gets tree repository for the given entity class.
95
- *
96
- * @deprecated
97
- */
98
- export declare function getCustomRepository<T>(customRepository: ObjectType<T>, connectionName?: string): T;
99
- /**
100
- * Creates a new query builder.
101
- *
102
- * @deprecated
103
- */
104
- export declare function createQueryBuilder<Entity extends ObjectLiteral>(entityClass?: EntityTarget<Entity>, alias?: string, connectionName?: string): SelectQueryBuilder<Entity>;