@eggjs/tegg-types 4.0.0-beta.9 → 4.0.1-beta.0

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 (185) hide show
  1. package/dist/aop/Advice.d.ts +39 -36
  2. package/dist/aop/Advice.js +1 -2
  3. package/dist/aop/Aspect.d.ts +15 -11
  4. package/dist/aop/Aspect.js +5 -2
  5. package/dist/aop/Crosscut.d.ts +27 -23
  6. package/dist/aop/Crosscut.js +6 -3
  7. package/dist/aop/Pointcut.d.ts +28 -23
  8. package/dist/aop/Pointcut.js +10 -17
  9. package/dist/aop/index.d.ts +5 -4
  10. package/dist/aop/index.js +5 -5
  11. package/dist/common/Graph.d.ts +5 -2
  12. package/dist/common/Graph.js +1 -2
  13. package/dist/common/Logger.d.ts +9 -6
  14. package/dist/common/Logger.js +1 -2
  15. package/dist/common/ModuleConfig.d.ts +24 -22
  16. package/dist/common/ModuleConfig.js +1 -2
  17. package/dist/common/RuntimeConfig.d.ts +17 -14
  18. package/dist/common/RuntimeConfig.js +1 -2
  19. package/dist/common/index.d.ts +5 -4
  20. package/dist/common/index.js +1 -5
  21. package/dist/controller-decorator/HTTPController.d.ts +8 -4
  22. package/dist/controller-decorator/HTTPController.js +1 -2
  23. package/dist/controller-decorator/HTTPMethod.d.ts +11 -5
  24. package/dist/controller-decorator/HTTPMethod.js +1 -2
  25. package/dist/controller-decorator/HTTPParam.d.ts +9 -6
  26. package/dist/controller-decorator/HTTPParam.js +1 -2
  27. package/dist/controller-decorator/MCPController.d.ts +10 -0
  28. package/dist/controller-decorator/MCPController.js +1 -0
  29. package/dist/controller-decorator/MCPPromptParams.d.ts +16 -0
  30. package/dist/controller-decorator/MCPPromptParams.js +1 -0
  31. package/dist/controller-decorator/MCPResourceParams.d.ts +22 -0
  32. package/dist/controller-decorator/MCPResourceParams.js +1 -0
  33. package/dist/controller-decorator/MCPToolParams.d.ts +15 -0
  34. package/dist/controller-decorator/MCPToolParams.js +1 -0
  35. package/dist/controller-decorator/MetadataKey.d.ts +37 -20
  36. package/dist/controller-decorator/MetadataKey.js +38 -21
  37. package/dist/controller-decorator/builder.d.ts +10 -5
  38. package/dist/controller-decorator/builder.js +1 -2
  39. package/dist/controller-decorator/index.d.ts +14 -6
  40. package/dist/controller-decorator/index.js +4 -7
  41. package/dist/controller-decorator/model/ControllerMetadata.d.ts +14 -10
  42. package/dist/controller-decorator/model/ControllerMetadata.js +1 -2
  43. package/dist/controller-decorator/model/MethodMeta.d.ts +9 -5
  44. package/dist/controller-decorator/model/MethodMeta.js +1 -2
  45. package/dist/controller-decorator/model/index.d.ts +4 -3
  46. package/dist/controller-decorator/model/index.js +3 -4
  47. package/dist/controller-decorator/model/types.d.ts +58 -45
  48. package/dist/controller-decorator/model/types.js +47 -42
  49. package/dist/core-decorator/ContextProto.d.ts +9 -5
  50. package/dist/core-decorator/ContextProto.js +3 -2
  51. package/dist/core-decorator/Inject.d.ts +6 -3
  52. package/dist/core-decorator/Inject.js +1 -2
  53. package/dist/core-decorator/Metadata.d.ts +4 -1
  54. package/dist/core-decorator/Metadata.js +1 -2
  55. package/dist/core-decorator/MultiInstanceProto.d.ts +28 -23
  56. package/dist/core-decorator/MultiInstanceProto.js +1 -2
  57. package/dist/core-decorator/Prototype.d.ts +12 -7
  58. package/dist/core-decorator/Prototype.js +5 -2
  59. package/dist/core-decorator/SingletonProto.d.ts +9 -5
  60. package/dist/core-decorator/SingletonProto.js +1 -2
  61. package/dist/core-decorator/enum/AccessLevel.d.ts +8 -4
  62. package/dist/core-decorator/enum/AccessLevel.js +8 -8
  63. package/dist/core-decorator/enum/EggType.d.ts +8 -4
  64. package/dist/core-decorator/enum/EggType.js +8 -6
  65. package/dist/core-decorator/enum/InjectType.d.ts +8 -4
  66. package/dist/core-decorator/enum/InjectType.js +8 -6
  67. package/dist/core-decorator/enum/MultiInstanceType.d.ts +8 -4
  68. package/dist/core-decorator/enum/MultiInstanceType.js +8 -6
  69. package/dist/core-decorator/enum/ObjectInitType.d.ts +11 -7
  70. package/dist/core-decorator/enum/ObjectInitType.js +13 -14
  71. package/dist/core-decorator/enum/Qualifier.d.ts +10 -7
  72. package/dist/core-decorator/enum/Qualifier.js +11 -8
  73. package/dist/core-decorator/enum/index.d.ts +7 -6
  74. package/dist/core-decorator/enum/index.js +8 -7
  75. package/dist/core-decorator/index.d.ts +18 -8
  76. package/dist/core-decorator/index.js +12 -9
  77. package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts +58 -53
  78. package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.js +4 -4
  79. package/dist/core-decorator/model/EggPrototypeInfo.d.ts +38 -33
  80. package/dist/core-decorator/model/EggPrototypeInfo.js +3 -3
  81. package/dist/core-decorator/model/InjectConstructorInfo.d.ts +22 -18
  82. package/dist/core-decorator/model/InjectConstructorInfo.js +1 -2
  83. package/dist/core-decorator/model/InjectObjectInfo.d.ts +17 -14
  84. package/dist/core-decorator/model/InjectObjectInfo.js +1 -2
  85. package/dist/core-decorator/model/QualifierInfo.d.ts +39 -36
  86. package/dist/core-decorator/model/QualifierInfo.js +1 -2
  87. package/dist/core-decorator/model/index.d.ts +6 -5
  88. package/dist/core-decorator/model/index.js +4 -6
  89. package/dist/dal/Qualifier.d.ts +9 -6
  90. package/dist/dal/Qualifier.js +10 -7
  91. package/dist/dal/decorator/Column.d.ts +145 -141
  92. package/dist/dal/decorator/Column.js +1 -2
  93. package/dist/dal/decorator/DataSourceQualifier.d.ts +5 -2
  94. package/dist/dal/decorator/DataSourceQualifier.js +6 -3
  95. package/dist/dal/decorator/Table.d.ts +26 -20
  96. package/dist/dal/decorator/Table.js +1 -2
  97. package/dist/dal/decorator/index.d.ts +18 -13
  98. package/dist/dal/decorator/index.js +3 -4
  99. package/dist/dal/enum/ColumnFormat.d.ts +9 -5
  100. package/dist/dal/enum/ColumnFormat.js +9 -7
  101. package/dist/dal/enum/ColumnType.d.ts +44 -40
  102. package/dist/dal/enum/ColumnType.js +44 -48
  103. package/dist/dal/enum/CompressionType.d.ts +9 -5
  104. package/dist/dal/enum/CompressionType.js +9 -7
  105. package/dist/dal/enum/IndexStoreType.d.ts +8 -4
  106. package/dist/dal/enum/IndexStoreType.js +8 -6
  107. package/dist/dal/enum/IndexType.d.ts +11 -7
  108. package/dist/dal/enum/IndexType.js +11 -9
  109. package/dist/dal/enum/InsertMethod.d.ts +9 -5
  110. package/dist/dal/enum/InsertMethod.js +9 -7
  111. package/dist/dal/enum/RowFormat.d.ts +12 -8
  112. package/dist/dal/enum/RowFormat.js +12 -10
  113. package/dist/dal/enum/SqlType.d.ts +11 -7
  114. package/dist/dal/enum/SqlType.js +11 -9
  115. package/dist/dal/enum/Templates.d.ts +9 -5
  116. package/dist/dal/enum/Templates.js +9 -7
  117. package/dist/dal/enum/index.d.ts +10 -9
  118. package/dist/dal/enum/index.js +11 -10
  119. package/dist/dal/index.d.ts +21 -4
  120. package/dist/dal/index.js +13 -5
  121. package/dist/dal/type/BaseDao.d.ts +12 -8
  122. package/dist/dal/type/BaseDao.js +1 -2
  123. package/dist/dal/type/CodeGenerator.d.ts +8 -5
  124. package/dist/dal/type/CodeGenerator.js +1 -2
  125. package/dist/dal/type/ColumnTsType.d.ts +44 -40
  126. package/dist/dal/type/ColumnTsType.js +1 -2
  127. package/dist/dal/type/DateSource.d.ts +14 -11
  128. package/dist/dal/type/DateSource.js +1 -2
  129. package/dist/dal/type/Spatial.d.ts +13 -10
  130. package/dist/dal/type/Spatial.js +1 -2
  131. package/dist/dal/type/SqlMap.d.ts +18 -14
  132. package/dist/dal/type/SqlMap.js +1 -2
  133. package/dist/dal/type/index.d.ts +7 -6
  134. package/dist/dal/type/index.js +1 -7
  135. package/dist/dynamic-inject.d.ts +15 -10
  136. package/dist/dynamic-inject.js +5 -2
  137. package/dist/index.d.ts +77 -12
  138. package/dist/index.js +38 -13
  139. package/dist/lifecycle/EggObjectLifecycle.d.ts +38 -33
  140. package/dist/lifecycle/EggObjectLifecycle.js +1 -2
  141. package/dist/lifecycle/IdenticalObject.d.ts +6 -3
  142. package/dist/lifecycle/IdenticalObject.js +1 -2
  143. package/dist/lifecycle/LifecycleHook.d.ts +14 -11
  144. package/dist/lifecycle/LifecycleHook.js +1 -2
  145. package/dist/lifecycle/index.d.ts +4 -3
  146. package/dist/lifecycle/index.js +1 -4
  147. package/dist/metadata/enum/ProtoDescriptorType.d.ts +7 -3
  148. package/dist/metadata/enum/ProtoDescriptorType.js +5 -5
  149. package/dist/metadata/enum/index.d.ts +2 -1
  150. package/dist/metadata/enum/index.js +3 -2
  151. package/dist/metadata/errors.d.ts +9 -5
  152. package/dist/metadata/errors.js +9 -7
  153. package/dist/metadata/index.d.ts +7 -3
  154. package/dist/metadata/index.js +6 -4
  155. package/dist/metadata/model/EggPrototype.d.ts +138 -129
  156. package/dist/metadata/model/EggPrototype.js +3 -4
  157. package/dist/metadata/model/LoadUnit.d.ts +32 -26
  158. package/dist/metadata/model/LoadUnit.js +9 -7
  159. package/dist/metadata/model/Loader.d.ts +10 -5
  160. package/dist/metadata/model/Loader.js +1 -2
  161. package/dist/metadata/model/ProtoDescriptor.d.ts +27 -20
  162. package/dist/metadata/model/ProtoDescriptor.js +3 -3
  163. package/dist/metadata/model/index.d.ts +5 -4
  164. package/dist/metadata/model/index.js +5 -5
  165. package/dist/orm.d.ts +28 -25
  166. package/dist/orm.js +10 -7
  167. package/dist/runtime/Factory.d.ts +11 -6
  168. package/dist/runtime/Factory.js +1 -2
  169. package/dist/runtime/index.d.ts +6 -2
  170. package/dist/runtime/index.js +3 -3
  171. package/dist/runtime/model/EggContainer.d.ts +15 -10
  172. package/dist/runtime/model/EggContainer.js +1 -2
  173. package/dist/runtime/model/EggContext.d.ts +9 -6
  174. package/dist/runtime/model/EggContext.js +1 -2
  175. package/dist/runtime/model/EggObject.d.ts +28 -22
  176. package/dist/runtime/model/EggObject.js +11 -9
  177. package/dist/runtime/model/LoadUnitInstance.d.ts +11 -7
  178. package/dist/runtime/model/LoadUnitInstance.js +1 -2
  179. package/dist/runtime/model/index.d.ts +5 -4
  180. package/dist/runtime/model/index.js +3 -5
  181. package/dist/schedule.d.ts +44 -25
  182. package/dist/schedule.js +12 -10
  183. package/dist/transaction.d.ts +25 -21
  184. package/dist/transaction.js +10 -10
  185. package/package.json +35 -31
