@eggjs/tegg-types 4.0.0-beta.7 → 4.0.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/aop/Advice.d.ts +30 -33
  2. package/dist/aop/Advice.js +2 -1
  3. package/dist/aop/Aspect.d.ts +11 -15
  4. package/dist/aop/Aspect.js +2 -5
  5. package/dist/aop/Crosscut.d.ts +23 -27
  6. package/dist/aop/Crosscut.js +3 -6
  7. package/dist/aop/Pointcut.d.ts +22 -26
  8. package/dist/aop/Pointcut.js +17 -20
  9. package/dist/aop/index.d.ts +4 -5
  10. package/dist/aop/index.js +5 -5
  11. package/dist/common/Graph.d.ts +2 -5
  12. package/dist/common/Graph.js +2 -1
  13. package/dist/common/Logger.d.ts +6 -9
  14. package/dist/common/Logger.js +2 -1
  15. package/dist/common/ModuleConfig.d.ts +22 -24
  16. package/dist/common/ModuleConfig.js +2 -1
  17. package/dist/common/RuntimeConfig.d.ts +14 -17
  18. package/dist/common/RuntimeConfig.js +2 -1
  19. package/dist/common/index.d.ts +4 -5
  20. package/dist/common/index.js +5 -1
  21. package/dist/controller-decorator/HTTPController.d.ts +4 -7
  22. package/dist/controller-decorator/HTTPController.js +2 -1
  23. package/dist/controller-decorator/HTTPMethod.d.ts +5 -9
  24. package/dist/controller-decorator/HTTPMethod.js +2 -1
  25. package/dist/controller-decorator/HTTPParam.d.ts +6 -9
  26. package/dist/controller-decorator/HTTPParam.js +2 -1
  27. package/dist/controller-decorator/MetadataKey.d.ts +20 -23
  28. package/dist/controller-decorator/MetadataKey.js +21 -24
  29. package/dist/controller-decorator/builder.d.ts +5 -9
  30. package/dist/controller-decorator/builder.js +2 -1
  31. package/dist/controller-decorator/index.d.ts +6 -9
  32. package/dist/controller-decorator/index.js +7 -4
  33. package/dist/controller-decorator/model/ControllerMetadata.d.ts +10 -14
  34. package/dist/controller-decorator/model/ControllerMetadata.js +2 -1
  35. package/dist/controller-decorator/model/MethodMeta.d.ts +5 -9
  36. package/dist/controller-decorator/model/MethodMeta.js +2 -1
  37. package/dist/controller-decorator/model/index.d.ts +3 -4
  38. package/dist/controller-decorator/model/index.js +4 -3
  39. package/dist/controller-decorator/model/types.d.ts +41 -45
  40. package/dist/controller-decorator/model/types.js +42 -45
  41. package/dist/core-decorator/ContextProto.d.ts +5 -9
  42. package/dist/core-decorator/ContextProto.js +2 -3
  43. package/dist/core-decorator/Inject.d.ts +3 -6
  44. package/dist/core-decorator/Inject.js +2 -1
  45. package/dist/core-decorator/Metadata.d.ts +1 -4
  46. package/dist/core-decorator/Metadata.js +2 -1
  47. package/dist/core-decorator/MultiInstanceProto.d.ts +23 -28
  48. package/dist/core-decorator/MultiInstanceProto.js +2 -1
  49. package/dist/core-decorator/Prototype.d.ts +7 -12
  50. package/dist/core-decorator/Prototype.js +2 -5
  51. package/dist/core-decorator/SingletonProto.d.ts +5 -9
  52. package/dist/core-decorator/SingletonProto.js +2 -1
  53. package/dist/core-decorator/enum/AccessLevel.d.ts +3 -6
  54. package/dist/core-decorator/enum/AccessLevel.js +8 -9
  55. package/dist/core-decorator/enum/EggType.d.ts +3 -6
  56. package/dist/core-decorator/enum/EggType.js +6 -9
  57. package/dist/core-decorator/enum/InjectType.d.ts +3 -6
  58. package/dist/core-decorator/enum/InjectType.js +6 -9
  59. package/dist/core-decorator/enum/MultiInstanceType.d.ts +3 -6
  60. package/dist/core-decorator/enum/MultiInstanceType.js +6 -9
  61. package/dist/core-decorator/enum/ObjectInitType.d.ts +6 -9
  62. package/dist/core-decorator/enum/ObjectInitType.js +14 -14
  63. package/dist/core-decorator/enum/Qualifier.d.ts +7 -10
  64. package/dist/core-decorator/enum/Qualifier.js +8 -11
  65. package/dist/core-decorator/enum/index.d.ts +6 -7
  66. package/dist/core-decorator/enum/index.js +7 -8
  67. package/dist/core-decorator/index.d.ts +8 -18
  68. package/dist/core-decorator/index.js +9 -12
  69. package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts +53 -58
  70. package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.js +4 -4
  71. package/dist/core-decorator/model/EggPrototypeInfo.d.ts +33 -38
  72. package/dist/core-decorator/model/EggPrototypeInfo.js +3 -3
  73. package/dist/core-decorator/model/InjectConstructorInfo.d.ts +18 -22
  74. package/dist/core-decorator/model/InjectConstructorInfo.js +2 -1
  75. package/dist/core-decorator/model/InjectObjectInfo.d.ts +14 -17
  76. package/dist/core-decorator/model/InjectObjectInfo.js +2 -1
  77. package/dist/core-decorator/model/QualifierInfo.d.ts +5 -8
  78. package/dist/core-decorator/model/QualifierInfo.js +2 -1
  79. package/dist/core-decorator/model/index.d.ts +5 -6
  80. package/dist/core-decorator/model/index.js +6 -4
  81. package/dist/dal/Qualifier.d.ts +6 -9
  82. package/dist/dal/Qualifier.js +7 -10
  83. package/dist/dal/decorator/Column.d.ts +141 -145
  84. package/dist/dal/decorator/Column.js +2 -1
  85. package/dist/dal/decorator/DataSourceQualifier.d.ts +2 -5
  86. package/dist/dal/decorator/DataSourceQualifier.js +3 -6
  87. package/dist/dal/decorator/Table.d.ts +20 -26
  88. package/dist/dal/decorator/Table.js +2 -1
  89. package/dist/dal/decorator/index.d.ts +13 -18
  90. package/dist/dal/decorator/index.js +4 -3
  91. package/dist/dal/enum/ColumnFormat.d.ts +4 -7
  92. package/dist/dal/enum/ColumnFormat.js +7 -10
  93. package/dist/dal/enum/ColumnType.d.ts +39 -42
  94. package/dist/dal/enum/ColumnType.js +48 -45
  95. package/dist/dal/enum/CompressionType.d.ts +4 -7
  96. package/dist/dal/enum/CompressionType.js +7 -10
  97. package/dist/dal/enum/IndexStoreType.d.ts +3 -6
  98. package/dist/dal/enum/IndexStoreType.js +6 -9
  99. package/dist/dal/enum/IndexType.d.ts +6 -9
  100. package/dist/dal/enum/IndexType.js +9 -12
  101. package/dist/dal/enum/InsertMethod.d.ts +4 -7
  102. package/dist/dal/enum/InsertMethod.js +7 -10
  103. package/dist/dal/enum/RowFormat.d.ts +7 -10
  104. package/dist/dal/enum/RowFormat.js +10 -13
  105. package/dist/dal/enum/SqlType.d.ts +6 -9
  106. package/dist/dal/enum/SqlType.js +9 -12
  107. package/dist/dal/enum/Templates.d.ts +4 -7
  108. package/dist/dal/enum/Templates.js +7 -10
  109. package/dist/dal/enum/index.d.ts +9 -10
  110. package/dist/dal/enum/index.js +10 -11
  111. package/dist/dal/index.d.ts +4 -21
  112. package/dist/dal/index.js +5 -14
  113. package/dist/dal/type/BaseDao.d.ts +8 -12
  114. package/dist/dal/type/BaseDao.js +2 -1
  115. package/dist/dal/type/CodeGenerator.d.ts +5 -8
  116. package/dist/dal/type/CodeGenerator.js +2 -1
  117. package/dist/dal/type/ColumnTsType.d.ts +40 -44
  118. package/dist/dal/type/ColumnTsType.js +2 -1
  119. package/dist/dal/type/DateSource.d.ts +11 -14
  120. package/dist/dal/type/DateSource.js +2 -1
  121. package/dist/dal/type/Spatial.d.ts +10 -13
  122. package/dist/dal/type/Spatial.js +2 -1
  123. package/dist/dal/type/SqlMap.d.ts +14 -18
  124. package/dist/dal/type/SqlMap.js +2 -1
  125. package/dist/dal/type/index.d.ts +6 -7
  126. package/dist/dal/type/index.js +7 -1
  127. package/dist/dynamic-inject.d.ts +10 -15
  128. package/dist/dynamic-inject.js +2 -5
  129. package/dist/index.d.ts +12 -72
  130. package/dist/index.js +13 -38
  131. package/dist/lifecycle/EggObjectLifecycle.d.ts +31 -36
  132. package/dist/lifecycle/EggObjectLifecycle.js +2 -1
  133. package/dist/lifecycle/IdenticalObject.d.ts +3 -6
  134. package/dist/lifecycle/IdenticalObject.js +2 -1
  135. package/dist/lifecycle/LifecycleHook.d.ts +11 -14
  136. package/dist/lifecycle/LifecycleHook.js +2 -1
  137. package/dist/lifecycle/index.d.ts +3 -4
  138. package/dist/lifecycle/index.js +4 -1
  139. package/dist/metadata/enum/ProtoDescriptorType.d.ts +2 -5
  140. package/dist/metadata/enum/ProtoDescriptorType.js +5 -8
  141. package/dist/metadata/enum/index.d.ts +1 -2
  142. package/dist/metadata/enum/index.js +2 -3
  143. package/dist/metadata/errors.d.ts +4 -7
  144. package/dist/metadata/errors.js +7 -10
  145. package/dist/metadata/index.d.ts +3 -7
  146. package/dist/metadata/index.js +4 -6
  147. package/dist/metadata/model/EggPrototype.d.ts +129 -138
  148. package/dist/metadata/model/EggPrototype.js +4 -3
  149. package/dist/metadata/model/LoadUnit.d.ts +25 -30
  150. package/dist/metadata/model/LoadUnit.js +7 -10
  151. package/dist/metadata/model/Loader.d.ts +3 -8
  152. package/dist/metadata/model/Loader.js +2 -1
  153. package/dist/metadata/model/ProtoDescriptor.d.ts +20 -27
  154. package/dist/metadata/model/ProtoDescriptor.js +3 -3
  155. package/dist/metadata/model/index.d.ts +4 -5
  156. package/dist/metadata/model/index.js +5 -5
  157. package/dist/orm.d.ts +25 -28
  158. package/dist/orm.js +7 -10
  159. package/dist/runtime/Factory.d.ts +6 -11
  160. package/dist/runtime/Factory.js +2 -1
  161. package/dist/runtime/index.d.ts +2 -6
  162. package/dist/runtime/index.js +3 -3
  163. package/dist/runtime/model/EggContainer.d.ts +10 -15
  164. package/dist/runtime/model/EggContainer.js +2 -1
  165. package/dist/runtime/model/EggContext.d.ts +6 -9
  166. package/dist/runtime/model/EggContext.js +2 -1
  167. package/dist/runtime/model/EggObject.d.ts +21 -26
  168. package/dist/runtime/model/EggObject.js +9 -12
  169. package/dist/runtime/model/LoadUnitInstance.d.ts +7 -11
  170. package/dist/runtime/model/LoadUnitInstance.js +2 -1
  171. package/dist/runtime/model/index.d.ts +4 -5
  172. package/dist/runtime/model/index.js +5 -3
  173. package/dist/schedule.d.ts +24 -27
  174. package/dist/schedule.js +10 -13
  175. package/dist/transaction.d.ts +20 -23
  176. package/dist/transaction.js +10 -13
  177. package/package.json +2 -2
