taon-typeorm 19.0.21 → 19.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/browser/package.json +1 -1
  2. package/client/package.json +1 -1
  3. package/lib/build-info._auto-generated_.d.ts +1 -1
  4. package/lib/build-info._auto-generated_.js +1 -1
  5. package/lib/env/env.angular-node-app.d.ts +13 -0
  6. package/lib/env/env.angular-node-app.js +19 -0
  7. package/lib/env/env.angular-node-app.js.map +1 -0
  8. package/lib/env/env.electron-app.d.ts +13 -0
  9. package/lib/env/env.electron-app.js +19 -0
  10. package/lib/env/env.electron-app.js.map +1 -0
  11. package/lib/env/env.mobile-app.d.ts +13 -0
  12. package/lib/env/env.mobile-app.js +19 -0
  13. package/lib/env/env.mobile-app.js.map +1 -0
  14. package/lib/env/env.npm-lib-and-cli-tool.d.ts +13 -0
  15. package/lib/env/env.npm-lib-and-cli-tool.js +19 -0
  16. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
  17. package/lib/env/env.vscode-plugin.d.ts +13 -0
  18. package/lib/env/env.vscode-plugin.js +19 -0
  19. package/lib/env/env.vscode-plugin.js.map +1 -0
  20. package/lib/env/index.d.ts +5 -0
  21. package/lib/env/index.js +22 -0
  22. package/lib/env/index.js.map +1 -0
  23. package/package.json +1 -1
  24. package/websql/package.json +1 -1
  25. package/client/README.md +0 -24
  26. package/client/fesm2022/taon-typeorm.mjs +0 -30436
  27. package/client/fesm2022/taon-typeorm.mjs.map +0 -1
  28. package/client/index.d.ts +0 -6
  29. package/client/lib/index.d.ts +0 -2
  30. package/client/lib/typeorm/cache/DbQueryResultCache.d.ts +0 -53
  31. package/client/lib/typeorm/cache/QueryResultCache.d.ts +0 -40
  32. package/client/lib/typeorm/cache/QueryResultCacheFactory.d.ts +0 -14
  33. package/client/lib/typeorm/cache/QueryResultCacheOptions.d.ts +0 -27
  34. package/client/lib/typeorm/cache/RedisQueryResultCache.d.ts +0 -66
  35. package/client/lib/typeorm/common/DeepPartial.d.ts +0 -7
  36. package/client/lib/typeorm/common/EntityTarget.d.ts +0 -10
  37. package/client/lib/typeorm/common/MixedList.d.ts +0 -9
  38. package/client/lib/typeorm/common/ObjectLiteral.d.ts +0 -7
  39. package/client/lib/typeorm/common/ObjectType.d.ts +0 -7
  40. package/client/lib/typeorm/common/RelationType.d.ts +0 -15
  41. package/client/lib/typeorm/connection/Connection.d.ts +0 -11
  42. package/client/lib/typeorm/connection/ConnectionManager.d.ts +0 -34
  43. package/client/lib/typeorm/connection/ConnectionMetadataBuilder.d.ts +0 -25
  44. package/client/lib/typeorm/connection/ConnectionOptions.d.ts +0 -10
  45. package/client/lib/typeorm/connection/ConnectionOptionsReader.d.ts +0 -65
  46. package/client/lib/typeorm/constants.d.ts +0 -2
  47. package/client/lib/typeorm/container.d.ts +0 -40
  48. package/client/lib/typeorm/data-source/BaseDataSourceOptions.d.ts +0 -172
  49. package/client/lib/typeorm/data-source/DataSource.d.ts +0 -247
  50. package/client/lib/typeorm/data-source/DataSourceOptions.d.ts +0 -9
  51. package/client/lib/typeorm/data-source/index.d.ts +0 -3
  52. package/client/lib/typeorm/decorator/Check.d.ts +0 -13
  53. package/client/lib/typeorm/decorator/EntityRepository.d.ts +0 -10
  54. package/client/lib/typeorm/decorator/Exclusion.d.ts +0 -13
  55. package/client/lib/typeorm/decorator/Generated.d.ts +0 -11
  56. package/client/lib/typeorm/decorator/Index.d.ts +0 -50
  57. package/client/lib/typeorm/decorator/Unique.d.ts +0 -22
  58. package/client/lib/typeorm/decorator/columns/Column.d.ts +0 -75
  59. package/client/lib/typeorm/decorator/columns/CreateDateColumn.d.ts +0 -8
  60. package/client/lib/typeorm/decorator/columns/DeleteDateColumn.d.ts +0 -7
  61. package/client/lib/typeorm/decorator/columns/ObjectIdColumn.d.ts +0 -7
  62. package/client/lib/typeorm/decorator/columns/PrimaryColumn.d.ts +0 -22
  63. package/client/lib/typeorm/decorator/columns/PrimaryGeneratedColumn.d.ts +0 -25
  64. package/client/lib/typeorm/decorator/columns/UpdateDateColumn.d.ts +0 -7
  65. package/client/lib/typeorm/decorator/columns/VersionColumn.d.ts +0 -8
  66. package/client/lib/typeorm/decorator/columns/ViewColumn.d.ts +0 -6
  67. package/client/lib/typeorm/decorator/columns/VirtualColumn.d.ts +0 -11
  68. package/client/lib/typeorm/decorator/entity/ChildEntity.d.ts +0 -5
  69. package/client/lib/typeorm/decorator/entity/Entity.d.ts +0 -12
  70. package/client/lib/typeorm/decorator/entity/TableInheritance.d.ts +0 -9
  71. package/client/lib/typeorm/decorator/entity-view/ViewEntity.d.ts +0 -12
  72. package/client/lib/typeorm/decorator/listeners/AfterInsert.d.ts +0 -5
  73. package/client/lib/typeorm/decorator/listeners/AfterLoad.d.ts +0 -5
  74. package/client/lib/typeorm/decorator/listeners/AfterRecover.d.ts +0 -5
  75. package/client/lib/typeorm/decorator/listeners/AfterRemove.d.ts +0 -5
  76. package/client/lib/typeorm/decorator/listeners/AfterSoftRemove.d.ts +0 -5
  77. package/client/lib/typeorm/decorator/listeners/AfterUpdate.d.ts +0 -5
  78. package/client/lib/typeorm/decorator/listeners/BeforeInsert.d.ts +0 -5
  79. package/client/lib/typeorm/decorator/listeners/BeforeRecover.d.ts +0 -5
  80. package/client/lib/typeorm/decorator/listeners/BeforeRemove.d.ts +0 -5
  81. package/client/lib/typeorm/decorator/listeners/BeforeSoftRemove.d.ts +0 -5
  82. package/client/lib/typeorm/decorator/listeners/BeforeUpdate.d.ts +0 -5
  83. package/client/lib/typeorm/decorator/listeners/EventSubscriber.d.ts +0 -6
  84. package/client/lib/typeorm/decorator/options/ColumnCommonOptions.d.ts +0 -58
  85. package/client/lib/typeorm/decorator/options/ColumnEmbeddedOptions.d.ts +0 -17
  86. package/client/lib/typeorm/decorator/options/ColumnEnumOptions.d.ts +0 -14
  87. package/client/lib/typeorm/decorator/options/ColumnHstoreOptions.d.ts +0 -11
  88. package/client/lib/typeorm/decorator/options/ColumnNumericOptions.d.ts +0 -25
  89. package/client/lib/typeorm/decorator/options/ColumnOptions.d.ts +0 -159
  90. package/client/lib/typeorm/decorator/options/ColumnWithLengthOptions.d.ts +0 -11
  91. package/client/lib/typeorm/decorator/options/ColumnWithWidthOptions.d.ts +0 -20
  92. package/client/lib/typeorm/decorator/options/EntityOptions.d.ts +0 -43
  93. package/client/lib/typeorm/decorator/options/IndexOptions.d.ts +0 -53
  94. package/client/lib/typeorm/decorator/options/JoinColumnOptions.d.ts +0 -18
  95. package/client/lib/typeorm/decorator/options/JoinTableMultipleColumnsOptions.d.ts +0 -30
  96. package/client/lib/typeorm/decorator/options/JoinTableOptions.d.ts +0 -30
  97. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnIdentityOptions.d.ts +0 -27
  98. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnNumericOptions.d.ts +0 -32
  99. package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnUUIDOptions.d.ts +0 -18
  100. package/client/lib/typeorm/decorator/options/RelationOptions.d.ts +0 -65
  101. package/client/lib/typeorm/decorator/options/SpatialColumnOptions.d.ts +0 -16
  102. package/client/lib/typeorm/decorator/options/UniqueOptions.d.ts +0 -11
  103. package/client/lib/typeorm/decorator/options/ValueTransformer.d.ts +0 -14
  104. package/client/lib/typeorm/decorator/options/ViewColumnOptions.d.ts +0 -16
  105. package/client/lib/typeorm/decorator/options/ViewEntityOptions.d.ts +0 -40
  106. package/client/lib/typeorm/decorator/options/VirtualColumnOptions.d.ts +0 -28
  107. package/client/lib/typeorm/decorator/relations/JoinColumn.d.ts +0 -20
  108. package/client/lib/typeorm/decorator/relations/JoinTable.d.ts +0 -18
  109. package/client/lib/typeorm/decorator/relations/ManyToMany.d.ts +0 -15
  110. package/client/lib/typeorm/decorator/relations/ManyToOne.d.ts +0 -15
  111. package/client/lib/typeorm/decorator/relations/OneToMany.d.ts +0 -9
  112. package/client/lib/typeorm/decorator/relations/OneToOne.d.ts +0 -13
  113. package/client/lib/typeorm/decorator/relations/RelationCount.d.ts +0 -8
  114. package/client/lib/typeorm/decorator/relations/RelationId.d.ts +0 -8
  115. package/client/lib/typeorm/decorator/tree/Tree.d.ts +0 -10
  116. package/client/lib/typeorm/decorator/tree/TreeChildren.d.ts +0 -8
  117. package/client/lib/typeorm/decorator/tree/TreeLevelColumn.d.ts +0 -5
  118. package/client/lib/typeorm/decorator/tree/TreeParent.d.ts +0 -9
  119. package/client/lib/typeorm/driver/Driver.d.ts +0 -208
  120. package/client/lib/typeorm/driver/DriverFactory.d.ts +0 -12
  121. package/client/lib/typeorm/driver/DriverUtils.d.ts +0 -62
  122. package/client/lib/typeorm/driver/Query.d.ts +0 -10
  123. package/client/lib/typeorm/driver/SqlInMemory.d.ts +0 -9
  124. package/client/lib/typeorm/driver/cordova/CordovaConnectionOptions.d.ts +0 -25
  125. package/client/lib/typeorm/driver/cordova/CordovaDriver.d.ts +0 -26
  126. package/client/lib/typeorm/driver/cordova/CordovaQueryRunner.d.ts +0 -81
  127. package/client/lib/typeorm/driver/mongodb/typings.d.ts +0 -46
  128. package/client/lib/typeorm/driver/nativescript/NativescriptConnectionOptions.d.ts +0 -46
  129. package/client/lib/typeorm/driver/nativescript/NativescriptDriver.d.ts +0 -45
  130. package/client/lib/typeorm/driver/nativescript/NativescriptQueryRunner.d.ts +0 -30
  131. package/client/lib/typeorm/driver/react-native/ReactNativeConnectionOptions.d.ts +0 -25
  132. package/client/lib/typeorm/driver/react-native/ReactNativeDriver.d.ts +0 -26
  133. package/client/lib/typeorm/driver/react-native/ReactNativeQueryRunner.d.ts +0 -30
  134. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteDriver.d.ts +0 -238
  135. package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.d.ts +0 -301
  136. package/client/lib/typeorm/driver/sqljs/SqljsConnectionOptions.d.ts +0 -47
  137. package/client/lib/typeorm/driver/sqljs/SqljsDriver.d.ts +0 -68
  138. package/client/lib/typeorm/driver/sqljs/SqljsQueryRunner.d.ts +0 -36
  139. package/client/lib/typeorm/driver/types/ColumnTypes.d.ts +0 -26
  140. package/client/lib/typeorm/driver/types/CteCapabilities.d.ts +0 -19
  141. package/client/lib/typeorm/driver/types/DataTypeDefaults.d.ts +0 -9
  142. package/client/lib/typeorm/driver/types/DatabaseType.d.ts +0 -5
  143. package/client/lib/typeorm/driver/types/IsolationLevel.d.ts +0 -2
  144. package/client/lib/typeorm/driver/types/MappedColumnTypes.d.ts +0 -113
  145. package/client/lib/typeorm/driver/types/MetadataTableType.d.ts +0 -6
  146. package/client/lib/typeorm/driver/types/ReplicationMode.d.ts +0 -2
  147. package/client/lib/typeorm/driver/types/UpsertType.d.ts +0 -2
  148. package/client/lib/typeorm/entity-manager/EntityManager.d.ts +0 -353
  149. package/client/lib/typeorm/entity-manager/EntityManagerFactory.d.ts +0 -13
  150. package/client/lib/typeorm/entity-manager/SqljsEntityManager.d.ts +0 -27
  151. package/client/lib/typeorm/entity-schema/EntitySchema.d.ts +0 -10
  152. package/client/lib/typeorm/entity-schema/EntitySchemaCheckOptions.d.ts +0 -11
  153. package/client/lib/typeorm/entity-schema/EntitySchemaColumnOptions.d.ts +0 -175
  154. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedColumnOptions.d.ts +0 -19
  155. package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedError.d.ts +0 -7
  156. package/client/lib/typeorm/entity-schema/EntitySchemaExclusionOptions.d.ts +0 -11
  157. package/client/lib/typeorm/entity-schema/EntitySchemaIndexOptions.d.ts +0 -54
  158. package/client/lib/typeorm/entity-schema/EntitySchemaOptions.d.ts +0 -104
  159. package/client/lib/typeorm/entity-schema/EntitySchemaRelationIdOptions.d.ts +0 -16
  160. package/client/lib/typeorm/entity-schema/EntitySchemaRelationOptions.d.ts +0 -96
  161. package/client/lib/typeorm/entity-schema/EntitySchemaTransformer.d.ts +0 -14
  162. package/client/lib/typeorm/entity-schema/EntitySchemaUniqueOptions.d.ts +0 -18
  163. package/client/lib/typeorm/error/AlreadyHasActiveConnectionError.d.ts +0 -8
  164. package/client/lib/typeorm/error/CannotAttachTreeChildrenEntityError.d.ts +0 -8
  165. package/client/lib/typeorm/error/CannotConnectAlreadyConnectedError.d.ts +0 -8
  166. package/client/lib/typeorm/error/CannotCreateEntityIdMapError.d.ts +0 -10
  167. package/client/lib/typeorm/error/CannotDetermineEntityError.d.ts +0 -8
  168. package/client/lib/typeorm/error/CannotExecuteNotConnectedError.d.ts +0 -8
  169. package/client/lib/typeorm/error/CannotGetEntityManagerNotConnectedError.d.ts +0 -8
  170. package/client/lib/typeorm/error/CannotReflectMethodParameterTypeError.d.ts +0 -9
  171. package/client/lib/typeorm/error/CircularRelationsError.d.ts +0 -8
  172. package/client/lib/typeorm/error/ColumnTypeUndefinedError.d.ts +0 -9
  173. package/client/lib/typeorm/error/ConnectionIsNotSetError.d.ts +0 -8
  174. package/client/lib/typeorm/error/ConnectionNotFoundError.d.ts +0 -8
  175. package/client/lib/typeorm/error/CustomRepositoryCannotInheritRepositoryError.d.ts +0 -8
  176. package/client/lib/typeorm/error/CustomRepositoryDoesNotHaveEntityError.d.ts +0 -8
  177. package/client/lib/typeorm/error/CustomRepositoryNotFoundError.d.ts +0 -8
  178. package/client/lib/typeorm/error/DataTypeNotSupportedError.d.ts +0 -8
  179. package/client/lib/typeorm/error/DriverOptionNotSetError.d.ts +0 -8
  180. package/client/lib/typeorm/error/DriverPackageNotInstalledError.d.ts +0 -8
  181. package/client/lib/typeorm/error/EntityMetadataNotFoundError.d.ts +0 -7
  182. package/client/lib/typeorm/error/EntityNotFoundError.d.ts +0 -11
  183. package/client/lib/typeorm/error/EntityPropertyNotFoundError.d.ts +0 -9
  184. package/client/lib/typeorm/error/FindRelationsNotFoundError.d.ts +0 -8
  185. package/client/lib/typeorm/error/InitializedRelationError.d.ts +0 -12
  186. package/client/lib/typeorm/error/InsertValuesMissingError.d.ts +0 -8
  187. package/client/lib/typeorm/error/LimitOnUpdateNotSupportedError.d.ts +0 -8
  188. package/client/lib/typeorm/error/LockNotSupportedOnGivenDriverError.d.ts +0 -8
  189. package/client/lib/typeorm/error/MetadataAlreadyExistsError.d.ts +0 -5
  190. package/client/lib/typeorm/error/MetadataWithSuchNameAlreadyExistsError.d.ts +0 -5
  191. package/client/lib/typeorm/error/MissingDeleteDateColumnError.d.ts +0 -6
  192. package/client/lib/typeorm/error/MissingDriverError.d.ts +0 -8
  193. package/client/lib/typeorm/error/MissingJoinColumnError.d.ts +0 -7
  194. package/client/lib/typeorm/error/MissingJoinTableError.d.ts +0 -7
  195. package/client/lib/typeorm/error/MissingPrimaryColumnError.d.ts +0 -6
  196. package/client/lib/typeorm/error/MustBeEntityError.d.ts +0 -8
  197. package/client/lib/typeorm/error/NamingStrategyNotFoundError.d.ts +0 -8
  198. package/client/lib/typeorm/error/NestedSetMultipleRootError.d.ts +0 -5
  199. package/client/lib/typeorm/error/NoConnectionForRepositoryError.d.ts +0 -8
  200. package/client/lib/typeorm/error/NoConnectionOptionError.d.ts +0 -8
  201. package/client/lib/typeorm/error/NoNeedToReleaseEntityManagerError.d.ts +0 -8
  202. package/client/lib/typeorm/error/NoVersionOrUpdateDateColumnError.d.ts +0 -8
  203. package/client/lib/typeorm/error/OffsetWithoutLimitNotSupportedError.d.ts +0 -8
  204. package/client/lib/typeorm/error/OptimisticLockCanNotBeUsedError.d.ts +0 -8
  205. package/client/lib/typeorm/error/OptimisticLockVersionMismatchError.d.ts +0 -8
  206. package/client/lib/typeorm/error/PersistedEntityNotFoundError.d.ts +0 -8
  207. package/client/lib/typeorm/error/PessimisticLockTransactionRequiredError.d.ts +0 -8
  208. package/client/lib/typeorm/error/PrimaryColumnCannotBeNullableError.d.ts +0 -5
  209. package/client/lib/typeorm/error/QueryFailedError.d.ts +0 -11
  210. package/client/lib/typeorm/error/QueryRunnerAlreadyReleasedError.d.ts +0 -5
  211. package/client/lib/typeorm/error/QueryRunnerProviderAlreadyReleasedError.d.ts +0 -8
  212. package/client/lib/typeorm/error/RepositoryNotTreeError.d.ts +0 -9
  213. package/client/lib/typeorm/error/ReturningStatementNotSupportedError.d.ts +0 -9
  214. package/client/lib/typeorm/error/SubjectRemovedAndUpdatedError.d.ts +0 -9
  215. package/client/lib/typeorm/error/SubjectWithoutIdentifierError.d.ts +0 -11
  216. package/client/lib/typeorm/error/TransactionAlreadyStartedError.d.ts +0 -8
  217. package/client/lib/typeorm/error/TransactionNotStartedError.d.ts +0 -8
  218. package/client/lib/typeorm/error/TreeRepositoryNotSupportedError.d.ts +0 -6
  219. package/client/lib/typeorm/error/TypeORMError.d.ts +0 -5
  220. package/client/lib/typeorm/error/UpdateValuesMissingError.d.ts +0 -5
  221. package/client/lib/typeorm/error/UsingJoinColumnIsNotAllowedError.d.ts +0 -7
  222. package/client/lib/typeorm/error/UsingJoinColumnOnlyOnOneSideAllowedError.d.ts +0 -7
  223. package/client/lib/typeorm/error/UsingJoinTableIsNotAllowedError.d.ts +0 -7
  224. package/client/lib/typeorm/error/UsingJoinTableOnlyOnOneSideAllowedError.d.ts +0 -7
  225. package/client/lib/typeorm/error/index.d.ts +0 -62
  226. package/client/lib/typeorm/find-options/EqualOperator.d.ts +0 -6
  227. package/client/lib/typeorm/find-options/FindManyOptions.d.ts +0 -15
  228. package/client/lib/typeorm/find-options/FindOneOptions.d.ts +0 -89
  229. package/client/lib/typeorm/find-options/FindOperator.d.ts +0 -66
  230. package/client/lib/typeorm/find-options/FindOperatorType.d.ts +0 -5
  231. package/client/lib/typeorm/find-options/FindOptionsOrder.d.ts +0 -19
  232. package/client/lib/typeorm/find-options/FindOptionsRelations.d.ts +0 -19
  233. package/client/lib/typeorm/find-options/FindOptionsSelect.d.ts +0 -18
  234. package/client/lib/typeorm/find-options/FindOptionsUtils.d.ts +0 -191
  235. package/client/lib/typeorm/find-options/FindOptionsWhere.d.ts +0 -14
  236. package/client/lib/typeorm/find-options/FindTreeOptions.d.ts +0 -14
  237. package/client/lib/typeorm/find-options/JoinOptions.d.ts +0 -77
  238. package/client/lib/typeorm/find-options/OrderByCondition.d.ts +0 -18
  239. package/client/lib/typeorm/find-options/operator/Any.d.ts +0 -7
  240. package/client/lib/typeorm/find-options/operator/ArrayContainedBy.d.ts +0 -7
  241. package/client/lib/typeorm/find-options/operator/ArrayContains.d.ts +0 -7
  242. package/client/lib/typeorm/find-options/operator/ArrayOverlap.d.ts +0 -7
  243. package/client/lib/typeorm/find-options/operator/Between.d.ts +0 -7
  244. package/client/lib/typeorm/find-options/operator/Equal.d.ts +0 -12
  245. package/client/lib/typeorm/find-options/operator/ILike.d.ts +0 -7
  246. package/client/lib/typeorm/find-options/operator/In.d.ts +0 -7
  247. package/client/lib/typeorm/find-options/operator/IsNull.d.ts +0 -7
  248. package/client/lib/typeorm/find-options/operator/LessThan.d.ts +0 -7
  249. package/client/lib/typeorm/find-options/operator/LessThanOrEqual.d.ts +0 -7
  250. package/client/lib/typeorm/find-options/operator/Like.d.ts +0 -7
  251. package/client/lib/typeorm/find-options/operator/MoreThan.d.ts +0 -7
  252. package/client/lib/typeorm/find-options/operator/MoreThanOrEqual.d.ts +0 -7
  253. package/client/lib/typeorm/find-options/operator/Not.d.ts +0 -8
  254. package/client/lib/typeorm/find-options/operator/Raw.d.ts +0 -19
  255. package/client/lib/typeorm/globals.d.ts +0 -104
  256. package/client/lib/typeorm/index.d.ts +0 -168
  257. package/client/lib/typeorm/logger/AdvancedConsoleLogger.d.ts +0 -42
  258. package/client/lib/typeorm/logger/DebugLogger.d.ts +0 -41
  259. package/client/lib/typeorm/logger/Logger.d.ts +0 -32
  260. package/client/lib/typeorm/logger/LoggerFactory.d.ts +0 -12
  261. package/client/lib/typeorm/logger/LoggerOptions.d.ts +0 -14
  262. package/client/lib/typeorm/logger/SimpleConsoleLogger.d.ts +0 -42
  263. package/client/lib/typeorm/metadata/CheckMetadata.d.ts +0 -40
  264. package/client/lib/typeorm/metadata/ColumnMetadata.d.ts +0 -316
  265. package/client/lib/typeorm/metadata/EmbeddedMetadata.d.ts +0 -166
  266. package/client/lib/typeorm/metadata/EntityListenerMetadata.d.ts +0 -49
  267. package/client/lib/typeorm/metadata/EntityMetadata.d.ts +0 -562
  268. package/client/lib/typeorm/metadata/ExclusionMetadata.d.ts +0 -40
  269. package/client/lib/typeorm/metadata/ForeignKeyMetadata.d.ts +0 -78
  270. package/client/lib/typeorm/metadata/IndexMetadata.d.ts +0 -112
  271. package/client/lib/typeorm/metadata/RelationCountMetadata.d.ts +0 -47
  272. package/client/lib/typeorm/metadata/RelationIdMetadata.d.ts +0 -54
  273. package/client/lib/typeorm/metadata/RelationMetadata.d.ts +0 -291
  274. package/client/lib/typeorm/metadata/UniqueMetadata.d.ts +0 -66
  275. package/client/lib/typeorm/metadata/types/ClosureTreeOptions.d.ts +0 -11
  276. package/client/lib/typeorm/metadata/types/DeferrableType.d.ts +0 -5
  277. package/client/lib/typeorm/metadata/types/EventListenerTypes.d.ts +0 -21
  278. package/client/lib/typeorm/metadata/types/OnDeleteType.d.ts +0 -5
  279. package/client/lib/typeorm/metadata/types/OnUpdateType.d.ts +0 -5
  280. package/client/lib/typeorm/metadata/types/PropertyTypeInFunction.d.ts +0 -5
  281. package/client/lib/typeorm/metadata/types/RelationTypeInFunction.d.ts +0 -6
  282. package/client/lib/typeorm/metadata/types/RelationTypes.d.ts +0 -5
  283. package/client/lib/typeorm/metadata/types/TableTypes.d.ts +0 -5
  284. package/client/lib/typeorm/metadata/types/TreeTypes.d.ts +0 -6
  285. package/client/lib/typeorm/metadata-args/CheckMetadataArgs.d.ts +0 -18
  286. package/client/lib/typeorm/metadata-args/ColumnMetadataArgs.d.ts +0 -26
  287. package/client/lib/typeorm/metadata-args/DiscriminatorValueMetadataArgs.d.ts +0 -14
  288. package/client/lib/typeorm/metadata-args/EmbeddedMetadataArgs.d.ts +0 -27
  289. package/client/lib/typeorm/metadata-args/EntityListenerMetadataArgs.d.ts +0 -19
  290. package/client/lib/typeorm/metadata-args/EntityRepositoryMetadataArgs.d.ts +0 -15
  291. package/client/lib/typeorm/metadata-args/EntitySubscriberMetadataArgs.d.ts +0 -10
  292. package/client/lib/typeorm/metadata-args/ExclusionMetadataArgs.d.ts +0 -18
  293. package/client/lib/typeorm/metadata-args/GeneratedMetadataArgs.d.ts +0 -18
  294. package/client/lib/typeorm/metadata-args/IndexMetadataArgs.d.ts +0 -71
  295. package/client/lib/typeorm/metadata-args/InheritanceMetadataArgs.d.ts +0 -19
  296. package/client/lib/typeorm/metadata-args/JoinColumnMetadataArgs.d.ts +0 -27
  297. package/client/lib/typeorm/metadata-args/JoinTableMetadataArgs.d.ts +0 -38
  298. package/client/lib/typeorm/metadata-args/MetadataArgsStorage.d.ts +0 -109
  299. package/client/lib/typeorm/metadata-args/NamingStrategyMetadataArgs.d.ts +0 -14
  300. package/client/lib/typeorm/metadata-args/RelationCountMetadataArgs.d.ts +0 -27
  301. package/client/lib/typeorm/metadata-args/RelationIdMetadataArgs.d.ts +0 -27
  302. package/client/lib/typeorm/metadata-args/RelationMetadataArgs.d.ts +0 -56
  303. package/client/lib/typeorm/metadata-args/TableMetadataArgs.d.ts +0 -62
  304. package/client/lib/typeorm/metadata-args/TransactionEntityMetadataArgs.d.ts +0 -18
  305. package/client/lib/typeorm/metadata-args/TransactionRepositoryMetadataArgs.d.ts +0 -26
  306. package/client/lib/typeorm/metadata-args/TreeMetadataArgs.d.ts +0 -20
  307. package/client/lib/typeorm/metadata-args/UniqueMetadataArgs.d.ts +0 -25
  308. package/client/lib/typeorm/metadata-args/types/ColumnMode.d.ts +0 -8
  309. package/client/lib/typeorm/metadata-builder/ClosureJunctionEntityMetadataBuilder.d.ts +0 -15
  310. package/client/lib/typeorm/metadata-builder/EntityMetadataBuilder.d.ts +0 -58
  311. package/client/lib/typeorm/metadata-builder/EntityMetadataValidator.d.ts +0 -24
  312. package/client/lib/typeorm/metadata-builder/JunctionEntityMetadataBuilder.d.ts +0 -27
  313. package/client/lib/typeorm/metadata-builder/MetadataUtils.d.ts +0 -24
  314. package/client/lib/typeorm/metadata-builder/RelationJoinColumnBuilder.d.ts +0 -57
  315. package/client/lib/typeorm/migration/Migration.d.ts +0 -25
  316. package/client/lib/typeorm/migration/MigrationExecutor.d.ts +0 -100
  317. package/client/lib/typeorm/migration/MigrationInterface.d.ts +0 -19
  318. package/client/lib/typeorm/naming-strategy/DefaultNamingStrategy.d.ts +0 -50
  319. package/client/lib/typeorm/naming-strategy/NamingStrategyInterface.d.ts +0 -117
  320. package/client/lib/typeorm/persistence/EntityPersistExecutor.d.ts +0 -22
  321. package/client/lib/typeorm/persistence/Subject.d.ts +0 -156
  322. package/client/lib/typeorm/persistence/SubjectChangeMap.d.ts +0 -24
  323. package/client/lib/typeorm/persistence/SubjectChangedColumnsComputer.d.ts +0 -19
  324. package/client/lib/typeorm/persistence/SubjectDatabaseEntityLoader.d.ts +0 -36
  325. package/client/lib/typeorm/persistence/SubjectExecutor.d.ts +0 -119
  326. package/client/lib/typeorm/persistence/SubjectTopoligicalSorter.d.ts +0 -46
  327. package/client/lib/typeorm/persistence/subject-builder/CascadesSubjectBuilder.d.ts +0 -20
  328. package/client/lib/typeorm/persistence/subject-builder/ManyToManySubjectBuilder.d.ts +0 -35
  329. package/client/lib/typeorm/persistence/subject-builder/OneToManySubjectBuilder.d.ts +0 -28
  330. package/client/lib/typeorm/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.d.ts +0 -28
  331. package/client/lib/typeorm/persistence/tree/ClosureSubjectExecutor.d.ts +0 -27
  332. package/client/lib/typeorm/persistence/tree/MaterializedPathSubjectExecutor.d.ts +0 -19
  333. package/client/lib/typeorm/persistence/tree/NestedSetSubjectExecutor.d.ts +0 -39
  334. package/client/lib/typeorm/platform/PlatformTools.d.ts +0 -65
  335. package/client/lib/typeorm/query-builder/Alias.d.ts +0 -23
  336. package/client/lib/typeorm/query-builder/Brackets.d.ts +0 -17
  337. package/client/lib/typeorm/query-builder/DeleteQueryBuilder.d.ts +0 -92
  338. package/client/lib/typeorm/query-builder/InsertOrUpdateOptions.d.ts +0 -4
  339. package/client/lib/typeorm/query-builder/InsertQueryBuilder.d.ts +0 -118
  340. package/client/lib/typeorm/query-builder/JoinAttribute.d.ts +0 -84
  341. package/client/lib/typeorm/query-builder/NotBrackets.d.ts +0 -9
  342. package/client/lib/typeorm/query-builder/QueryBuilder.d.ts +0 -268
  343. package/client/lib/typeorm/query-builder/QueryBuilderCte.d.ts +0 -18
  344. package/client/lib/typeorm/query-builder/QueryBuilderUtils.d.ts +0 -11
  345. package/client/lib/typeorm/query-builder/QueryExpressionMap.d.ts +0 -306
  346. package/client/lib/typeorm/query-builder/QueryPartialEntity.d.ts +0 -16
  347. package/client/lib/typeorm/query-builder/RelationIdLoader.d.ts +0 -71
  348. package/client/lib/typeorm/query-builder/RelationLoader.d.ts +0 -60
  349. package/client/lib/typeorm/query-builder/RelationQueryBuilder.d.ts +0 -70
  350. package/client/lib/typeorm/query-builder/RelationRemover.d.ts +0 -17
  351. package/client/lib/typeorm/query-builder/RelationUpdater.d.ts +0 -17
  352. package/client/lib/typeorm/query-builder/ReturningResultsEntityUpdator.d.ts +0 -31
  353. package/client/lib/typeorm/query-builder/SelectQuery.d.ts +0 -6
  354. package/client/lib/typeorm/query-builder/SelectQueryBuilder.d.ts +0 -665
  355. package/client/lib/typeorm/query-builder/SelectQueryBuilderOption.d.ts +0 -2
  356. package/client/lib/typeorm/query-builder/SoftDeleteQueryBuilder.d.ts +0 -139
  357. package/client/lib/typeorm/query-builder/UpdateQueryBuilder.d.ts +0 -144
  358. package/client/lib/typeorm/query-builder/WhereClause.d.ts +0 -17
  359. package/client/lib/typeorm/query-builder/WhereExpressionBuilder.d.ts +0 -127
  360. package/client/lib/typeorm/query-builder/relation-count/RelationCountAttribute.d.ts +0 -54
  361. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoadResult.d.ts +0 -9
  362. package/client/lib/typeorm/query-builder/relation-count/RelationCountLoader.d.ts +0 -12
  363. package/client/lib/typeorm/query-builder/relation-count/RelationCountMetadataToAttributeTransformer.d.ts +0 -8
  364. package/client/lib/typeorm/query-builder/relation-id/RelationIdAttribute.d.ts +0 -65
  365. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoadResult.d.ts +0 -6
  366. package/client/lib/typeorm/query-builder/relation-id/RelationIdLoader.d.ts +0 -12
  367. package/client/lib/typeorm/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.d.ts +0 -8
  368. package/client/lib/typeorm/query-builder/result/DeleteResult.d.ts +0 -17
  369. package/client/lib/typeorm/query-builder/result/InsertResult.d.ts +0 -23
  370. package/client/lib/typeorm/query-builder/result/UpdateResult.d.ts +0 -27
  371. package/client/lib/typeorm/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.d.ts +0 -13
  372. package/client/lib/typeorm/query-builder/transformer/PlainObjectToNewEntityTransformer.d.ts +0 -15
  373. package/client/lib/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer.d.ts +0 -56
  374. package/client/lib/typeorm/query-runner/BaseQueryRunner.d.ts +0 -204
  375. package/client/lib/typeorm/query-runner/QueryResult.d.ts +0 -18
  376. package/client/lib/typeorm/query-runner/QueryRunner.d.ts +0 -359
  377. package/client/lib/typeorm/relation-path.d.ts +0 -7
  378. package/client/lib/typeorm/repository/AbstractRepository.d.ts +0 -52
  379. package/client/lib/typeorm/repository/BaseEntity.d.ts +0 -298
  380. package/client/lib/typeorm/repository/FindTreesOptions.d.ts +0 -10
  381. package/client/lib/typeorm/repository/RemoveOptions.d.ts +0 -28
  382. package/client/lib/typeorm/repository/Repository.d.ts +0 -292
  383. package/client/lib/typeorm/repository/SaveOptions.d.ts +0 -36
  384. package/client/lib/typeorm/repository/TreeRepository.d.ts +0 -56
  385. package/client/lib/typeorm/repository/UpsertOptions.d.ts +0 -11
  386. package/client/lib/typeorm/schema-builder/RdbmsSchemaBuilder.d.ts +0 -145
  387. package/client/lib/typeorm/schema-builder/SchemaBuilder.d.ts +0 -15
  388. package/client/lib/typeorm/schema-builder/options/TableCheckOptions.d.ts +0 -18
  389. package/client/lib/typeorm/schema-builder/options/TableColumnOptions.d.ts +0 -123
  390. package/client/lib/typeorm/schema-builder/options/TableExclusionOptions.d.ts +0 -14
  391. package/client/lib/typeorm/schema-builder/options/TableForeignKeyOptions.d.ts +0 -45
  392. package/client/lib/typeorm/schema-builder/options/TableIndexOptions.d.ts +0 -45
  393. package/client/lib/typeorm/schema-builder/options/TableOptions.d.ts +0 -62
  394. package/client/lib/typeorm/schema-builder/options/TableUniqueOptions.d.ts +0 -19
  395. package/client/lib/typeorm/schema-builder/options/ViewOptions.d.ts +0 -27
  396. package/client/lib/typeorm/schema-builder/table/Table.d.ts +0 -143
  397. package/client/lib/typeorm/schema-builder/table/TableCheck.d.ts +0 -30
  398. package/client/lib/typeorm/schema-builder/table/TableColumn.d.ts +0 -127
  399. package/client/lib/typeorm/schema-builder/table/TableExclusion.d.ts +0 -26
  400. package/client/lib/typeorm/schema-builder/table/TableForeignKey.d.ts +0 -58
  401. package/client/lib/typeorm/schema-builder/table/TableIndex.d.ts +0 -57
  402. package/client/lib/typeorm/schema-builder/table/TableUnique.d.ts +0 -31
  403. package/client/lib/typeorm/schema-builder/util/TableUtils.d.ts +0 -7
  404. package/client/lib/typeorm/schema-builder/util/ViewUtils.d.ts +0 -8
  405. package/client/lib/typeorm/schema-builder/view/View.d.ts +0 -38
  406. package/client/lib/typeorm/subscriber/Broadcaster.d.ts +0 -168
  407. package/client/lib/typeorm/subscriber/BroadcasterResult.d.ts +0 -18
  408. package/client/lib/typeorm/subscriber/EntitySubscriberInterface.d.ts +0 -93
  409. package/client/lib/typeorm/subscriber/event/InsertEvent.d.ts +0 -32
  410. package/client/lib/typeorm/subscriber/event/LoadEvent.d.ts +0 -32
  411. package/client/lib/typeorm/subscriber/event/RecoverEvent.d.ts +0 -7
  412. package/client/lib/typeorm/subscriber/event/RemoveEvent.d.ts +0 -41
  413. package/client/lib/typeorm/subscriber/event/SoftRemoveEvent.d.ts +0 -7
  414. package/client/lib/typeorm/subscriber/event/TransactionCommitEvent.d.ts +0 -23
  415. package/client/lib/typeorm/subscriber/event/TransactionRollbackEvent.d.ts +0 -23
  416. package/client/lib/typeorm/subscriber/event/TransactionStartEvent.d.ts +0 -23
  417. package/client/lib/typeorm/subscriber/event/UpdateEvent.d.ts +0 -47
  418. package/client/lib/typeorm/util/ApplyValueTransformers.d.ts +0 -6
  419. package/client/lib/typeorm/util/DateUtils.d.ts +0 -59
  420. package/client/lib/typeorm/util/DepGraph.d.ts +0 -65
  421. package/client/lib/typeorm/util/DirectoryExportedClassesLoader.d.ts +0 -10
  422. package/client/lib/typeorm/util/ImportUtils.d.ts +0 -2
  423. package/client/lib/typeorm/util/InstanceChecker.d.ts +0 -60
  424. package/client/lib/typeorm/util/ObjectUtils.d.ts +0 -38
  425. package/client/lib/typeorm/util/OrmUtils.d.ts +0 -53
  426. package/client/lib/typeorm/util/PathUtils.d.ts +0 -11
  427. package/client/lib/typeorm/util/RandomGenerator.d.ts +0 -16
  428. package/client/lib/typeorm/util/StringUtils.d.ts +0 -64
  429. package/client/lib/typeorm/util/TreeRepositoryUtils.d.ts +0 -24
  430. package/client/lib/typeorm/util/VersionUtils.d.ts +0 -5
  431. package/client/lib/typeorm/util/escapeRegExp.d.ts +0 -2
  432. package/client/public-api.d.ts +0 -2
