@eggjs/tegg-types 4.0.0-beta.34 → 4.0.0-beta.36
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/dist/aop/Advice.d.ts +39 -36
- package/dist/aop/Advice.js +1 -2
- package/dist/aop/Aspect.d.ts +15 -11
- package/dist/aop/Aspect.js +5 -2
- package/dist/aop/Crosscut.d.ts +27 -23
- package/dist/aop/Crosscut.js +6 -3
- package/dist/aop/Pointcut.d.ts +27 -23
- package/dist/aop/Pointcut.js +9 -15
- package/dist/aop/index.d.ts +5 -4
- package/dist/aop/index.js +5 -5
- package/dist/common/Graph.d.ts +5 -2
- package/dist/common/Graph.js +1 -2
- package/dist/common/Logger.d.ts +9 -6
- package/dist/common/Logger.js +1 -2
- package/dist/common/ModuleConfig.d.ts +24 -22
- package/dist/common/ModuleConfig.js +1 -2
- package/dist/common/RuntimeConfig.d.ts +17 -14
- package/dist/common/RuntimeConfig.js +1 -2
- package/dist/common/index.d.ts +5 -4
- package/dist/common/index.js +1 -5
- package/dist/controller-decorator/HTTPController.d.ts +7 -4
- package/dist/controller-decorator/HTTPController.js +1 -2
- package/dist/controller-decorator/HTTPMethod.d.ts +10 -5
- package/dist/controller-decorator/HTTPMethod.js +1 -2
- package/dist/controller-decorator/HTTPParam.d.ts +9 -6
- package/dist/controller-decorator/HTTPParam.js +1 -2
- package/dist/controller-decorator/MetadataKey.d.ts +23 -20
- package/dist/controller-decorator/MetadataKey.js +24 -21
- package/dist/controller-decorator/builder.d.ts +10 -5
- package/dist/controller-decorator/builder.js +1 -2
- package/dist/controller-decorator/index.d.ts +10 -6
- package/dist/controller-decorator/index.js +4 -7
- package/dist/controller-decorator/model/ControllerMetadata.d.ts +14 -10
- package/dist/controller-decorator/model/ControllerMetadata.js +1 -2
- package/dist/controller-decorator/model/MethodMeta.d.ts +9 -5
- package/dist/controller-decorator/model/MethodMeta.js +1 -2
- package/dist/controller-decorator/model/index.d.ts +4 -3
- package/dist/controller-decorator/model/index.js +3 -4
- package/dist/controller-decorator/model/types.d.ts +47 -44
- package/dist/controller-decorator/model/types.js +37 -34
- package/dist/core-decorator/ContextProto.d.ts +9 -5
- package/dist/core-decorator/ContextProto.js +3 -2
- package/dist/core-decorator/Inject.d.ts +6 -3
- package/dist/core-decorator/Inject.js +1 -2
- package/dist/core-decorator/Metadata.d.ts +4 -1
- package/dist/core-decorator/Metadata.js +1 -2
- package/dist/core-decorator/MultiInstanceProto.d.ts +28 -23
- package/dist/core-decorator/MultiInstanceProto.js +1 -2
- package/dist/core-decorator/Prototype.d.ts +12 -7
- package/dist/core-decorator/Prototype.js +5 -2
- package/dist/core-decorator/SingletonProto.d.ts +9 -5
- package/dist/core-decorator/SingletonProto.js +1 -2
- package/dist/core-decorator/enum/AccessLevel.d.ts +7 -4
- package/dist/core-decorator/enum/AccessLevel.js +7 -6
- package/dist/core-decorator/enum/EggType.d.ts +7 -4
- package/dist/core-decorator/enum/EggType.js +7 -4
- package/dist/core-decorator/enum/InjectType.d.ts +7 -4
- package/dist/core-decorator/enum/InjectType.js +7 -4
- package/dist/core-decorator/enum/MultiInstanceType.d.ts +7 -4
- package/dist/core-decorator/enum/MultiInstanceType.js +7 -4
- package/dist/core-decorator/enum/ObjectInitType.d.ts +10 -7
- package/dist/core-decorator/enum/ObjectInitType.js +12 -12
- package/dist/core-decorator/enum/Qualifier.d.ts +10 -7
- package/dist/core-decorator/enum/Qualifier.js +11 -8
- package/dist/core-decorator/enum/index.d.ts +7 -6
- package/dist/core-decorator/enum/index.js +8 -7
- package/dist/core-decorator/index.d.ts +18 -8
- package/dist/core-decorator/index.js +12 -9
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts +58 -53
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.js +4 -4
- package/dist/core-decorator/model/EggPrototypeInfo.d.ts +38 -33
- package/dist/core-decorator/model/EggPrototypeInfo.js +3 -3
- package/dist/core-decorator/model/InjectConstructorInfo.d.ts +22 -18
- package/dist/core-decorator/model/InjectConstructorInfo.js +1 -2
- package/dist/core-decorator/model/InjectObjectInfo.d.ts +17 -14
- package/dist/core-decorator/model/InjectObjectInfo.js +1 -2
- package/dist/core-decorator/model/QualifierInfo.d.ts +39 -36
- package/dist/core-decorator/model/QualifierInfo.js +1 -2
- package/dist/core-decorator/model/index.d.ts +6 -5
- package/dist/core-decorator/model/index.js +4 -6
- package/dist/dal/Qualifier.d.ts +9 -6
- package/dist/dal/Qualifier.js +10 -7
- package/dist/dal/decorator/Column.d.ts +145 -141
- package/dist/dal/decorator/Column.js +1 -2
- package/dist/dal/decorator/DataSourceQualifier.d.ts +5 -2
- package/dist/dal/decorator/DataSourceQualifier.js +6 -3
- package/dist/dal/decorator/Table.d.ts +26 -20
- package/dist/dal/decorator/Table.js +1 -2
- package/dist/dal/decorator/index.d.ts +18 -13
- package/dist/dal/decorator/index.js +3 -4
- package/dist/dal/enum/ColumnFormat.d.ts +8 -5
- package/dist/dal/enum/ColumnFormat.js +8 -5
- package/dist/dal/enum/ColumnType.d.ts +43 -40
- package/dist/dal/enum/ColumnType.js +43 -46
- package/dist/dal/enum/CompressionType.d.ts +8 -5
- package/dist/dal/enum/CompressionType.js +8 -5
- package/dist/dal/enum/IndexStoreType.d.ts +7 -4
- package/dist/dal/enum/IndexStoreType.js +7 -4
- package/dist/dal/enum/IndexType.d.ts +10 -7
- package/dist/dal/enum/IndexType.js +10 -7
- package/dist/dal/enum/InsertMethod.d.ts +8 -5
- package/dist/dal/enum/InsertMethod.js +8 -5
- package/dist/dal/enum/RowFormat.d.ts +11 -8
- package/dist/dal/enum/RowFormat.js +11 -8
- package/dist/dal/enum/SqlType.d.ts +10 -7
- package/dist/dal/enum/SqlType.js +10 -7
- package/dist/dal/enum/Templates.d.ts +8 -5
- package/dist/dal/enum/Templates.js +8 -5
- package/dist/dal/enum/index.d.ts +10 -9
- package/dist/dal/enum/index.js +11 -10
- package/dist/dal/index.d.ts +21 -4
- package/dist/dal/index.js +13 -5
- package/dist/dal/type/BaseDao.d.ts +12 -8
- package/dist/dal/type/BaseDao.js +1 -2
- package/dist/dal/type/CodeGenerator.d.ts +8 -5
- package/dist/dal/type/CodeGenerator.js +1 -2
- package/dist/dal/type/ColumnTsType.d.ts +44 -40
- package/dist/dal/type/ColumnTsType.js +1 -2
- package/dist/dal/type/DateSource.d.ts +14 -11
- package/dist/dal/type/DateSource.js +1 -2
- package/dist/dal/type/Spatial.d.ts +13 -10
- package/dist/dal/type/Spatial.js +1 -2
- package/dist/dal/type/SqlMap.d.ts +18 -14
- package/dist/dal/type/SqlMap.js +1 -2
- package/dist/dal/type/index.d.ts +7 -6
- package/dist/dal/type/index.js +1 -7
- package/dist/dynamic-inject.d.ts +15 -10
- package/dist/dynamic-inject.js +5 -2
- package/dist/index.d.ts +73 -12
- package/dist/index.js +38 -13
- package/dist/lifecycle/EggObjectLifecycle.d.ts +38 -33
- package/dist/lifecycle/EggObjectLifecycle.js +1 -2
- package/dist/lifecycle/IdenticalObject.d.ts +6 -3
- package/dist/lifecycle/IdenticalObject.js +1 -2
- package/dist/lifecycle/LifecycleHook.d.ts +14 -11
- package/dist/lifecycle/LifecycleHook.js +1 -2
- package/dist/lifecycle/index.d.ts +4 -3
- package/dist/lifecycle/index.js +1 -4
- package/dist/metadata/enum/ProtoDescriptorType.d.ts +6 -3
- package/dist/metadata/enum/ProtoDescriptorType.js +5 -4
- package/dist/metadata/enum/index.d.ts +2 -1
- package/dist/metadata/enum/index.js +3 -2
- package/dist/metadata/errors.d.ts +8 -5
- package/dist/metadata/errors.js +8 -5
- package/dist/metadata/index.d.ts +7 -3
- package/dist/metadata/index.js +6 -4
- package/dist/metadata/model/EggPrototype.d.ts +138 -129
- package/dist/metadata/model/EggPrototype.js +3 -4
- package/dist/metadata/model/LoadUnit.d.ts +31 -26
- package/dist/metadata/model/LoadUnit.js +8 -5
- package/dist/metadata/model/Loader.d.ts +10 -5
- package/dist/metadata/model/Loader.js +1 -2
- package/dist/metadata/model/ProtoDescriptor.d.ts +27 -20
- package/dist/metadata/model/ProtoDescriptor.js +3 -3
- package/dist/metadata/model/index.d.ts +5 -4
- package/dist/metadata/model/index.js +5 -5
- package/dist/orm.d.ts +28 -25
- package/dist/orm.js +10 -7
- package/dist/runtime/Factory.d.ts +11 -6
- package/dist/runtime/Factory.js +1 -2
- package/dist/runtime/index.d.ts +6 -2
- package/dist/runtime/index.js +3 -3
- package/dist/runtime/model/EggContainer.d.ts +15 -10
- package/dist/runtime/model/EggContainer.js +1 -2
- package/dist/runtime/model/EggContext.d.ts +9 -6
- package/dist/runtime/model/EggContext.js +1 -2
- package/dist/runtime/model/EggObject.d.ts +27 -22
- package/dist/runtime/model/EggObject.js +10 -7
- package/dist/runtime/model/LoadUnitInstance.d.ts +11 -7
- package/dist/runtime/model/LoadUnitInstance.js +1 -2
- package/dist/runtime/model/index.d.ts +5 -4
- package/dist/runtime/model/index.js +3 -5
- package/dist/schedule.d.ts +42 -38
- package/dist/schedule.js +11 -8
- package/dist/transaction.d.ts +24 -21
- package/dist/transaction.js +9 -8
- package/package.json +29 -33
|
@@ -1,47 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
POLYGON: 'POLYGON',
|
|
42
|
-
MULTIPOINT: 'MULTIPOINT',
|
|
43
|
-
MULTILINESTRING: 'MULTILINESTRING',
|
|
44
|
-
MULTIPOLYGON: 'MULTIPOLYGON',
|
|
45
|
-
GEOMETRYCOLLECTION: 'GEOMETRYCOLLECTION',
|
|
1
|
+
//#region src/dal/enum/ColumnType.ts
|
|
2
|
+
const ColumnType = {
|
|
3
|
+
BIT: "BIT",
|
|
4
|
+
TINYINT: "TINYINT",
|
|
5
|
+
BOOL: "BOOL",
|
|
6
|
+
SMALLINT: "SMALLINT",
|
|
7
|
+
MEDIUMINT: "MEDIUMINT",
|
|
8
|
+
INT: "INT",
|
|
9
|
+
BIGINT: "BIGINT",
|
|
10
|
+
DECIMAL: "DECIMAL",
|
|
11
|
+
FLOAT: "FLOAT",
|
|
12
|
+
DOUBLE: "DOUBLE",
|
|
13
|
+
DATE: "DATE",
|
|
14
|
+
DATETIME: "DATETIME",
|
|
15
|
+
TIMESTAMP: "TIMESTAMP",
|
|
16
|
+
TIME: "TIME",
|
|
17
|
+
YEAR: "YEAR",
|
|
18
|
+
CHAR: "CHAR",
|
|
19
|
+
VARCHAR: "VARCHAR",
|
|
20
|
+
BINARY: "BINARY",
|
|
21
|
+
VARBINARY: "VARBINARY",
|
|
22
|
+
TINYBLOB: "TINYBLOB",
|
|
23
|
+
TINYTEXT: "TINYTEXT",
|
|
24
|
+
BLOB: "BLOB",
|
|
25
|
+
TEXT: "TEXT",
|
|
26
|
+
MEDIUMBLOB: "MEDIUMBLOB",
|
|
27
|
+
MEDIUMTEXT: "MEDIUMTEXT",
|
|
28
|
+
LONGBLOB: "LONGBLOB",
|
|
29
|
+
LONGTEXT: "LONGTEXT",
|
|
30
|
+
ENUM: "ENUM",
|
|
31
|
+
SET: "SET",
|
|
32
|
+
JSON: "JSON",
|
|
33
|
+
GEOMETRY: "GEOMETRY",
|
|
34
|
+
POINT: "POINT",
|
|
35
|
+
LINESTRING: "LINESTRING",
|
|
36
|
+
POLYGON: "POLYGON",
|
|
37
|
+
MULTIPOINT: "MULTIPOINT",
|
|
38
|
+
MULTILINESTRING: "MULTILINESTRING",
|
|
39
|
+
MULTIPOLYGON: "MULTIPOLYGON",
|
|
40
|
+
GEOMETRYCOLLECTION: "GEOMETRYCOLLECTION"
|
|
46
41
|
};
|
|
47
|
-
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { ColumnType };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/dal/enum/CompressionType.d.ts
|
|
2
|
+
declare const CompressionType: {
|
|
3
|
+
readonly ZLIB: "ZLIB";
|
|
4
|
+
readonly LZ4: "LZ4";
|
|
5
|
+
readonly NONE: "NONE";
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
type CompressionType = (typeof CompressionType)[keyof typeof CompressionType];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CompressionType };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/dal/enum/CompressionType.ts
|
|
2
|
+
const CompressionType = {
|
|
3
|
+
ZLIB: "ZLIB",
|
|
4
|
+
LZ4: "LZ4",
|
|
5
|
+
NONE: "NONE"
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CompressionType };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region src/dal/enum/IndexStoreType.d.ts
|
|
2
|
+
declare const IndexStoreType: {
|
|
3
|
+
readonly BTREE: "BTREE";
|
|
4
|
+
readonly HASH: "HASH";
|
|
4
5
|
};
|
|
5
|
-
|
|
6
|
+
type IndexStoreType = (typeof IndexStoreType)[keyof typeof IndexStoreType];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { IndexStoreType };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region src/dal/enum/IndexStoreType.ts
|
|
2
|
+
const IndexStoreType = {
|
|
3
|
+
BTREE: "BTREE",
|
|
4
|
+
HASH: "HASH"
|
|
4
5
|
};
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { IndexStoreType };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region src/dal/enum/IndexType.d.ts
|
|
2
|
+
declare const IndexType: {
|
|
3
|
+
readonly PRIMARY: "PRIMARY";
|
|
4
|
+
readonly UNIQUE: "UNIQUE";
|
|
5
|
+
readonly INDEX: "INDEX";
|
|
6
|
+
readonly FULLTEXT: "FULLTEXT";
|
|
7
|
+
readonly SPATIAL: "SPATIAL";
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
type IndexType = (typeof IndexType)[keyof typeof IndexType];
|
|
10
|
+
//#endregion
|
|
11
|
+
export { IndexType };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region src/dal/enum/IndexType.ts
|
|
2
|
+
const IndexType = {
|
|
3
|
+
PRIMARY: "PRIMARY",
|
|
4
|
+
UNIQUE: "UNIQUE",
|
|
5
|
+
INDEX: "INDEX",
|
|
6
|
+
FULLTEXT: "FULLTEXT",
|
|
7
|
+
SPATIAL: "SPATIAL"
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { IndexType };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/dal/enum/InsertMethod.d.ts
|
|
2
|
+
declare const InsertMethod: {
|
|
3
|
+
readonly NO: "NO";
|
|
4
|
+
readonly FIRST: "FIRST";
|
|
5
|
+
readonly LAST: "LAST";
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
type InsertMethod = (typeof InsertMethod)[keyof typeof InsertMethod];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { InsertMethod };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/dal/enum/InsertMethod.ts
|
|
2
|
+
const InsertMethod = {
|
|
3
|
+
NO: "NO",
|
|
4
|
+
FIRST: "FIRST",
|
|
5
|
+
LAST: "LAST"
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { InsertMethod };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/dal/enum/RowFormat.d.ts
|
|
2
|
+
declare const RowFormat: {
|
|
3
|
+
readonly DEFAULT: "DEFAULT";
|
|
4
|
+
readonly DYNAMIC: "DYNAMIC";
|
|
5
|
+
readonly FIXED: "FIXED";
|
|
6
|
+
readonly COMPRESSED: "COMPRESSED";
|
|
7
|
+
readonly REDUNDANT: "REDUNDANT";
|
|
8
|
+
readonly COMPACT: "COMPACT";
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
type RowFormat = (typeof RowFormat)[keyof typeof RowFormat];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RowFormat };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/dal/enum/RowFormat.ts
|
|
2
|
+
const RowFormat = {
|
|
3
|
+
DEFAULT: "DEFAULT",
|
|
4
|
+
DYNAMIC: "DYNAMIC",
|
|
5
|
+
FIXED: "FIXED",
|
|
6
|
+
COMPRESSED: "COMPRESSED",
|
|
7
|
+
REDUNDANT: "REDUNDANT",
|
|
8
|
+
COMPACT: "COMPACT"
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RowFormat };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region src/dal/enum/SqlType.d.ts
|
|
2
|
+
declare const SqlType: {
|
|
3
|
+
readonly BLOCK: "BLOCK";
|
|
4
|
+
readonly INSERT: "INSERT";
|
|
5
|
+
readonly SELECT: "SELECT";
|
|
6
|
+
readonly UPDATE: "UPDATE";
|
|
7
|
+
readonly DELETE: "DELETE";
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
type SqlType = (typeof SqlType)[keyof typeof SqlType];
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SqlType };
|
package/dist/dal/enum/SqlType.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region src/dal/enum/SqlType.ts
|
|
2
|
+
const SqlType = {
|
|
3
|
+
BLOCK: "BLOCK",
|
|
4
|
+
INSERT: "INSERT",
|
|
5
|
+
SELECT: "SELECT",
|
|
6
|
+
UPDATE: "UPDATE",
|
|
7
|
+
DELETE: "DELETE"
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SqlType };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/dal/enum/Templates.d.ts
|
|
2
|
+
declare const Templates: {
|
|
3
|
+
readonly BASE_DAO: "base_dao";
|
|
4
|
+
readonly DAO: "dao";
|
|
5
|
+
readonly EXTENSION: "extension";
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
type Templates = (typeof Templates)[keyof typeof Templates];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Templates };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/dal/enum/Templates.ts
|
|
2
|
+
const Templates = {
|
|
3
|
+
BASE_DAO: "base_dao",
|
|
4
|
+
DAO: "dao",
|
|
5
|
+
EXTENSION: "extension"
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Templates };
|
package/dist/dal/enum/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { ColumnFormat } from "./ColumnFormat.js";
|
|
2
|
+
import { ColumnType } from "./ColumnType.js";
|
|
3
|
+
import { CompressionType } from "./CompressionType.js";
|
|
4
|
+
import { IndexStoreType } from "./IndexStoreType.js";
|
|
5
|
+
import { IndexType } from "./IndexType.js";
|
|
6
|
+
import { InsertMethod } from "./InsertMethod.js";
|
|
7
|
+
import { RowFormat } from "./RowFormat.js";
|
|
8
|
+
import { SqlType } from "./SqlType.js";
|
|
9
|
+
import { Templates } from "./Templates.js";
|
|
10
|
+
export { ColumnFormat, ColumnType, CompressionType, IndexStoreType, IndexType, InsertMethod, RowFormat, SqlType, Templates };
|
package/dist/dal/enum/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { ColumnFormat } from "./ColumnFormat.js";
|
|
2
|
+
import { ColumnType } from "./ColumnType.js";
|
|
3
|
+
import { CompressionType } from "./CompressionType.js";
|
|
4
|
+
import { IndexStoreType } from "./IndexStoreType.js";
|
|
5
|
+
import { IndexType } from "./IndexType.js";
|
|
6
|
+
import { InsertMethod } from "./InsertMethod.js";
|
|
7
|
+
import { RowFormat } from "./RowFormat.js";
|
|
8
|
+
import { SqlType } from "./SqlType.js";
|
|
9
|
+
import { Templates } from "./Templates.js";
|
|
10
|
+
|
|
11
|
+
export { ColumnFormat, ColumnType, CompressionType, IndexStoreType, IndexType, InsertMethod, RowFormat, SqlType, Templates };
|
package/dist/dal/index.d.ts
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS } from "./Qualifier.js";
|
|
2
|
+
import { ColumnFormat } from "./enum/ColumnFormat.js";
|
|
3
|
+
import { ColumnType } from "./enum/ColumnType.js";
|
|
4
|
+
import { CompressionType } from "./enum/CompressionType.js";
|
|
5
|
+
import { IndexStoreType } from "./enum/IndexStoreType.js";
|
|
6
|
+
import { IndexType } from "./enum/IndexType.js";
|
|
7
|
+
import { InsertMethod } from "./enum/InsertMethod.js";
|
|
8
|
+
import { RowFormat } from "./enum/RowFormat.js";
|
|
9
|
+
import { SqlType } from "./enum/SqlType.js";
|
|
10
|
+
import { Templates } from "./enum/Templates.js";
|
|
11
|
+
import { BaseSpatialParams, BigIntParams, BinaryParams, BitParams, BlobParams, BoolParams, CharParams, ColumnParams, ColumnTypeParams, DateParams, DateTimeParams, DecimalParams, DoubleParams, EnumParams, FloatParams, GeometryCollectionParams, GeometryParams, IColumnTypeParams, IntParams, JsonParams, LinestringParams, LongBlobParams, LongTextParams, MediumBlobParams, MediumIntParams, MediumTextParams, MultiLinestringParams, MultiPointParams, MultiPolygonParams, PointParams, PolygonParams, SetParams, SmallIntParams, TextParams, TimeParams, TimestampParams, TinyBlobParams, TinyIntParams, TinyTextParams, VarBinaryParams, VarCharParams, YearParams } from "./decorator/Column.js";
|
|
12
|
+
import { DataSourceInjectName, DataSourceQualifierAttribute } from "./decorator/DataSourceQualifier.js";
|
|
13
|
+
import { TableParams } from "./decorator/Table.js";
|
|
14
|
+
import { IndexParams } from "./decorator/index.js";
|
|
15
|
+
import { BaseSqlMap, BlockSqlMap, FullSqlMap, GenerateSqlMap, SqlMap } from "./type/SqlMap.js";
|
|
16
|
+
import { BaseDaoType } from "./type/BaseDao.js";
|
|
17
|
+
import { CodeGeneratorOptions } from "./type/CodeGenerator.js";
|
|
18
|
+
import { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon } from "./type/Spatial.js";
|
|
19
|
+
import { ColumnTsType } from "./type/ColumnTsType.js";
|
|
20
|
+
import { DataSource, PaginateData } from "./type/DateSource.js";
|
|
21
|
+
export { BaseDaoType, BaseSpatialParams, BaseSqlMap, BigIntParams, BinaryParams, BitParams, BlobParams, BlockSqlMap, BoolParams, CharParams, CodeGeneratorOptions, ColumnFormat, ColumnParams, ColumnTsType, ColumnType, ColumnTypeParams, CompressionType, DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS, DataSource, DataSourceInjectName, DataSourceQualifierAttribute, DateParams, DateTimeParams, DecimalParams, DoubleParams, EnumParams, FloatParams, FullSqlMap, GenerateSqlMap, Geometry, GeometryCollection, GeometryCollectionParams, GeometryParams, IColumnTypeParams, IndexParams, IndexStoreType, IndexType, InsertMethod, IntParams, JsonParams, Line, LinestringParams, LongBlobParams, LongTextParams, MediumBlobParams, MediumIntParams, MediumTextParams, MultiLine, MultiLinestringParams, MultiPoint, MultiPointParams, MultiPolygon, MultiPolygonParams, PaginateData, Point, PointParams, Polygon, PolygonParams, RowFormat, SetParams, SmallIntParams, SqlMap, SqlType, TableParams, Templates, TextParams, TimeParams, TimestampParams, TinyBlobParams, TinyIntParams, TinyTextParams, VarBinaryParams, VarCharParams, YearParams };
|
package/dist/dal/index.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ColumnFormat } from "./enum/ColumnFormat.js";
|
|
2
|
+
import { ColumnType } from "./enum/ColumnType.js";
|
|
3
|
+
import { CompressionType } from "./enum/CompressionType.js";
|
|
4
|
+
import { IndexStoreType } from "./enum/IndexStoreType.js";
|
|
5
|
+
import { IndexType } from "./enum/IndexType.js";
|
|
6
|
+
import { InsertMethod } from "./enum/InsertMethod.js";
|
|
7
|
+
import { RowFormat } from "./enum/RowFormat.js";
|
|
8
|
+
import { SqlType } from "./enum/SqlType.js";
|
|
9
|
+
import { Templates } from "./enum/Templates.js";
|
|
10
|
+
import { DataSourceInjectName, DataSourceQualifierAttribute } from "./decorator/DataSourceQualifier.js";
|
|
11
|
+
import { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS } from "./Qualifier.js";
|
|
12
|
+
|
|
13
|
+
export { ColumnFormat, ColumnType, CompressionType, DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS, DataSourceInjectName, DataSourceQualifierAttribute, IndexStoreType, IndexType, InsertMethod, RowFormat, SqlType, Templates };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { EggProtoImplClass } from "../../core-decorator/model/EggPrototypeInfo.js";
|
|
2
|
+
import { SqlMap } from "./SqlMap.js";
|
|
3
|
+
|
|
4
|
+
//#region src/dal/type/BaseDao.d.ts
|
|
5
|
+
interface BaseDaoType {
|
|
6
|
+
new (...args: any[]): object;
|
|
7
|
+
clazzModel: EggProtoImplClass<object>;
|
|
8
|
+
clazzExtension: Record<string, SqlMap>;
|
|
9
|
+
tableStature: object;
|
|
10
|
+
tableSql: string;
|
|
9
11
|
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { BaseDaoType };
|
package/dist/dal/type/BaseDao.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFzZURhby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kYWwvdHlwZS9CYXNlRGFvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
1
|
+
export { };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
//#region src/dal/type/CodeGenerator.d.ts
|
|
2
|
+
interface CodeGeneratorOptions {
|
|
3
|
+
moduleDir: string;
|
|
4
|
+
moduleName: string;
|
|
5
|
+
teggPkg?: string;
|
|
6
|
+
dalPkg?: string;
|
|
6
7
|
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CodeGeneratorOptions };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29kZUdlbmVyYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kYWwvdHlwZS9Db2RlR2VuZXJhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
1
|
+
export { };
|
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
import { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon } from "./Spatial.js";
|
|
2
|
+
|
|
3
|
+
//#region src/dal/type/ColumnTsType.d.ts
|
|
4
|
+
interface ColumnTsType {
|
|
5
|
+
BIT: Buffer;
|
|
6
|
+
TINYINT: number;
|
|
7
|
+
BOOL: 0 | 1;
|
|
8
|
+
SMALLINT: number;
|
|
9
|
+
MEDIUMINT: number;
|
|
10
|
+
INT: number;
|
|
11
|
+
BIGINT: string;
|
|
12
|
+
DECIMAL: string;
|
|
13
|
+
FLOAT: number;
|
|
14
|
+
DOUBLE: number;
|
|
15
|
+
DATE: Date;
|
|
16
|
+
DATETIME: Date;
|
|
17
|
+
TIMESTAMP: Date;
|
|
18
|
+
TIME: string;
|
|
19
|
+
YEAR: number;
|
|
20
|
+
CHAR: string;
|
|
21
|
+
VARCHAR: string;
|
|
22
|
+
BINARY: Buffer;
|
|
23
|
+
VARBINARY: Buffer;
|
|
24
|
+
TINYBLOB: Buffer;
|
|
25
|
+
TINYTEXT: string;
|
|
26
|
+
BLOB: Buffer;
|
|
27
|
+
TEXT: string;
|
|
28
|
+
MEDIUMBLOB: Buffer;
|
|
29
|
+
MEDIUMTEXT: string;
|
|
30
|
+
LONGBLOB: Buffer;
|
|
31
|
+
LONGTEXT: string;
|
|
32
|
+
ENUM: string;
|
|
33
|
+
SET: string;
|
|
34
|
+
JSON: object;
|
|
35
|
+
GEOMETRY: Geometry;
|
|
36
|
+
POINT: Point;
|
|
37
|
+
LINESTRING: Line;
|
|
38
|
+
POLYGON: Polygon;
|
|
39
|
+
MULTIPOINT: MultiPoint;
|
|
40
|
+
MULTILINESTRING: MultiLine;
|
|
41
|
+
MULTIPOLYGON: MultiPolygon;
|
|
42
|
+
GEOMETRYCOLLECTION: GeometryCollection;
|
|
41
43
|
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { ColumnTsType };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29sdW1uVHNUeXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2RhbC90eXBlL0NvbHVtblRzVHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
1
|
+
export { };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/dal/type/DateSource.d.ts
|
|
2
|
+
interface PaginateData<T> {
|
|
3
|
+
total: number;
|
|
4
|
+
pageNum: number;
|
|
5
|
+
rows: Array<T>;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
interface DataSource<T> {
|
|
8
|
+
execute(sqlName: string, data?: any): Promise<Array<T>>;
|
|
9
|
+
executeScalar(sqlName: string, data?: any): Promise<T | null>;
|
|
10
|
+
executeRaw(sqlName: string, data?: any): Promise<Array<any>>;
|
|
11
|
+
executeRawScalar(sqlName: string, data?: any): Promise<any | null>;
|
|
12
|
+
paginate(sqlName: string, data: any, currentPage: number, perPageCount: number): Promise<PaginateData<T>>;
|
|
13
|
+
count(sqlName: string, data?: any): Promise<number>;
|
|
13
14
|
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { DataSource, PaginateData };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGF0ZVNvdXJjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kYWwvdHlwZS9EYXRlU291cmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
1
|
+
export { };
|