@@ -1,16 +1,13 @@
1
- //#region src/dal/type/DateSource.d.ts
2
- interface PaginateData<T> {
3
- total: number;
4
- pageNum: number;
5
- rows: Array<T>;
1
+ export interface PaginateData<T> {
2
+ total: number;
3
+ pageNum: number;
4
+ rows: Array<T>;
6
5
  }
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>;
6
+ export interface DataSource<T> {
7
+ execute(sqlName: string, data?: any): Promise<Array<T>>;
8
+ executeScalar(sqlName: string, data?: any): Promise<T | null>;
9
+ executeRaw(sqlName: string, data?: any): Promise<Array<any>>;
10
+ executeRawScalar(sqlName: string, data?: any): Promise<any | null>;
11
+ paginate(sqlName: string, data: any, currentPage: number, perPageCount: number): Promise<PaginateData<T>>;
12
+ count(sqlName: string, data?: any): Promise<number>;
14
13
  }
15
- //#endregion
16
- export { DataSource, PaginateData };
@@ -1 +1,2 @@
1
- export { };
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGF0ZVNvdXJjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kYWwvdHlwZS9EYXRlU291cmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -1,14 +1,11 @@
1
- //#region src/dal/type/Spatial.d.ts
2
- interface Point {
3
- x: number;
4
- y: number;
1
+ export interface Point {
2
+ x: number;
3
+ y: number;
5
4
  }
6
- type Line = Array<Point>;
7
- type Polygon = Array<Line>;
8
- type Geometry = Point | Line | Polygon;
9
- type MultiPoint = Array<Point>;
10
- type MultiLine = Array<Line>;
11
- type MultiPolygon = Array<Polygon>;
12
- type GeometryCollection = Array<Point | Line | Polygon>;
13
- //#endregion
14
- export { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon };
5
+ export type Line = Array<Point>;
6
+ export type Polygon = Array<Line>;
7
+ export type Geometry = Point | Line | Polygon;
8
+ export type MultiPoint = Array<Point>;
9
+ export type MultiLine = Array<Line>;
10
+ export type MultiPolygon = Array<Polygon>;
11
+ export type GeometryCollection = Array<Point | Line | Polygon>;
@@ -1 +1,2 @@
1
- export { };
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3BhdGlhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kYWwvdHlwZS9TcGF0aWFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -1,22 +1,18 @@
1
- import { SqlType } from "../enum/SqlType.js";
2
-
3
- //#region src/dal/type/SqlMap.d.ts
4
- interface BaseSqlMap {
5
- type?: SqlType;
1
+ import type { SqlType } from '../enum/index.ts';
2
+ export interface BaseSqlMap {
3
+ type?: SqlType;
6
4
  }
7
- interface FullSqlMap extends BaseSqlMap {
8
- type: SqlType.DELETE | SqlType.INSERT | SqlType.UPDATE | SqlType.SELECT;
9
- sql: string;
5
+ export interface FullSqlMap extends BaseSqlMap {
6
+ type: SqlType.DELETE | SqlType.INSERT | SqlType.UPDATE | SqlType.SELECT;
7
+ sql: string;
10
8
  }
11
- interface BlockSqlMap extends BaseSqlMap {
12
- type: SqlType.BLOCK;
13
- content: string;
9
+ export interface BlockSqlMap extends BaseSqlMap {
10
+ type: SqlType.BLOCK;
11
+ content: string;
14
12
  }
15
- type SqlMap = FullSqlMap | BlockSqlMap;
16
- interface GenerateSqlMap {
17
- name: string;
18
- type: SqlType.DELETE | SqlType.UPDATE | SqlType.INSERT | SqlType.SELECT;
19
- sql: string;
13
+ export type SqlMap = FullSqlMap | BlockSqlMap;
14
+ export interface GenerateSqlMap {
15
+ name: string;
16
+ type: SqlType.DELETE | SqlType.UPDATE | SqlType.INSERT | SqlType.SELECT;
17
+ sql: string;
20
18
  }
21
- //#endregion
22
- export { BaseSqlMap, BlockSqlMap, FullSqlMap, GenerateSqlMap, SqlMap };
@@ -1 +1,2 @@
1
- export { };
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3FsTWFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2RhbC90eXBlL1NxbE1hcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -1,7 +1,6 @@
1
- import { BaseSqlMap, BlockSqlMap, FullSqlMap, GenerateSqlMap, SqlMap } from "./SqlMap.js";
2
- import { BaseDaoType } from "./BaseDao.js";
3
- import { CodeGeneratorOptions } from "./CodeGenerator.js";
4
- import { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon } from "./Spatial.js";
5
- import { ColumnTsType } from "./ColumnTsType.js";
6
- import { DataSource, PaginateData } from "./DateSource.js";
7
- export { BaseDaoType, BaseSqlMap, BlockSqlMap, CodeGeneratorOptions, ColumnTsType, DataSource, FullSqlMap, GenerateSqlMap, Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, PaginateData, Point, Polygon, SqlMap };
1
+ export * from './BaseDao.ts';
2
+ export * from './CodeGenerator.ts';
3
+ export * from './ColumnTsType.ts';
4
+ export * from './DateSource.ts';
5
+ export * from './Spatial.ts';
6
+ export * from './SqlMap.ts';
@@ -1 +1,7 @@
1
- export { };
1
+ export * from "./BaseDao.js";
2
+ export * from "./CodeGenerator.js";
3
+ export * from "./ColumnTsType.js";
4
+ export * from "./DateSource.js";
5
+ export * from "./Spatial.js";
6
+ export * from "./SqlMap.js";
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZGFsL3R5cGUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxhQUFhLENBQUMifQ==
@@ -1,18 +1,13 @@
1
- import { QualifierValue } from "./core-decorator/model/QualifierInfo.js";
2
- import { EggProtoImplClass } from "./core-decorator/model/EggPrototypeInfo.js";
3
-
4
- //#region src/dynamic-inject.d.ts
5
- type EggAbstractClazz<T extends object = object> = Function & {
6
- prototype: T;
1
+ import type { EggProtoImplClass, QualifierValue } from './core-decorator/index.ts';
2
+ export type EggAbstractClazz<T extends object = object> = Function & {
3
+ prototype: T;
7
4
  };
8
- type ImplTypeEnum = {
9
- [id: string]: QualifierValue;
5
+ export type ImplTypeEnum = {
6
+ [id: string]: QualifierValue;
10
7
  };
11
- type ImplDecorator<T extends object, Enum extends ImplTypeEnum> = (type: Enum[keyof Enum]) => ((clazz: EggProtoImplClass<T>) => void);
12
- interface EggObjectFactory {
13
- getEggObject<T extends object>(abstractClazz: EggAbstractClazz<T>, qualifierValue: QualifierValue): Promise<T>;
14
- getEggObjects<T extends object>(abstractClazz: EggAbstractClazz<T>): Promise<AsyncIterable<T>>;
8
+ export type ImplDecorator<T extends object, Enum extends ImplTypeEnum> = (type: Enum[keyof Enum]) => ((clazz: EggProtoImplClass<T>) => void);
9
+ export interface EggObjectFactory {
10
+ getEggObject<T extends object>(abstractClazz: EggAbstractClazz<T>, qualifierValue: QualifierValue): Promise<T>;
11
+ getEggObjects<T extends object>(abstractClazz: EggAbstractClazz<T>): Promise<AsyncIterable<T>>;
15
12
  }
16
- declare const QUALIFIER_IMPL_MAP: unique symbol;
17
- //#endregion
18
- export { EggAbstractClazz, EggObjectFactory, ImplDecorator, ImplTypeEnum, QUALIFIER_IMPL_MAP };
13
+ export declare const QUALIFIER_IMPL_MAP: unique symbol;
@@ -1,5 +1,2 @@
1
- //#region src/dynamic-inject.ts
2
- const QUALIFIER_IMPL_MAP = Symbol.for("EggPrototype#qualifierImplMap");
3
-
4
- //#endregion
5
- export { QUALIFIER_IMPL_MAP };
1
+ export const QUALIFIER_IMPL_MAP = Symbol.for('EggPrototype#qualifierImplMap');
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1pbmplY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvZHluYW1pYy1pbmplY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBY0EsTUFBTSxDQUFDLE1BQU0sa0JBQWtCLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQywrQkFBK0IsQ0FBQyxDQUFDIn0=
package/dist/index.d.ts CHANGED
@@ -1,72 +1,12 @@
1
- import { AdviceContext, IAdvice } from "./aop/Advice.js";
2
- import { AccessLevel } from "./core-decorator/enum/AccessLevel.js";
3
- import { EggType } from "./core-decorator/enum/EggType.js";
4
- import { INIT_TYPE_TRY_ORDER, ObjectInitType, ObjectInitTypeLike } from "./core-decorator/enum/ObjectInitType.js";
5
- import { CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA } from "./core-decorator/enum/Qualifier.js";
6
- import { InjectType } from "./core-decorator/enum/InjectType.js";
7
- import { MultiInstanceType } from "./core-decorator/enum/MultiInstanceType.js";
8
- import { QualifierAttribute, QualifierInfo, QualifierValue } from "./core-decorator/model/QualifierInfo.js";
9
- import { EggProtoImplClass, EggPrototypeInfo, EggPrototypeName } from "./core-decorator/model/EggPrototypeInfo.js";
10
- import { EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, MultiInstancePrototypeGetObjectsContext, ObjectInfo } from "./core-decorator/model/EggMultiInstancePrototypeInfo.js";
11
- import { EggObjectName, InjectObjectInfo } from "./core-decorator/model/InjectObjectInfo.js";
12
- import { InjectConstructorInfo } from "./core-decorator/model/InjectConstructorInfo.js";
13
- import { ContextProtoParams } from "./core-decorator/ContextProto.js";
14
- import { InjectParams } from "./core-decorator/Inject.js";
15
- import { MetaDataKey } from "./core-decorator/Metadata.js";
16
- import { BaseMultiInstancePrototypeCallbackParams, MultiInstancePrototypeCallbackParams, MultiInstancePrototypeParams, MultiInstancePrototypeStaticParams } from "./core-decorator/MultiInstanceProto.js";
17
- import { DEFAULT_PROTO_IMPL_TYPE, PrototypeParams } from "./core-decorator/Prototype.js";
18
- import { SingletonProtoParams } from "./core-decorator/SingletonProto.js";
19
- import { ASPECT_LIST, AdviceInfo, AspectAdvice } from "./aop/Aspect.js";
20
- import { CustomPointcutCallback, POINTCUT_ADVICE_INFO_LIAR, PointcutInfo, PointcutOptions, PointcutType } from "./aop/Pointcut.js";
21
- import { CROSSCUT_INFO_LIST, ClassCrosscutParam, CrosscutInfo, CrosscutOptions, CrosscutParam, CustomCrosscutParam, IS_CROSSCUT_ADVICE, NameCrosscutParam } from "./aop/Crosscut.js";
22
- import { GraphNodeObj } from "./common/Graph.js";
23
- import { Logger } from "./common/Logger.js";
24
- import { InlineModuleReferenceConfig, ModuleConfig, ModuleConfigHolder, ModuleReference, ModuleReferenceConfig, NpmModuleReferenceConfig, ReadModuleReferenceOptions } from "./common/ModuleConfig.js";
25
- import { EnvType, RuntimeConfig } from "./common/RuntimeConfig.js";
26
- import { HTTPControllerParams } from "./controller-decorator/HTTPController.js";
27
- import { ControllerType, ControllerTypeLike, EggContext, HTTPMethodEnum, HTTPParamType, HostType, IncomingHttpHeaders, MethodType, MethodTypeLike, MiddlewareFunc, Next } from "./controller-decorator/model/types.js";
28
- import { MethodMeta } from "./controller-decorator/model/MethodMeta.js";
29
- import { ControllerMetadata } from "./controller-decorator/model/ControllerMetadata.js";
30
- import { HTTPMethodParams } from "./controller-decorator/HTTPMethod.js";
31
- import { HTTPParamParams, HTTPQueriesParams, HTTPQueryParams } from "./controller-decorator/HTTPParam.js";
32
- import { CONTROLLER_ACL, CONTROLLER_AOP_MIDDLEWARES, CONTROLLER_HOST, CONTROLLER_HTTP_PATH, CONTROLLER_META_DATA, CONTROLLER_METHOD_METHOD_MAP, CONTROLLER_METHOD_PARAM_NAME_MAP, CONTROLLER_METHOD_PARAM_TYPE_MAP, CONTROLLER_METHOD_PATH_MAP, CONTROLLER_METHOD_PRIORITY, CONTROLLER_MIDDLEWARES, CONTROLLER_NAME, CONTROLLER_TYPE, METHOD_ACL, METHOD_AOP_MIDDLEWARES, METHOD_AOP_REGISTER_MAP, METHOD_CONTEXT_INDEX, METHOD_CONTROLLER_HOST, METHOD_CONTROLLER_TYPE_MAP, METHOD_MIDDLEWARES } from "./controller-decorator/MetadataKey.js";
33
- import { ControllerMetaBuilder, ControllerMetaBuilderCreator } from "./controller-decorator/builder.js";
34
- import { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS } from "./dal/Qualifier.js";
35
- import { ColumnFormat } from "./dal/enum/ColumnFormat.js";
36
- import { ColumnType } from "./dal/enum/ColumnType.js";
37
- import { CompressionType } from "./dal/enum/CompressionType.js";
38
- import { IndexStoreType } from "./dal/enum/IndexStoreType.js";
39
- import { IndexType } from "./dal/enum/IndexType.js";
40
- import { InsertMethod } from "./dal/enum/InsertMethod.js";
41
- import { RowFormat } from "./dal/enum/RowFormat.js";
42
- import { SqlType } from "./dal/enum/SqlType.js";
43
- import { Templates } from "./dal/enum/Templates.js";
44
- 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 "./dal/decorator/Column.js";
45
- import { DataSourceInjectName, DataSourceQualifierAttribute } from "./dal/decorator/DataSourceQualifier.js";
46
- import { TableParams } from "./dal/decorator/Table.js";
47
- import { IndexParams } from "./dal/decorator/index.js";
48
- import { BaseSqlMap, BlockSqlMap, FullSqlMap, GenerateSqlMap, SqlMap } from "./dal/type/SqlMap.js";
49
- import { BaseDaoType } from "./dal/type/BaseDao.js";
50
- import { CodeGeneratorOptions } from "./dal/type/CodeGenerator.js";
51
- import { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon } from "./dal/type/Spatial.js";
52
- import { ColumnTsType } from "./dal/type/ColumnTsType.js";
53
- import { DataSource, PaginateData } from "./dal/type/DateSource.js";
54
- import { EggAbstractClazz, EggObjectFactory, ImplDecorator, ImplTypeEnum, QUALIFIER_IMPL_MAP } from "./dynamic-inject.js";
55
- import { ErrorCodes } from "./metadata/errors.js";
56
- import { Loader } from "./metadata/model/Loader.js";
57
- import { EggLoadUnitType, EggLoadUnitTypeLike, LoadUnit, LoadUnitCreator, LoadUnitLifecycleContext, LoadUnitPair } from "./metadata/model/LoadUnit.js";
58
- import { EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeLifecycleContext, EggPrototypeWithClazz, InjectConstructor, InjectConstructorProto, InjectObject, InjectObjectProto } from "./metadata/model/EggPrototype.js";
59
- import { ProtoDescriptorType } from "./metadata/enum/ProtoDescriptorType.js";
60
- import { InjectObjectDescriptor, ProtoDescriptor, ProtoDescriptorTypeLike } from "./metadata/model/ProtoDescriptor.js";
61
- import { EggContextLifecycleContext, EggRuntimeContext } from "./runtime/model/EggContext.js";
62
- import { LoadUnitInstance, LoadUnitInstanceLifecycleContext } from "./runtime/model/LoadUnitInstance.js";
63
- import { EggObject, EggObjectLifeCycleContext, EggObjectStatus } from "./runtime/model/EggObject.js";
64
- import { EggContainer } from "./runtime/model/EggContainer.js";
65
- import { ContainerGetMethod, CreateObjectMethod } from "./runtime/Factory.js";
66
- import { EggObjectLifecycle, LifecycleHookName } from "./lifecycle/EggObjectLifecycle.js";
67
- import { Id, IdenticalObject } from "./lifecycle/IdenticalObject.js";
68
- import { LifecycleContext, LifecycleHook, LifecycleObject } from "./lifecycle/LifecycleHook.js";
69
- import { AttributeOptions, IS_MODEL, IndexOptions, MODEL_DATA_ATTRIBUTES, MODEL_DATA_INDICES, MODEL_DATA_SOURCE, MODEL_DATA_TABLE_NAME, MODEL_PROTO_IMPL_TYPE, ModelAttributeInfo, ModelIndexInfo, ModelParams } from "./orm.js";
70
- import { CronParams, CronScheduleParams, IS_SCHEDULE, IntervalParams, IntervalScheduleParams, SCHEDULE_METADATA, SCHEDULE_OPTIONS, SCHEDULE_PARAMS, ScheduleOptions, ScheduleParams, ScheduleSubscriber, ScheduleType, ScheduleTypeLike } from "./schedule.js";
71
- import { IS_TRANSACTION_CLAZZ, PropagationType, TRANSACTION_META_DATA, TransactionMetadata, TransactionalParams } from "./transaction.js";
72
- export { ASPECT_LIST, AccessLevel, AdviceContext, AdviceInfo, AspectAdvice, AttributeOptions, BaseDaoType, BaseMultiInstancePrototypeCallbackParams, BaseSpatialParams, BaseSqlMap, BigIntParams, BinaryParams, BitParams, BlobParams, BlockSqlMap, BoolParams, CONSTRUCTOR_QUALIFIER_META_DATA, CONTROLLER_ACL, CONTROLLER_AOP_MIDDLEWARES, CONTROLLER_HOST, CONTROLLER_HTTP_PATH, CONTROLLER_META_DATA, CONTROLLER_METHOD_METHOD_MAP, CONTROLLER_METHOD_PARAM_NAME_MAP, CONTROLLER_METHOD_PARAM_TYPE_MAP, CONTROLLER_METHOD_PATH_MAP, CONTROLLER_METHOD_PRIORITY, CONTROLLER_MIDDLEWARES, CONTROLLER_NAME, CONTROLLER_TYPE, CROSSCUT_INFO_LIST, CharParams, ClassCrosscutParam, CodeGeneratorOptions, ColumnFormat, ColumnParams, ColumnTsType, ColumnType, ColumnTypeParams, CompressionType, ConfigSourceQualifierAttribute, ContainerGetMethod, ContextProtoParams, ControllerMetaBuilder, ControllerMetaBuilderCreator, ControllerMetadata, ControllerType, ControllerTypeLike, CreateObjectMethod, CronParams, CronScheduleParams, CrosscutInfo, CrosscutOptions, CrosscutParam, CustomCrosscutParam, CustomPointcutCallback, DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS, DEFAULT_PROTO_IMPL_TYPE, DataSource, DataSourceInjectName, DataSourceQualifierAttribute, DateParams, DateTimeParams, DecimalParams, DoubleParams, EggAbstractClazz, EggContainer, EggContext, EggContextLifecycleContext, EggLoadUnitType, EggLoadUnitTypeLike, EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, EggObject, EggObjectFactory, EggObjectLifeCycleContext, EggObjectLifecycle, EggObjectName, EggObjectStatus, EggProtoImplClass, EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeInfo, EggPrototypeLifecycleContext, EggPrototypeName, EggPrototypeWithClazz, EggQualifierAttribute, EggRuntimeContext, EggType, EnumParams, EnvType, ErrorCodes, FloatParams, FullSqlMap, GenerateSqlMap, Geometry, GeometryCollection, GeometryCollectionParams, GeometryParams, GraphNodeObj, HTTPControllerParams, HTTPMethodEnum, HTTPMethodParams, HTTPParamParams, HTTPParamType, HTTPQueriesParams, HTTPQueryParams, HostType, IAdvice, IColumnTypeParams, INIT_TYPE_TRY_ORDER, IS_CROSSCUT_ADVICE, IS_MODEL, IS_SCHEDULE, IS_TRANSACTION_CLAZZ, Id, IdenticalObject, ImplDecorator, ImplTypeEnum, IncomingHttpHeaders, IndexOptions, IndexParams, IndexStoreType, IndexType, InitTypeQualifierAttribute, InjectConstructor, InjectConstructorInfo, InjectConstructorProto, InjectObject, InjectObjectDescriptor, InjectObjectInfo, InjectObjectProto, InjectParams, InjectType, InlineModuleReferenceConfig, InsertMethod, IntParams, IntervalParams, IntervalScheduleParams, JsonParams, LifecycleContext, LifecycleHook, LifecycleHookName, LifecycleObject, Line, LinestringParams, LoadUnit, LoadUnitCreator, LoadUnitInstance, LoadUnitInstanceLifecycleContext, LoadUnitLifecycleContext, LoadUnitNameQualifierAttribute, LoadUnitPair, Loader, Logger, LongBlobParams, LongTextParams, METHOD_ACL, METHOD_AOP_MIDDLEWARES, METHOD_AOP_REGISTER_MAP, METHOD_CONTEXT_INDEX, METHOD_CONTROLLER_HOST, METHOD_CONTROLLER_TYPE_MAP, METHOD_MIDDLEWARES, MODEL_DATA_ATTRIBUTES, MODEL_DATA_INDICES, MODEL_DATA_SOURCE, MODEL_DATA_TABLE_NAME, MODEL_PROTO_IMPL_TYPE, MediumBlobParams, MediumIntParams, MediumTextParams, MetaDataKey, MethodMeta, MethodType, MethodTypeLike, MiddlewareFunc, ModelAttributeInfo, ModelIndexInfo, ModelParams, ModuleConfig, ModuleConfigHolder, ModuleReference, ModuleReferenceConfig, MultiInstancePrototypeCallbackParams, MultiInstancePrototypeGetObjectsContext, MultiInstancePrototypeParams, MultiInstancePrototypeStaticParams, MultiInstanceType, MultiLine, MultiLinestringParams, MultiPoint, MultiPointParams, MultiPolygon, MultiPolygonParams, NameCrosscutParam, Next, NpmModuleReferenceConfig, ObjectInfo, ObjectInitType, ObjectInitTypeLike, POINTCUT_ADVICE_INFO_LIAR, PROPERTY_QUALIFIER_META_DATA, PaginateData, Point, PointParams, PointcutInfo, PointcutOptions, PointcutType, Polygon, PolygonParams, PropagationType, ProtoDescriptor, ProtoDescriptorType, ProtoDescriptorTypeLike, PrototypeParams, QUALIFIER_IMPL_MAP, QUALIFIER_META_DATA, QualifierAttribute, QualifierInfo, QualifierValue, ReadModuleReferenceOptions, RowFormat, RuntimeConfig, SCHEDULE_METADATA, SCHEDULE_OPTIONS, SCHEDULE_PARAMS, ScheduleOptions, ScheduleParams, ScheduleSubscriber, ScheduleType, ScheduleTypeLike, SetParams, SingletonProtoParams, SmallIntParams, SqlMap, SqlType, TRANSACTION_META_DATA, TableParams, Templates, TextParams, TimeParams, TimestampParams, TinyBlobParams, TinyIntParams, TinyTextParams, TransactionMetadata, TransactionalParams, VarBinaryParams, VarCharParams, YearParams };
1
+ export * from './aop/index.ts';
2
+ export * from './common/index.ts';
3
+ export * from './controller-decorator/index.ts';
4
+ export * from './core-decorator/index.ts';
5
+ export * from './dal/index.ts';
6
+ export * from './dynamic-inject.ts';
7
+ export * from './lifecycle/index.ts';
8
+ export * from './metadata/index.ts';
9
+ export * from './orm.ts';
10
+ export * from './runtime/index.ts';
11
+ export * from './schedule.ts';
12
+ export * from './transaction.ts';
package/dist/index.js CHANGED
@@ -1,38 +1,13 @@
1
- import { QUALIFIER_IMPL_MAP } from "./dynamic-inject.js";
2
- import { ASPECT_LIST } from "./aop/Aspect.js";
3
- import { CROSSCUT_INFO_LIST, IS_CROSSCUT_ADVICE } from "./aop/Crosscut.js";
4
- import { POINTCUT_ADVICE_INFO_LIAR, PointcutType } from "./aop/Pointcut.js";
5
- import "./aop/index.js";
6
- import { ControllerType, HTTPMethodEnum, HTTPParamType, MethodType } from "./controller-decorator/model/types.js";
7
- import { CONTROLLER_ACL, CONTROLLER_AOP_MIDDLEWARES, CONTROLLER_HOST, CONTROLLER_HTTP_PATH, CONTROLLER_META_DATA, CONTROLLER_METHOD_METHOD_MAP, CONTROLLER_METHOD_PARAM_NAME_MAP, CONTROLLER_METHOD_PARAM_TYPE_MAP, CONTROLLER_METHOD_PATH_MAP, CONTROLLER_METHOD_PRIORITY, CONTROLLER_MIDDLEWARES, CONTROLLER_NAME, CONTROLLER_TYPE, METHOD_ACL, METHOD_AOP_MIDDLEWARES, METHOD_AOP_REGISTER_MAP, METHOD_CONTEXT_INDEX, METHOD_CONTROLLER_HOST, METHOD_CONTROLLER_TYPE_MAP, METHOD_MIDDLEWARES } from "./controller-decorator/MetadataKey.js";
8
- import "./controller-decorator/index.js";
9
- import { AccessLevel } from "./core-decorator/enum/AccessLevel.js";
10
- import { EggType } from "./core-decorator/enum/EggType.js";
11
- import { INIT_TYPE_TRY_ORDER, ObjectInitType } from "./core-decorator/enum/ObjectInitType.js";
12
- import { CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA } from "./core-decorator/enum/Qualifier.js";
13
- import { InjectType } from "./core-decorator/enum/InjectType.js";
14
- import { MultiInstanceType } from "./core-decorator/enum/MultiInstanceType.js";
15
- import { DEFAULT_PROTO_IMPL_TYPE } from "./core-decorator/Prototype.js";
16
- import "./core-decorator/index.js";
17
- import { ColumnFormat } from "./dal/enum/ColumnFormat.js";
18
- import { ColumnType } from "./dal/enum/ColumnType.js";
19
- import { CompressionType } from "./dal/enum/CompressionType.js";
20
- import { IndexStoreType } from "./dal/enum/IndexStoreType.js";
21
- import { IndexType } from "./dal/enum/IndexType.js";
22
- import { InsertMethod } from "./dal/enum/InsertMethod.js";
23
- import { RowFormat } from "./dal/enum/RowFormat.js";
24
- import { SqlType } from "./dal/enum/SqlType.js";
25
- import { Templates } from "./dal/enum/Templates.js";
26
- import { DataSourceInjectName, DataSourceQualifierAttribute } from "./dal/decorator/DataSourceQualifier.js";
27
- import { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS } from "./dal/Qualifier.js";
28
- import "./dal/index.js";
29
- import { ErrorCodes } from "./metadata/errors.js";
30
- import { EggLoadUnitType } from "./metadata/model/LoadUnit.js";
31
- import { ProtoDescriptorType } from "./metadata/enum/ProtoDescriptorType.js";
32
- import "./metadata/index.js";
33
- import { IS_MODEL, MODEL_DATA_ATTRIBUTES, MODEL_DATA_INDICES, MODEL_DATA_SOURCE, MODEL_DATA_TABLE_NAME, MODEL_PROTO_IMPL_TYPE } from "./orm.js";
34
- import { EggObjectStatus } from "./runtime/model/EggObject.js";
35
- import { IS_SCHEDULE, SCHEDULE_METADATA, SCHEDULE_OPTIONS, SCHEDULE_PARAMS, ScheduleType } from "./schedule.js";
36
- import { IS_TRANSACTION_CLAZZ, PropagationType, TRANSACTION_META_DATA } from "./transaction.js";
37
-
38
- export { ASPECT_LIST, AccessLevel, CONSTRUCTOR_QUALIFIER_META_DATA, CONTROLLER_ACL, CONTROLLER_AOP_MIDDLEWARES, CONTROLLER_HOST, CONTROLLER_HTTP_PATH, CONTROLLER_META_DATA, CONTROLLER_METHOD_METHOD_MAP, CONTROLLER_METHOD_PARAM_NAME_MAP, CONTROLLER_METHOD_PARAM_TYPE_MAP, CONTROLLER_METHOD_PATH_MAP, CONTROLLER_METHOD_PRIORITY, CONTROLLER_MIDDLEWARES, CONTROLLER_NAME, CONTROLLER_TYPE, CROSSCUT_INFO_LIST, ColumnFormat, ColumnType, CompressionType, ConfigSourceQualifierAttribute, ControllerType, DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS, DEFAULT_PROTO_IMPL_TYPE, DataSourceInjectName, DataSourceQualifierAttribute, EggLoadUnitType, EggObjectStatus, EggQualifierAttribute, EggType, ErrorCodes, HTTPMethodEnum, HTTPParamType, INIT_TYPE_TRY_ORDER, IS_CROSSCUT_ADVICE, IS_MODEL, IS_SCHEDULE, IS_TRANSACTION_CLAZZ, IndexStoreType, IndexType, InitTypeQualifierAttribute, InjectType, InsertMethod, LoadUnitNameQualifierAttribute, METHOD_ACL, METHOD_AOP_MIDDLEWARES, METHOD_AOP_REGISTER_MAP, METHOD_CONTEXT_INDEX, METHOD_CONTROLLER_HOST, METHOD_CONTROLLER_TYPE_MAP, METHOD_MIDDLEWARES, MODEL_DATA_ATTRIBUTES, MODEL_DATA_INDICES, MODEL_DATA_SOURCE, MODEL_DATA_TABLE_NAME, MODEL_PROTO_IMPL_TYPE, MethodType, MultiInstanceType, ObjectInitType, POINTCUT_ADVICE_INFO_LIAR, PROPERTY_QUALIFIER_META_DATA, PointcutType, PropagationType, ProtoDescriptorType, QUALIFIER_IMPL_MAP, QUALIFIER_META_DATA, RowFormat, SCHEDULE_METADATA, SCHEDULE_OPTIONS, SCHEDULE_PARAMS, ScheduleType, SqlType, TRANSACTION_META_DATA, Templates };
1
+ export * from "./aop/index.js";
2
+ export * from "./common/index.js";
3
+ export * from "./controller-decorator/index.js";
4
+ export * from "./core-decorator/index.js";
5
+ export * from "./dal/index.js";
6
+ export * from "./dynamic-inject.js";
7
+ export * from "./lifecycle/index.js";
8
+ export * from "./metadata/index.js";
9
+ export * from "./orm.js";
10
+ export * from "./runtime/index.js";
11
+ export * from "./schedule.js";
12
+ export * from "./transaction.js";
13
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxrQkFBa0IsQ0FBQyJ9
@@ -1,40 +1,35 @@
1
- import { EggObject, EggObjectLifeCycleContext } from "../runtime/model/EggObject.js";
2
-
3
- //#region src/lifecycle/EggObjectLifecycle.d.ts
4
-
1
+ import type { EggObject, EggObjectLifeCycleContext } from '../runtime/index.ts';
5
2
  /**
6
3
  * lifecycle hook interface for egg object
7
4
  */
8
- interface EggObjectLifecycle {
9
- /**
10
- * call before project load
11
- */
12
- preLoad?(ctx: EggObjectLifeCycleContext): Promise<void>;
13
- /**
14
- * call after construct
15
- */
16
- postConstruct?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
17
- /**
18
- * call before inject deps
19
- */
20
- preInject?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
21
- /**
22
- * call after inject deps
23
- */
24
- postInject?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
25
- /**
26
- * before object is ready
27
- */
28
- init?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
29
- /**
30
- * call before destroy
31
- */
32
- preDestroy?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
33
- /**
34
- * destroy the object
35
- */
36
- destroy?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
5
+ export interface EggObjectLifecycle {
6
+ /**
7
+ * call before project load
8
+ */
9
+ preLoad?(ctx: EggObjectLifeCycleContext): Promise<void>;
10
+ /**
11
+ * call after construct
12
+ */
13
+ postConstruct?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
14
+ /**
15
+ * call before inject deps
16
+ */
17
+ preInject?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
18
+ /**
19
+ * call after inject deps
20
+ */
21
+ postInject?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
22
+ /**
23
+ * before object is ready
24
+ */
25
+ init?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
26
+ /**
27
+ * call before destroy
28
+ */
29
+ preDestroy?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
30
+ /**
31
+ * destroy the object
32
+ */
33
+ destroy?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
37
34
  }
38
- type LifecycleHookName = keyof EggObjectLifecycle;
39
- //#endregion
40
- export { EggObjectLifecycle, LifecycleHookName };
35
+ export type LifecycleHookName = keyof EggObjectLifecycle;
@@ -1 +1,2 @@
1
- export { };
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRWdnT2JqZWN0TGlmZWN5Y2xlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2xpZmVjeWNsZS9FZ2dPYmplY3RMaWZlY3ljbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -1,7 +1,4 @@
1
- //#region src/lifecycle/IdenticalObject.d.ts
2
- type Id = string;
3
- interface IdenticalObject {
4
- id: Id;
1
+ export type Id = string;
2
+ export interface IdenticalObject {
3
+ id: Id;
5
4
  }
6
- //#endregion
7
- export { Id, IdenticalObject };
@@ -1 +1,2 @@
1
- export { };
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpY2FsT2JqZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2xpZmVjeWNsZS9JZGVudGljYWxPYmplY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -1,16 +1,13 @@
1
- import { IdenticalObject } from "./IdenticalObject.js";
2
-
3
- //#region src/lifecycle/LifecycleHook.d.ts
4
- interface LifecycleContext {}
5
- interface LifecycleObject<T extends LifecycleContext> extends IdenticalObject {
6
- preLoad?(): Promise<void>;
7
- init?(ctx: T): Promise<void>;
8
- destroy?(ctx: T): Promise<void>;
1
+ import type { IdenticalObject } from './IdenticalObject.ts';
2
+ export interface LifecycleContext {
9
3
  }
10
- interface LifecycleHook<T extends LifecycleContext, R extends LifecycleObject<T>> {
11
- preCreate?(ctx: T, obj: R): Promise<void>;
12
- postCreate?(ctx: T, obj: R): Promise<void>;
13
- preDestroy?(ctx: T, obj: R): Promise<void>;
4
+ export interface LifecycleObject<T extends LifecycleContext> extends IdenticalObject {
5
+ preLoad?(): Promise<void>;
6
+ init?(ctx: T): Promise<void>;
7
+ destroy?(ctx: T): Promise<void>;
8
+ }
9
+ export interface LifecycleHook<T extends LifecycleContext, R extends LifecycleObject<T>> {
10
+ preCreate?(ctx: T, obj: R): Promise<void>;
11
+ postCreate?(ctx: T, obj: R): Promise<void>;
12
+ preDestroy?(ctx: T, obj: R): Promise<void>;
14
13
  }
15
- //#endregion
16
- export { LifecycleContext, LifecycleHook, LifecycleObject };
@@ -1 +1,2 @@
1
- export { };
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGlmZWN5Y2xlSG9vay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWZlY3ljbGUvTGlmZWN5Y2xlSG9vay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -1,4 +1,3 @@
1
- import { EggObjectLifecycle, LifecycleHookName } from "./EggObjectLifecycle.js";
2
- import { Id, IdenticalObject } from "./IdenticalObject.js";
3
- import { LifecycleContext, LifecycleHook, LifecycleObject } from "./LifecycleHook.js";
4
- export { EggObjectLifecycle, Id, IdenticalObject, LifecycleContext, LifecycleHook, LifecycleHookName, LifecycleObject };
1
+ export * from './EggObjectLifecycle.ts';
2
+ export * from './IdenticalObject.ts';
3
+ export * from './LifecycleHook.ts';
@@ -1 +1,4 @@
1
- export { };
1
+ export * from "./EggObjectLifecycle.js";
2
+ export * from "./IdenticalObject.js";
3
+ export * from "./LifecycleHook.js";
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbGlmZWN5Y2xlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLG9CQUFvQixDQUFDIn0=
@@ -1,6 +1,3 @@
1
- //#region src/metadata/enum/ProtoDescriptorType.d.ts
2
- declare enum ProtoDescriptorType {
3
- CLASS = "CLASS",
1
+ export declare enum ProtoDescriptorType {
2
+ CLASS = "CLASS"
4
3
  }
5
- //#endregion
6
- export { ProtoDescriptorType };
@@ -1,8 +1,5 @@
1
- //#region src/metadata/enum/ProtoDescriptorType.ts
2
- let ProtoDescriptorType = /* @__PURE__ */ function(ProtoDescriptorType$1) {
3
- ProtoDescriptorType$1["CLASS"] = "CLASS";
4
- return ProtoDescriptorType$1;
5
- }({});
6
-
7
- //#endregion
8
- export { ProtoDescriptorType };
1
+ export var ProtoDescriptorType;
2
+ (function (ProtoDescriptorType) {
3
+ ProtoDescriptorType["CLASS"] = "CLASS";
4
+ })(ProtoDescriptorType || (ProtoDescriptorType = {}));
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJvdG9EZXNjcmlwdG9yVHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tZXRhZGF0YS9lbnVtL1Byb3RvRGVzY3JpcHRvclR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksbUJBRVg7QUFGRCxXQUFZLG1CQUFtQjtJQUM3QixzQ0FBZSxDQUFBO0FBQ2pCLENBQUMsRUFGVyxtQkFBbUIsS0FBbkIsbUJBQW1CLFFBRTlCIn0=
@@ -1,2 +1 @@
1
- import { ProtoDescriptorType } from "./ProtoDescriptorType.js";
2
- export { ProtoDescriptorType };
1
+ export * from './ProtoDescriptorType.ts';
@@ -1,3 +1,2 @@
1
- import { ProtoDescriptorType } from "./ProtoDescriptorType.js";
2
-
3
- export { ProtoDescriptorType };
1
+ export * from "./ProtoDescriptorType.js";
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbWV0YWRhdGEvZW51bS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDIn0=
@@ -1,8 +1,5 @@
1
- //#region src/metadata/errors.d.ts
2
- declare enum ErrorCodes {
3
- EGG_PROTO_NOT_FOUND = "EGG_PROTO_NOT_FOUND",
4
- MULTI_PROTO_FOUND = "MULTI_PROTO_FOUND",
5
- INCOMPATIBLE_PROTO_INJECT = "INCOMPATIBLE_PROTO_INJECT",
1
+ export declare enum ErrorCodes {
2
+ EGG_PROTO_NOT_FOUND = "EGG_PROTO_NOT_FOUND",
3
+ MULTI_PROTO_FOUND = "MULTI_PROTO_FOUND",
4
+ INCOMPATIBLE_PROTO_INJECT = "INCOMPATIBLE_PROTO_INJECT"
6
5
  }
7
- //#endregion
8
- export { ErrorCodes };
@@ -1,10 +1,7 @@
1
- //#region src/metadata/errors.ts
2
- let ErrorCodes = /* @__PURE__ */ function(ErrorCodes$1) {
3
- ErrorCodes$1["EGG_PROTO_NOT_FOUND"] = "EGG_PROTO_NOT_FOUND";
4
- ErrorCodes$1["MULTI_PROTO_FOUND"] = "MULTI_PROTO_FOUND";
5
- ErrorCodes$1["INCOMPATIBLE_PROTO_INJECT"] = "INCOMPATIBLE_PROTO_INJECT";
6
- return ErrorCodes$1;
7
- }({});
8
-
9
- //#endregion
10
- export { ErrorCodes };
1
+ export var ErrorCodes;
2
+ (function (ErrorCodes) {
3
+ ErrorCodes["EGG_PROTO_NOT_FOUND"] = "EGG_PROTO_NOT_FOUND";
4
+ ErrorCodes["MULTI_PROTO_FOUND"] = "MULTI_PROTO_FOUND";
5
+ ErrorCodes["INCOMPATIBLE_PROTO_INJECT"] = "INCOMPATIBLE_PROTO_INJECT";
6
+ })(ErrorCodes || (ErrorCodes = {}));
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21ldGFkYXRhL2Vycm9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxVQUlYO0FBSkQsV0FBWSxVQUFVO0lBQ3BCLHlEQUEyQyxDQUFBO0lBQzNDLHFEQUF1QyxDQUFBO0lBQ3ZDLHFFQUF1RCxDQUFBO0FBQ3pELENBQUMsRUFKVyxVQUFVLEtBQVYsVUFBVSxRQUlyQiJ9
@@ -1,7 +1,3 @@
1
- import { ErrorCodes } from "./errors.js";
2
- import { Loader } from "./model/Loader.js";
3
- import { EggLoadUnitType, EggLoadUnitTypeLike, LoadUnit, LoadUnitCreator, LoadUnitLifecycleContext, LoadUnitPair } from "./model/LoadUnit.js";
4
- import { EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeLifecycleContext, EggPrototypeWithClazz, InjectConstructor, InjectConstructorProto, InjectObject, InjectObjectProto } from "./model/EggPrototype.js";
5
- import { ProtoDescriptorType } from "./enum/ProtoDescriptorType.js";
6
- import { InjectObjectDescriptor, ProtoDescriptor, ProtoDescriptorTypeLike } from "./model/ProtoDescriptor.js";
7
- export { EggLoadUnitType, EggLoadUnitTypeLike, EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeLifecycleContext, EggPrototypeWithClazz, ErrorCodes, InjectConstructor, InjectConstructorProto, InjectObject, InjectObjectDescriptor, InjectObjectProto, LoadUnit, LoadUnitCreator, LoadUnitLifecycleContext, LoadUnitPair, Loader, ProtoDescriptor, ProtoDescriptorType, ProtoDescriptorTypeLike };
1
+ export * from './errors.ts';
2
+ export * from './model/index.ts';
3
+ export * from './enum/index.ts';
@@ -1,6 +1,4 @@
1
- import { ErrorCodes } from "./errors.js";
2
- import { EggLoadUnitType } from "./model/LoadUnit.js";
3
- import { ProtoDescriptorType } from "./enum/ProtoDescriptorType.js";
4
- import "./model/index.js";
5
-
6
- export { EggLoadUnitType, ErrorCodes, ProtoDescriptorType };
1
+ export * from "./errors.js";
2
+ export * from "./model/index.js";
3
+ export * from "./enum/index.js";
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWV0YWRhdGEvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGlCQUFpQixDQUFDIn0=