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.
- package/browser/package.json +1 -1
- package/client/package.json +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/env/env.angular-node-app.d.ts +13 -0
- package/lib/env/env.angular-node-app.js +19 -0
- package/lib/env/env.angular-node-app.js.map +1 -0
- package/lib/env/env.electron-app.d.ts +13 -0
- package/lib/env/env.electron-app.js +19 -0
- package/lib/env/env.electron-app.js.map +1 -0
- package/lib/env/env.mobile-app.d.ts +13 -0
- package/lib/env/env.mobile-app.js +19 -0
- package/lib/env/env.mobile-app.js.map +1 -0
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +13 -0
- package/lib/env/env.npm-lib-and-cli-tool.js +19 -0
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
- package/lib/env/env.vscode-plugin.d.ts +13 -0
- package/lib/env/env.vscode-plugin.js +19 -0
- package/lib/env/env.vscode-plugin.js.map +1 -0
- package/lib/env/index.d.ts +5 -0
- package/lib/env/index.js +22 -0
- package/lib/env/index.js.map +1 -0
- package/package.json +1 -1
- package/websql/package.json +1 -1
- package/client/README.md +0 -24
- package/client/fesm2022/taon-typeorm.mjs +0 -30436
- package/client/fesm2022/taon-typeorm.mjs.map +0 -1
- package/client/index.d.ts +0 -6
- package/client/lib/index.d.ts +0 -2
- package/client/lib/typeorm/cache/DbQueryResultCache.d.ts +0 -53
- package/client/lib/typeorm/cache/QueryResultCache.d.ts +0 -40
- package/client/lib/typeorm/cache/QueryResultCacheFactory.d.ts +0 -14
- package/client/lib/typeorm/cache/QueryResultCacheOptions.d.ts +0 -27
- package/client/lib/typeorm/cache/RedisQueryResultCache.d.ts +0 -66
- package/client/lib/typeorm/common/DeepPartial.d.ts +0 -7
- package/client/lib/typeorm/common/EntityTarget.d.ts +0 -10
- package/client/lib/typeorm/common/MixedList.d.ts +0 -9
- package/client/lib/typeorm/common/ObjectLiteral.d.ts +0 -7
- package/client/lib/typeorm/common/ObjectType.d.ts +0 -7
- package/client/lib/typeorm/common/RelationType.d.ts +0 -15
- package/client/lib/typeorm/connection/Connection.d.ts +0 -11
- package/client/lib/typeorm/connection/ConnectionManager.d.ts +0 -34
- package/client/lib/typeorm/connection/ConnectionMetadataBuilder.d.ts +0 -25
- package/client/lib/typeorm/connection/ConnectionOptions.d.ts +0 -10
- package/client/lib/typeorm/connection/ConnectionOptionsReader.d.ts +0 -65
- package/client/lib/typeorm/constants.d.ts +0 -2
- package/client/lib/typeorm/container.d.ts +0 -40
- package/client/lib/typeorm/data-source/BaseDataSourceOptions.d.ts +0 -172
- package/client/lib/typeorm/data-source/DataSource.d.ts +0 -247
- package/client/lib/typeorm/data-source/DataSourceOptions.d.ts +0 -9
- package/client/lib/typeorm/data-source/index.d.ts +0 -3
- package/client/lib/typeorm/decorator/Check.d.ts +0 -13
- package/client/lib/typeorm/decorator/EntityRepository.d.ts +0 -10
- package/client/lib/typeorm/decorator/Exclusion.d.ts +0 -13
- package/client/lib/typeorm/decorator/Generated.d.ts +0 -11
- package/client/lib/typeorm/decorator/Index.d.ts +0 -50
- package/client/lib/typeorm/decorator/Unique.d.ts +0 -22
- package/client/lib/typeorm/decorator/columns/Column.d.ts +0 -75
- package/client/lib/typeorm/decorator/columns/CreateDateColumn.d.ts +0 -8
- package/client/lib/typeorm/decorator/columns/DeleteDateColumn.d.ts +0 -7
- package/client/lib/typeorm/decorator/columns/ObjectIdColumn.d.ts +0 -7
- package/client/lib/typeorm/decorator/columns/PrimaryColumn.d.ts +0 -22
- package/client/lib/typeorm/decorator/columns/PrimaryGeneratedColumn.d.ts +0 -25
- package/client/lib/typeorm/decorator/columns/UpdateDateColumn.d.ts +0 -7
- package/client/lib/typeorm/decorator/columns/VersionColumn.d.ts +0 -8
- package/client/lib/typeorm/decorator/columns/ViewColumn.d.ts +0 -6
- package/client/lib/typeorm/decorator/columns/VirtualColumn.d.ts +0 -11
- package/client/lib/typeorm/decorator/entity/ChildEntity.d.ts +0 -5
- package/client/lib/typeorm/decorator/entity/Entity.d.ts +0 -12
- package/client/lib/typeorm/decorator/entity/TableInheritance.d.ts +0 -9
- package/client/lib/typeorm/decorator/entity-view/ViewEntity.d.ts +0 -12
- package/client/lib/typeorm/decorator/listeners/AfterInsert.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/AfterLoad.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/AfterRecover.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/AfterRemove.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/AfterSoftRemove.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/AfterUpdate.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/BeforeInsert.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/BeforeRecover.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/BeforeRemove.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/BeforeSoftRemove.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/BeforeUpdate.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/EventSubscriber.d.ts +0 -6
- package/client/lib/typeorm/decorator/options/ColumnCommonOptions.d.ts +0 -58
- package/client/lib/typeorm/decorator/options/ColumnEmbeddedOptions.d.ts +0 -17
- package/client/lib/typeorm/decorator/options/ColumnEnumOptions.d.ts +0 -14
- package/client/lib/typeorm/decorator/options/ColumnHstoreOptions.d.ts +0 -11
- package/client/lib/typeorm/decorator/options/ColumnNumericOptions.d.ts +0 -25
- package/client/lib/typeorm/decorator/options/ColumnOptions.d.ts +0 -159
- package/client/lib/typeorm/decorator/options/ColumnWithLengthOptions.d.ts +0 -11
- package/client/lib/typeorm/decorator/options/ColumnWithWidthOptions.d.ts +0 -20
- package/client/lib/typeorm/decorator/options/EntityOptions.d.ts +0 -43
- package/client/lib/typeorm/decorator/options/IndexOptions.d.ts +0 -53
- package/client/lib/typeorm/decorator/options/JoinColumnOptions.d.ts +0 -18
- package/client/lib/typeorm/decorator/options/JoinTableMultipleColumnsOptions.d.ts +0 -30
- package/client/lib/typeorm/decorator/options/JoinTableOptions.d.ts +0 -30
- package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnIdentityOptions.d.ts +0 -27
- package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnNumericOptions.d.ts +0 -32
- package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnUUIDOptions.d.ts +0 -18
- package/client/lib/typeorm/decorator/options/RelationOptions.d.ts +0 -65
- package/client/lib/typeorm/decorator/options/SpatialColumnOptions.d.ts +0 -16
- package/client/lib/typeorm/decorator/options/UniqueOptions.d.ts +0 -11
- package/client/lib/typeorm/decorator/options/ValueTransformer.d.ts +0 -14
- package/client/lib/typeorm/decorator/options/ViewColumnOptions.d.ts +0 -16
- package/client/lib/typeorm/decorator/options/ViewEntityOptions.d.ts +0 -40
- package/client/lib/typeorm/decorator/options/VirtualColumnOptions.d.ts +0 -28
- package/client/lib/typeorm/decorator/relations/JoinColumn.d.ts +0 -20
- package/client/lib/typeorm/decorator/relations/JoinTable.d.ts +0 -18
- package/client/lib/typeorm/decorator/relations/ManyToMany.d.ts +0 -15
- package/client/lib/typeorm/decorator/relations/ManyToOne.d.ts +0 -15
- package/client/lib/typeorm/decorator/relations/OneToMany.d.ts +0 -9
- package/client/lib/typeorm/decorator/relations/OneToOne.d.ts +0 -13
- package/client/lib/typeorm/decorator/relations/RelationCount.d.ts +0 -8
- package/client/lib/typeorm/decorator/relations/RelationId.d.ts +0 -8
- package/client/lib/typeorm/decorator/tree/Tree.d.ts +0 -10
- package/client/lib/typeorm/decorator/tree/TreeChildren.d.ts +0 -8
- package/client/lib/typeorm/decorator/tree/TreeLevelColumn.d.ts +0 -5
- package/client/lib/typeorm/decorator/tree/TreeParent.d.ts +0 -9
- package/client/lib/typeorm/driver/Driver.d.ts +0 -208
- package/client/lib/typeorm/driver/DriverFactory.d.ts +0 -12
- package/client/lib/typeorm/driver/DriverUtils.d.ts +0 -62
- package/client/lib/typeorm/driver/Query.d.ts +0 -10
- package/client/lib/typeorm/driver/SqlInMemory.d.ts +0 -9
- package/client/lib/typeorm/driver/cordova/CordovaConnectionOptions.d.ts +0 -25
- package/client/lib/typeorm/driver/cordova/CordovaDriver.d.ts +0 -26
- package/client/lib/typeorm/driver/cordova/CordovaQueryRunner.d.ts +0 -81
- package/client/lib/typeorm/driver/mongodb/typings.d.ts +0 -46
- package/client/lib/typeorm/driver/nativescript/NativescriptConnectionOptions.d.ts +0 -46
- package/client/lib/typeorm/driver/nativescript/NativescriptDriver.d.ts +0 -45
- package/client/lib/typeorm/driver/nativescript/NativescriptQueryRunner.d.ts +0 -30
- package/client/lib/typeorm/driver/react-native/ReactNativeConnectionOptions.d.ts +0 -25
- package/client/lib/typeorm/driver/react-native/ReactNativeDriver.d.ts +0 -26
- package/client/lib/typeorm/driver/react-native/ReactNativeQueryRunner.d.ts +0 -30
- package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteDriver.d.ts +0 -238
- package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.d.ts +0 -301
- package/client/lib/typeorm/driver/sqljs/SqljsConnectionOptions.d.ts +0 -47
- package/client/lib/typeorm/driver/sqljs/SqljsDriver.d.ts +0 -68
- package/client/lib/typeorm/driver/sqljs/SqljsQueryRunner.d.ts +0 -36
- package/client/lib/typeorm/driver/types/ColumnTypes.d.ts +0 -26
- package/client/lib/typeorm/driver/types/CteCapabilities.d.ts +0 -19
- package/client/lib/typeorm/driver/types/DataTypeDefaults.d.ts +0 -9
- package/client/lib/typeorm/driver/types/DatabaseType.d.ts +0 -5
- package/client/lib/typeorm/driver/types/IsolationLevel.d.ts +0 -2
- package/client/lib/typeorm/driver/types/MappedColumnTypes.d.ts +0 -113
- package/client/lib/typeorm/driver/types/MetadataTableType.d.ts +0 -6
- package/client/lib/typeorm/driver/types/ReplicationMode.d.ts +0 -2
- package/client/lib/typeorm/driver/types/UpsertType.d.ts +0 -2
- package/client/lib/typeorm/entity-manager/EntityManager.d.ts +0 -353
- package/client/lib/typeorm/entity-manager/EntityManagerFactory.d.ts +0 -13
- package/client/lib/typeorm/entity-manager/SqljsEntityManager.d.ts +0 -27
- package/client/lib/typeorm/entity-schema/EntitySchema.d.ts +0 -10
- package/client/lib/typeorm/entity-schema/EntitySchemaCheckOptions.d.ts +0 -11
- package/client/lib/typeorm/entity-schema/EntitySchemaColumnOptions.d.ts +0 -175
- package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedColumnOptions.d.ts +0 -19
- package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedError.d.ts +0 -7
- package/client/lib/typeorm/entity-schema/EntitySchemaExclusionOptions.d.ts +0 -11
- package/client/lib/typeorm/entity-schema/EntitySchemaIndexOptions.d.ts +0 -54
- package/client/lib/typeorm/entity-schema/EntitySchemaOptions.d.ts +0 -104
- package/client/lib/typeorm/entity-schema/EntitySchemaRelationIdOptions.d.ts +0 -16
- package/client/lib/typeorm/entity-schema/EntitySchemaRelationOptions.d.ts +0 -96
- package/client/lib/typeorm/entity-schema/EntitySchemaTransformer.d.ts +0 -14
- package/client/lib/typeorm/entity-schema/EntitySchemaUniqueOptions.d.ts +0 -18
- package/client/lib/typeorm/error/AlreadyHasActiveConnectionError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotAttachTreeChildrenEntityError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotConnectAlreadyConnectedError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotCreateEntityIdMapError.d.ts +0 -10
- package/client/lib/typeorm/error/CannotDetermineEntityError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotExecuteNotConnectedError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotGetEntityManagerNotConnectedError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotReflectMethodParameterTypeError.d.ts +0 -9
- package/client/lib/typeorm/error/CircularRelationsError.d.ts +0 -8
- package/client/lib/typeorm/error/ColumnTypeUndefinedError.d.ts +0 -9
- package/client/lib/typeorm/error/ConnectionIsNotSetError.d.ts +0 -8
- package/client/lib/typeorm/error/ConnectionNotFoundError.d.ts +0 -8
- package/client/lib/typeorm/error/CustomRepositoryCannotInheritRepositoryError.d.ts +0 -8
- package/client/lib/typeorm/error/CustomRepositoryDoesNotHaveEntityError.d.ts +0 -8
- package/client/lib/typeorm/error/CustomRepositoryNotFoundError.d.ts +0 -8
- package/client/lib/typeorm/error/DataTypeNotSupportedError.d.ts +0 -8
- package/client/lib/typeorm/error/DriverOptionNotSetError.d.ts +0 -8
- package/client/lib/typeorm/error/DriverPackageNotInstalledError.d.ts +0 -8
- package/client/lib/typeorm/error/EntityMetadataNotFoundError.d.ts +0 -7
- package/client/lib/typeorm/error/EntityNotFoundError.d.ts +0 -11
- package/client/lib/typeorm/error/EntityPropertyNotFoundError.d.ts +0 -9
- package/client/lib/typeorm/error/FindRelationsNotFoundError.d.ts +0 -8
- package/client/lib/typeorm/error/InitializedRelationError.d.ts +0 -12
- package/client/lib/typeorm/error/InsertValuesMissingError.d.ts +0 -8
- package/client/lib/typeorm/error/LimitOnUpdateNotSupportedError.d.ts +0 -8
- package/client/lib/typeorm/error/LockNotSupportedOnGivenDriverError.d.ts +0 -8
- package/client/lib/typeorm/error/MetadataAlreadyExistsError.d.ts +0 -5
- package/client/lib/typeorm/error/MetadataWithSuchNameAlreadyExistsError.d.ts +0 -5
- package/client/lib/typeorm/error/MissingDeleteDateColumnError.d.ts +0 -6
- package/client/lib/typeorm/error/MissingDriverError.d.ts +0 -8
- package/client/lib/typeorm/error/MissingJoinColumnError.d.ts +0 -7
- package/client/lib/typeorm/error/MissingJoinTableError.d.ts +0 -7
- package/client/lib/typeorm/error/MissingPrimaryColumnError.d.ts +0 -6
- package/client/lib/typeorm/error/MustBeEntityError.d.ts +0 -8
- package/client/lib/typeorm/error/NamingStrategyNotFoundError.d.ts +0 -8
- package/client/lib/typeorm/error/NestedSetMultipleRootError.d.ts +0 -5
- package/client/lib/typeorm/error/NoConnectionForRepositoryError.d.ts +0 -8
- package/client/lib/typeorm/error/NoConnectionOptionError.d.ts +0 -8
- package/client/lib/typeorm/error/NoNeedToReleaseEntityManagerError.d.ts +0 -8
- package/client/lib/typeorm/error/NoVersionOrUpdateDateColumnError.d.ts +0 -8
- package/client/lib/typeorm/error/OffsetWithoutLimitNotSupportedError.d.ts +0 -8
- package/client/lib/typeorm/error/OptimisticLockCanNotBeUsedError.d.ts +0 -8
- package/client/lib/typeorm/error/OptimisticLockVersionMismatchError.d.ts +0 -8
- package/client/lib/typeorm/error/PersistedEntityNotFoundError.d.ts +0 -8
- package/client/lib/typeorm/error/PessimisticLockTransactionRequiredError.d.ts +0 -8
- package/client/lib/typeorm/error/PrimaryColumnCannotBeNullableError.d.ts +0 -5
- package/client/lib/typeorm/error/QueryFailedError.d.ts +0 -11
- package/client/lib/typeorm/error/QueryRunnerAlreadyReleasedError.d.ts +0 -5
- package/client/lib/typeorm/error/QueryRunnerProviderAlreadyReleasedError.d.ts +0 -8
- package/client/lib/typeorm/error/RepositoryNotTreeError.d.ts +0 -9
- package/client/lib/typeorm/error/ReturningStatementNotSupportedError.d.ts +0 -9
- package/client/lib/typeorm/error/SubjectRemovedAndUpdatedError.d.ts +0 -9
- package/client/lib/typeorm/error/SubjectWithoutIdentifierError.d.ts +0 -11
- package/client/lib/typeorm/error/TransactionAlreadyStartedError.d.ts +0 -8
- package/client/lib/typeorm/error/TransactionNotStartedError.d.ts +0 -8
- package/client/lib/typeorm/error/TreeRepositoryNotSupportedError.d.ts +0 -6
- package/client/lib/typeorm/error/TypeORMError.d.ts +0 -5
- package/client/lib/typeorm/error/UpdateValuesMissingError.d.ts +0 -5
- package/client/lib/typeorm/error/UsingJoinColumnIsNotAllowedError.d.ts +0 -7
- package/client/lib/typeorm/error/UsingJoinColumnOnlyOnOneSideAllowedError.d.ts +0 -7
- package/client/lib/typeorm/error/UsingJoinTableIsNotAllowedError.d.ts +0 -7
- package/client/lib/typeorm/error/UsingJoinTableOnlyOnOneSideAllowedError.d.ts +0 -7
- package/client/lib/typeorm/error/index.d.ts +0 -62
- package/client/lib/typeorm/find-options/EqualOperator.d.ts +0 -6
- package/client/lib/typeorm/find-options/FindManyOptions.d.ts +0 -15
- package/client/lib/typeorm/find-options/FindOneOptions.d.ts +0 -89
- package/client/lib/typeorm/find-options/FindOperator.d.ts +0 -66
- package/client/lib/typeorm/find-options/FindOperatorType.d.ts +0 -5
- package/client/lib/typeorm/find-options/FindOptionsOrder.d.ts +0 -19
- package/client/lib/typeorm/find-options/FindOptionsRelations.d.ts +0 -19
- package/client/lib/typeorm/find-options/FindOptionsSelect.d.ts +0 -18
- package/client/lib/typeorm/find-options/FindOptionsUtils.d.ts +0 -191
- package/client/lib/typeorm/find-options/FindOptionsWhere.d.ts +0 -14
- package/client/lib/typeorm/find-options/FindTreeOptions.d.ts +0 -14
- package/client/lib/typeorm/find-options/JoinOptions.d.ts +0 -77
- package/client/lib/typeorm/find-options/OrderByCondition.d.ts +0 -18
- package/client/lib/typeorm/find-options/operator/Any.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/ArrayContainedBy.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/ArrayContains.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/ArrayOverlap.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/Between.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/Equal.d.ts +0 -12
- package/client/lib/typeorm/find-options/operator/ILike.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/In.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/IsNull.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/LessThan.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/LessThanOrEqual.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/Like.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/MoreThan.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/MoreThanOrEqual.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/Not.d.ts +0 -8
- package/client/lib/typeorm/find-options/operator/Raw.d.ts +0 -19
- package/client/lib/typeorm/globals.d.ts +0 -104
- package/client/lib/typeorm/index.d.ts +0 -168
- package/client/lib/typeorm/logger/AdvancedConsoleLogger.d.ts +0 -42
- package/client/lib/typeorm/logger/DebugLogger.d.ts +0 -41
- package/client/lib/typeorm/logger/Logger.d.ts +0 -32
- package/client/lib/typeorm/logger/LoggerFactory.d.ts +0 -12
- package/client/lib/typeorm/logger/LoggerOptions.d.ts +0 -14
- package/client/lib/typeorm/logger/SimpleConsoleLogger.d.ts +0 -42
- package/client/lib/typeorm/metadata/CheckMetadata.d.ts +0 -40
- package/client/lib/typeorm/metadata/ColumnMetadata.d.ts +0 -316
- package/client/lib/typeorm/metadata/EmbeddedMetadata.d.ts +0 -166
- package/client/lib/typeorm/metadata/EntityListenerMetadata.d.ts +0 -49
- package/client/lib/typeorm/metadata/EntityMetadata.d.ts +0 -562
- package/client/lib/typeorm/metadata/ExclusionMetadata.d.ts +0 -40
- package/client/lib/typeorm/metadata/ForeignKeyMetadata.d.ts +0 -78
- package/client/lib/typeorm/metadata/IndexMetadata.d.ts +0 -112
- package/client/lib/typeorm/metadata/RelationCountMetadata.d.ts +0 -47
- package/client/lib/typeorm/metadata/RelationIdMetadata.d.ts +0 -54
- package/client/lib/typeorm/metadata/RelationMetadata.d.ts +0 -291
- package/client/lib/typeorm/metadata/UniqueMetadata.d.ts +0 -66
- package/client/lib/typeorm/metadata/types/ClosureTreeOptions.d.ts +0 -11
- package/client/lib/typeorm/metadata/types/DeferrableType.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/EventListenerTypes.d.ts +0 -21
- package/client/lib/typeorm/metadata/types/OnDeleteType.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/OnUpdateType.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/PropertyTypeInFunction.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/RelationTypeInFunction.d.ts +0 -6
- package/client/lib/typeorm/metadata/types/RelationTypes.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/TableTypes.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/TreeTypes.d.ts +0 -6
- package/client/lib/typeorm/metadata-args/CheckMetadataArgs.d.ts +0 -18
- package/client/lib/typeorm/metadata-args/ColumnMetadataArgs.d.ts +0 -26
- package/client/lib/typeorm/metadata-args/DiscriminatorValueMetadataArgs.d.ts +0 -14
- package/client/lib/typeorm/metadata-args/EmbeddedMetadataArgs.d.ts +0 -27
- package/client/lib/typeorm/metadata-args/EntityListenerMetadataArgs.d.ts +0 -19
- package/client/lib/typeorm/metadata-args/EntityRepositoryMetadataArgs.d.ts +0 -15
- package/client/lib/typeorm/metadata-args/EntitySubscriberMetadataArgs.d.ts +0 -10
- package/client/lib/typeorm/metadata-args/ExclusionMetadataArgs.d.ts +0 -18
- package/client/lib/typeorm/metadata-args/GeneratedMetadataArgs.d.ts +0 -18
- package/client/lib/typeorm/metadata-args/IndexMetadataArgs.d.ts +0 -71
- package/client/lib/typeorm/metadata-args/InheritanceMetadataArgs.d.ts +0 -19
- package/client/lib/typeorm/metadata-args/JoinColumnMetadataArgs.d.ts +0 -27
- package/client/lib/typeorm/metadata-args/JoinTableMetadataArgs.d.ts +0 -38
- package/client/lib/typeorm/metadata-args/MetadataArgsStorage.d.ts +0 -109
- package/client/lib/typeorm/metadata-args/NamingStrategyMetadataArgs.d.ts +0 -14
- package/client/lib/typeorm/metadata-args/RelationCountMetadataArgs.d.ts +0 -27
- package/client/lib/typeorm/metadata-args/RelationIdMetadataArgs.d.ts +0 -27
- package/client/lib/typeorm/metadata-args/RelationMetadataArgs.d.ts +0 -56
- package/client/lib/typeorm/metadata-args/TableMetadataArgs.d.ts +0 -62
- package/client/lib/typeorm/metadata-args/TransactionEntityMetadataArgs.d.ts +0 -18
- package/client/lib/typeorm/metadata-args/TransactionRepositoryMetadataArgs.d.ts +0 -26
- package/client/lib/typeorm/metadata-args/TreeMetadataArgs.d.ts +0 -20
- package/client/lib/typeorm/metadata-args/UniqueMetadataArgs.d.ts +0 -25
- package/client/lib/typeorm/metadata-args/types/ColumnMode.d.ts +0 -8
- package/client/lib/typeorm/metadata-builder/ClosureJunctionEntityMetadataBuilder.d.ts +0 -15
- package/client/lib/typeorm/metadata-builder/EntityMetadataBuilder.d.ts +0 -58
- package/client/lib/typeorm/metadata-builder/EntityMetadataValidator.d.ts +0 -24
- package/client/lib/typeorm/metadata-builder/JunctionEntityMetadataBuilder.d.ts +0 -27
- package/client/lib/typeorm/metadata-builder/MetadataUtils.d.ts +0 -24
- package/client/lib/typeorm/metadata-builder/RelationJoinColumnBuilder.d.ts +0 -57
- package/client/lib/typeorm/migration/Migration.d.ts +0 -25
- package/client/lib/typeorm/migration/MigrationExecutor.d.ts +0 -100
- package/client/lib/typeorm/migration/MigrationInterface.d.ts +0 -19
- package/client/lib/typeorm/naming-strategy/DefaultNamingStrategy.d.ts +0 -50
- package/client/lib/typeorm/naming-strategy/NamingStrategyInterface.d.ts +0 -117
- package/client/lib/typeorm/persistence/EntityPersistExecutor.d.ts +0 -22
- package/client/lib/typeorm/persistence/Subject.d.ts +0 -156
- package/client/lib/typeorm/persistence/SubjectChangeMap.d.ts +0 -24
- package/client/lib/typeorm/persistence/SubjectChangedColumnsComputer.d.ts +0 -19
- package/client/lib/typeorm/persistence/SubjectDatabaseEntityLoader.d.ts +0 -36
- package/client/lib/typeorm/persistence/SubjectExecutor.d.ts +0 -119
- package/client/lib/typeorm/persistence/SubjectTopoligicalSorter.d.ts +0 -46
- package/client/lib/typeorm/persistence/subject-builder/CascadesSubjectBuilder.d.ts +0 -20
- package/client/lib/typeorm/persistence/subject-builder/ManyToManySubjectBuilder.d.ts +0 -35
- package/client/lib/typeorm/persistence/subject-builder/OneToManySubjectBuilder.d.ts +0 -28
- package/client/lib/typeorm/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.d.ts +0 -28
- package/client/lib/typeorm/persistence/tree/ClosureSubjectExecutor.d.ts +0 -27
- package/client/lib/typeorm/persistence/tree/MaterializedPathSubjectExecutor.d.ts +0 -19
- package/client/lib/typeorm/persistence/tree/NestedSetSubjectExecutor.d.ts +0 -39
- package/client/lib/typeorm/platform/PlatformTools.d.ts +0 -65
- package/client/lib/typeorm/query-builder/Alias.d.ts +0 -23
- package/client/lib/typeorm/query-builder/Brackets.d.ts +0 -17
- package/client/lib/typeorm/query-builder/DeleteQueryBuilder.d.ts +0 -92
- package/client/lib/typeorm/query-builder/InsertOrUpdateOptions.d.ts +0 -4
- package/client/lib/typeorm/query-builder/InsertQueryBuilder.d.ts +0 -118
- package/client/lib/typeorm/query-builder/JoinAttribute.d.ts +0 -84
- package/client/lib/typeorm/query-builder/NotBrackets.d.ts +0 -9
- package/client/lib/typeorm/query-builder/QueryBuilder.d.ts +0 -268
- package/client/lib/typeorm/query-builder/QueryBuilderCte.d.ts +0 -18
- package/client/lib/typeorm/query-builder/QueryBuilderUtils.d.ts +0 -11
- package/client/lib/typeorm/query-builder/QueryExpressionMap.d.ts +0 -306
- package/client/lib/typeorm/query-builder/QueryPartialEntity.d.ts +0 -16
- package/client/lib/typeorm/query-builder/RelationIdLoader.d.ts +0 -71
- package/client/lib/typeorm/query-builder/RelationLoader.d.ts +0 -60
- package/client/lib/typeorm/query-builder/RelationQueryBuilder.d.ts +0 -70
- package/client/lib/typeorm/query-builder/RelationRemover.d.ts +0 -17
- package/client/lib/typeorm/query-builder/RelationUpdater.d.ts +0 -17
- package/client/lib/typeorm/query-builder/ReturningResultsEntityUpdator.d.ts +0 -31
- package/client/lib/typeorm/query-builder/SelectQuery.d.ts +0 -6
- package/client/lib/typeorm/query-builder/SelectQueryBuilder.d.ts +0 -665
- package/client/lib/typeorm/query-builder/SelectQueryBuilderOption.d.ts +0 -2
- package/client/lib/typeorm/query-builder/SoftDeleteQueryBuilder.d.ts +0 -139
- package/client/lib/typeorm/query-builder/UpdateQueryBuilder.d.ts +0 -144
- package/client/lib/typeorm/query-builder/WhereClause.d.ts +0 -17
- package/client/lib/typeorm/query-builder/WhereExpressionBuilder.d.ts +0 -127
- package/client/lib/typeorm/query-builder/relation-count/RelationCountAttribute.d.ts +0 -54
- package/client/lib/typeorm/query-builder/relation-count/RelationCountLoadResult.d.ts +0 -9
- package/client/lib/typeorm/query-builder/relation-count/RelationCountLoader.d.ts +0 -12
- package/client/lib/typeorm/query-builder/relation-count/RelationCountMetadataToAttributeTransformer.d.ts +0 -8
- package/client/lib/typeorm/query-builder/relation-id/RelationIdAttribute.d.ts +0 -65
- package/client/lib/typeorm/query-builder/relation-id/RelationIdLoadResult.d.ts +0 -6
- package/client/lib/typeorm/query-builder/relation-id/RelationIdLoader.d.ts +0 -12
- package/client/lib/typeorm/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.d.ts +0 -8
- package/client/lib/typeorm/query-builder/result/DeleteResult.d.ts +0 -17
- package/client/lib/typeorm/query-builder/result/InsertResult.d.ts +0 -23
- package/client/lib/typeorm/query-builder/result/UpdateResult.d.ts +0 -27
- package/client/lib/typeorm/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.d.ts +0 -13
- package/client/lib/typeorm/query-builder/transformer/PlainObjectToNewEntityTransformer.d.ts +0 -15
- package/client/lib/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer.d.ts +0 -56
- package/client/lib/typeorm/query-runner/BaseQueryRunner.d.ts +0 -204
- package/client/lib/typeorm/query-runner/QueryResult.d.ts +0 -18
- package/client/lib/typeorm/query-runner/QueryRunner.d.ts +0 -359
- package/client/lib/typeorm/relation-path.d.ts +0 -7
- package/client/lib/typeorm/repository/AbstractRepository.d.ts +0 -52
- package/client/lib/typeorm/repository/BaseEntity.d.ts +0 -298
- package/client/lib/typeorm/repository/FindTreesOptions.d.ts +0 -10
- package/client/lib/typeorm/repository/RemoveOptions.d.ts +0 -28
- package/client/lib/typeorm/repository/Repository.d.ts +0 -292
- package/client/lib/typeorm/repository/SaveOptions.d.ts +0 -36
- package/client/lib/typeorm/repository/TreeRepository.d.ts +0 -56
- package/client/lib/typeorm/repository/UpsertOptions.d.ts +0 -11
- package/client/lib/typeorm/schema-builder/RdbmsSchemaBuilder.d.ts +0 -145
- package/client/lib/typeorm/schema-builder/SchemaBuilder.d.ts +0 -15
- package/client/lib/typeorm/schema-builder/options/TableCheckOptions.d.ts +0 -18
- package/client/lib/typeorm/schema-builder/options/TableColumnOptions.d.ts +0 -123
- package/client/lib/typeorm/schema-builder/options/TableExclusionOptions.d.ts +0 -14
- package/client/lib/typeorm/schema-builder/options/TableForeignKeyOptions.d.ts +0 -45
- package/client/lib/typeorm/schema-builder/options/TableIndexOptions.d.ts +0 -45
- package/client/lib/typeorm/schema-builder/options/TableOptions.d.ts +0 -62
- package/client/lib/typeorm/schema-builder/options/TableUniqueOptions.d.ts +0 -19
- package/client/lib/typeorm/schema-builder/options/ViewOptions.d.ts +0 -27
- package/client/lib/typeorm/schema-builder/table/Table.d.ts +0 -143
- package/client/lib/typeorm/schema-builder/table/TableCheck.d.ts +0 -30
- package/client/lib/typeorm/schema-builder/table/TableColumn.d.ts +0 -127
- package/client/lib/typeorm/schema-builder/table/TableExclusion.d.ts +0 -26
- package/client/lib/typeorm/schema-builder/table/TableForeignKey.d.ts +0 -58
- package/client/lib/typeorm/schema-builder/table/TableIndex.d.ts +0 -57
- package/client/lib/typeorm/schema-builder/table/TableUnique.d.ts +0 -31
- package/client/lib/typeorm/schema-builder/util/TableUtils.d.ts +0 -7
- package/client/lib/typeorm/schema-builder/util/ViewUtils.d.ts +0 -8
- package/client/lib/typeorm/schema-builder/view/View.d.ts +0 -38
- package/client/lib/typeorm/subscriber/Broadcaster.d.ts +0 -168
- package/client/lib/typeorm/subscriber/BroadcasterResult.d.ts +0 -18
- package/client/lib/typeorm/subscriber/EntitySubscriberInterface.d.ts +0 -93
- package/client/lib/typeorm/subscriber/event/InsertEvent.d.ts +0 -32
- package/client/lib/typeorm/subscriber/event/LoadEvent.d.ts +0 -32
- package/client/lib/typeorm/subscriber/event/RecoverEvent.d.ts +0 -7
- package/client/lib/typeorm/subscriber/event/RemoveEvent.d.ts +0 -41
- package/client/lib/typeorm/subscriber/event/SoftRemoveEvent.d.ts +0 -7
- package/client/lib/typeorm/subscriber/event/TransactionCommitEvent.d.ts +0 -23
- package/client/lib/typeorm/subscriber/event/TransactionRollbackEvent.d.ts +0 -23
- package/client/lib/typeorm/subscriber/event/TransactionStartEvent.d.ts +0 -23
- package/client/lib/typeorm/subscriber/event/UpdateEvent.d.ts +0 -47
- package/client/lib/typeorm/util/ApplyValueTransformers.d.ts +0 -6
- package/client/lib/typeorm/util/DateUtils.d.ts +0 -59
- package/client/lib/typeorm/util/DepGraph.d.ts +0 -65
- package/client/lib/typeorm/util/DirectoryExportedClassesLoader.d.ts +0 -10
- package/client/lib/typeorm/util/ImportUtils.d.ts +0 -2
- package/client/lib/typeorm/util/InstanceChecker.d.ts +0 -60
- package/client/lib/typeorm/util/ObjectUtils.d.ts +0 -38
- package/client/lib/typeorm/util/OrmUtils.d.ts +0 -53
- package/client/lib/typeorm/util/PathUtils.d.ts +0 -11
- package/client/lib/typeorm/util/RandomGenerator.d.ts +0 -16
- package/client/lib/typeorm/util/StringUtils.d.ts +0 -64
- package/client/lib/typeorm/util/TreeRepositoryUtils.d.ts +0 -24
- package/client/lib/typeorm/util/VersionUtils.d.ts +0 -5
- package/client/lib/typeorm/util/escapeRegExp.d.ts +0 -2
- package/client/public-api.d.ts +0 -2
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { EntityMetadata } from "./EntityMetadata";
|
|
3
|
-
import { IndexMetadataArgs } from "../metadata-args/IndexMetadataArgs";
|
|
4
|
-
import { NamingStrategyInterface } from "../naming-strategy/NamingStrategyInterface";
|
|
5
|
-
import { ColumnMetadata } from "./ColumnMetadata";
|
|
6
|
-
import { EmbeddedMetadata } from "./EmbeddedMetadata";
|
|
7
|
-
/**
|
|
8
|
-
* Index metadata contains all information about table's index.
|
|
9
|
-
*/
|
|
10
|
-
export declare class IndexMetadata {
|
|
11
|
-
/**
|
|
12
|
-
* Entity metadata of the class to which this index is applied.
|
|
13
|
-
*/
|
|
14
|
-
entityMetadata: EntityMetadata;
|
|
15
|
-
/**
|
|
16
|
-
* Embedded metadata if this index was applied on embedded.
|
|
17
|
-
*/
|
|
18
|
-
embeddedMetadata?: EmbeddedMetadata;
|
|
19
|
-
/**
|
|
20
|
-
* Indicates if this index must be unique.
|
|
21
|
-
*/
|
|
22
|
-
isUnique: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* The SPATIAL modifier indexes the entire column and does not allow indexed columns to contain NULL values.
|
|
25
|
-
* Works only in MySQL.
|
|
26
|
-
*/
|
|
27
|
-
isSpatial: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The FULLTEXT modifier indexes the entire column and does not allow prefixing.
|
|
30
|
-
* Works only in MySQL.
|
|
31
|
-
*/
|
|
32
|
-
isFulltext: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* NULL_FILTERED indexes are particularly useful for indexing sparse columns, where most rows contain a NULL value.
|
|
35
|
-
* In these cases, the NULL_FILTERED index can be considerably smaller and more efficient to maintain than
|
|
36
|
-
* a normal index that includes NULL values.
|
|
37
|
-
*
|
|
38
|
-
* Works only in Spanner.
|
|
39
|
-
*/
|
|
40
|
-
isNullFiltered: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Fulltext parser.
|
|
43
|
-
* Works only in MySQL.
|
|
44
|
-
*/
|
|
45
|
-
parser?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Indicates if this index must synchronize with database index.
|
|
48
|
-
*/
|
|
49
|
-
synchronize: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* If true, the index only references documents with the specified field.
|
|
52
|
-
* These indexes use less space but behave differently in some situations (particularly sorts).
|
|
53
|
-
* This option is only supported for mongodb database.
|
|
54
|
-
*/
|
|
55
|
-
isSparse?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Builds the index in the background so that building an index an does not block other database activities.
|
|
58
|
-
* This option is only supported for mongodb database.
|
|
59
|
-
*/
|
|
60
|
-
isBackground?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Specifies a time to live, in seconds.
|
|
63
|
-
* This option is only supported for mongodb database.
|
|
64
|
-
*/
|
|
65
|
-
expireAfterSeconds?: number;
|
|
66
|
-
/**
|
|
67
|
-
* Target class to which metadata is applied.
|
|
68
|
-
*/
|
|
69
|
-
target?: Function | string;
|
|
70
|
-
/**
|
|
71
|
-
* Indexed columns.
|
|
72
|
-
*/
|
|
73
|
-
columns: ColumnMetadata[];
|
|
74
|
-
/**
|
|
75
|
-
* User specified index name.
|
|
76
|
-
*/
|
|
77
|
-
givenName?: string;
|
|
78
|
-
/**
|
|
79
|
-
* User specified column names.
|
|
80
|
-
*/
|
|
81
|
-
givenColumnNames?: ((object?: any) => any[] | {
|
|
82
|
-
[key: string]: number;
|
|
83
|
-
}) | string[];
|
|
84
|
-
/**
|
|
85
|
-
* Final index name.
|
|
86
|
-
* If index name was given by a user then it stores normalized (by naming strategy) givenName.
|
|
87
|
-
* If index name was not given then its generated.
|
|
88
|
-
*/
|
|
89
|
-
name: string;
|
|
90
|
-
/**
|
|
91
|
-
* Index filter condition.
|
|
92
|
-
*/
|
|
93
|
-
where?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Map of column names with order set.
|
|
96
|
-
* Used only by MongoDB driver.
|
|
97
|
-
*/
|
|
98
|
-
columnNamesWithOrderingMap: {
|
|
99
|
-
[key: string]: number;
|
|
100
|
-
};
|
|
101
|
-
constructor(options: {
|
|
102
|
-
entityMetadata: EntityMetadata;
|
|
103
|
-
embeddedMetadata?: EmbeddedMetadata;
|
|
104
|
-
columns?: ColumnMetadata[];
|
|
105
|
-
args?: IndexMetadataArgs;
|
|
106
|
-
});
|
|
107
|
-
/**
|
|
108
|
-
* Builds some depend index properties.
|
|
109
|
-
* Must be called after all entity metadata's properties map, columns and relations are built.
|
|
110
|
-
*/
|
|
111
|
-
build(namingStrategy: NamingStrategyInterface): this;
|
|
112
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { RelationCountMetadataArgs } from "../metadata-args/RelationCountMetadataArgs";
|
|
3
|
-
import { EntityMetadata } from "./EntityMetadata";
|
|
4
|
-
import { RelationMetadata } from "./RelationMetadata";
|
|
5
|
-
import { SelectQueryBuilder } from "../query-builder/SelectQueryBuilder";
|
|
6
|
-
/**
|
|
7
|
-
* Contains all information about entity's relation count.
|
|
8
|
-
*/
|
|
9
|
-
export declare class RelationCountMetadata {
|
|
10
|
-
/**
|
|
11
|
-
* Entity metadata where this column metadata is.
|
|
12
|
-
*/
|
|
13
|
-
entityMetadata: EntityMetadata;
|
|
14
|
-
/**
|
|
15
|
-
* Relation which needs to be counted.
|
|
16
|
-
*/
|
|
17
|
-
relation: RelationMetadata;
|
|
18
|
-
/**
|
|
19
|
-
* Relation name which need to count.
|
|
20
|
-
*/
|
|
21
|
-
relationNameOrFactory: string | ((object: any) => any);
|
|
22
|
-
/**
|
|
23
|
-
* Target class to which metadata is applied.
|
|
24
|
-
*/
|
|
25
|
-
target: Function | string;
|
|
26
|
-
/**
|
|
27
|
-
* Target's property name to which this metadata is applied.
|
|
28
|
-
*/
|
|
29
|
-
propertyName: string;
|
|
30
|
-
/**
|
|
31
|
-
* Alias of the joined (destination) table.
|
|
32
|
-
*/
|
|
33
|
-
alias?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Extra condition applied to "ON" section of join.
|
|
36
|
-
*/
|
|
37
|
-
queryBuilderFactory?: (qb: SelectQueryBuilder<any>) => SelectQueryBuilder<any>;
|
|
38
|
-
constructor(options: {
|
|
39
|
-
entityMetadata: EntityMetadata;
|
|
40
|
-
args: RelationCountMetadataArgs;
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* Builds some depend relation count metadata properties.
|
|
44
|
-
* This builder method should be used only after entity metadata, its properties map and all relations are build.
|
|
45
|
-
*/
|
|
46
|
-
build(): void;
|
|
47
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { RelationIdMetadataArgs } from "../metadata-args/RelationIdMetadataArgs";
|
|
3
|
-
import { EntityMetadata } from "./EntityMetadata";
|
|
4
|
-
import { RelationMetadata } from "./RelationMetadata";
|
|
5
|
-
import { SelectQueryBuilder } from "../query-builder/SelectQueryBuilder";
|
|
6
|
-
import { ObjectLiteral } from "../common/ObjectLiteral";
|
|
7
|
-
/**
|
|
8
|
-
* Contains all information about entity's relation count.
|
|
9
|
-
*/
|
|
10
|
-
export declare class RelationIdMetadata {
|
|
11
|
-
/**
|
|
12
|
-
* Entity metadata where this column metadata is.
|
|
13
|
-
*/
|
|
14
|
-
entityMetadata: EntityMetadata;
|
|
15
|
-
/**
|
|
16
|
-
* Relation from which ids will be extracted.
|
|
17
|
-
*/
|
|
18
|
-
relation: RelationMetadata;
|
|
19
|
-
/**
|
|
20
|
-
* Relation name which need to count.
|
|
21
|
-
*/
|
|
22
|
-
relationNameOrFactory: string | ((object: any) => any);
|
|
23
|
-
/**
|
|
24
|
-
* Target class to which metadata is applied.
|
|
25
|
-
*/
|
|
26
|
-
target: Function | string;
|
|
27
|
-
/**
|
|
28
|
-
* Target's property name to which this metadata is applied.
|
|
29
|
-
*/
|
|
30
|
-
propertyName: string;
|
|
31
|
-
/**
|
|
32
|
-
* Alias of the joined (destination) table.
|
|
33
|
-
*/
|
|
34
|
-
alias?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Extra condition applied to "ON" section of join.
|
|
37
|
-
*/
|
|
38
|
-
queryBuilderFactory?: (qb: SelectQueryBuilder<any>) => SelectQueryBuilder<any>;
|
|
39
|
-
constructor(options: {
|
|
40
|
-
entityMetadata: EntityMetadata;
|
|
41
|
-
args: RelationIdMetadataArgs;
|
|
42
|
-
});
|
|
43
|
-
/**
|
|
44
|
-
* Sets relation id value from the given entity.
|
|
45
|
-
*
|
|
46
|
-
* todo: make it to work in embeds as well.
|
|
47
|
-
*/
|
|
48
|
-
setValue(entity: ObjectLiteral): void;
|
|
49
|
-
/**
|
|
50
|
-
* Builds some depend relation id properties.
|
|
51
|
-
* This builder method should be used only after entity metadata, its properties map and all relations are build.
|
|
52
|
-
*/
|
|
53
|
-
build(): void;
|
|
54
|
-
}
|
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { RelationType } from "./types/RelationTypes";
|
|
3
|
-
import { EntityMetadata } from "./EntityMetadata";
|
|
4
|
-
import { ForeignKeyMetadata } from "./ForeignKeyMetadata";
|
|
5
|
-
import { ObjectLiteral } from "../common/ObjectLiteral";
|
|
6
|
-
import { ColumnMetadata } from "./ColumnMetadata";
|
|
7
|
-
import { EmbeddedMetadata } from "./EmbeddedMetadata";
|
|
8
|
-
import { RelationMetadataArgs } from "../metadata-args/RelationMetadataArgs";
|
|
9
|
-
import { DeferrableType } from "./types/DeferrableType";
|
|
10
|
-
import { OnUpdateType } from "./types/OnUpdateType";
|
|
11
|
-
import { OnDeleteType } from "./types/OnDeleteType";
|
|
12
|
-
import { PropertyTypeFactory } from "./types/PropertyTypeInFunction";
|
|
13
|
-
/**
|
|
14
|
-
* Contains all information about some entity's relation.
|
|
15
|
-
*/
|
|
16
|
-
export declare class RelationMetadata {
|
|
17
|
-
/**
|
|
18
|
-
* Entity metadata of the entity where this relation is placed.
|
|
19
|
-
*
|
|
20
|
-
* For example for @ManyToMany(type => Category) in Post, entityMetadata will be metadata of Post entity.
|
|
21
|
-
*/
|
|
22
|
-
entityMetadata: EntityMetadata;
|
|
23
|
-
/**
|
|
24
|
-
* Entity metadata of the entity that is targeted by this relation.
|
|
25
|
-
*
|
|
26
|
-
* For example for @ManyToMany(type => Category) in Post, inverseEntityMetadata will be metadata of Category entity.
|
|
27
|
-
*/
|
|
28
|
-
inverseEntityMetadata: EntityMetadata;
|
|
29
|
-
/**
|
|
30
|
-
* Entity metadata of the junction table.
|
|
31
|
-
* Junction tables have their own entity metadata objects.
|
|
32
|
-
* Defined only for many-to-many relations.
|
|
33
|
-
*/
|
|
34
|
-
junctionEntityMetadata?: EntityMetadata;
|
|
35
|
-
/**
|
|
36
|
-
* Embedded metadata where this relation is.
|
|
37
|
-
* If this relation is not in embed then this property value is undefined.
|
|
38
|
-
*/
|
|
39
|
-
embeddedMetadata?: EmbeddedMetadata;
|
|
40
|
-
/**
|
|
41
|
-
* Relation type, e.g. is it one-to-one, one-to-many, many-to-one or many-to-many.
|
|
42
|
-
*/
|
|
43
|
-
relationType: RelationType;
|
|
44
|
-
/**
|
|
45
|
-
* Target entity to which this relation is applied.
|
|
46
|
-
* Target IS NOT equal to entityMetadata.target, because relation
|
|
47
|
-
*
|
|
48
|
-
* For example for @ManyToMany(type => Category) in Post, target will be Post.
|
|
49
|
-
* If @ManyToMany(type => Category) is in Counters which is embedded into Post, target will be Counters.
|
|
50
|
-
* If @ManyToMany(type => Category) is in abstract class BaseUser which Post extends, target will be BaseUser.
|
|
51
|
-
* Target can be string if its defined in entity schema instead of class.
|
|
52
|
-
*/
|
|
53
|
-
target: Function | string;
|
|
54
|
-
/**
|
|
55
|
-
* Target's property name to which relation decorator is applied.
|
|
56
|
-
*/
|
|
57
|
-
propertyName: string;
|
|
58
|
-
/**
|
|
59
|
-
* Gets full path to this column property (including relation name).
|
|
60
|
-
* Full path is relevant when column is used in embeds (one or multiple nested).
|
|
61
|
-
* For example it will return "counters.subcounters.likes".
|
|
62
|
-
* If property is not in embeds then it returns just property name of the column.
|
|
63
|
-
*/
|
|
64
|
-
propertyPath: string;
|
|
65
|
-
/**
|
|
66
|
-
* Indicates if this is a parent (can be only many-to-one relation) relation in the tree tables.
|
|
67
|
-
*/
|
|
68
|
-
isTreeParent: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Indicates if this is a children (can be only one-to-many relation) relation in the tree tables.
|
|
71
|
-
*/
|
|
72
|
-
isTreeChildren: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Indicates if this relation's column is a primary key.
|
|
75
|
-
* Can be used only for many-to-one and owner one-to-one relations.
|
|
76
|
-
*/
|
|
77
|
-
isPrimary: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Indicates if this relation is lazily loaded.
|
|
80
|
-
*/
|
|
81
|
-
isLazy: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Indicates if this relation is eagerly loaded.
|
|
84
|
-
*/
|
|
85
|
-
isEager: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Indicates if persistence is enabled for the relation.
|
|
88
|
-
* By default its enabled, but if you want to avoid any changes in the relation to be reflected in the database you can disable it.
|
|
89
|
-
* If its disabled you can only change a relation from inverse side of a relation or using relation query builder functionality.
|
|
90
|
-
* This is useful for performance optimization since its disabling avoid multiple extra queries during entity save.
|
|
91
|
-
*/
|
|
92
|
-
persistenceEnabled: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* When a parent is saved (with cascading but) without a child row that still exists in database, this will control what shall happen to them.
|
|
95
|
-
* delete will remove these rows from database. nullify will remove the relation key.
|
|
96
|
-
* skip will keep the relation intact. Removal of related item is only possible through its own repo.
|
|
97
|
-
*/
|
|
98
|
-
orphanedRowAction?: "nullify" | "delete" | "soft-delete" | "disable";
|
|
99
|
-
/**
|
|
100
|
-
* If set to true then related objects are allowed to be inserted to the database.
|
|
101
|
-
*/
|
|
102
|
-
isCascadeInsert: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* If set to true then related objects are allowed to be updated in the database.
|
|
105
|
-
*/
|
|
106
|
-
isCascadeUpdate: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* If set to true then related objects are allowed to be remove from the database.
|
|
109
|
-
*/
|
|
110
|
-
isCascadeRemove: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* If set to true then related objects are allowed to be soft-removed from the database.
|
|
113
|
-
*/
|
|
114
|
-
isCascadeSoftRemove: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* If set to true then related objects are allowed to be recovered from the database.
|
|
117
|
-
*/
|
|
118
|
-
isCascadeRecover: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Indicates if relation column value can be nullable or not.
|
|
121
|
-
*/
|
|
122
|
-
isNullable: boolean;
|
|
123
|
-
/**
|
|
124
|
-
* What to do with a relation on deletion of the row containing a foreign key.
|
|
125
|
-
*/
|
|
126
|
-
onDelete?: OnDeleteType;
|
|
127
|
-
/**
|
|
128
|
-
* What to do with a relation on update of the row containing a foreign key.
|
|
129
|
-
*/
|
|
130
|
-
onUpdate?: OnUpdateType;
|
|
131
|
-
/**
|
|
132
|
-
* What to do with a relation on update of the row containing a foreign key.
|
|
133
|
-
*/
|
|
134
|
-
deferrable?: DeferrableType;
|
|
135
|
-
/**
|
|
136
|
-
* Indicates whether foreign key constraints will be created for join columns.
|
|
137
|
-
* Can be used only for many-to-one and owner one-to-one relations.
|
|
138
|
-
* Defaults to true.
|
|
139
|
-
*/
|
|
140
|
-
createForeignKeyConstraints: boolean;
|
|
141
|
-
/**
|
|
142
|
-
* Gets the property's type to which this relation is applied.
|
|
143
|
-
*
|
|
144
|
-
* For example for @ManyToMany(type => Category) in Post, target will be Category.
|
|
145
|
-
*/
|
|
146
|
-
type: Function | string;
|
|
147
|
-
/**
|
|
148
|
-
* Indicates if this side is an owner of this relation.
|
|
149
|
-
*/
|
|
150
|
-
isOwning: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Checks if this relation's type is "one-to-one".
|
|
153
|
-
*/
|
|
154
|
-
isOneToOne: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Checks if this relation is owner side of the "one-to-one" relation.
|
|
157
|
-
* Owner side means this side of relation has a join column in the table.
|
|
158
|
-
*/
|
|
159
|
-
isOneToOneOwner: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Checks if this relation has a join column (e.g. is it many-to-one or one-to-one owner side).
|
|
162
|
-
*/
|
|
163
|
-
isWithJoinColumn: boolean;
|
|
164
|
-
/**
|
|
165
|
-
* Checks if this relation is NOT owner side of the "one-to-one" relation.
|
|
166
|
-
* NOT owner side means this side of relation does not have a join column in the table.
|
|
167
|
-
*/
|
|
168
|
-
isOneToOneNotOwner: boolean;
|
|
169
|
-
/**
|
|
170
|
-
* Checks if this relation's type is "one-to-many".
|
|
171
|
-
*/
|
|
172
|
-
isOneToMany: boolean;
|
|
173
|
-
/**
|
|
174
|
-
* Checks if this relation's type is "many-to-one".
|
|
175
|
-
*/
|
|
176
|
-
isManyToOne: boolean;
|
|
177
|
-
/**
|
|
178
|
-
* Checks if this relation's type is "many-to-many".
|
|
179
|
-
*/
|
|
180
|
-
isManyToMany: boolean;
|
|
181
|
-
/**
|
|
182
|
-
* Checks if this relation's type is "many-to-many", and is owner side of the relationship.
|
|
183
|
-
* Owner side means this side of relation has a join table.
|
|
184
|
-
*/
|
|
185
|
-
isManyToManyOwner: boolean;
|
|
186
|
-
/**
|
|
187
|
-
* Checks if this relation's type is "many-to-many", and is NOT owner side of the relationship.
|
|
188
|
-
* Not owner side means this side of relation does not have a join table.
|
|
189
|
-
*/
|
|
190
|
-
isManyToManyNotOwner: boolean;
|
|
191
|
-
/**
|
|
192
|
-
* Gets the property path of the inverse side of the relation.
|
|
193
|
-
*/
|
|
194
|
-
inverseSidePropertyPath: string;
|
|
195
|
-
/**
|
|
196
|
-
* Inverse side of the relation set by user.
|
|
197
|
-
*
|
|
198
|
-
* Inverse side set in the relation can be either string - property name of the column on inverse side,
|
|
199
|
-
* either can be a function that accepts a map of properties with the object and returns one of them.
|
|
200
|
-
* Second approach is used to achieve type-safety.
|
|
201
|
-
*/
|
|
202
|
-
givenInverseSidePropertyFactory: PropertyTypeFactory<any>;
|
|
203
|
-
/**
|
|
204
|
-
* Gets the relation metadata of the inverse side of this relation.
|
|
205
|
-
*/
|
|
206
|
-
inverseRelation?: RelationMetadata;
|
|
207
|
-
/**
|
|
208
|
-
* Join table name.
|
|
209
|
-
*/
|
|
210
|
-
joinTableName: string;
|
|
211
|
-
/**
|
|
212
|
-
* Foreign keys created for this relation.
|
|
213
|
-
*/
|
|
214
|
-
foreignKeys: ForeignKeyMetadata[];
|
|
215
|
-
/**
|
|
216
|
-
* Join table columns.
|
|
217
|
-
* Join columns can be obtained only from owner side of the relation.
|
|
218
|
-
* From non-owner side of the relation join columns will be empty.
|
|
219
|
-
* If this relation is a many-to-one/one-to-one then it takes join columns from the current entity.
|
|
220
|
-
* If this relation is many-to-many then it takes all owner join columns from the junction entity.
|
|
221
|
-
*/
|
|
222
|
-
joinColumns: ColumnMetadata[];
|
|
223
|
-
/**
|
|
224
|
-
* Inverse join table columns.
|
|
225
|
-
* Inverse join columns are supported only for many-to-many relations
|
|
226
|
-
* and can be obtained only from owner side of the relation.
|
|
227
|
-
* From non-owner side of the relation join columns will be undefined.
|
|
228
|
-
*/
|
|
229
|
-
inverseJoinColumns: ColumnMetadata[];
|
|
230
|
-
constructor(options: {
|
|
231
|
-
entityMetadata: EntityMetadata;
|
|
232
|
-
embeddedMetadata?: EmbeddedMetadata;
|
|
233
|
-
args: RelationMetadataArgs;
|
|
234
|
-
});
|
|
235
|
-
/**
|
|
236
|
-
* Creates join column ids map from the given related entity ids array.
|
|
237
|
-
*/
|
|
238
|
-
getRelationIdMap(entity: ObjectLiteral): ObjectLiteral | undefined;
|
|
239
|
-
/**
|
|
240
|
-
* Ensures that given object is an entity id map.
|
|
241
|
-
* If given id is an object then it means its already id map.
|
|
242
|
-
* If given id isn't an object then it means its a value of the id column
|
|
243
|
-
* and it creates a new id map with this value and name of the primary column.
|
|
244
|
-
*/
|
|
245
|
-
ensureRelationIdMap(id: any): ObjectLiteral;
|
|
246
|
-
/**
|
|
247
|
-
* Extracts column value from the given entity.
|
|
248
|
-
* If column is in embedded (or recursive embedded) it extracts its value from there.
|
|
249
|
-
*/
|
|
250
|
-
getEntityValue(entity: ObjectLiteral, getLazyRelationsPromiseValue?: boolean): any | undefined;
|
|
251
|
-
/**
|
|
252
|
-
* Sets given entity's relation's value.
|
|
253
|
-
* Using of this method helps to set entity relation's value of the lazy and non-lazy relations.
|
|
254
|
-
*
|
|
255
|
-
* If merge is set to true, it merges given value into currently
|
|
256
|
-
*/
|
|
257
|
-
setEntityValue(entity: ObjectLiteral, value: any): void;
|
|
258
|
-
/**
|
|
259
|
-
* Creates entity id map from the given entity ids array.
|
|
260
|
-
*/
|
|
261
|
-
createValueMap(value: any): any;
|
|
262
|
-
/**
|
|
263
|
-
* Builds some depend relation metadata properties.
|
|
264
|
-
* This builder method should be used only after embedded metadata tree was build.
|
|
265
|
-
*/
|
|
266
|
-
build(): void;
|
|
267
|
-
/**
|
|
268
|
-
* Registers given foreign keys in the relation.
|
|
269
|
-
* This builder method should be used to register foreign key in the relation.
|
|
270
|
-
*/
|
|
271
|
-
registerForeignKeys(...foreignKeys: ForeignKeyMetadata[]): void;
|
|
272
|
-
/**
|
|
273
|
-
* Registers given join columns in the relation.
|
|
274
|
-
* This builder method should be used to register join column in the relation.
|
|
275
|
-
*/
|
|
276
|
-
registerJoinColumns(joinColumns?: ColumnMetadata[], inverseJoinColumns?: ColumnMetadata[]): void;
|
|
277
|
-
/**
|
|
278
|
-
* Registers a given junction entity metadata.
|
|
279
|
-
* This builder method can be called after junction entity metadata for the many-to-many relation was created.
|
|
280
|
-
*/
|
|
281
|
-
registerJunctionEntityMetadata(junctionEntityMetadata: EntityMetadata): void;
|
|
282
|
-
/**
|
|
283
|
-
* Builds inverse side property path based on given inverse side property factory.
|
|
284
|
-
* This builder method should be used only after properties map of the inverse entity metadata was build.
|
|
285
|
-
*/
|
|
286
|
-
buildInverseSidePropertyPath(): string;
|
|
287
|
-
/**
|
|
288
|
-
* Builds relation's property path based on its embedded tree.
|
|
289
|
-
*/
|
|
290
|
-
buildPropertyPath(): string;
|
|
291
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { EmbeddedMetadata } from "./EmbeddedMetadata";
|
|
3
|
-
import { EntityMetadata } from "./EntityMetadata";
|
|
4
|
-
import { NamingStrategyInterface } from "../naming-strategy/NamingStrategyInterface";
|
|
5
|
-
import { ColumnMetadata } from "./ColumnMetadata";
|
|
6
|
-
import { UniqueMetadataArgs } from "../metadata-args/UniqueMetadataArgs";
|
|
7
|
-
import { DeferrableType } from "./types/DeferrableType";
|
|
8
|
-
/**
|
|
9
|
-
* Unique metadata contains all information about table's unique constraints.
|
|
10
|
-
*/
|
|
11
|
-
export declare class UniqueMetadata {
|
|
12
|
-
/**
|
|
13
|
-
* Entity metadata of the class to which this unique constraint is applied.
|
|
14
|
-
*/
|
|
15
|
-
entityMetadata: EntityMetadata;
|
|
16
|
-
/**
|
|
17
|
-
* Embedded metadata if this unique was applied on embedded.
|
|
18
|
-
*/
|
|
19
|
-
embeddedMetadata?: EmbeddedMetadata;
|
|
20
|
-
/**
|
|
21
|
-
* Target class to which metadata is applied.
|
|
22
|
-
*/
|
|
23
|
-
target?: Function | string;
|
|
24
|
-
/**
|
|
25
|
-
* Unique columns.
|
|
26
|
-
*/
|
|
27
|
-
columns: ColumnMetadata[];
|
|
28
|
-
/**
|
|
29
|
-
* Indicate if unique constraints can be deferred.
|
|
30
|
-
*/
|
|
31
|
-
deferrable?: DeferrableType;
|
|
32
|
-
/**
|
|
33
|
-
* User specified unique constraint name.
|
|
34
|
-
*/
|
|
35
|
-
givenName?: string;
|
|
36
|
-
/**
|
|
37
|
-
* User specified column names.
|
|
38
|
-
*/
|
|
39
|
-
givenColumnNames?: ((object?: any) => any[] | {
|
|
40
|
-
[key: string]: number;
|
|
41
|
-
}) | string[];
|
|
42
|
-
/**
|
|
43
|
-
* Final unique constraint name.
|
|
44
|
-
* If unique constraint name was given by a user then it stores normalized (by naming strategy) givenName.
|
|
45
|
-
* If unique constraint name was not given then its generated.
|
|
46
|
-
*/
|
|
47
|
-
name: string;
|
|
48
|
-
/**
|
|
49
|
-
* Map of column names with order set.
|
|
50
|
-
* Used only by MongoDB driver.
|
|
51
|
-
*/
|
|
52
|
-
columnNamesWithOrderingMap: {
|
|
53
|
-
[key: string]: number;
|
|
54
|
-
};
|
|
55
|
-
constructor(options: {
|
|
56
|
-
entityMetadata: EntityMetadata;
|
|
57
|
-
embeddedMetadata?: EmbeddedMetadata;
|
|
58
|
-
columns?: ColumnMetadata[];
|
|
59
|
-
args?: UniqueMetadataArgs;
|
|
60
|
-
});
|
|
61
|
-
/**
|
|
62
|
-
* Builds some depend unique constraint properties.
|
|
63
|
-
* Must be called after all entity metadata's properties map, columns and relations are built.
|
|
64
|
-
*/
|
|
65
|
-
build(namingStrategy: NamingStrategyInterface): this;
|
|
66
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* Tree type.
|
|
4
|
-
* Specifies what table pattern will be used for the tree entity.
|
|
5
|
-
*/
|
|
6
|
-
import { ColumnMetadata } from "../ColumnMetadata";
|
|
7
|
-
export interface ClosureTreeOptions {
|
|
8
|
-
closureTableName?: string;
|
|
9
|
-
ancestorColumnName?: (column: ColumnMetadata) => string;
|
|
10
|
-
descendantColumnName?: (column: ColumnMetadata) => string;
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* All types that entity listener can be.
|
|
4
|
-
*/
|
|
5
|
-
export type EventListenerType = "after-load" | "before-insert" | "after-insert" | "before-update" | "after-update" | "before-remove" | "after-remove" | "before-soft-remove" | "after-soft-remove" | "before-recover" | "after-recover";
|
|
6
|
-
/**
|
|
7
|
-
* Provides a constants for each entity listener type.
|
|
8
|
-
*/
|
|
9
|
-
export declare class EventListenerTypes {
|
|
10
|
-
static AFTER_LOAD: "after-load";
|
|
11
|
-
static BEFORE_INSERT: "before-insert";
|
|
12
|
-
static AFTER_INSERT: "after-insert";
|
|
13
|
-
static BEFORE_UPDATE: "before-update";
|
|
14
|
-
static AFTER_UPDATE: "after-update";
|
|
15
|
-
static BEFORE_REMOVE: "before-remove";
|
|
16
|
-
static AFTER_REMOVE: "after-remove";
|
|
17
|
-
static BEFORE_SOFT_REMOVE: "before-soft-remove";
|
|
18
|
-
static AFTER_SOFT_REMOVE: "after-soft-remove";
|
|
19
|
-
static BEFORE_RECOVER: "before-recover";
|
|
20
|
-
static AFTER_RECOVER: "after-recover";
|
|
21
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { EntityTarget } from "../../common/EntityTarget";
|
|
3
|
-
/**
|
|
4
|
-
* Function that returns a type of the field. Returned value must be a class used on the relation.
|
|
5
|
-
*/
|
|
6
|
-
export type RelationTypeInFunction = ((type?: any) => Function) | EntityTarget<any>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* Arguments for CheckMetadata class.
|
|
4
|
-
*/
|
|
5
|
-
export interface CheckMetadataArgs {
|
|
6
|
-
/**
|
|
7
|
-
* Class to which index is applied.
|
|
8
|
-
*/
|
|
9
|
-
target: Function | string;
|
|
10
|
-
/**
|
|
11
|
-
* Check constraint name.
|
|
12
|
-
*/
|
|
13
|
-
name?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Check expression.
|
|
16
|
-
*/
|
|
17
|
-
expression: string;
|
|
18
|
-
}
|