@@ -1,15 +1,18 @@
1
- export type EggObjectName = PropertyKey;
2
- export interface InjectObjectInfo {
3
- /**
4
- * property name obj inject to
5
- */
6
- refName: PropertyKey;
7
- /**
8
- * obj's name will be injected
9
- */
10
- objName: EggObjectName;
11
- /**
12
- * optional inject
13
- */
14
- optional?: boolean;
1
+ //#region src/core-decorator/model/InjectObjectInfo.d.ts
2
+ type EggObjectName = PropertyKey;
3
+ interface InjectObjectInfo {
4
+ /**
5
+ * property name obj inject to
6
+ */
7
+ refName: PropertyKey;
8
+ /**
9
+ * obj's name will be injected
10
+ */
11
+ objName: EggObjectName;
12
+ /**
13
+ * optional inject
14
+ */
15
+ optional?: boolean;
15
16
  }
17
+ //#endregion
18
+ export { EggObjectName, InjectObjectInfo };
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW5qZWN0T2JqZWN0SW5mby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb3JlLWRlY29yYXRvci9tb2RlbC9JbmplY3RPYmplY3RJbmZvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
1
+ export { };
@@ -1,38 +1,41 @@
1
- export type QualifierAttribute = symbol | string;
2
- export type QualifierValue = string | number;
1
+ //#region src/core-decorator/model/QualifierInfo.d.ts
2
+ type QualifierAttribute = symbol | string;
3
+ type QualifierValue = string | number;
3
4
  /**
4
- * To locate prototype
5
- *
6
- * Example:
7
- * Has a decorator named HelloService
8
- * value is:
9
- * - Email
10
- * - Message
11
- *
12
- * interface HelloService {
13
- * hello(name: string): Promise<void>;
14
- * }
15
- *
16
- * \@ContextProto({ name: 'helloService' })
17
- * \@HelloService(HelloServiceType.Email)
18
- * class EmailHelloService implement HelloService {
19
- * ...
20
- * }
21
- *
22
- * \@ContextProto({ name: 'helloService' })
23
- * \@HelloService(HelloServiceType.Message)
24
- * class MessageHelloService implement HelloService {
25
- * ...
26
- * }
27
- *
28
- * \@ContextProto()
29
- * class HelloFacade {
30
- * \@Inject
31
- * \@HelloService(HelloServiceType.Message)
32
- * helloService: HelloService;
33
- * }
34
- */
35
- export interface QualifierInfo {
36
- attribute: QualifierAttribute;
37
- value: QualifierValue;
5
+ * To locate prototype
6
+ *
7
+ * Example:
8
+ * Has a decorator named HelloService
9
+ * value is:
10
+ * - Email
11
+ * - Message
12
+ *
13
+ * interface HelloService {
14
+ * hello(name: string): Promise<void>;
15
+ * }
16
+ *
17
+ * \@ContextProto({ name: 'helloService' })
18
+ * \@HelloService(HelloServiceType.Email)
19
+ * class EmailHelloService implement HelloService {
20
+ * ...
21
+ * }
22
+ *
23
+ * \@ContextProto({ name: 'helloService' })
24
+ * \@HelloService(HelloServiceType.Message)
25
+ * class MessageHelloService implement HelloService {
26
+ * ...
27
+ * }
28
+ *
29
+ * \@ContextProto()
30
+ * class HelloFacade {
31
+ * \@Inject
32
+ * \@HelloService(HelloServiceType.Message)
33
+ * helloService: HelloService;
34
+ * }
35
+ */
36
+ interface QualifierInfo {
37
+ attribute: QualifierAttribute;
38
+ value: QualifierValue;
38
39
  }
40
+ //#endregion
41
+ export { QualifierAttribute, QualifierInfo, QualifierValue };
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVhbGlmaWVySW5mby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb3JlLWRlY29yYXRvci9tb2RlbC9RdWFsaWZpZXJJbmZvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
1
+ export { };
@@ -1,5 +1,6 @@
1
- export * from './EggMultiInstancePrototypeInfo.ts';
2
- export * from './EggPrototypeInfo.ts';
3
- export * from './InjectConstructorInfo.ts';
4
- export * from './InjectObjectInfo.ts';
5
- export * from './QualifierInfo.ts';
1
+ import { QualifierAttribute, QualifierInfo, QualifierValue } from "./QualifierInfo.js";
2
+ import { EggProtoImplClass, EggPrototypeInfo, EggPrototypeName } from "./EggPrototypeInfo.js";
3
+ import { EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, MultiInstancePrototypeGetObjectsContext, ObjectInfo } from "./EggMultiInstancePrototypeInfo.js";
4
+ import { EggObjectName, InjectObjectInfo } from "./InjectObjectInfo.js";
5
+ import { InjectConstructorInfo } from "./InjectConstructorInfo.js";
6
+ export { EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, EggObjectName, EggProtoImplClass, EggPrototypeInfo, EggPrototypeName, InjectConstructorInfo, InjectObjectInfo, MultiInstancePrototypeGetObjectsContext, ObjectInfo, QualifierAttribute, QualifierInfo, QualifierValue };
@@ -1,6 +1,4 @@
1
- export * from "./EggMultiInstancePrototypeInfo.js";
2
- export * from "./EggPrototypeInfo.js";
3
- export * from "./InjectConstructorInfo.js";
4
- export * from "./InjectObjectInfo.js";
5
- export * from "./QualifierInfo.js";
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29yZS1kZWNvcmF0b3IvbW9kZWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQ0FBb0MsQ0FBQztBQUNuRCxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLG9CQUFvQixDQUFDIn0=
1
+ import "./EggPrototypeInfo.js";
2
+ import "./EggMultiInstancePrototypeInfo.js";
3
+
4
+ export { };
@@ -1,6 +1,9 @@
1
- export declare const DAL_COLUMN_INFO_MAP: unique symbol;
2
- export declare const DAL_COLUMN_TYPE_MAP: unique symbol;
3
- export declare const DAL_INDEX_LIST: unique symbol;
4
- export declare const DAL_IS_TABLE: unique symbol;
5
- export declare const DAL_TABLE_PARAMS: unique symbol;
6
- export declare const DAL_IS_DAO: unique symbol;
1
+ //#region src/dal/Qualifier.d.ts
2
+ declare const DAL_COLUMN_INFO_MAP: symbol;
3
+ declare const DAL_COLUMN_TYPE_MAP: symbol;
4
+ declare const DAL_INDEX_LIST: symbol;
5
+ declare const DAL_IS_TABLE: symbol;
6
+ declare const DAL_TABLE_PARAMS: symbol;
7
+ declare const DAL_IS_DAO: symbol;
8
+ //#endregion
9
+ export { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS };
@@ -1,7 +1,10 @@
1
- export const DAL_COLUMN_INFO_MAP = Symbol.for('EggPrototype#dalColumnInfoMap');
2
- export const DAL_COLUMN_TYPE_MAP = Symbol.for('EggPrototype#dalColumnTypeMap');
3
- export const DAL_INDEX_LIST = Symbol.for('EggPrototype#dalIndexList');
4
- export const DAL_IS_TABLE = Symbol.for('EggPrototype#dalIsTable');
5
- export const DAL_TABLE_PARAMS = Symbol.for('EggPrototype#dalTableParams');
6
- export const DAL_IS_DAO = Symbol.for('EggPrototype#dalIsDao');
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVhbGlmaWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RhbC9RdWFsaWZpZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sbUJBQW1CLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQywrQkFBK0IsQ0FBQyxDQUFDO0FBQy9FLE1BQU0sQ0FBQyxNQUFNLG1CQUFtQixHQUFHLE1BQU0sQ0FBQyxHQUFHLENBQUMsK0JBQStCLENBQUMsQ0FBQztBQUMvRSxNQUFNLENBQUMsTUFBTSxjQUFjLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQywyQkFBMkIsQ0FBQyxDQUFDO0FBQ3RFLE1BQU0sQ0FBQyxNQUFNLFlBQVksR0FBRyxNQUFNLENBQUMsR0FBRyxDQUFDLHlCQUF5QixDQUFDLENBQUM7QUFDbEUsTUFBTSxDQUFDLE1BQU0sZ0JBQWdCLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyw2QkFBNkIsQ0FBQyxDQUFDO0FBQzFFLE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRyxNQUFNLENBQUMsR0FBRyxDQUFDLHVCQUF1QixDQUFDLENBQUMifQ==
1
+ //#region src/dal/Qualifier.ts
2
+ const DAL_COLUMN_INFO_MAP = Symbol.for("EggPrototype#dalColumnInfoMap");
3
+ const DAL_COLUMN_TYPE_MAP = Symbol.for("EggPrototype#dalColumnTypeMap");
4
+ const DAL_INDEX_LIST = Symbol.for("EggPrototype#dalIndexList");
5
+ const DAL_IS_TABLE = Symbol.for("EggPrototype#dalIsTable");
6
+ const DAL_TABLE_PARAMS = Symbol.for("EggPrototype#dalTableParams");
7
+ const DAL_IS_DAO = Symbol.for("EggPrototype#dalIsDao");
8
+
9
+ //#endregion
10
+ export { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS };
@@ -1,178 +1,182 @@
1
- import type { ColumnFormat, ColumnType } from '../enum/index.ts';
2
- export interface ColumnParams {
3
- name?: string;
4
- default?: string;
5
- canNull?: boolean;
6
- comment?: string;
7
- visible?: boolean;
8
- autoIncrement?: boolean;
9
- uniqueKey?: boolean;
10
- primaryKey?: boolean;
11
- collate?: string;
12
- columnFormat?: ColumnFormat;
13
- engineAttribute?: string;
14
- secondaryEngineAttribute?: string;
15
- }
16
- export interface IColumnTypeParams {
17
- type: ColumnType;
18
- }
19
- export interface BitParams extends IColumnTypeParams {
20
- type: ColumnType.BIT;
21
- length?: number;
22
- }
23
- export interface BoolParams extends IColumnTypeParams {
24
- type: ColumnType.BOOL;
1
+ import { ColumnFormat } from "../enum/ColumnFormat.js";
2
+ import { ColumnType } from "../enum/ColumnType.js";
3
+
4
+ //#region src/dal/decorator/Column.d.ts
5
+ interface ColumnParams {
6
+ name?: string;
7
+ default?: string;
8
+ canNull?: boolean;
9
+ comment?: string;
10
+ visible?: boolean;
11
+ autoIncrement?: boolean;
12
+ uniqueKey?: boolean;
13
+ primaryKey?: boolean;
14
+ collate?: string;
15
+ columnFormat?: ColumnFormat;
16
+ engineAttribute?: string;
17
+ secondaryEngineAttribute?: string;
18
+ }
19
+ interface IColumnTypeParams {
20
+ type: ColumnType;
21
+ }
22
+ interface BitParams extends IColumnTypeParams {
23
+ type: typeof ColumnType.BIT;
24
+ length?: number;
25
+ }
26
+ interface BoolParams extends IColumnTypeParams {
27
+ type: typeof ColumnType.BOOL;
25
28
  }
26
29
  interface BaseNumericParams extends IColumnTypeParams {
27
- length?: number;
28
- unsigned?: boolean;
29
- zeroFill?: boolean;
30
+ length?: number;
31
+ unsigned?: boolean;
32
+ zeroFill?: boolean;
30
33
  }
31
34
  interface BaseFloatNumericParams extends IColumnTypeParams {
32
- length?: number;
33
- fractionalLength?: number;
34
- unsigned?: boolean;
35
- zeroFill?: boolean;
35
+ length?: number;
36
+ fractionalLength?: number;
37
+ unsigned?: boolean;
38
+ zeroFill?: boolean;
36
39
  }
37
- export interface TinyIntParams extends BaseNumericParams {
38
- type: ColumnType.TINYINT;
39
- }
40
- export interface SmallIntParams extends BaseNumericParams {
41
- type: ColumnType.SMALLINT;
40
+ interface TinyIntParams extends BaseNumericParams {
41
+ type: typeof ColumnType.TINYINT;
42
+ }
43
+ interface SmallIntParams extends BaseNumericParams {
44
+ type: typeof ColumnType.SMALLINT;
42
45
  }
43
- export interface MediumIntParams extends BaseNumericParams {
44
- type: ColumnType.MEDIUMINT;
45
- }
46
- export interface IntParams extends BaseNumericParams {
47
- type: ColumnType.INT;
48
- }
49
- export interface BigIntParams extends BaseNumericParams {
50
- type: ColumnType.BIGINT;
51
- }
52
- export interface DecimalParams extends BaseFloatNumericParams {
53
- type: ColumnType.DECIMAL;
46
+ interface MediumIntParams extends BaseNumericParams {
47
+ type: typeof ColumnType.MEDIUMINT;
48
+ }
49
+ interface IntParams extends BaseNumericParams {
50
+ type: typeof ColumnType.INT;
51
+ }
52
+ interface BigIntParams extends BaseNumericParams {
53
+ type: typeof ColumnType.BIGINT;
54
+ }
55
+ interface DecimalParams extends BaseFloatNumericParams {
56
+ type: typeof ColumnType.DECIMAL;
54
57
  }
55
- export interface FloatParams extends BaseFloatNumericParams {
56
- type: ColumnType.FLOAT;
58
+ interface FloatParams extends BaseFloatNumericParams {
59
+ type: typeof ColumnType.FLOAT;
57
60
  }
58
- export interface DoubleParams extends BaseFloatNumericParams {
59
- type: ColumnType.DOUBLE;
61
+ interface DoubleParams extends BaseFloatNumericParams {
62
+ type: typeof ColumnType.DOUBLE;
60
63
  }
61
- export interface DateParams extends IColumnTypeParams {
62
- type: ColumnType.DATE;
64
+ interface DateParams extends IColumnTypeParams {
65
+ type: typeof ColumnType.DATE;
63
66
  }
64
- export interface DateTimeParams extends IColumnTypeParams {
65
- type: ColumnType.DATETIME;
66
- precision?: number;
67
- autoUpdate?: boolean;
67
+ interface DateTimeParams extends IColumnTypeParams {
68
+ type: typeof ColumnType.DATETIME;
69
+ precision?: number;
70
+ autoUpdate?: boolean;
68
71
  }
69
- export interface TimestampParams extends IColumnTypeParams {
70
- type: ColumnType.TIMESTAMP;
71
- precision?: number;
72
- autoUpdate?: boolean;
72
+ interface TimestampParams extends IColumnTypeParams {
73
+ type: typeof ColumnType.TIMESTAMP;
74
+ precision?: number;
75
+ autoUpdate?: boolean;
73
76
  }
74
- export interface TimeParams extends IColumnTypeParams {
75
- type: ColumnType.TIME;
76
- precision?: number;
77
+ interface TimeParams extends IColumnTypeParams {
78
+ type: typeof ColumnType.TIME;
79
+ precision?: number;
77
80
  }
78
- export interface YearParams extends IColumnTypeParams {
79
- type: ColumnType.YEAR;
81
+ interface YearParams extends IColumnTypeParams {
82
+ type: typeof ColumnType.YEAR;
80
83
  }
81
- export interface CharParams extends IColumnTypeParams {
82
- type: ColumnType.CHAR;
83
- length?: number;
84
- characterSet?: string;
85
- collate?: string;
84
+ interface CharParams extends IColumnTypeParams {
85
+ type: typeof ColumnType.CHAR;
86
+ length?: number;
87
+ characterSet?: string;
88
+ collate?: string;
86
89
  }
87
- export interface VarCharParams extends IColumnTypeParams {
88
- type: ColumnType.VARCHAR;
89
- length: number;
90
- characterSet?: string;
91
- collate?: string;
90
+ interface VarCharParams extends IColumnTypeParams {
91
+ type: typeof ColumnType.VARCHAR;
92
+ length: number;
93
+ characterSet?: string;
94
+ collate?: string;
92
95
  }
93
- export interface BinaryParams extends IColumnTypeParams {
94
- type: ColumnType.BINARY;
95
- length?: number;
96
+ interface BinaryParams extends IColumnTypeParams {
97
+ type: typeof ColumnType.BINARY;
98
+ length?: number;
96
99
  }
97
- export interface VarBinaryParams extends IColumnTypeParams {
98
- type: ColumnType.VARBINARY;
99
- length: number;
100
+ interface VarBinaryParams extends IColumnTypeParams {
101
+ type: typeof ColumnType.VARBINARY;
102
+ length: number;
100
103
  }
101
- export interface TinyBlobParams extends IColumnTypeParams {
102
- type: ColumnType.TINYBLOB;
104
+ interface TinyBlobParams extends IColumnTypeParams {
105
+ type: typeof ColumnType.TINYBLOB;
103
106
  }
104
- export interface TinyTextParams extends IColumnTypeParams {
105
- type: ColumnType.TINYTEXT;
106
- characterSet?: string;
107
- collate?: string;
107
+ interface TinyTextParams extends IColumnTypeParams {
108
+ type: typeof ColumnType.TINYTEXT;
109
+ characterSet?: string;
110
+ collate?: string;
108
111
  }
109
- export interface BlobParams extends IColumnTypeParams {
110
- type: ColumnType.BLOB;
111
- length?: number;
112
+ interface BlobParams extends IColumnTypeParams {
113
+ type: typeof ColumnType.BLOB;
114
+ length?: number;
112
115
  }
113
- export interface TextParams extends IColumnTypeParams {
114
- type: ColumnType.TEXT;
115
- length?: number;
116
- characterSet?: string;
117
- collate?: string;
116
+ interface TextParams extends IColumnTypeParams {
117
+ type: typeof ColumnType.TEXT;
118
+ length?: number;
119
+ characterSet?: string;
120
+ collate?: string;
118
121
  }
119
- export interface MediumBlobParams extends IColumnTypeParams {
120
- type: ColumnType.MEDIUMBLOB;
122
+ interface MediumBlobParams extends IColumnTypeParams {
123
+ type: typeof ColumnType.MEDIUMBLOB;
121
124
  }
122
- export interface LongBlobParams extends IColumnTypeParams {
123
- type: ColumnType.LONGBLOB;
125
+ interface LongBlobParams extends IColumnTypeParams {
126
+ type: typeof ColumnType.LONGBLOB;
124
127
  }
125
- export interface MediumTextParams extends IColumnTypeParams {
126
- type: ColumnType.MEDIUMTEXT;
127
- characterSet?: string;
128
- collate?: string;
128
+ interface MediumTextParams extends IColumnTypeParams {
129
+ type: typeof ColumnType.MEDIUMTEXT;
130
+ characterSet?: string;
131
+ collate?: string;
129
132
  }
130
- export interface LongTextParams extends IColumnTypeParams {
131
- type: ColumnType.LONGTEXT;
132
- characterSet?: string;
133
- collate?: string;
133
+ interface LongTextParams extends IColumnTypeParams {
134
+ type: typeof ColumnType.LONGTEXT;
135
+ characterSet?: string;
136
+ collate?: string;
134
137
  }
135
- export interface EnumParams extends IColumnTypeParams {
136
- type: ColumnType.ENUM;
137
- enums: string[];
138
- characterSet?: string;
139
- collate?: string;
138
+ interface EnumParams extends IColumnTypeParams {
139
+ type: typeof ColumnType.ENUM;
140
+ enums: string[];
141
+ characterSet?: string;
142
+ collate?: string;
140
143
  }
141
- export interface SetParams extends IColumnTypeParams {
142
- type: ColumnType.SET;
143
- enums: string[];
144
- characterSet?: string;
145
- collate?: string;
144
+ interface SetParams extends IColumnTypeParams {
145
+ type: typeof ColumnType.SET;
146
+ enums: string[];
147
+ characterSet?: string;
148
+ collate?: string;
146
149
  }
147
- export interface JsonParams extends IColumnTypeParams {
148
- type: ColumnType.JSON;
150
+ interface JsonParams extends IColumnTypeParams {
151
+ type: typeof ColumnType.JSON;
149
152
  }
150
- export interface BaseSpatialParams extends IColumnTypeParams {
151
- SRID?: number;
153
+ interface BaseSpatialParams extends IColumnTypeParams {
154
+ SRID?: number;
152
155
  }
153
- export interface GeometryParams extends BaseSpatialParams {
154
- type: ColumnType.GEOMETRY;
156
+ interface GeometryParams extends BaseSpatialParams {
157
+ type: typeof ColumnType.GEOMETRY;
155
158
  }
156
- export interface PointParams extends BaseSpatialParams {
157
- type: ColumnType.POINT;
159
+ interface PointParams extends BaseSpatialParams {
160
+ type: typeof ColumnType.POINT;
158
161
  }
159
- export interface LinestringParams extends BaseSpatialParams {
160
- type: ColumnType.LINESTRING;
162
+ interface LinestringParams extends BaseSpatialParams {
163
+ type: typeof ColumnType.LINESTRING;
161
164
  }
162
- export interface PolygonParams extends BaseSpatialParams {
163
- type: ColumnType.POLYGON;
165
+ interface PolygonParams extends BaseSpatialParams {
166
+ type: typeof ColumnType.POLYGON;
167
+ }
168
+ interface MultiPointParams extends BaseSpatialParams {
169
+ type: typeof ColumnType.MULTIPOINT;
164
170
  }
165
- export interface MultiPointParams extends BaseSpatialParams {
166
- type: ColumnType.MULTIPOINT;
171
+ interface MultiLinestringParams extends BaseSpatialParams {
172
+ type: typeof ColumnType.MULTILINESTRING;
167
173
  }
168
- export interface MultiLinestringParams extends BaseSpatialParams {
169
- type: ColumnType.MULTILINESTRING;
174
+ interface MultiPolygonParams extends BaseSpatialParams {
175
+ type: typeof ColumnType.MULTIPOLYGON;
170
176
  }
171
- export interface MultiPolygonParams extends BaseSpatialParams {
172
- type: ColumnType.MULTIPOLYGON;
177
+ interface GeometryCollectionParams extends BaseSpatialParams {
178
+ type: typeof ColumnType.GEOMETRYCOLLECTION;
173
179
  }
174
- export interface GeometryCollectionParams extends BaseSpatialParams {
175
- type: ColumnType.GEOMETRYCOLLECTION;
176
- }
177
- export type ColumnTypeParams = BitParams | BoolParams | TinyIntParams | SmallIntParams | MediumIntParams | IntParams | BigIntParams | DecimalParams | FloatParams | DoubleParams | DateParams | DateTimeParams | TimestampParams | TimeParams | YearParams | CharParams | VarCharParams | BinaryParams | VarBinaryParams | TinyBlobParams | TinyTextParams | BlobParams | TextParams | MediumBlobParams | MediumTextParams | LongBlobParams | LongTextParams | EnumParams | SetParams | JsonParams | GeometryParams | PointParams | LinestringParams | PolygonParams | MultiPointParams | MultiLinestringParams | MultiPolygonParams | GeometryCollectionParams;
178
- export {};
180
+ type ColumnTypeParams = BitParams | BoolParams | TinyIntParams | SmallIntParams | MediumIntParams | IntParams | BigIntParams | DecimalParams | FloatParams | DoubleParams | DateParams | DateTimeParams | TimestampParams | TimeParams | YearParams | CharParams | VarCharParams | BinaryParams | VarBinaryParams | TinyBlobParams | TinyTextParams | BlobParams | TextParams | MediumBlobParams | MediumTextParams | LongBlobParams | LongTextParams | EnumParams | SetParams | JsonParams | GeometryParams | PointParams | LinestringParams | PolygonParams | MultiPointParams | MultiLinestringParams | MultiPolygonParams | GeometryCollectionParams;
181
+ //#endregion
182
+ export { 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 };
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29sdW1uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2RhbC9kZWNvcmF0b3IvQ29sdW1uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
1
+ export { };
@@ -1,2 +1,5 @@
1
- export declare const DataSourceQualifierAttribute: unique symbol;
2
- export declare const DataSourceInjectName = "dataSource";
1
+ //#region src/dal/decorator/DataSourceQualifier.d.ts
2
+ declare const DataSourceQualifierAttribute: symbol;
3
+ declare const DataSourceInjectName = "dataSource";
4
+ //#endregion
5
+ export { DataSourceInjectName, DataSourceQualifierAttribute };
@@ -1,3 +1,6 @@
1
- export const DataSourceQualifierAttribute = Symbol('Qualifier.DataSource');
2
- export const DataSourceInjectName = 'dataSource';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGF0YVNvdXJjZVF1YWxpZmllci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kYWwvZGVjb3JhdG9yL0RhdGFTb3VyY2VRdWFsaWZpZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sNEJBQTRCLEdBQUcsTUFBTSxDQUFDLHNCQUFzQixDQUFDLENBQUM7QUFDM0UsTUFBTSxDQUFDLE1BQU0sb0JBQW9CLEdBQUcsWUFBWSxDQUFDIn0=
1
+ //#region src/dal/decorator/DataSourceQualifier.ts
2
+ const DataSourceQualifierAttribute = Symbol("Qualifier.DataSource");
3
+ const DataSourceInjectName = "dataSource";
4
+
5
+ //#endregion
6
+ export { DataSourceInjectName, DataSourceQualifierAttribute };
@@ -1,21 +1,27 @@
1
- import type { CompressionType, InsertMethod, RowFormat } from '../enum/index.ts';
2
- export interface TableParams {
3
- name?: string;
4
- dataSourceName?: string;
5
- comment?: string;
6
- autoExtendSize?: number;
7
- autoIncrement?: number;
8
- avgRowLength?: number;
9
- characterSet?: string;
10
- collate?: string;
11
- compression?: CompressionType;
12
- encryption?: boolean;
13
- engine?: string;
14
- engineAttribute?: string;
15
- insertMethod?: InsertMethod;
16
- keyBlockSize?: number;
17
- maxRows?: number;
18
- minRows?: number;
19
- rowFormat?: RowFormat;
20
- secondaryEngineAttribute?: string;
1
+ import { CompressionType } from "../enum/CompressionType.js";
2
+ import { InsertMethod } from "../enum/InsertMethod.js";
3
+ import { RowFormat } from "../enum/RowFormat.js";
4
+
5
+ //#region src/dal/decorator/Table.d.ts
6
+ interface TableParams {
7
+ name?: string;
8
+ dataSourceName?: string;
9
+ comment?: string;
10
+ autoExtendSize?: number;
11
+ autoIncrement?: number;
12
+ avgRowLength?: number;
13
+ characterSet?: string;
14
+ collate?: string;
15
+ compression?: CompressionType;
16
+ encryption?: boolean;
17
+ engine?: string;
18
+ engineAttribute?: string;
19
+ insertMethod?: InsertMethod;
20
+ keyBlockSize?: number;
21
+ maxRows?: number;
22
+ minRows?: number;
23
+ rowFormat?: RowFormat;
24
+ secondaryEngineAttribute?: string;
21
25
  }
26
+ //#endregion
27
+ export { TableParams };
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGFibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZGFsL2RlY29yYXRvci9UYWJsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
1
+ export { };
@@ -1,14 +1,19 @@
1
- import type { IndexStoreType, IndexType } from '../enum/index.ts';
2
- export interface IndexParams {
3
- keys: string[];
4
- name?: string;
5
- type?: IndexType;
6
- storeType?: IndexStoreType;
7
- comment?: string;
8
- engineAttribute?: string;
9
- secondaryEngineAttribute?: string;
10
- parser?: string;
1
+ import { IndexStoreType } from "../enum/IndexStoreType.js";
2
+ import { IndexType } from "../enum/IndexType.js";
3
+ 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 "./Column.js";
4
+ import { DataSourceInjectName, DataSourceQualifierAttribute } from "./DataSourceQualifier.js";
5
+ import { TableParams } from "./Table.js";
6
+
7
+ //#region src/dal/decorator/index.d.ts
8
+ interface IndexParams {
9
+ keys: string[];
10
+ name?: string;
11
+ type?: IndexType;
12
+ storeType?: IndexStoreType;
13
+ comment?: string;
14
+ engineAttribute?: string;
15
+ secondaryEngineAttribute?: string;
16
+ parser?: string;
11
17
  }
12
- export * from './Column.ts';
13
- export * from './DataSourceQualifier.ts';
14
- export * from './Table.ts';
18
+ //#endregion
19
+ export { BaseSpatialParams, BigIntParams, BinaryParams, BitParams, BlobParams, BoolParams, CharParams, ColumnParams, ColumnTypeParams, DataSourceInjectName, DataSourceQualifierAttribute, DateParams, DateTimeParams, DecimalParams, DoubleParams, EnumParams, FloatParams, GeometryCollectionParams, GeometryParams, IColumnTypeParams, IndexParams, IntParams, JsonParams, LinestringParams, LongBlobParams, LongTextParams, MediumBlobParams, MediumIntParams, MediumTextParams, MultiLinestringParams, MultiPointParams, MultiPolygonParams, PointParams, PolygonParams, SetParams, SmallIntParams, TableParams, TextParams, TimeParams, TimestampParams, TinyBlobParams, TinyIntParams, TinyTextParams, VarBinaryParams, VarCharParams, YearParams };
@@ -1,4 +1,3 @@
1
- export * from "./Column.js";
2
- export * from "./DataSourceQualifier.js";
3
- export * from "./Table.js";
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZGFsL2RlY29yYXRvci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFhQSxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsWUFBWSxDQUFDIn0=
1
+ import { DataSourceInjectName, DataSourceQualifierAttribute } from "./DataSourceQualifier.js";
2
+
3
+ export { DataSourceInjectName, DataSourceQualifierAttribute };