@@ -1,10 +0,0 @@
1
- // @ts-nocheck
2
- import { Logger } from "../logger/Logger";
3
- /**
4
- * Loads all exported classes from the given directory.
5
- */
6
- export declare function importClassesFromDirectories(logger: Logger, directories: string[], formats?: string[]): Promise<Function[]>;
7
- /**
8
- * Loads all json files from the given directory.
9
- */
10
- export declare function importJsonsFromDirectories(directories: string[], format?: string): any[];
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export declare function importOrRequireFile(filePath: string): Promise<[result: any, moduleType: "esm" | "commonjs"]>;
@@ -1,60 +0,0 @@
1
- // @ts-nocheck
2
- import type { SqljsEntityManager } from "../entity-manager/SqljsEntityManager";
3
- import type { EntitySchema } from "../entity-schema/EntitySchema";
4
- import type { FindOperator } from "../find-options/FindOperator";
5
- import type { EqualOperator } from "../find-options/EqualOperator";
6
- import type { Query } from "../driver/Query";
7
- import type { RdbmsSchemaBuilder } from "../schema-builder/RdbmsSchemaBuilder";
8
- import type { Subject } from "../persistence/Subject";
9
- import type { QueryBuilder } from "../query-builder/QueryBuilder";
10
- import type { SelectQueryBuilder } from "../query-builder/SelectQueryBuilder";
11
- import type { UpdateQueryBuilder } from "../query-builder/UpdateQueryBuilder";
12
- import type { DeleteQueryBuilder } from "../query-builder/DeleteQueryBuilder";
13
- import type { SoftDeleteQueryBuilder } from "../query-builder/SoftDeleteQueryBuilder";
14
- import type { InsertQueryBuilder } from "../query-builder/InsertQueryBuilder";
15
- import type { RelationQueryBuilder } from "../query-builder/RelationQueryBuilder";
16
- import type { Brackets } from "../query-builder/Brackets";
17
- import type { Table } from "../schema-builder/table/Table";
18
- import type { TableCheck } from "../schema-builder/table/TableCheck";
19
- import type { TableColumn } from "../schema-builder/table/TableColumn";
20
- import type { TableExclusion } from "../schema-builder/table/TableExclusion";
21
- import type { TableForeignKey } from "../schema-builder/table/TableForeignKey";
22
- import type { TableIndex } from "../schema-builder/table/TableIndex";
23
- import type { TableUnique } from "../schema-builder/table/TableUnique";
24
- import type { View } from "../schema-builder/view/View";
25
- import type { NotBrackets } from "../query-builder/NotBrackets";
26
- import type { EntityMetadata } from "../metadata/EntityMetadata";
27
- import type { ColumnMetadata } from "../metadata/ColumnMetadata";
28
- import { DataSource } from "../data-source";
29
- import { BaseEntity } from "../repository/BaseEntity";
30
- export declare class InstanceChecker {
31
- static isEntityMetadata(obj: unknown): obj is EntityMetadata;
32
- static isColumnMetadata(obj: unknown): obj is ColumnMetadata;
33
- static isQueryBuilder(obj: unknown): obj is QueryBuilder<any>;
34
- static isSelectQueryBuilder(obj: unknown): obj is SelectQueryBuilder<any>;
35
- static isInsertQueryBuilder(obj: unknown): obj is InsertQueryBuilder<any>;
36
- static isDeleteQueryBuilder(obj: unknown): obj is DeleteQueryBuilder<any>;
37
- static isUpdateQueryBuilder(obj: unknown): obj is UpdateQueryBuilder<any>;
38
- static isSoftDeleteQueryBuilder(obj: unknown): obj is SoftDeleteQueryBuilder<any>;
39
- static isRelationQueryBuilder(obj: unknown): obj is RelationQueryBuilder<any>;
40
- static isBrackets(obj: unknown): obj is Brackets;
41
- static isNotBrackets(obj: unknown): obj is NotBrackets;
42
- static isSubject(obj: unknown): obj is Subject;
43
- static isRdbmsSchemaBuilder(obj: unknown): obj is RdbmsSchemaBuilder;
44
- static isSqljsEntityManager(obj: unknown): obj is SqljsEntityManager;
45
- static isEntitySchema(obj: unknown): obj is EntitySchema;
46
- static isBaseEntityConstructor(obj: unknown): obj is typeof BaseEntity;
47
- static isFindOperator(obj: unknown): obj is FindOperator<any>;
48
- static isEqualOperator(obj: unknown): obj is EqualOperator<any>;
49
- static isQuery(obj: unknown): obj is Query;
50
- static isTable(obj: unknown): obj is Table;
51
- static isTableCheck(obj: unknown): obj is TableCheck;
52
- static isTableColumn(obj: unknown): obj is TableColumn;
53
- static isTableExclusion(obj: unknown): obj is TableExclusion;
54
- static isTableForeignKey(obj: unknown): obj is TableForeignKey;
55
- static isTableIndex(obj: unknown): obj is TableIndex;
56
- static isTableUnique(obj: unknown): obj is TableUnique;
57
- static isView(obj: unknown): obj is View;
58
- static isDataSource(obj: unknown): obj is DataSource;
59
- private static check;
60
- }
@@ -1,38 +0,0 @@
1
- // @ts-nocheck
2
- import { MixedList } from "../common/MixedList";
3
- export declare class ObjectUtils {
4
- /**
5
- * Checks if given value is an object.
6
- * We cannot use instanceof because it has problems when running on different contexts.
7
- * And we don't simply use typeof because typeof null === "object".
8
- */
9
- static isObject(val: any): val is Object;
10
- /**
11
- * Copy the values of all of the enumerable own properties from one or more source objects to a
12
- * target object.
13
- * @param target The target object to copy to.
14
- * @param source The source object from which to copy properties.
15
- */
16
- static assign<T, U>(target: T, source: U): void;
17
- /**
18
- * Copy the values of all of the enumerable own properties from one or more source objects to a
19
- * target object.
20
- * @param target The target object to copy to.
21
- * @param source1 The first source object from which to copy properties.
22
- * @param source2 The second source object from which to copy properties.
23
- */
24
- static assign<T, U, V>(target: T, source1: U, source2: V): void;
25
- /**
26
- * Copy the values of all of the enumerable own properties from one or more source objects to a
27
- * target object.
28
- * @param target The target object to copy to.
29
- * @param source1 The first source object from which to copy properties.
30
- * @param source2 The second source object from which to copy properties.
31
- * @param source3 The third source object from which to copy properties.
32
- */
33
- static assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): void;
34
- /**
35
- * Converts MixedList<T> to strictly an array of its T items.
36
- */
37
- static mixedListToArray<T>(list: MixedList<T>): T[];
38
- }
@@ -1,53 +0,0 @@
1
- // @ts-nocheck
2
- import { ObjectLiteral } from "../common/ObjectLiteral";
3
- export declare class OrmUtils {
4
- /**
5
- * Chunks array into pieces.
6
- */
7
- static chunk<T>(array: T[], size: number): T[][];
8
- static splitClassesAndStrings<T>(classesAndStrings: (string | T)[]): [T[], string[]];
9
- static groupBy<T, R>(array: T[], propertyCallback: (item: T) => R): {
10
- id: R;
11
- items: T[];
12
- }[];
13
- static uniq<T>(array: T[], criteria?: (item: T) => any): T[];
14
- static uniq<T, K extends keyof T>(array: T[], property: K): T[];
15
- private static isPlainObject;
16
- private static mergeArrayKey;
17
- private static mergeObjectKey;
18
- private static merge;
19
- /**
20
- * Deep Object.assign.
21
- */
22
- static mergeDeep(target: any, ...sources: any[]): any;
23
- /**
24
- * Deep compare objects.
25
- *
26
- * @see http://stackoverflow.com/a/1144249
27
- */
28
- static deepCompare(...args: any[]): boolean;
29
- /**
30
- * Gets deeper value of object.
31
- */
32
- static deepValue(obj: ObjectLiteral, path: string): ObjectLiteral;
33
- static replaceEmptyObjectsWithBooleans(obj: any): void;
34
- static propertyPathsToTruthyObject(paths: string[]): any;
35
- /**
36
- * Check if two entity-id-maps are the same
37
- */
38
- static compareIds(firstId: ObjectLiteral | undefined, secondId: ObjectLiteral | undefined): boolean;
39
- /**
40
- * Transforms given value into boolean value.
41
- */
42
- static toBoolean(value: any): boolean;
43
- /**
44
- * Composes an object from the given array of keys and values.
45
- */
46
- static zipObject(keys: any[], values: any[]): ObjectLiteral;
47
- /**
48
- * Compares two arrays.
49
- */
50
- static isArraysEqual(arr1: any[], arr2: any[]): boolean;
51
- static areMutuallyExclusive<T>(...lists: T[][]): boolean;
52
- private static compare2Objects;
53
- }
@@ -1,11 +0,0 @@
1
- // @ts-nocheck
2
- export declare function toPortablePath(filepath: string): string;
3
- /**
4
- * Create deterministic valid database name (class, database) of fixed length from any filepath. Equivalent paths for windows/posix systems should
5
- * be equivalent to enable portability
6
- */
7
- export declare function filepathToName(filepath: string): string;
8
- /**
9
- * Cross platform isAbsolute
10
- */
11
- export declare function isAbsolute(filepath: string): boolean;
@@ -1,16 +0,0 @@
1
- // @ts-nocheck
2
- export declare class RandomGenerator {
3
- /**
4
- * discuss at: http://locutus.io/php/sha1/
5
- * original by: Webtoolkit.info (http://www.webtoolkit.info/)
6
- * improved by: Michael White (http://getsprink.com)
7
- * improved by: Kevin van Zonneveld (http://kvz.io)
8
- * input by: Brett Zamir (http://brett-zamir.me)
9
- * note 1: Keep in mind that in accordance with PHP, the whole string is buffered and then
10
- * note 1: hashed. If available, we'd recommend using Node's native crypto modules directly
11
- * note 1: in a steaming fashion for faster and more efficient hashing
12
- * example 1: sha1('Kevin van Zonneveld')
13
- * returns 1: '54916d2e62f65b3afa6e192e6a601cdbe5cb5897'
14
- */
15
- static sha1(str: string): any;
16
- }
@@ -1,64 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Converts string into camelCase.
4
- *
5
- * @see http://stackoverflow.com/questions/2970525/converting-any-string-into-camel-case
6
- */
7
- export declare function camelCase(str: string, firstCapital?: boolean): string;
8
- /**
9
- * Converts string into snake_case.
10
- *
11
- */
12
- export declare function snakeCase(str: string): string;
13
- /**
14
- * Converts string into Title Case.
15
- *
16
- * @see http://stackoverflow.com/questions/196972/convert-string-to-title-case-with-javascript
17
- */
18
- export declare function titleCase(str: string): string;
19
- /**
20
- * Builds abbreviated string from given string;
21
- */
22
- export declare function abbreviate(str: string, abbrLettersCount?: number): string;
23
- export interface IShortenOptions {
24
- /** String used to split "segments" of the alias/column name */
25
- separator?: string;
26
- /** Maximum length of any "segment" */
27
- segmentLength?: number;
28
- /** Length of any "term" in a "segment"; "OrderItem" is a segment, "Order" and "Items" are terms */
29
- termLength?: number;
30
- }
31
- /**
32
- * Shorten a given `input`. Useful for RDBMS imposing a limit on the
33
- * maximum length of aliases and column names in SQL queries.
34
- *
35
- * @param input String to be shortened.
36
- * @param options Default to `4` for segments length, `2` for terms length, `'__'` as a separator.
37
- *
38
- * @return Shortened `input`.
39
- *
40
- * @example
41
- * // returns: "UsShCa__orde__mark__dire"
42
- * shorten('UserShoppingCart__order__market__director')
43
- *
44
- * // returns: "cat_wit_ver_lon_nam_pos_wit_ver_lon_nam_pos_wit_ver_lon_nam"
45
- * shorten(
46
- * 'category_with_very_long_name_posts_with_very_long_name_post_with_very_long_name',
47
- * { separator: '_', segmentLength: 3 }
48
- * )
49
- *
50
- * // equals: UsShCa__orde__mark_market_id
51
- * `${shorten('UserShoppingCart__order__market')}_market_id`
52
- */
53
- export declare function shorten(input: string, options?: IShortenOptions): string;
54
- interface IHashOptions {
55
- length?: number;
56
- }
57
- /**
58
- * Returns a hashed input.
59
- *
60
- * @param input String to be hashed.
61
- * @param options.length Optionally, shorten the output to desired length.
62
- */
63
- export declare function hash(input: string, options?: IHashOptions): string;
64
- export {};
@@ -1,24 +0,0 @@
1
- // @ts-nocheck
2
- import { EntityManager } from "../entity-manager/EntityManager";
3
- import { EntityMetadata } from "../metadata/EntityMetadata";
4
- import { FindTreesOptions } from "../repository/FindTreesOptions";
5
- /**
6
- * Provides utilities for manipulating tree structures.
7
- *
8
- */
9
- export declare class TreeRepositoryUtils {
10
- static createRelationMaps(manager: EntityManager, metadata: EntityMetadata, alias: string, rawResults: any[]): {
11
- id: any;
12
- parentId: any;
13
- }[];
14
- static buildChildrenEntityTree(metadata: EntityMetadata, entity: any, entities: any[], relationMaps: {
15
- id: any;
16
- parentId: any;
17
- }[], options: FindTreesOptions & {
18
- depth: number;
19
- }): void;
20
- static buildParentEntityTree(metadata: EntityMetadata, entity: any, entities: any[], relationMaps: {
21
- id: any;
22
- parentId: any;
23
- }[]): void;
24
- }
@@ -1,5 +0,0 @@
1
- // @ts-nocheck
2
- export type Version = [number, number, number];
3
- export declare class VersionUtils {
4
- static isGreaterOrEqual(version: string, targetVersion: string): boolean;
5
- }
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export declare const escapeRegExp: (s: String) => string;
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export * from './lib';