lakutata 2.0.64 → 2.0.66
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/com/database.cjs +0 -2
- package/com/database.d.ts +2 -2
- package/com/database.mjs +0 -2
- package/com/docker.mjs +1 -1
- package/com/logger.mjs +1 -1
- package/decorator/orm.cjs +86 -88
- package/decorator/orm.d.ts +50 -74
- package/decorator/orm.mjs +44 -46
- package/helper.mjs +2 -2
- package/lakutata.mjs +2 -2
- package/orm.cjs +1075 -112
- package/orm.d.ts +4 -4
- package/orm.mjs +1015 -17
- package/package.json +1 -1
- package/provider/database.cjs +0 -2
- package/provider/database.d.ts +2 -2
- package/provider/database.mjs +0 -2
- package/src/components/Database.cjs +0 -2
- package/src/components/Database.mjs +2 -4
- package/src/components/Logger.mjs +1 -1
- package/src/components/cacher/Cacher.mjs +10 -10
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +3 -3
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +21 -21
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +8 -8
- package/src/components/cacher/options/FileCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MemcacheCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MongoCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MysqlCacheOptions.mjs +2 -2
- package/src/components/cacher/options/PostgresCacheOptions.mjs +2 -2
- package/src/components/cacher/options/RedisCacheOptions.mjs +2 -2
- package/src/components/cacher/options/SqliteCacheOptions.mjs +2 -2
- package/src/components/docker/Docker.mjs +5 -5
- package/src/components/docker/lib/DockerContainer.mjs +3 -3
- package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
- package/src/components/docker/lib/DockerImage.mjs +2 -2
- package/src/components/docker/options/DockerPruneOptions.mjs +2 -2
- package/src/components/docker/options/auth/DockerAuthOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerCommitOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerExecOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerKillOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerLogsOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerRemoveOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerStopOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageBuildOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageExportOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageImportOptions.mjs +2 -2
- package/src/components/docker/options/image/ImagePullOptions.mjs +2 -2
- package/src/components/docker/options/image/ImagePushOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageRemoveOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageTagOptions.mjs +2 -2
- package/src/components/docker/options/network/NetworkCreateOptions.mjs +2 -2
- package/src/components/entrypoint/Entrypoint.mjs +3 -3
- package/src/components/entrypoint/lib/AccessControl.mjs +21 -21
- package/src/components/entrypoint/lib/AccessControlRule.mjs +2 -2
- package/src/components/entrypoint/lib/Controller.mjs +3 -3
- package/src/components/monitor/AliveMonitor.mjs +2 -2
- package/src/components/monitor/CpuMonitor.mjs +1 -1
- package/src/components/monitor/HttpRequestMonitor.mjs +14 -14
- package/src/components/monitor/MemoryMonitor.mjs +1 -1
- package/src/decorators/di/Configurable.mjs +1 -1
- package/src/decorators/dto/Expect.mjs +1 -1
- package/src/decorators/dto/IndexSignature.mjs +1 -1
- package/src/decorators/orm/AfterInsert.cjs +27 -7
- package/src/decorators/orm/AfterInsert.mjs +28 -6
- package/src/decorators/orm/AfterLoad.cjs +27 -7
- package/src/decorators/orm/AfterLoad.mjs +28 -6
- package/src/decorators/orm/AfterRecover.cjs +27 -7
- package/src/decorators/orm/AfterRecover.mjs +28 -6
- package/src/decorators/orm/AfterRemove.cjs +27 -7
- package/src/decorators/orm/AfterRemove.mjs +28 -6
- package/src/decorators/orm/AfterSoftRemove.cjs +27 -7
- package/src/decorators/orm/AfterSoftRemove.mjs +28 -6
- package/src/decorators/orm/AfterUpdate.cjs +27 -7
- package/src/decorators/orm/AfterUpdate.mjs +28 -6
- package/src/decorators/orm/BeforeInsert.cjs +27 -7
- package/src/decorators/orm/BeforeInsert.mjs +28 -6
- package/src/decorators/orm/BeforeRecover.cjs +27 -7
- package/src/decorators/orm/BeforeRecover.mjs +28 -6
- package/src/decorators/orm/BeforeRemove.cjs +27 -7
- package/src/decorators/orm/BeforeRemove.mjs +28 -6
- package/src/decorators/orm/BeforeSoftRemove.cjs +27 -7
- package/src/decorators/orm/BeforeSoftRemove.mjs +28 -6
- package/src/decorators/orm/BeforeUpdate.cjs +27 -7
- package/src/decorators/orm/BeforeUpdate.mjs +28 -6
- package/src/decorators/orm/Check.cjs +30 -7
- package/src/decorators/orm/Check.mjs +31 -6
- package/src/decorators/orm/ChildEntity.cjs +30 -7
- package/src/decorators/orm/ChildEntity.mjs +31 -6
- package/src/decorators/orm/Column.cjs +62 -7
- package/src/decorators/orm/Column.mjs +63 -6
- package/src/decorators/orm/CreateDateColumn.cjs +26 -7
- package/src/decorators/orm/CreateDateColumn.mjs +27 -6
- package/src/decorators/orm/DeleteDateColumn.cjs +26 -7
- package/src/decorators/orm/DeleteDateColumn.mjs +27 -6
- package/src/decorators/orm/Entity.cjs +36 -7
- package/src/decorators/orm/Entity.mjs +37 -6
- package/src/decorators/orm/EventSubscriber.cjs +23 -7
- package/src/decorators/orm/EventSubscriber.mjs +24 -6
- package/src/decorators/orm/Exclusion.cjs +30 -7
- package/src/decorators/orm/Exclusion.mjs +31 -6
- package/src/decorators/orm/Generated.cjs +25 -7
- package/src/decorators/orm/Generated.mjs +26 -6
- package/src/decorators/orm/Index.cjs +42 -7
- package/src/decorators/orm/Index.mjs +43 -6
- package/src/decorators/orm/JoinColumn.cjs +30 -7
- package/src/decorators/orm/JoinColumn.mjs +31 -6
- package/src/decorators/orm/JoinTable.cjs +31 -7
- package/src/decorators/orm/JoinTable.mjs +32 -6
- package/src/decorators/orm/ManyToMany.cjs +43 -7
- package/src/decorators/orm/ManyToMany.mjs +44 -6
- package/src/decorators/orm/ManyToOne.cjs +43 -7
- package/src/decorators/orm/ManyToOne.mjs +44 -6
- package/src/decorators/orm/ObjectIdColumn.cjs +29 -7
- package/src/decorators/orm/ObjectIdColumn.mjs +30 -6
- package/src/decorators/orm/OneToMany.cjs +35 -7
- package/src/decorators/orm/OneToMany.mjs +36 -6
- package/src/decorators/orm/OneToOne.cjs +43 -7
- package/src/decorators/orm/OneToOne.mjs +44 -6
- package/src/decorators/orm/PrimaryColumn.cjs +50 -7
- package/src/decorators/orm/PrimaryColumn.mjs +51 -6
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +55 -7
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +56 -6
- package/src/decorators/orm/RelationId.cjs +27 -7
- package/src/decorators/orm/RelationId.mjs +28 -6
- package/src/decorators/orm/TableInheritance.cjs +27 -7
- package/src/decorators/orm/TableInheritance.mjs +28 -6
- package/src/decorators/orm/Tree.cjs +25 -7
- package/src/decorators/orm/Tree.mjs +26 -6
- package/src/decorators/orm/TreeChildren.cjs +32 -7
- package/src/decorators/orm/TreeChildren.mjs +33 -6
- package/src/decorators/orm/TreeLevelColumn.cjs +26 -7
- package/src/decorators/orm/TreeLevelColumn.mjs +27 -6
- package/src/decorators/orm/TreeParent.cjs +32 -7
- package/src/decorators/orm/TreeParent.mjs +33 -6
- package/src/decorators/orm/Unique.cjs +45 -7
- package/src/decorators/orm/Unique.mjs +46 -6
- package/src/decorators/orm/UpdateDateColumn.cjs +26 -7
- package/src/decorators/orm/UpdateDateColumn.mjs +27 -6
- package/src/decorators/orm/VersionColumn.cjs +26 -7
- package/src/decorators/orm/VersionColumn.mjs +27 -6
- package/src/decorators/orm/ViewColumn.cjs +26 -7
- package/src/decorators/orm/ViewColumn.mjs +27 -6
- package/src/decorators/orm/ViewEntity.cjs +35 -7
- package/src/decorators/orm/ViewEntity.mjs +36 -6
- package/src/decorators/orm/VirtualColumn.cjs +43 -7
- package/src/decorators/orm/VirtualColumn.mjs +44 -6
- package/src/lib/base/BaseObject.mjs +1 -1
- package/src/lib/base/Context.mjs +10 -10
- package/src/lib/base/EventEmitter.mjs +1 -1
- package/src/lib/base/internal/ActionOptions.mjs +2 -2
- package/src/lib/base/internal/BasicInfo.mjs +10 -10
- package/src/lib/base/internal/DataValidator.mjs +2 -2
- package/src/lib/base/internal/FlexibleDTO.mjs +2 -2
- package/src/lib/base/internal/MethodValidation.mjs +1 -1
- package/src/lib/base/internal/ModuleConfigLoader.mjs +1 -1
- package/src/lib/base/internal/ObjectConfiguration.mjs +1 -1
- package/src/lib/base/internal/ObjectSchemaValidation.mjs +1 -1
- package/src/lib/base/internal/ObjectType.mjs +1 -1
- package/src/lib/base/internal/PatternManager.mjs +1 -1
- package/src/lib/base/internal/StringifyPattern.mjs +1 -1
- package/src/lib/context/CLIContext.mjs +5 -5
- package/src/lib/context/HTTPContext.mjs +2 -2
- package/src/lib/context/ServiceContext.mjs +2 -2
- package/src/lib/core/Application.mjs +10 -10
- package/src/lib/core/Component.mjs +2 -2
- package/src/lib/core/Container.mjs +1 -1
- package/src/lib/core/DTO.mjs +1 -1
- package/src/lib/core/Module.mjs +2 -2
- package/src/lib/core/Provider.mjs +5 -5
- package/src/lib/core/Time.mjs +1 -1
- package/src/lib/helpers/Glob.mjs +1 -1
- package/src/lib/helpers/IsGlobString.mjs +1 -1
- package/src/lib/helpers/IsHtml.mjs +5 -5
- package/src/lib/helpers/IsSymbol.mjs +1 -1
- package/src/lib/helpers/IsXML.mjs +1 -1
- package/src/lib/helpers/MD5.mjs +1 -1
- package/src/lib/helpers/ObjectHash.mjs +1 -1
- package/src/lib/helpers/RandomString.mjs +1 -1
- package/src/lib/helpers/SHA1.mjs +3 -3
- package/src/lib/helpers/SHA256.mjs +3 -3
- package/src/lib/helpers/SortArray.mjs +14 -14
- package/src/lib/helpers/Statistics.mjs +59 -59
- package/src/lib/helpers/URLBuilder.mjs +34 -34
- package/src/lib/ioc/Errors.mjs +8 -8
- package/src/lib/ioc/ListModules.mjs +2 -2
- package/src/lib/ioc/Utils.mjs +1 -1
- package/src/lib/validation/VLD.mjs +1 -1
- package/src/options/ApplicationOptions.mjs +2 -2
- package/src/options/LoadAnonymousObjectOptions.mjs +3 -3
- package/src/options/LoadNamedObjectOptions.mjs +3 -3
- package/src/options/LoadObjectOptions.mjs +1 -1
- package/src/options/ModuleLoadObjectsOptions.mjs +3 -3
- package/src/options/ModuleOptions.mjs +3 -3
- package/src/options/OverridableNamedObjectOptions.mjs +2 -2
- package/src/options/OverridableObjectOptions.mjs +3 -3
- package/src/providers/Database.cjs +0 -2
- package/src/providers/Database.mjs +2 -4
- package/src/providers/PasswordHash.mjs +19 -19
- package/vendor/Package.1.mjs +1 -1
- package/vendor/Package.12.mjs +5 -5
- package/vendor/Package.122.cjs +13223 -16706
- package/vendor/Package.122.mjs +15550 -18933
- package/vendor/Package.13.mjs +4 -4
- package/vendor/Package.132.mjs +1 -1
- package/vendor/Package.16.mjs +1 -1
- package/vendor/Package.17.mjs +5 -5
- package/vendor/Package.19.cjs +1 -1
- package/vendor/Package.19.mjs +194 -183
- package/vendor/Package.2.mjs +114 -114
- package/vendor/Package.3.mjs +30 -30
- package/vendor/Package.4.mjs +1 -1
- package/vendor/Package.5.mjs +1 -1
- package/vendor/Package.6.mjs +3 -3
- package/vendor/Package.610.mjs +1 -1
- package/vendor/Package.611.mjs +11 -11
- package/vendor/Package.62.mjs +148 -148
- package/vendor/Package.63.mjs +43 -43
- package/vendor/Package.64.mjs +1 -1
- package/vendor/Package.65.mjs +3 -3
- package/vendor/Package.66.mjs +1 -1
- package/vendor/Package.67.mjs +1 -1
- package/vendor/Package.68.mjs +1 -1
- package/vendor/Package.7.mjs +1 -1
- package/vendor/Package.9.mjs +36 -36
- package/vendor/TypeDef.internal.4.d.ts +181 -347
package/com/database.cjs
CHANGED
package/com/database.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { Component } from '../vendor/TypeDef.internal.3.js';
|
|
|
3
3
|
import { DataSourceOptions, DataSource, Driver, EntityManager, NamingStrategyInterface, EntitySubscriberInterface, EntityMetadata, EntityTarget, QueryResultCache, Migration, ObjectLiteral, Repository, TreeRepository, MongoRepository, IsolationLevel, QueryRunner, SelectQueryBuilder, ReplicationMode } from '../vendor/TypeDef.internal.4.js';
|
|
4
4
|
import '../vendor/TypeDef.internal.5.js';
|
|
5
5
|
import 'fs';
|
|
6
|
-
import 'dns';
|
|
7
|
-
import 'net';
|
|
8
6
|
import 'tls';
|
|
7
|
+
import 'net';
|
|
8
|
+
import 'dns';
|
|
9
9
|
import 'events';
|
|
10
10
|
import 'stream';
|
|
11
11
|
|
package/com/database.mjs
CHANGED
package/com/docker.mjs
CHANGED
|
@@ -6,7 +6,7 @@ export { BuildDockerConnectionOptions, BuildDockerHttpConnectionOptions, BuildDo
|
|
|
6
6
|
|
|
7
7
|
export { DockerContainer } from "../src/components/docker/lib/DockerContainer.mjs";
|
|
8
8
|
|
|
9
|
-
export { DockerContainerTTY } from "../vendor/Package.19.mjs";
|
|
9
|
+
export { D as DockerContainerTTY } from "../vendor/Package.19.mjs";
|
|
10
10
|
|
|
11
11
|
export { DockerImage } from "../src/components/docker/lib/DockerImage.mjs";
|
|
12
12
|
|
package/com/logger.mjs
CHANGED
package/decorator/orm.cjs
CHANGED
|
@@ -6,94 +6,94 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
6
6
|
|
|
7
7
|
require("../vendor/Package.4.cjs");
|
|
8
8
|
|
|
9
|
-
require("../src/decorators/orm/AfterRecover.cjs");
|
|
9
|
+
const e = require("../src/decorators/orm/AfterRecover.cjs");
|
|
10
10
|
|
|
11
|
-
require("../src/decorators/orm/AfterRemove.cjs");
|
|
11
|
+
const r = require("../src/decorators/orm/AfterRemove.cjs");
|
|
12
12
|
|
|
13
|
-
require("../src/decorators/orm/AfterInsert.cjs");
|
|
13
|
+
const o = require("../src/decorators/orm/AfterInsert.cjs");
|
|
14
14
|
|
|
15
|
-
require("../src/decorators/orm/AfterLoad.cjs");
|
|
15
|
+
const s = require("../src/decorators/orm/AfterLoad.cjs");
|
|
16
16
|
|
|
17
|
-
require("../src/decorators/orm/AfterSoftRemove.cjs");
|
|
17
|
+
const t = require("../src/decorators/orm/AfterSoftRemove.cjs");
|
|
18
18
|
|
|
19
|
-
require("../src/decorators/orm/AfterUpdate.cjs");
|
|
19
|
+
const c = require("../src/decorators/orm/AfterUpdate.cjs");
|
|
20
20
|
|
|
21
|
-
require("../src/decorators/orm/BeforeInsert.cjs");
|
|
21
|
+
const n = require("../src/decorators/orm/BeforeInsert.cjs");
|
|
22
22
|
|
|
23
|
-
require("../src/decorators/orm/BeforeRecover.cjs");
|
|
23
|
+
const a = require("../src/decorators/orm/BeforeRecover.cjs");
|
|
24
24
|
|
|
25
|
-
require("../src/decorators/orm/BeforeRemove.cjs");
|
|
25
|
+
const i = require("../src/decorators/orm/BeforeRemove.cjs");
|
|
26
26
|
|
|
27
|
-
require("../src/decorators/orm/BeforeSoftRemove.cjs");
|
|
27
|
+
const u = require("../src/decorators/orm/BeforeSoftRemove.cjs");
|
|
28
28
|
|
|
29
|
-
require("../src/decorators/orm/BeforeUpdate.cjs");
|
|
29
|
+
const m = require("../src/decorators/orm/BeforeUpdate.cjs");
|
|
30
30
|
|
|
31
|
-
require("../src/decorators/orm/Check.cjs");
|
|
31
|
+
const d = require("../src/decorators/orm/Check.cjs");
|
|
32
32
|
|
|
33
|
-
require("../src/decorators/orm/ChildEntity.cjs");
|
|
33
|
+
const q = require("../src/decorators/orm/ChildEntity.cjs");
|
|
34
34
|
|
|
35
|
-
require("../src/decorators/orm/Column.cjs");
|
|
35
|
+
const l = require("../src/decorators/orm/Column.cjs");
|
|
36
36
|
|
|
37
|
-
require("../src/decorators/orm/CreateDateColumn.cjs");
|
|
37
|
+
const j = require("../src/decorators/orm/CreateDateColumn.cjs");
|
|
38
38
|
|
|
39
|
-
require("../src/decorators/orm/DeleteDateColumn.cjs");
|
|
39
|
+
const p = require("../src/decorators/orm/DeleteDateColumn.cjs");
|
|
40
40
|
|
|
41
|
-
require("../src/decorators/orm/Entity.cjs");
|
|
41
|
+
const x = require("../src/decorators/orm/Entity.cjs");
|
|
42
42
|
|
|
43
|
-
require("../src/decorators/orm/EventSubscriber.cjs");
|
|
43
|
+
const C = require("../src/decorators/orm/EventSubscriber.cjs");
|
|
44
44
|
|
|
45
|
-
require("../src/decorators/orm/Exclusion.cjs");
|
|
45
|
+
const f = require("../src/decorators/orm/Exclusion.cjs");
|
|
46
46
|
|
|
47
|
-
require("../src/decorators/orm/Generated.cjs");
|
|
47
|
+
const v = require("../src/decorators/orm/Generated.cjs");
|
|
48
48
|
|
|
49
|
-
require("../src/decorators/orm/Index.cjs");
|
|
49
|
+
const y = require("../src/decorators/orm/Index.cjs");
|
|
50
50
|
|
|
51
|
-
require("../src/decorators/orm/JoinColumn.cjs");
|
|
51
|
+
const T = require("../src/decorators/orm/JoinColumn.cjs");
|
|
52
52
|
|
|
53
|
-
require("../src/decorators/orm/JoinTable.cjs");
|
|
53
|
+
const P = require("../src/decorators/orm/JoinTable.cjs");
|
|
54
54
|
|
|
55
|
-
require("../src/decorators/orm/ManyToMany.cjs");
|
|
55
|
+
const R = require("../src/decorators/orm/ManyToMany.cjs");
|
|
56
56
|
|
|
57
|
-
require("../src/decorators/orm/ManyToOne.cjs");
|
|
57
|
+
const b = require("../src/decorators/orm/ManyToOne.cjs");
|
|
58
58
|
|
|
59
|
-
require("../src/decorators/orm/ObjectIdColumn.cjs");
|
|
59
|
+
const A = require("../src/decorators/orm/ObjectIdColumn.cjs");
|
|
60
60
|
|
|
61
|
-
require("../src/decorators/orm/OneToMany.cjs");
|
|
61
|
+
const I = require("../src/decorators/orm/OneToMany.cjs");
|
|
62
62
|
|
|
63
|
-
require("../src/decorators/orm/OneToOne.cjs");
|
|
63
|
+
const g = require("../src/decorators/orm/OneToOne.cjs");
|
|
64
64
|
|
|
65
|
-
require("../src/decorators/orm/PrimaryColumn.cjs");
|
|
65
|
+
const k = require("../src/decorators/orm/PrimaryColumn.cjs");
|
|
66
66
|
|
|
67
|
-
require("../src/decorators/orm/PrimaryGeneratedColumn.cjs");
|
|
67
|
+
const O = require("../src/decorators/orm/PrimaryGeneratedColumn.cjs");
|
|
68
68
|
|
|
69
|
-
require("../src/decorators/orm/RelationId.cjs");
|
|
69
|
+
const B = require("../src/decorators/orm/RelationId.cjs");
|
|
70
70
|
|
|
71
|
-
require("../src/decorators/orm/TableInheritance.cjs");
|
|
71
|
+
const E = require("../src/decorators/orm/TableInheritance.cjs");
|
|
72
72
|
|
|
73
|
-
require("../src/decorators/orm/Tree.cjs");
|
|
73
|
+
const h = require("../src/decorators/orm/Tree.cjs");
|
|
74
74
|
|
|
75
|
-
require("../src/decorators/orm/TreeChildren.cjs");
|
|
75
|
+
const M = require("../src/decorators/orm/TreeChildren.cjs");
|
|
76
76
|
|
|
77
|
-
require("../src/decorators/orm/TreeLevelColumn.cjs");
|
|
77
|
+
const D = require("../src/decorators/orm/TreeLevelColumn.cjs");
|
|
78
78
|
|
|
79
|
-
require("../src/decorators/orm/TreeParent.cjs");
|
|
79
|
+
const U = require("../src/decorators/orm/TreeParent.cjs");
|
|
80
80
|
|
|
81
|
-
require("../src/decorators/orm/Unique.cjs");
|
|
81
|
+
const V = require("../src/decorators/orm/Unique.cjs");
|
|
82
82
|
|
|
83
|
-
require("../src/decorators/orm/UpdateDateColumn.cjs");
|
|
83
|
+
const S = require("../src/decorators/orm/UpdateDateColumn.cjs");
|
|
84
84
|
|
|
85
|
-
require("../src/decorators/orm/VersionColumn.cjs");
|
|
85
|
+
const w = require("../src/decorators/orm/VersionColumn.cjs");
|
|
86
86
|
|
|
87
|
-
require("../src/decorators/orm/ViewColumn.cjs");
|
|
87
|
+
const G = require("../src/decorators/orm/ViewColumn.cjs");
|
|
88
88
|
|
|
89
|
-
require("../src/decorators/orm/ViewEntity.cjs");
|
|
89
|
+
const J = require("../src/decorators/orm/ViewEntity.cjs");
|
|
90
90
|
|
|
91
|
-
require("../src/decorators/orm/VirtualColumn.cjs");
|
|
92
|
-
|
|
93
|
-
const e = require("../vendor/Package.122.cjs");
|
|
91
|
+
const L = require("../src/decorators/orm/VirtualColumn.cjs");
|
|
94
92
|
|
|
95
93
|
require("../vendor/Package.5.cjs");
|
|
96
94
|
|
|
95
|
+
require("../vendor/Package.122.cjs");
|
|
96
|
+
|
|
97
97
|
require("../vendor/Package.13.cjs");
|
|
98
98
|
|
|
99
99
|
require("../vendor/Package.1.cjs");
|
|
@@ -138,8 +138,6 @@ require("../vendor/Package.11.cjs");
|
|
|
138
138
|
|
|
139
139
|
require("url");
|
|
140
140
|
|
|
141
|
-
require("node:util");
|
|
142
|
-
|
|
143
141
|
require("../vendor/Package.63.cjs");
|
|
144
142
|
|
|
145
143
|
require("node:url");
|
|
@@ -156,86 +154,86 @@ require("node:stream");
|
|
|
156
154
|
|
|
157
155
|
require("node:string_decoder");
|
|
158
156
|
|
|
159
|
-
exports.
|
|
157
|
+
exports.AfterRecover = e.AfterRecover;
|
|
160
158
|
|
|
161
|
-
exports.
|
|
159
|
+
exports.AfterRemove = r.AfterRemove;
|
|
162
160
|
|
|
163
|
-
exports.
|
|
161
|
+
exports.AfterInsert = o.AfterInsert;
|
|
164
162
|
|
|
165
|
-
exports.
|
|
163
|
+
exports.AfterLoad = s.AfterLoad;
|
|
166
164
|
|
|
167
|
-
exports.AfterSoftRemove =
|
|
165
|
+
exports.AfterSoftRemove = t.AfterSoftRemove;
|
|
168
166
|
|
|
169
|
-
exports.AfterUpdate =
|
|
167
|
+
exports.AfterUpdate = c.AfterUpdate;
|
|
170
168
|
|
|
171
|
-
exports.BeforeInsert =
|
|
169
|
+
exports.BeforeInsert = n.BeforeInsert;
|
|
172
170
|
|
|
173
|
-
exports.BeforeRecover =
|
|
171
|
+
exports.BeforeRecover = a.BeforeRecover;
|
|
174
172
|
|
|
175
|
-
exports.BeforeRemove =
|
|
173
|
+
exports.BeforeRemove = i.BeforeRemove;
|
|
176
174
|
|
|
177
|
-
exports.BeforeSoftRemove =
|
|
175
|
+
exports.BeforeSoftRemove = u.BeforeSoftRemove;
|
|
178
176
|
|
|
179
|
-
exports.BeforeUpdate =
|
|
177
|
+
exports.BeforeUpdate = m.BeforeUpdate;
|
|
180
178
|
|
|
181
|
-
exports.Check =
|
|
179
|
+
exports.Check = d.Check;
|
|
182
180
|
|
|
183
|
-
exports.ChildEntity =
|
|
181
|
+
exports.ChildEntity = q.ChildEntity;
|
|
184
182
|
|
|
185
|
-
exports.Column =
|
|
183
|
+
exports.Column = l.Column;
|
|
186
184
|
|
|
187
|
-
exports.CreateDateColumn =
|
|
185
|
+
exports.CreateDateColumn = j.CreateDateColumn;
|
|
188
186
|
|
|
189
|
-
exports.DeleteDateColumn =
|
|
187
|
+
exports.DeleteDateColumn = p.DeleteDateColumn;
|
|
190
188
|
|
|
191
|
-
exports.Entity =
|
|
189
|
+
exports.Entity = x.Entity;
|
|
192
190
|
|
|
193
|
-
exports.EventSubscriber =
|
|
191
|
+
exports.EventSubscriber = C.EventSubscriber;
|
|
194
192
|
|
|
195
|
-
exports.Exclusion =
|
|
193
|
+
exports.Exclusion = f.Exclusion;
|
|
196
194
|
|
|
197
|
-
exports.Generated =
|
|
195
|
+
exports.Generated = v.Generated;
|
|
198
196
|
|
|
199
|
-
exports.Index =
|
|
197
|
+
exports.Index = y.Index;
|
|
200
198
|
|
|
201
|
-
exports.JoinColumn =
|
|
199
|
+
exports.JoinColumn = T.JoinColumn;
|
|
202
200
|
|
|
203
|
-
exports.JoinTable =
|
|
201
|
+
exports.JoinTable = P.JoinTable;
|
|
204
202
|
|
|
205
|
-
exports.ManyToMany =
|
|
203
|
+
exports.ManyToMany = R.ManyToMany;
|
|
206
204
|
|
|
207
|
-
exports.ManyToOne =
|
|
205
|
+
exports.ManyToOne = b.ManyToOne;
|
|
208
206
|
|
|
209
|
-
exports.ObjectIdColumn =
|
|
207
|
+
exports.ObjectIdColumn = A.ObjectIdColumn;
|
|
210
208
|
|
|
211
|
-
exports.OneToMany =
|
|
209
|
+
exports.OneToMany = I.OneToMany;
|
|
212
210
|
|
|
213
|
-
exports.OneToOne =
|
|
211
|
+
exports.OneToOne = g.OneToOne;
|
|
214
212
|
|
|
215
|
-
exports.PrimaryColumn =
|
|
213
|
+
exports.PrimaryColumn = k.PrimaryColumn;
|
|
216
214
|
|
|
217
|
-
exports.PrimaryGeneratedColumn =
|
|
215
|
+
exports.PrimaryGeneratedColumn = O.PrimaryGeneratedColumn;
|
|
218
216
|
|
|
219
|
-
exports.RelationId =
|
|
217
|
+
exports.RelationId = B.RelationId;
|
|
220
218
|
|
|
221
|
-
exports.TableInheritance =
|
|
219
|
+
exports.TableInheritance = E.TableInheritance;
|
|
222
220
|
|
|
223
|
-
exports.Tree =
|
|
221
|
+
exports.Tree = h.Tree;
|
|
224
222
|
|
|
225
|
-
exports.TreeChildren =
|
|
223
|
+
exports.TreeChildren = M.TreeChildren;
|
|
226
224
|
|
|
227
|
-
exports.TreeLevelColumn =
|
|
225
|
+
exports.TreeLevelColumn = D.TreeLevelColumn;
|
|
228
226
|
|
|
229
|
-
exports.TreeParent =
|
|
227
|
+
exports.TreeParent = U.TreeParent;
|
|
230
228
|
|
|
231
|
-
exports.Unique =
|
|
229
|
+
exports.Unique = V.Unique;
|
|
232
230
|
|
|
233
|
-
exports.UpdateDateColumn =
|
|
231
|
+
exports.UpdateDateColumn = S.UpdateDateColumn;
|
|
234
232
|
|
|
235
|
-
exports.VersionColumn =
|
|
233
|
+
exports.VersionColumn = w.VersionColumn;
|
|
236
234
|
|
|
237
|
-
exports.ViewColumn =
|
|
235
|
+
exports.ViewColumn = G.ViewColumn;
|
|
238
236
|
|
|
239
|
-
exports.ViewEntity =
|
|
237
|
+
exports.ViewEntity = J.ViewEntity;
|
|
240
238
|
|
|
241
|
-
exports.VirtualColumn =
|
|
239
|
+
exports.VirtualColumn = L.VirtualColumn;
|
package/decorator/orm.d.ts
CHANGED
|
@@ -1,28 +1,47 @@
|
|
|
1
1
|
import '../vendor/TypeDef.internal.2.js';
|
|
2
|
-
import { ColumnOptions, SimpleColumnType, ColumnCommonOptions, SpatialColumnType, SpatialColumnOptions, WithLengthColumnType,
|
|
2
|
+
import { ColumnOptions, SimpleColumnType, ColumnCommonOptions, SpatialColumnType, SpatialColumnOptions, WithLengthColumnType, WithWidthColumnType, WithPrecisionColumnType, PrimaryGeneratedColumnType, ColumnType, ValueTransformer, JoinColumnOptions, JoinTableOptions, JoinTableMultipleColumnsOptions, ObjectType, RelationOptions, SelectQueryBuilder, DataSource, OnDeleteType, TreeType, ClosureTreeOptions, DeferrableType } from '../vendor/TypeDef.internal.4.js';
|
|
3
3
|
import { EntityOptions, IndexOptions } from '../vendor/TypeDef.internal.12.js';
|
|
4
4
|
import 'fs';
|
|
5
|
-
import 'dns';
|
|
6
|
-
import 'net';
|
|
7
5
|
import 'tls';
|
|
6
|
+
import 'net';
|
|
7
|
+
import 'dns';
|
|
8
8
|
import 'events';
|
|
9
9
|
import 'stream';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Options for columns that can define a length of the column type.
|
|
13
13
|
*/
|
|
14
|
-
interface
|
|
14
|
+
interface ColumnWithLengthOptions {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Column type's length.
|
|
17
|
+
* For example type = "varchar" and length = "100" means ORM will create a column with type varchar(100).
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
length?: string | number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Options for numeric column types where user can specify scale and precision.
|
|
24
|
+
*/
|
|
25
|
+
interface ColumnNumericOptions {
|
|
20
26
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* This option works only in mongodb.
|
|
27
|
+
* The precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum
|
|
28
|
+
* number of digits that are stored for the values.
|
|
24
29
|
*/
|
|
25
|
-
|
|
30
|
+
precision?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The scale for a decimal (exact numeric) column (applies only for decimal column), which represents the number
|
|
33
|
+
* of digits to the right of the decimal point and must not be greater than precision.
|
|
34
|
+
*/
|
|
35
|
+
scale?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
|
|
38
|
+
* If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column
|
|
39
|
+
*/
|
|
40
|
+
zerofill?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Puts UNSIGNED attribute on to numeric column. Works only for MySQL.
|
|
43
|
+
*/
|
|
44
|
+
unsigned?: boolean;
|
|
26
45
|
}
|
|
27
46
|
|
|
28
47
|
/**
|
|
@@ -40,69 +59,45 @@ interface ColumnEnumOptions {
|
|
|
40
59
|
}
|
|
41
60
|
|
|
42
61
|
/**
|
|
43
|
-
* Column options
|
|
62
|
+
* Column options specific to embedded column.
|
|
44
63
|
*/
|
|
45
|
-
interface
|
|
64
|
+
interface ColumnEmbeddedOptions {
|
|
46
65
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
66
|
+
* Embedded column prefix.
|
|
67
|
+
* If set to empty string or false, then prefix is not set at all.
|
|
49
68
|
*/
|
|
50
|
-
|
|
69
|
+
prefix?: string | boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates if this embedded is in array mode.
|
|
72
|
+
*
|
|
73
|
+
* This option works only in mongodb.
|
|
74
|
+
*/
|
|
75
|
+
array?: boolean;
|
|
51
76
|
}
|
|
52
77
|
|
|
53
78
|
/**
|
|
54
|
-
*
|
|
79
|
+
* Column options for enum-typed columns.
|
|
55
80
|
*/
|
|
56
|
-
interface
|
|
57
|
-
/**
|
|
58
|
-
* The precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum
|
|
59
|
-
* number of digits that are stored for the values.
|
|
60
|
-
*/
|
|
61
|
-
precision?: number;
|
|
62
|
-
/**
|
|
63
|
-
* The scale for a decimal (exact numeric) column (applies only for decimal column), which represents the number
|
|
64
|
-
* of digits to the right of the decimal point and must not be greater than precision.
|
|
65
|
-
*/
|
|
66
|
-
scale?: number;
|
|
67
|
-
/**
|
|
68
|
-
* Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
|
|
69
|
-
* If you specify ZEROFILL for a numeric column, MySQL automatically adds
|
|
70
|
-
* the UNSIGNED attribute to the column
|
|
71
|
-
* @deprecated MySQL deprecated and removed the ZEROFILL attribute. This
|
|
72
|
-
* will also be removed from TypeORM in an upcoming version. Use a character
|
|
73
|
-
* column and the `LPAD` function as suggested by MySQL or handle the
|
|
74
|
-
* formatting in the application layer.
|
|
75
|
-
*/
|
|
76
|
-
zerofill?: boolean;
|
|
81
|
+
interface ColumnHstoreOptions {
|
|
77
82
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* numeric types. This will also be removed from TypeORM in an upcoming version.
|
|
83
|
+
* Return type of HSTORE column.
|
|
84
|
+
* Returns value as string or as object.
|
|
81
85
|
*/
|
|
82
|
-
|
|
86
|
+
hstoreType?: string;
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
/**
|
|
86
90
|
* Options for columns that can define a length of the column type.
|
|
87
91
|
*/
|
|
88
|
-
interface
|
|
92
|
+
interface ColumnWithWidthOptions {
|
|
89
93
|
/**
|
|
90
94
|
* Column type's display width. Used only on some column types in MySQL.
|
|
91
95
|
* For example, INT(4) specifies an INT with a display width of four digits.
|
|
92
|
-
* @deprecated MySQL deprecated and removed display width for integer types,
|
|
93
|
-
* TypeORM will also remove it in an upcoming version. Use a character
|
|
94
|
-
* column and the `LPAD` function as suggested by MySQL or handle the
|
|
95
|
-
* formatting in the application layer.
|
|
96
96
|
*/
|
|
97
97
|
width?: number;
|
|
98
98
|
/**
|
|
99
99
|
* Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
|
|
100
|
-
* If you specify ZEROFILL for a numeric column, MySQL automatically adds
|
|
101
|
-
* the UNSIGNED attribute to this column
|
|
102
|
-
* @deprecated MySQL deprecated and removed the zerofill attribute. This
|
|
103
|
-
* will also be removed from TypeORM in an upcoming version. Use a character
|
|
104
|
-
* column and the `LPAD` function as suggested by MySQL or handle the
|
|
105
|
-
* formatting in the application layer.
|
|
100
|
+
* If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to this column
|
|
106
101
|
*/
|
|
107
102
|
zerofill?: boolean;
|
|
108
103
|
/**
|
|
@@ -111,17 +106,6 @@ interface ColumnUnsignedOptions {
|
|
|
111
106
|
unsigned?: boolean;
|
|
112
107
|
}
|
|
113
108
|
|
|
114
|
-
/**
|
|
115
|
-
* Options for columns that can define a length of the column type.
|
|
116
|
-
*/
|
|
117
|
-
interface ColumnWithLengthOptions {
|
|
118
|
-
/**
|
|
119
|
-
* Column type's length.
|
|
120
|
-
* For example type = "varchar" and length = "100" means ORM will create a column with type varchar(100).
|
|
121
|
-
*/
|
|
122
|
-
length?: string | number;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
109
|
/**
|
|
126
110
|
* Column decorator is used to mark a specific class property as a table column. Only properties decorated with this
|
|
127
111
|
* decorator will be persisted to the database when entity be saved.
|
|
@@ -151,7 +135,7 @@ declare function Column(type: WithLengthColumnType, options?: ColumnCommonOption
|
|
|
151
135
|
* Column decorator is used to mark a specific class property as a table column.
|
|
152
136
|
* Only properties decorated with this decorator will be persisted to the database when entity be saved.
|
|
153
137
|
*/
|
|
154
|
-
declare function Column(type:
|
|
138
|
+
declare function Column(type: WithWidthColumnType, options?: ColumnCommonOptions & ColumnWithWidthOptions): PropertyDecorator;
|
|
155
139
|
/**
|
|
156
140
|
* Column decorator is used to mark a specific class property as a table column.
|
|
157
141
|
* Only properties decorated with this decorator will be persisted to the database when entity be saved.
|
|
@@ -219,9 +203,6 @@ interface PrimaryGeneratedColumnNumericOptions {
|
|
|
219
203
|
/**
|
|
220
204
|
* Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
|
|
221
205
|
* If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column
|
|
222
|
-
* @deprecated No longer supported in newer MySQL versions, will be removed
|
|
223
|
-
* from TypeORM in an upcoming version. Use a character column and the
|
|
224
|
-
* `LPAD` function as suggested by MySQL
|
|
225
206
|
*/
|
|
226
207
|
zerofill?: boolean;
|
|
227
208
|
/**
|
|
@@ -341,11 +322,6 @@ interface VirtualColumnOptions {
|
|
|
341
322
|
* Column type. Must be one of the value from the ColumnTypes class.
|
|
342
323
|
*/
|
|
343
324
|
type?: ColumnType;
|
|
344
|
-
/**
|
|
345
|
-
* Indicates if column is always selected by QueryBuilder and find operations.
|
|
346
|
-
* Default value is "true".
|
|
347
|
-
*/
|
|
348
|
-
select?: boolean;
|
|
349
325
|
/**
|
|
350
326
|
* Return type of HSTORE column.
|
|
351
327
|
* Returns value as string or as object.
|