lakutata 0.2.1-proto.21 → 0.2.1-proto.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/com.cjs +239 -0
- package/{src/exports/COM.d.ts → com.d.cts} +6 -6
- package/com.d.mts +325 -0
- package/com.mjs +199 -0
- package/decorator/asst.cjs +31 -0
- package/{src/exports/ASSTDecorators.d.ts → decorator/asst.d.cts} +1 -1
- package/decorator/asst.d.mts +20 -0
- package/decorator/asst.mjs +21 -0
- package/decorator/ctrl.cjs +85 -0
- package/{src/exports/CTRLDecorators.d.ts → decorator/ctrl.d.cts} +4 -4
- package/decorator/ctrl.d.mts +66 -0
- package/decorator/ctrl.mjs +73 -0
- package/decorator/di.cjs +93 -0
- package/{src/exports/DIDecorators.d.ts → decorator/di.d.cts} +5 -5
- package/decorator/di.d.mts +55 -0
- package/decorator/di.mjs +73 -0
- package/decorator/dto.cjs +79 -0
- package/{src/exports/DTODecorators.d.ts → decorator/dto.d.cts} +5 -5
- package/decorator/dto.d.mts +35 -0
- package/decorator/dto.mjs +65 -0
- package/decorator/orm.cjs +343 -0
- package/{src/exports/ORMDecorators.d.ts → decorator/orm.d.cts} +3 -3
- package/decorator/orm.d.mts +746 -0
- package/decorator/orm.mjs +127 -0
- package/ffi.cjs +95 -0
- package/ffi.d.mts +585 -0
- package/ffi.mjs +73 -0
- package/helper.cjs +145 -0
- package/{src/exports/Helpers.d.ts → helper.d.cts} +1 -1
- package/helper.d.mts +238 -0
- package/helper.mjs +83 -0
- package/lakutata.cjs +355 -0
- package/{src/exports/Lakutata.d.ts → lakutata.d.cts} +8 -8
- package/lakutata.d.mts +494 -0
- package/lakutata.mjs +247 -0
- package/orm.cjs +365 -0
- package/{src/exports/ORM.d.ts → orm.d.cts} +4 -4
- package/orm.d.mts +2303 -0
- package/orm.mjs +53 -0
- package/package.json +81 -46
- package/src/components/Database.cjs +259 -0
- package/src/components/Database.mjs +255 -0
- package/src/components/Entrypoint.cjs +710 -0
- package/src/components/Entrypoint.mjs +682 -0
- package/src/constants/event-names/ModuleEventName.cjs +9 -0
- package/src/constants/event-names/ModuleEventName.mjs +3 -0
- package/src/constants/metadata-keys/DIMetadataKey.cjs +45 -0
- package/src/constants/metadata-keys/DIMetadataKey.mjs +23 -0
- package/src/constants/metadata-keys/DTOMetadataKey.cjs +21 -0
- package/src/constants/metadata-keys/DTOMetadataKey.mjs +11 -0
- package/src/decorators/asst/After.cjs +29 -0
- package/src/decorators/asst/After.mjs +23 -0
- package/src/decorators/asst/Before.cjs +29 -0
- package/src/decorators/asst/Before.mjs +23 -0
- package/src/decorators/ctrl/CLIAction.cjs +86 -0
- package/src/decorators/ctrl/CLIAction.mjs +80 -0
- package/src/decorators/ctrl/HTTPAction.cjs +88 -0
- package/src/decorators/ctrl/HTTPAction.mjs +82 -0
- package/src/decorators/ctrl/ServiceAction.cjs +86 -0
- package/src/decorators/ctrl/ServiceAction.mjs +80 -0
- package/src/decorators/di/Autoload.cjs +27 -0
- package/src/decorators/di/Autoload.mjs +21 -0
- package/src/decorators/di/Configurable.cjs +67 -0
- package/src/decorators/di/Configurable.mjs +61 -0
- package/src/decorators/di/Inject.cjs +37 -0
- package/src/decorators/di/Inject.mjs +31 -0
- package/src/decorators/di/Lifetime.cjs +51 -0
- package/src/decorators/di/Lifetime.mjs +39 -0
- package/src/decorators/dto/Accept.cjs +69 -0
- package/src/decorators/dto/Accept.mjs +63 -0
- package/src/decorators/dto/Expect.cjs +63 -0
- package/src/decorators/dto/Expect.mjs +57 -0
- package/src/decorators/dto/IndexSignature.cjs +63 -0
- package/src/decorators/dto/IndexSignature.mjs +57 -0
- package/src/decorators/dto/Return.cjs +69 -0
- package/src/decorators/dto/Return.mjs +63 -0
- package/src/decorators/orm/AfterInsert.cjs +75 -0
- package/src/decorators/orm/AfterInsert.mjs +71 -0
- package/src/decorators/orm/AfterLoad.cjs +75 -0
- package/src/decorators/orm/AfterLoad.mjs +71 -0
- package/src/decorators/orm/AfterRecover.cjs +75 -0
- package/src/decorators/orm/AfterRecover.mjs +71 -0
- package/src/decorators/orm/AfterRemove.cjs +75 -0
- package/src/decorators/orm/AfterRemove.mjs +71 -0
- package/src/decorators/orm/AfterSoftRemove.cjs +75 -0
- package/src/decorators/orm/AfterSoftRemove.mjs +71 -0
- package/src/decorators/orm/AfterUpdate.cjs +75 -0
- package/src/decorators/orm/AfterUpdate.mjs +71 -0
- package/src/decorators/orm/BeforeInsert.cjs +75 -0
- package/src/decorators/orm/BeforeInsert.mjs +71 -0
- package/src/decorators/orm/BeforeRecover.cjs +75 -0
- package/src/decorators/orm/BeforeRecover.mjs +71 -0
- package/src/decorators/orm/BeforeRemove.cjs +75 -0
- package/src/decorators/orm/BeforeRemove.mjs +71 -0
- package/src/decorators/orm/BeforeSoftRemove.cjs +75 -0
- package/src/decorators/orm/BeforeSoftRemove.mjs +71 -0
- package/src/decorators/orm/BeforeUpdate.cjs +75 -0
- package/src/decorators/orm/BeforeUpdate.mjs +71 -0
- package/src/decorators/orm/Check.cjs +78 -0
- package/src/decorators/orm/Check.mjs +74 -0
- package/src/decorators/orm/ChildEntity.cjs +78 -0
- package/src/decorators/orm/ChildEntity.mjs +74 -0
- package/src/decorators/orm/Column.cjs +110 -0
- package/src/decorators/orm/Column.mjs +106 -0
- package/src/decorators/orm/CreateDateColumn.cjs +74 -0
- package/src/decorators/orm/CreateDateColumn.mjs +70 -0
- package/src/decorators/orm/DeleteDateColumn.cjs +74 -0
- package/src/decorators/orm/DeleteDateColumn.mjs +70 -0
- package/src/decorators/orm/Entity.cjs +84 -0
- package/src/decorators/orm/Entity.mjs +80 -0
- package/src/decorators/orm/EventSubscriber.cjs +71 -0
- package/src/decorators/orm/EventSubscriber.mjs +67 -0
- package/src/decorators/orm/Exclusion.cjs +78 -0
- package/src/decorators/orm/Exclusion.mjs +74 -0
- package/src/decorators/orm/Generated.cjs +73 -0
- package/src/decorators/orm/Generated.mjs +69 -0
- package/src/decorators/orm/Index.cjs +90 -0
- package/src/decorators/orm/Index.mjs +86 -0
- package/src/decorators/orm/JoinColumn.cjs +78 -0
- package/src/decorators/orm/JoinColumn.mjs +74 -0
- package/src/decorators/orm/JoinTable.cjs +79 -0
- package/src/decorators/orm/JoinTable.mjs +75 -0
- package/src/decorators/orm/ManyToMany.cjs +91 -0
- package/src/decorators/orm/ManyToMany.mjs +87 -0
- package/src/decorators/orm/ManyToOne.cjs +91 -0
- package/src/decorators/orm/ManyToOne.mjs +87 -0
- package/src/decorators/orm/ObjectIdColumn.cjs +77 -0
- package/src/decorators/orm/ObjectIdColumn.mjs +73 -0
- package/src/decorators/orm/OneToMany.cjs +83 -0
- package/src/decorators/orm/OneToMany.mjs +79 -0
- package/src/decorators/orm/OneToOne.cjs +91 -0
- package/src/decorators/orm/OneToOne.mjs +87 -0
- package/src/decorators/orm/PrimaryColumn.cjs +98 -0
- package/src/decorators/orm/PrimaryColumn.mjs +94 -0
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +103 -0
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +99 -0
- package/src/decorators/orm/RelationId.cjs +75 -0
- package/src/decorators/orm/RelationId.mjs +71 -0
- package/src/decorators/orm/TableInheritance.cjs +75 -0
- package/src/decorators/orm/TableInheritance.mjs +71 -0
- package/src/decorators/orm/Tree.cjs +73 -0
- package/src/decorators/orm/Tree.mjs +69 -0
- package/src/decorators/orm/TreeChildren.cjs +80 -0
- package/src/decorators/orm/TreeChildren.mjs +76 -0
- package/src/decorators/orm/TreeLevelColumn.cjs +74 -0
- package/src/decorators/orm/TreeLevelColumn.mjs +70 -0
- package/src/decorators/orm/TreeParent.cjs +80 -0
- package/src/decorators/orm/TreeParent.mjs +76 -0
- package/src/decorators/orm/Unique.cjs +93 -0
- package/src/decorators/orm/Unique.mjs +89 -0
- package/src/decorators/orm/UpdateDateColumn.cjs +74 -0
- package/src/decorators/orm/UpdateDateColumn.mjs +70 -0
- package/src/decorators/orm/VersionColumn.cjs +74 -0
- package/src/decorators/orm/VersionColumn.mjs +70 -0
- package/src/decorators/orm/ViewColumn.cjs +74 -0
- package/src/decorators/orm/ViewColumn.mjs +70 -0
- package/src/decorators/orm/ViewEntity.cjs +83 -0
- package/src/decorators/orm/ViewEntity.mjs +79 -0
- package/src/decorators/orm/VirtualColumn.cjs +91 -0
- package/src/decorators/orm/VirtualColumn.mjs +87 -0
- package/src/exceptions/ControllerActionNotFoundException.cjs +26 -0
- package/src/exceptions/ControllerActionNotFoundException.mjs +20 -0
- package/src/exceptions/DestroyRuntimeContainerException.cjs +26 -0
- package/src/exceptions/DestroyRuntimeContainerException.mjs +20 -0
- package/src/exceptions/InvalidActionPatternDepthException.cjs +26 -0
- package/src/exceptions/InvalidActionPatternDepthException.mjs +20 -0
- package/src/exceptions/InvalidAssistantFunctionTypeException.cjs +26 -0
- package/src/exceptions/InvalidAssistantFunctionTypeException.mjs +20 -0
- package/src/exceptions/InvalidObjectTypeException.cjs +26 -0
- package/src/exceptions/InvalidObjectTypeException.mjs +20 -0
- package/src/exceptions/MethodNotFoundException.cjs +26 -0
- package/src/exceptions/MethodNotFoundException.mjs +20 -0
- package/src/exceptions/alias/AliasExistsException.cjs +26 -0
- package/src/exceptions/alias/AliasExistsException.mjs +20 -0
- package/src/exceptions/alias/AliasNotFoundException.cjs +26 -0
- package/src/exceptions/alias/AliasNotFoundException.mjs +20 -0
- package/src/exceptions/alias/InvalidAliasNameException.cjs +26 -0
- package/src/exceptions/alias/InvalidAliasNameException.mjs +20 -0
- package/src/exceptions/di/DependencyInjectionException.cjs +26 -0
- package/src/exceptions/di/DependencyInjectionException.mjs +20 -0
- package/src/exceptions/di/LifetimeLockedException.cjs +26 -0
- package/src/exceptions/di/LifetimeLockedException.mjs +20 -0
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.cjs +26 -0
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs +20 -0
- package/src/exceptions/dto/InvalidMethodAcceptException.cjs +26 -0
- package/src/exceptions/dto/InvalidMethodAcceptException.mjs +20 -0
- package/src/exceptions/dto/InvalidMethodReturnException.cjs +26 -0
- package/src/exceptions/dto/InvalidMethodReturnException.mjs +20 -0
- package/src/exceptions/dto/InvalidValueException.cjs +26 -0
- package/src/exceptions/dto/InvalidValueException.mjs +20 -0
- package/src/exceptions/ffi/LibraryUnloadedException.cjs +26 -0
- package/src/exceptions/ffi/LibraryUnloadedException.mjs +20 -0
- package/src/interfaces/IBaseObjectConstructor.cjs +1 -0
- package/src/interfaces/IBaseObjectConstructor.mjs +1 -0
- package/src/interfaces/IConstructor.cjs +1 -0
- package/src/interfaces/IConstructor.mjs +1 -0
- package/src/interfaces/IPatRun.cjs +1 -0
- package/src/interfaces/IPatRun.mjs +1 -0
- package/src/lib/base/BaseObject.cjs +156 -0
- package/src/lib/base/BaseObject.mjs +139 -0
- package/src/lib/base/Context.cjs +81 -0
- package/src/lib/base/Context.mjs +77 -0
- package/src/lib/base/EventEmitter.cjs +1478 -0
- package/src/lib/base/EventEmitter.mjs +1470 -0
- package/src/lib/base/abstracts/Exception.cjs +50 -0
- package/src/lib/base/abstracts/Exception.mjs +44 -0
- package/src/lib/base/async-constructor/Append.cjs +31 -0
- package/src/lib/base/async-constructor/Append.mjs +25 -0
- package/src/lib/base/async-constructor/AsyncConstructor.cjs +22 -0
- package/src/lib/base/async-constructor/AsyncConstructor.mjs +16 -0
- package/src/lib/base/internal/ApplicationConfigLoader.cjs +226 -0
- package/src/lib/base/internal/ApplicationConfigLoader.mjs +220 -0
- package/src/lib/base/internal/{BasicInfo.js → BasicInfo.cjs} +11 -15
- package/src/lib/base/internal/BasicInfo.mjs +20 -0
- package/src/lib/base/internal/CamelCase.cjs +22 -0
- package/src/lib/base/internal/CamelCase.mjs +16 -0
- package/src/lib/base/internal/{ConfigurableRecordsInjection.js → ConfigurableRecordsInjection.cjs} +24 -22
- package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +45 -0
- package/src/lib/base/internal/ConstructorSymbol.cjs +34 -0
- package/src/lib/base/internal/ConstructorSymbol.mjs +26 -0
- package/src/lib/base/internal/ControllerEntrypoint.cjs +151 -0
- package/src/lib/base/internal/ControllerEntrypoint.mjs +135 -0
- package/src/lib/base/internal/DataValidator.cjs +329 -0
- package/src/lib/base/internal/DataValidator.mjs +323 -0
- package/src/lib/base/internal/FlexibleDTO.cjs +63 -0
- package/src/lib/base/internal/FlexibleDTO.mjs +59 -0
- package/src/lib/base/internal/MethodAssistantFunction.cjs +100 -0
- package/src/lib/base/internal/MethodAssistantFunction.mjs +92 -0
- package/src/lib/base/internal/MethodValidation.cjs +140 -0
- package/src/lib/base/internal/MethodValidation.mjs +132 -0
- package/src/lib/base/internal/ModuleConfigLoader.cjs +223 -0
- package/src/lib/base/internal/ModuleConfigLoader.mjs +217 -0
- package/src/lib/base/internal/ObjectConfiguration.cjs +89 -0
- package/src/lib/base/internal/ObjectConfiguration.mjs +81 -0
- package/src/lib/base/internal/ObjectContainer.cjs +24 -0
- package/src/lib/base/internal/ObjectContainer.mjs +16 -0
- package/src/lib/base/internal/ObjectInjection.cjs +58 -0
- package/src/lib/base/internal/ObjectInjection.mjs +46 -0
- package/src/lib/base/internal/ObjectLifetime.cjs +46 -0
- package/src/lib/base/internal/ObjectLifetime.mjs +36 -0
- package/src/lib/base/internal/ObjectSchemaValidation.cjs +75 -0
- package/src/lib/base/internal/ObjectSchemaValidation.mjs +51 -0
- package/src/lib/base/internal/ObjectType.cjs +156 -0
- package/src/lib/base/internal/ObjectType.mjs +139 -0
- package/src/lib/base/internal/{ObjectWeakRefs.js → ObjectWeakRefs.cjs} +15 -19
- package/src/lib/base/internal/ObjectWeakRefs.mjs +30 -0
- package/src/lib/base/internal/PatternManager.cjs +873 -0
- package/src/lib/base/internal/PatternManager.mjs +867 -0
- package/src/lib/context/CLIContext.cjs +75 -0
- package/src/lib/context/CLIContext.mjs +69 -0
- package/src/lib/context/HTTPContext.cjs +83 -0
- package/src/lib/context/HTTPContext.mjs +77 -0
- package/src/lib/context/ServiceContext.cjs +81 -0
- package/src/lib/context/ServiceContext.mjs +75 -0
- package/src/lib/core/{Alias.js → Alias.cjs} +43 -31
- package/src/lib/core/Alias.mjs +84 -0
- package/src/lib/core/Application.cjs +292 -0
- package/src/lib/core/Application.mjs +288 -0
- package/src/lib/core/Component.cjs +249 -0
- package/src/lib/core/Component.mjs +245 -0
- package/src/lib/core/Container.cjs +151 -0
- package/src/lib/core/Container.mjs +139 -0
- package/src/lib/core/Controller.cjs +165 -0
- package/src/lib/core/Controller.mjs +161 -0
- package/src/lib/core/DTO.cjs +62 -0
- package/src/lib/core/DTO.mjs +51 -0
- package/src/lib/core/Module.cjs +274 -0
- package/src/lib/core/Module.mjs +270 -0
- package/src/lib/core/Provider.cjs +149 -0
- package/src/lib/core/Provider.mjs +145 -0
- package/src/lib/core/Time.cjs +4481 -0
- package/src/lib/core/Time.mjs +4475 -0
- package/src/lib/ffi/AlignOf.cjs +33 -0
- package/src/lib/ffi/AlignOf.mjs +27 -0
- package/src/lib/ffi/Library.cjs +92 -0
- package/src/lib/ffi/Library.mjs +86 -0
- package/src/lib/ffi/LibrarySymbol.cjs +61 -0
- package/src/lib/ffi/LibrarySymbol.mjs +55 -0
- package/src/lib/ffi/RegisterCallback.cjs +33 -0
- package/src/lib/ffi/RegisterCallback.mjs +27 -0
- package/src/lib/ffi/SizeOf.cjs +33 -0
- package/src/lib/ffi/SizeOf.mjs +27 -0
- package/src/lib/ffi/TypeDef.cjs +280 -0
- package/src/lib/ffi/{TypeDef.js → TypeDef.mjs} +35 -27
- package/src/lib/ffi/Union.cjs +35 -0
- package/src/lib/ffi/Union.mjs +29 -0
- package/src/lib/ffi/UnregisterCallback.cjs +33 -0
- package/src/lib/ffi/UnregisterCallback.mjs +27 -0
- package/src/lib/ffi/interfaces/ICType.cjs +1 -0
- package/src/lib/ffi/interfaces/ICType.mjs +1 -0
- package/src/lib/ffi/interfaces/ILib.cjs +1 -0
- package/src/lib/ffi/interfaces/ILib.mjs +1 -0
- package/src/lib/ffi/interfaces/IPointerCast.cjs +1 -0
- package/src/lib/ffi/interfaces/IPointerCast.mjs +1 -0
- package/src/lib/ffi/interfaces/IRegisteredCallback.cjs +1 -0
- package/src/lib/ffi/interfaces/IRegisteredCallback.mjs +1 -0
- package/src/lib/ffi/types/ArrayHint.cjs +1 -0
- package/src/lib/ffi/types/ArrayHint.mjs +1 -0
- package/src/lib/ffi/types/LibFunc.cjs +1 -0
- package/src/lib/ffi/types/LibFunc.mjs +1 -0
- package/src/lib/ffi/types/LibFunction.cjs +1 -0
- package/src/lib/ffi/types/LibFunction.mjs +1 -0
- package/src/lib/ffi/types/PrimitiveKind.cjs +1 -0
- package/src/lib/ffi/types/PrimitiveKind.mjs +1 -0
- package/src/lib/ffi/types/TypeInfo.cjs +1 -0
- package/src/lib/ffi/types/TypeInfo.mjs +1 -0
- package/src/lib/ffi/types/TypeSpec.cjs +1 -0
- package/src/lib/ffi/types/TypeSpec.mjs +1 -0
- package/src/lib/ffi/types/TypeSpecWithAlignment.cjs +1 -0
- package/src/lib/ffi/types/TypeSpecWithAlignment.mjs +1 -0
- package/src/lib/functions/ArrayToSet.cjs +11 -0
- package/src/lib/functions/ArrayToSet.mjs +5 -0
- package/src/lib/functions/As.cjs +11 -0
- package/src/lib/functions/As.mjs +5 -0
- package/src/lib/functions/{Delay.js → Delay.cjs} +2 -6
- package/src/lib/functions/Delay.mjs +5 -0
- package/src/lib/functions/DevNull.cjs +11 -0
- package/src/lib/functions/DevNull.mjs +5 -0
- package/src/lib/functions/GetObjectNestingDepth.cjs +22 -0
- package/src/lib/functions/GetObjectNestingDepth.mjs +16 -0
- package/src/lib/functions/GetObjectPropertyPaths.cjs +20 -0
- package/src/lib/functions/GetObjectPropertyPaths.mjs +14 -0
- package/src/lib/functions/GraceExit.cjs +22 -0
- package/src/lib/functions/GraceExit.mjs +16 -0
- package/src/lib/functions/{IsEmptyObject.js → IsEmptyObject.cjs} +2 -6
- package/src/lib/functions/IsEmptyObject.mjs +5 -0
- package/src/lib/functions/IsGlobString.cjs +11 -0
- package/src/lib/functions/IsGlobString.mjs +3 -0
- package/src/lib/functions/IsHtml.cjs +26 -0
- package/src/lib/functions/IsHtml.mjs +20 -0
- package/src/lib/functions/IsNativeFunction.cjs +20 -0
- package/src/lib/functions/IsNativeFunction.mjs +14 -0
- package/src/lib/functions/IsPromise.cjs +13 -0
- package/src/lib/functions/IsPromise.mjs +7 -0
- package/src/lib/functions/IsPromiseLike.cjs +17 -0
- package/src/lib/functions/IsPromiseLike.mjs +11 -0
- package/src/lib/functions/IsSymbol.cjs +59 -0
- package/src/lib/functions/IsSymbol.mjs +51 -0
- package/src/lib/functions/IsXML.cjs +1701 -0
- package/src/lib/functions/IsXML.mjs +1695 -0
- package/src/lib/functions/NoCase.cjs +51 -0
- package/src/lib/functions/NoCase.mjs +39 -0
- package/src/lib/functions/ObjectConstructor.cjs +13 -0
- package/src/lib/functions/ObjectConstructor.mjs +7 -0
- package/src/lib/functions/ObjectHash.cjs +418 -0
- package/src/lib/functions/ObjectHash.mjs +406 -0
- package/src/lib/functions/{ObjectParentConstructor.js → ObjectParentConstructor.cjs} +4 -8
- package/src/lib/functions/ObjectParentConstructor.mjs +8 -0
- package/src/lib/functions/ObjectParentConstructors.cjs +19 -0
- package/src/lib/functions/ObjectParentConstructors.mjs +13 -0
- package/src/lib/functions/ObjectPrototype.cjs +11 -0
- package/src/lib/functions/ObjectPrototype.mjs +5 -0
- package/src/lib/functions/SetToArray.cjs +11 -0
- package/src/lib/functions/SetToArray.mjs +5 -0
- package/src/lib/functions/{Templating.js → Templating.cjs} +16 -20
- package/src/lib/functions/Templating.mjs +55 -0
- package/src/lib/functions/UniqueArray.cjs +11 -0
- package/src/lib/functions/UniqueArray.mjs +5 -0
- package/src/lib/ioc/DependencyInjectionContainer.cjs +374 -0
- package/src/lib/ioc/DependencyInjectionContainer.mjs +352 -0
- package/src/lib/ioc/Errors.cjs +134 -0
- package/src/lib/ioc/Errors.mjs +122 -0
- package/src/lib/ioc/FunctionTokenizer.cjs +218 -0
- package/src/lib/ioc/{FunctionTokenizer.js → FunctionTokenizer.mjs} +69 -79
- package/src/lib/ioc/InjectionMode.cjs +12 -0
- package/src/lib/ioc/InjectionMode.mjs +6 -0
- package/src/lib/ioc/Lifetime.cjs +19 -0
- package/src/lib/ioc/Lifetime.mjs +11 -0
- package/src/lib/ioc/ListModules.cjs +6028 -0
- package/src/lib/ioc/ListModules.mjs +5986 -0
- package/src/lib/ioc/LoadModules.cjs +196 -0
- package/src/lib/ioc/LoadModules.mjs +198 -0
- package/src/lib/ioc/{ParamParser.js → ParamParser.cjs} +28 -32
- package/src/lib/ioc/ParamParser.mjs +107 -0
- package/src/lib/ioc/{Resolvers.js → Resolvers.cjs} +122 -62
- package/src/lib/ioc/Resolvers.mjs +265 -0
- package/src/lib/ioc/Utils.cjs +115 -0
- package/src/lib/ioc/Utils.mjs +99 -0
- package/src/lib/validation/VLD.cjs +10644 -0
- package/src/lib/validation/VLD.mjs +10626 -0
- package/src/lib/validation/interfaces/AlternativesSchema.cjs +1 -0
- package/src/lib/validation/interfaces/AlternativesSchema.mjs +1 -0
- package/src/lib/validation/interfaces/AnySchema.cjs +1 -0
- package/src/lib/validation/interfaces/AnySchema.mjs +1 -0
- package/src/lib/validation/interfaces/ArraySchema.cjs +1 -0
- package/src/lib/validation/interfaces/ArraySchema.mjs +1 -0
- package/src/lib/validation/interfaces/Base64Options.cjs +1 -0
- package/src/lib/validation/interfaces/Base64Options.mjs +1 -0
- package/src/lib/validation/interfaces/BaseValidationOptions.cjs +1 -0
- package/src/lib/validation/interfaces/BaseValidationOptions.mjs +1 -0
- package/src/lib/validation/interfaces/BinarySchema.cjs +1 -0
- package/src/lib/validation/interfaces/BinarySchema.mjs +1 -0
- package/src/lib/validation/interfaces/BooleanSchema.cjs +1 -0
- package/src/lib/validation/interfaces/BooleanSchema.mjs +1 -0
- package/src/lib/validation/interfaces/CustomHelpers.cjs +1 -0
- package/src/lib/validation/interfaces/CustomHelpers.mjs +1 -0
- package/src/lib/validation/interfaces/DataUriOptions.cjs +1 -0
- package/src/lib/validation/interfaces/DataUriOptions.mjs +1 -0
- package/src/lib/validation/interfaces/DateSchema.cjs +1 -0
- package/src/lib/validation/interfaces/DateSchema.mjs +1 -0
- package/src/lib/validation/interfaces/DependencyOptions.cjs +1 -0
- package/src/lib/validation/interfaces/DependencyOptions.mjs +1 -0
- package/src/lib/validation/interfaces/DomainOptions.cjs +1 -0
- package/src/lib/validation/interfaces/DomainOptions.mjs +1 -0
- package/src/lib/validation/interfaces/EmailOptions.cjs +1 -0
- package/src/lib/validation/interfaces/EmailOptions.mjs +1 -0
- package/src/lib/validation/interfaces/ErrorFormattingOptions.cjs +1 -0
- package/src/lib/validation/interfaces/ErrorFormattingOptions.mjs +1 -0
- package/src/lib/validation/interfaces/ErrorReport.cjs +1 -0
- package/src/lib/validation/interfaces/ErrorReport.mjs +1 -0
- package/src/lib/validation/interfaces/ErrorValidationOptions.cjs +1 -0
- package/src/lib/validation/interfaces/ErrorValidationOptions.mjs +1 -0
- package/src/lib/validation/interfaces/ExtensionFlag.cjs +1 -0
- package/src/lib/validation/interfaces/ExtensionFlag.mjs +1 -0
- package/src/lib/validation/interfaces/ExternalHelpers.cjs +1 -0
- package/src/lib/validation/interfaces/ExternalHelpers.mjs +1 -0
- package/src/lib/validation/interfaces/FunctionSchema.cjs +1 -0
- package/src/lib/validation/interfaces/FunctionSchema.mjs +1 -0
- package/src/lib/validation/interfaces/GuidOptions.cjs +1 -0
- package/src/lib/validation/interfaces/GuidOptions.mjs +1 -0
- package/src/lib/validation/interfaces/HexOptions.cjs +1 -0
- package/src/lib/validation/interfaces/HexOptions.mjs +1 -0
- package/src/lib/validation/interfaces/HierarchySeparatorOptions.cjs +1 -0
- package/src/lib/validation/interfaces/HierarchySeparatorOptions.mjs +1 -0
- package/src/lib/validation/interfaces/IpOptions.cjs +1 -0
- package/src/lib/validation/interfaces/IpOptions.mjs +1 -0
- package/src/lib/validation/interfaces/LanguageMessageTemplate.cjs +1 -0
- package/src/lib/validation/interfaces/LanguageMessageTemplate.mjs +1 -0
- package/src/lib/validation/interfaces/LinkSchema.cjs +1 -0
- package/src/lib/validation/interfaces/LinkSchema.mjs +1 -0
- package/src/lib/validation/interfaces/NumberSchema.cjs +1 -0
- package/src/lib/validation/interfaces/NumberSchema.mjs +1 -0
- package/src/lib/validation/interfaces/ObjectPatternOptions.cjs +1 -0
- package/src/lib/validation/interfaces/ObjectPatternOptions.mjs +1 -0
- package/src/lib/validation/interfaces/ObjectSchema.cjs +1 -0
- package/src/lib/validation/interfaces/ObjectSchema.mjs +1 -0
- package/src/lib/validation/interfaces/Reference.cjs +1 -0
- package/src/lib/validation/interfaces/Reference.mjs +1 -0
- package/src/lib/validation/interfaces/ReferenceOptions.cjs +1 -0
- package/src/lib/validation/interfaces/ReferenceOptions.mjs +1 -0
- package/src/lib/validation/interfaces/RenameOptions.cjs +1 -0
- package/src/lib/validation/interfaces/RenameOptions.mjs +1 -0
- package/src/lib/validation/interfaces/State.cjs +1 -0
- package/src/lib/validation/interfaces/State.mjs +1 -0
- package/src/lib/validation/interfaces/StringRegexOptions.cjs +1 -0
- package/src/lib/validation/interfaces/StringRegexOptions.mjs +1 -0
- package/src/lib/validation/interfaces/StringSchema.cjs +1 -0
- package/src/lib/validation/interfaces/StringSchema.mjs +1 -0
- package/src/lib/validation/interfaces/SwitchCases.cjs +1 -0
- package/src/lib/validation/interfaces/SwitchCases.mjs +1 -0
- package/src/lib/validation/interfaces/SwitchDefault.cjs +1 -0
- package/src/lib/validation/interfaces/SwitchDefault.mjs +1 -0
- package/src/lib/validation/interfaces/SymbolSchema.cjs +1 -0
- package/src/lib/validation/interfaces/SymbolSchema.mjs +1 -0
- package/src/lib/validation/interfaces/TopLevelDomainOptions.cjs +1 -0
- package/src/lib/validation/interfaces/TopLevelDomainOptions.mjs +1 -0
- package/src/lib/validation/interfaces/UriOptions.cjs +1 -0
- package/src/lib/validation/interfaces/UriOptions.mjs +1 -0
- package/src/lib/validation/interfaces/ValidationOptions.cjs +1 -0
- package/src/lib/validation/interfaces/ValidationOptions.mjs +1 -0
- package/src/lib/validation/interfaces/WhenOptions.cjs +1 -0
- package/src/lib/validation/interfaces/WhenOptions.mjs +1 -0
- package/src/lib/validation/interfaces/WhenSchemaOptions.cjs +1 -0
- package/src/lib/validation/interfaces/WhenSchemaOptions.mjs +1 -0
- package/src/lib/validation/types/CustomValidator.cjs +1 -0
- package/src/lib/validation/types/CustomValidator.mjs +1 -0
- package/src/lib/validation/types/ExtensionBoundSchema.cjs +1 -0
- package/src/lib/validation/types/ExtensionBoundSchema.mjs +1 -0
- package/src/lib/validation/types/ExternalValidationFunction.cjs +1 -0
- package/src/lib/validation/types/ExternalValidationFunction.mjs +1 -0
- package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.cjs +1 -0
- package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.mjs +1 -0
- package/src/lib/validation/types/IsPrimitiveSubset.cjs +1 -0
- package/src/lib/validation/types/IsPrimitiveSubset.mjs +1 -0
- package/src/lib/validation/types/IsUnion.cjs +1 -0
- package/src/lib/validation/types/IsUnion.mjs +1 -0
- package/src/lib/validation/types/LanguageMessages.cjs +1 -0
- package/src/lib/validation/types/LanguageMessages.mjs +1 -0
- package/src/lib/validation/types/NullableType.cjs +1 -0
- package/src/lib/validation/types/NullableType.mjs +1 -0
- package/src/lib/validation/types/ObjectPropertiesSchema.cjs +1 -0
- package/src/lib/validation/types/ObjectPropertiesSchema.mjs +1 -0
- package/src/lib/validation/types/PartialSchemaMap.cjs +1 -0
- package/src/lib/validation/types/PartialSchemaMap.mjs +1 -0
- package/src/lib/validation/types/PresenceMode.cjs +1 -0
- package/src/lib/validation/types/PresenceMode.mjs +1 -0
- package/src/lib/validation/types/Schema.cjs +1 -0
- package/src/lib/validation/types/Schema.mjs +1 -0
- package/src/lib/validation/types/SchemaFunction.cjs +1 -0
- package/src/lib/validation/types/SchemaFunction.mjs +1 -0
- package/src/lib/validation/types/SchemaLike.cjs +1 -0
- package/src/lib/validation/types/SchemaLike.mjs +1 -0
- package/src/lib/validation/types/SchemaLikeWithoutArray.cjs +1 -0
- package/src/lib/validation/types/SchemaLikeWithoutArray.mjs +1 -0
- package/src/lib/validation/types/SchemaMap.cjs +1 -0
- package/src/lib/validation/types/SchemaMap.mjs +1 -0
- package/src/lib/validation/types/StrictSchemaMap.cjs +1 -0
- package/src/lib/validation/types/StrictSchemaMap.mjs +1 -0
- package/src/lib/validation/types/Types.cjs +1 -0
- package/src/lib/validation/types/Types.mjs +1 -0
- package/src/options/ApplicationOptions.cjs +187 -0
- package/src/options/ApplicationOptions.mjs +181 -0
- package/src/options/LoadAnonymousObjectOptions.cjs +151 -0
- package/src/options/LoadAnonymousObjectOptions.mjs +147 -0
- package/src/options/LoadNamedObjectOptions.cjs +149 -0
- package/src/options/LoadNamedObjectOptions.mjs +145 -0
- package/src/options/LoadObjectOptions.cjs +152 -0
- package/src/options/LoadObjectOptions.mjs +139 -0
- package/src/options/ModuleLoadObjectsOptions.cjs +157 -0
- package/src/options/ModuleLoadObjectsOptions.mjs +151 -0
- package/src/options/ModuleOptions.cjs +190 -0
- package/src/options/ModuleOptions.mjs +184 -0
- package/src/options/OverridableNamedObjectOptions.cjs +151 -0
- package/src/options/OverridableNamedObjectOptions.mjs +147 -0
- package/src/options/OverridableObjectOptions.cjs +151 -0
- package/src/options/OverridableObjectOptions.mjs +147 -0
- package/src/types/ActionPattern.cjs +1 -0
- package/src/types/ActionPattern.mjs +1 -0
- package/src/types/ClassDecorator.cjs +1 -0
- package/src/types/ClassDecorator.mjs +1 -0
- package/src/types/JSONSchema.cjs +1 -0
- package/src/types/JSONSchema.mjs +1 -0
- package/src/types/MethodDecorator.cjs +1 -0
- package/src/types/MethodDecorator.mjs +1 -0
- package/src/types/ParameterDecorator.cjs +1 -0
- package/src/types/ParameterDecorator.mjs +1 -0
- package/src/types/PropertyDecorator.cjs +1 -0
- package/src/types/PropertyDecorator.mjs +1 -0
- package/vendor/Package.1.cjs +569 -0
- package/vendor/Package.1.mjs +563 -0
- package/vendor/Package.10.cjs +5 -0
- package/vendor/Package.10.mjs +3 -0
- package/vendor/Package.11.cjs +3 -0
- package/vendor/Package.11.mjs +1 -0
- package/vendor/Package.12.cjs +615 -0
- package/vendor/Package.12.mjs +603 -0
- package/vendor/Package.13.cjs +7 -0
- package/vendor/Package.13.mjs +5 -0
- package/vendor/Package.14.cjs +73356 -0
- package/vendor/Package.14.mjs +73306 -0
- package/vendor/Package.15.cjs +1064 -0
- package/vendor/Package.15.mjs +1060 -0
- package/vendor/Package.2.cjs +6986 -0
- package/vendor/Package.2.mjs +6974 -0
- package/vendor/Package.3.cjs +439 -0
- package/vendor/Package.3.mjs +419 -0
- package/vendor/Package.4.cjs +944 -0
- package/vendor/Package.4.mjs +942 -0
- package/vendor/Package.5.cjs +48 -0
- package/vendor/Package.5.mjs +42 -0
- package/vendor/Package.6.cjs +3 -0
- package/vendor/Package.6.mjs +1 -0
- package/vendor/Package.7.cjs +3 -0
- package/vendor/Package.7.mjs +1 -0
- package/vendor/Package.8.cjs +161 -0
- package/vendor/Package.8.mjs +157 -0
- package/vendor/Package.9.cjs +7 -0
- package/vendor/Package.9.mjs +5 -0
- package/vendor/TypeDef.1.d.mts +490 -0
- package/vendor/{TypeDef.2.d.ts → TypeDef.2.d.cts} +1 -1
- package/vendor/TypeDef.2.d.mts +4088 -0
- package/vendor/{TypeDef.3.d.ts → TypeDef.3.d.cts} +2 -2
- package/vendor/TypeDef.3.d.mts +1111 -0
- package/vendor/{TypeDef.4.d.ts → TypeDef.4.d.cts} +1 -1
- package/vendor/TypeDef.4.d.mts +7 -0
- package/vendor/TypeDef.5.d.mts +3 -0
- package/vendor/TypeDef.6.d.mts +6 -0
- package/vendor/TypeDef.7.d.mts +12 -0
- package/vendor/{TypeDef.8.d.ts → TypeDef.8.d.cts} +1 -1
- package/vendor/TypeDef.8.d.mts +19100 -0
- package/vendor/{TypeDef.9.d.ts → TypeDef.9.d.cts} +1 -1
- package/vendor/TypeDef.9.d.mts +107 -0
- package/vendor/darwin_arm64_ffi.node +0 -0
- package/vendor/darwin_x64_ffi.node +0 -0
- package/vendor/freebsd_arm64_ffi.node +0 -0
- package/vendor/freebsd_ia32_ffi.node +0 -0
- package/vendor/freebsd_x64_ffi.node +0 -0
- package/vendor/linux_arm32hf_ffi.node +0 -0
- package/vendor/linux_arm64_ffi.node +0 -0
- package/vendor/linux_ia32_ffi.node +0 -0
- package/vendor/linux_riscv64hf64_ffi.node +0 -0
- package/vendor/linux_x64_ffi.node +0 -0
- package/vendor/openbsd_ia32_ffi.node +0 -0
- package/vendor/openbsd_x64_ffi.node +0 -0
- package/vendor/win32_arm64_ffi.node +0 -0
- package/vendor/win32_ia32_ffi.node +0 -0
- package/vendor/win32_x64_ffi.node +0 -0
- package/src/components/Database.js +0 -107
- package/src/components/Entrypoint.js +0 -221
- package/src/constants/event-names/ModuleEventName.js +0 -11
- package/src/constants/metadata-keys/DIMetadataKey.js +0 -29
- package/src/constants/metadata-keys/DTOMetadataKey.js +0 -17
- package/src/decorators/asst/After.js +0 -17
- package/src/decorators/asst/Before.js +0 -17
- package/src/decorators/ctrl/CLIAction.js +0 -26
- package/src/decorators/ctrl/HTTPAction.js +0 -28
- package/src/decorators/ctrl/ServiceAction.js +0 -26
- package/src/decorators/di/Autoload.js +0 -17
- package/src/decorators/di/Configurable.js +0 -19
- package/src/decorators/di/Inject.js +0 -25
- package/src/decorators/di/Lifetime.js +0 -35
- package/src/decorators/dto/Accept.js +0 -17
- package/src/decorators/dto/Expect.js +0 -17
- package/src/decorators/dto/IndexSignature.js +0 -17
- package/src/decorators/dto/Return.js +0 -17
- package/src/decorators/orm/AfterInsert.js +0 -18
- package/src/decorators/orm/AfterLoad.js +0 -18
- package/src/decorators/orm/AfterRecover.js +0 -18
- package/src/decorators/orm/AfterRemove.js +0 -18
- package/src/decorators/orm/AfterSoftRemove.js +0 -18
- package/src/decorators/orm/AfterUpdate.js +0 -18
- package/src/decorators/orm/BeforeInsert.js +0 -18
- package/src/decorators/orm/BeforeRecover.js +0 -18
- package/src/decorators/orm/BeforeRemove.js +0 -18
- package/src/decorators/orm/BeforeSoftRemove.js +0 -18
- package/src/decorators/orm/BeforeUpdate.js +0 -18
- package/src/decorators/orm/Check.js +0 -18
- package/src/decorators/orm/ChildEntity.js +0 -18
- package/src/decorators/orm/Column.js +0 -18
- package/src/decorators/orm/CreateDateColumn.js +0 -18
- package/src/decorators/orm/DeleteDateColumn.js +0 -18
- package/src/decorators/orm/Entity.js +0 -18
- package/src/decorators/orm/EventSubscriber.js +0 -18
- package/src/decorators/orm/Exclusion.js +0 -18
- package/src/decorators/orm/Generated.js +0 -18
- package/src/decorators/orm/Index.js +0 -18
- package/src/decorators/orm/JoinColumn.js +0 -18
- package/src/decorators/orm/JoinTable.js +0 -18
- package/src/decorators/orm/ManyToMany.js +0 -18
- package/src/decorators/orm/ManyToOne.js +0 -18
- package/src/decorators/orm/ObjectIdColumn.js +0 -18
- package/src/decorators/orm/OneToMany.js +0 -18
- package/src/decorators/orm/OneToOne.js +0 -18
- package/src/decorators/orm/PrimaryColumn.js +0 -18
- package/src/decorators/orm/PrimaryGeneratedColumn.js +0 -18
- package/src/decorators/orm/RelationId.js +0 -18
- package/src/decorators/orm/TableInheritance.js +0 -18
- package/src/decorators/orm/Tree.js +0 -18
- package/src/decorators/orm/TreeChildren.js +0 -18
- package/src/decorators/orm/TreeLevelColumn.js +0 -18
- package/src/decorators/orm/TreeParent.js +0 -18
- package/src/decorators/orm/Unique.js +0 -18
- package/src/decorators/orm/UpdateDateColumn.js +0 -18
- package/src/decorators/orm/VersionColumn.js +0 -18
- package/src/decorators/orm/ViewColumn.js +0 -18
- package/src/decorators/orm/ViewEntity.js +0 -18
- package/src/decorators/orm/VirtualColumn.js +0 -18
- package/src/exceptions/ControllerActionNotFoundException.js +0 -20
- package/src/exceptions/DestroyRuntimeContainerException.js +0 -20
- package/src/exceptions/InvalidActionPatternDepthException.js +0 -20
- package/src/exceptions/InvalidAssistantFunctionTypeException.js +0 -20
- package/src/exceptions/InvalidObjectTypeException.js +0 -20
- package/src/exceptions/MethodNotFoundException.js +0 -20
- package/src/exceptions/alias/AliasExistsException.js +0 -20
- package/src/exceptions/alias/AliasNotFoundException.js +0 -20
- package/src/exceptions/alias/InvalidAliasNameException.js +0 -20
- package/src/exceptions/di/DependencyInjectionException.js +0 -20
- package/src/exceptions/di/LifetimeLockedException.js +0 -20
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.js +0 -20
- package/src/exceptions/dto/InvalidMethodAcceptException.js +0 -20
- package/src/exceptions/dto/InvalidMethodReturnException.js +0 -20
- package/src/exceptions/dto/InvalidValueException.js +0 -20
- package/src/exceptions/ffi/LibraryUnloadedException.js +0 -20
- package/src/exports/ASSTDecorators.js +0 -27
- package/src/exports/COM.js +0 -13
- package/src/exports/CTRLDecorators.js +0 -36
- package/src/exports/DIDecorators.js +0 -66
- package/src/exports/DTODecorators.js +0 -45
- package/src/exports/FFI.js +0 -105
- package/src/exports/Helpers.js +0 -57
- package/src/exports/Lakutata.js +0 -328
- package/src/exports/ORM.js +0 -391
- package/src/exports/ORMDecorators.js +0 -387
- package/src/interfaces/IBaseObjectConstructor.js +0 -7
- package/src/interfaces/IConstructor.js +0 -7
- package/src/interfaces/IPatRun.js +0 -7
- package/src/lib/base/BaseObject.js +0 -181
- package/src/lib/base/Context.js +0 -39
- package/src/lib/base/EventEmitter.js +0 -118
- package/src/lib/base/abstracts/Exception.js +0 -52
- package/src/lib/base/async-constructor/Append.js +0 -31
- package/src/lib/base/async-constructor/AsyncConstructor.js +0 -20
- package/src/lib/base/internal/ApplicationConfigLoader.js +0 -38
- package/src/lib/base/internal/CamelCase.js +0 -26
- package/src/lib/base/internal/ConstructorSymbol.js +0 -34
- package/src/lib/base/internal/ControllerEntrypoint.js +0 -137
- package/src/lib/base/internal/DataValidator.js +0 -123
- package/src/lib/base/internal/FlexibleDTO.js +0 -21
- package/src/lib/base/internal/MethodAssistantFunction.js +0 -94
- package/src/lib/base/internal/MethodValidation.js +0 -101
- package/src/lib/base/internal/ModuleConfigLoader.js +0 -85
- package/src/lib/base/internal/ObjectConfiguration.js +0 -54
- package/src/lib/base/internal/ObjectContainer.js +0 -24
- package/src/lib/base/internal/ObjectInjection.js +0 -54
- package/src/lib/base/internal/ObjectLifetime.js +0 -34
- package/src/lib/base/internal/ObjectSchemaValidation.js +0 -111
- package/src/lib/base/internal/ObjectType.js +0 -56
- package/src/lib/base/internal/PatternManager.js +0 -41
- package/src/lib/context/CLIContext.js +0 -29
- package/src/lib/context/HTTPContext.js +0 -37
- package/src/lib/context/ServiceContext.js +0 -35
- package/src/lib/core/Application.js +0 -98
- package/src/lib/core/Component.js +0 -125
- package/src/lib/core/Container.js +0 -226
- package/src/lib/core/Controller.js +0 -35
- package/src/lib/core/DTO.js +0 -148
- package/src/lib/core/Module.js +0 -108
- package/src/lib/core/Provider.js +0 -23
- package/src/lib/core/Time.js +0 -181
- package/src/lib/ffi/AlignOf.js +0 -19
- package/src/lib/ffi/Library.js +0 -66
- package/src/lib/ffi/LibrarySymbol.js +0 -47
- package/src/lib/ffi/RegisterCallback.js +0 -19
- package/src/lib/ffi/SizeOf.js +0 -19
- package/src/lib/ffi/Union.js +0 -21
- package/src/lib/ffi/UnregisterCallback.js +0 -19
- package/src/lib/ffi/interfaces/ICType.js +0 -7
- package/src/lib/ffi/interfaces/ILib.js +0 -7
- package/src/lib/ffi/interfaces/IPointerCast.js +0 -7
- package/src/lib/ffi/interfaces/IRegisteredCallback.js +0 -7
- package/src/lib/ffi/types/ArrayHint.js +0 -7
- package/src/lib/ffi/types/LibFunc.js +0 -7
- package/src/lib/ffi/types/LibFunction.js +0 -7
- package/src/lib/ffi/types/PrimitiveKind.js +0 -7
- package/src/lib/ffi/types/TypeInfo.js +0 -7
- package/src/lib/ffi/types/TypeSpec.js +0 -7
- package/src/lib/ffi/types/TypeSpecWithAlignment.js +0 -7
- package/src/lib/functions/ArrayToSet.js +0 -15
- package/src/lib/functions/As.js +0 -15
- package/src/lib/functions/DevNull.js +0 -15
- package/src/lib/functions/GetObjectNestingDepth.js +0 -26
- package/src/lib/functions/GetObjectPropertyPaths.js +0 -24
- package/src/lib/functions/GraceExit.js +0 -26
- package/src/lib/functions/IsGlobString.js +0 -19
- package/src/lib/functions/IsHtml.js +0 -24
- package/src/lib/functions/IsNativeFunction.js +0 -24
- package/src/lib/functions/IsPromise.js +0 -17
- package/src/lib/functions/IsPromiseLike.js +0 -19
- package/src/lib/functions/IsSymbol.js +0 -17
- package/src/lib/functions/IsXML.js +0 -24
- package/src/lib/functions/NoCase.js +0 -55
- package/src/lib/functions/ObjectConstructor.js +0 -17
- package/src/lib/functions/ObjectHash.js +0 -19
- package/src/lib/functions/ObjectParentConstructors.js +0 -23
- package/src/lib/functions/ObjectPrototype.js +0 -15
- package/src/lib/functions/SetToArray.js +0 -15
- package/src/lib/functions/UniqueArray.js +0 -15
- package/src/lib/ioc/DependencyInjectionContainer.js +0 -278
- package/src/lib/ioc/Errors.js +0 -86
- package/src/lib/ioc/InjectionMode.js +0 -14
- package/src/lib/ioc/Lifetime.js +0 -21
- package/src/lib/ioc/ListModules.js +0 -51
- package/src/lib/ioc/LoadModules.js +0 -138
- package/src/lib/ioc/Utils.js +0 -71
- package/src/lib/validation/VLD.js +0 -97
- package/src/lib/validation/interfaces/AlternativesSchema.js +0 -7
- package/src/lib/validation/interfaces/AnySchema.js +0 -7
- package/src/lib/validation/interfaces/ArraySchema.js +0 -7
- package/src/lib/validation/interfaces/Base64Options.js +0 -7
- package/src/lib/validation/interfaces/BaseValidationOptions.js +0 -7
- package/src/lib/validation/interfaces/BinarySchema.js +0 -7
- package/src/lib/validation/interfaces/BooleanSchema.js +0 -7
- package/src/lib/validation/interfaces/CustomHelpers.js +0 -7
- package/src/lib/validation/interfaces/DataUriOptions.js +0 -7
- package/src/lib/validation/interfaces/DateSchema.js +0 -7
- package/src/lib/validation/interfaces/DependencyOptions.js +0 -7
- package/src/lib/validation/interfaces/DomainOptions.js +0 -7
- package/src/lib/validation/interfaces/EmailOptions.js +0 -7
- package/src/lib/validation/interfaces/ErrorFormattingOptions.js +0 -7
- package/src/lib/validation/interfaces/ErrorReport.js +0 -7
- package/src/lib/validation/interfaces/ErrorValidationOptions.js +0 -7
- package/src/lib/validation/interfaces/ExtensionFlag.js +0 -7
- package/src/lib/validation/interfaces/ExternalHelpers.js +0 -7
- package/src/lib/validation/interfaces/FunctionSchema.js +0 -7
- package/src/lib/validation/interfaces/GuidOptions.js +0 -7
- package/src/lib/validation/interfaces/HexOptions.js +0 -7
- package/src/lib/validation/interfaces/HierarchySeparatorOptions.js +0 -7
- package/src/lib/validation/interfaces/IpOptions.js +0 -7
- package/src/lib/validation/interfaces/LanguageMessageTemplate.js +0 -7
- package/src/lib/validation/interfaces/LinkSchema.js +0 -7
- package/src/lib/validation/interfaces/NumberSchema.js +0 -7
- package/src/lib/validation/interfaces/ObjectPatternOptions.js +0 -7
- package/src/lib/validation/interfaces/ObjectSchema.js +0 -7
- package/src/lib/validation/interfaces/Reference.js +0 -7
- package/src/lib/validation/interfaces/ReferenceOptions.js +0 -7
- package/src/lib/validation/interfaces/RenameOptions.js +0 -7
- package/src/lib/validation/interfaces/State.js +0 -7
- package/src/lib/validation/interfaces/StringRegexOptions.js +0 -7
- package/src/lib/validation/interfaces/StringSchema.js +0 -7
- package/src/lib/validation/interfaces/SwitchCases.js +0 -7
- package/src/lib/validation/interfaces/SwitchDefault.js +0 -7
- package/src/lib/validation/interfaces/SymbolSchema.js +0 -7
- package/src/lib/validation/interfaces/TopLevelDomainOptions.js +0 -7
- package/src/lib/validation/interfaces/UriOptions.js +0 -7
- package/src/lib/validation/interfaces/ValidationOptions.js +0 -7
- package/src/lib/validation/interfaces/WhenOptions.js +0 -7
- package/src/lib/validation/interfaces/WhenSchemaOptions.js +0 -7
- package/src/lib/validation/types/CustomValidator.js +0 -7
- package/src/lib/validation/types/ExtensionBoundSchema.js +0 -7
- package/src/lib/validation/types/ExternalValidationFunction.js +0 -7
- package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.js +0 -7
- package/src/lib/validation/types/IsPrimitiveSubset.js +0 -7
- package/src/lib/validation/types/IsUnion.js +0 -7
- package/src/lib/validation/types/LanguageMessages.js +0 -7
- package/src/lib/validation/types/NullableType.js +0 -7
- package/src/lib/validation/types/ObjectPropertiesSchema.js +0 -7
- package/src/lib/validation/types/PartialSchemaMap.js +0 -7
- package/src/lib/validation/types/PresenceMode.js +0 -7
- package/src/lib/validation/types/Schema.js +0 -7
- package/src/lib/validation/types/SchemaFunction.js +0 -7
- package/src/lib/validation/types/SchemaLike.js +0 -7
- package/src/lib/validation/types/SchemaLikeWithoutArray.js +0 -7
- package/src/lib/validation/types/SchemaMap.js +0 -7
- package/src/lib/validation/types/StrictSchemaMap.js +0 -7
- package/src/lib/validation/types/Types.js +0 -7
- package/src/options/ApplicationOptions.js +0 -31
- package/src/options/LoadAnonymousObjectOptions.js +0 -27
- package/src/options/LoadNamedObjectOptions.js +0 -23
- package/src/options/LoadObjectOptions.js +0 -37
- package/src/options/ModuleLoadObjectsOptions.js +0 -29
- package/src/options/ModuleOptions.js +0 -42
- package/src/options/OverridableNamedObjectOptions.js +0 -23
- package/src/options/OverridableObjectOptions.js +0 -27
- package/src/types/ActionPattern.js +0 -7
- package/src/types/ClassDecorator.js +0 -7
- package/src/types/JSONSchema.js +0 -7
- package/src/types/MethodDecorator.js +0 -7
- package/src/types/ParameterDecorator.js +0 -7
- package/src/types/PropertyDecorator.js +0 -7
- /package/{src/exports/FFI.d.ts → ffi.d.cts} +0 -0
- /package/vendor/{TypeDef.1.d.ts → TypeDef.1.d.cts} +0 -0
- /package/vendor/{TypeDef.5.d.ts → TypeDef.5.d.cts} +0 -0
- /package/vendor/{TypeDef.6.d.ts → TypeDef.6.d.cts} +0 -0
- /package/vendor/{TypeDef.7.d.ts → TypeDef.7.d.cts} +0 -0
package/com.cjs
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
4
|
+
value: "Module"
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const e = require("./src/components/Database.cjs");
|
|
8
|
+
|
|
9
|
+
const r = require("./src/components/Entrypoint.cjs");
|
|
10
|
+
|
|
11
|
+
const i = require("./src/lib/base/Context.cjs");
|
|
12
|
+
|
|
13
|
+
const c = require("./src/lib/context/CLIContext.cjs");
|
|
14
|
+
|
|
15
|
+
const s = require("./src/lib/context/HTTPContext.cjs");
|
|
16
|
+
|
|
17
|
+
const t = require("./src/lib/context/ServiceContext.cjs");
|
|
18
|
+
|
|
19
|
+
require("./vendor/Package.1.cjs");
|
|
20
|
+
|
|
21
|
+
require("./src/decorators/di/Configurable.cjs");
|
|
22
|
+
|
|
23
|
+
require("./src/lib/base/internal/ObjectConfiguration.cjs");
|
|
24
|
+
|
|
25
|
+
require("./src/constants/metadata-keys/DIMetadataKey.cjs");
|
|
26
|
+
|
|
27
|
+
require("./vendor/Package.4.cjs");
|
|
28
|
+
|
|
29
|
+
require("./vendor/Package.5.cjs");
|
|
30
|
+
|
|
31
|
+
require("./vendor/Package.2.cjs");
|
|
32
|
+
|
|
33
|
+
require("./src/lib/base/internal/DataValidator.cjs");
|
|
34
|
+
|
|
35
|
+
require("node:util/types");
|
|
36
|
+
|
|
37
|
+
require("./src/lib/validation/VLD.cjs");
|
|
38
|
+
|
|
39
|
+
require("./vendor/Package.6.cjs");
|
|
40
|
+
|
|
41
|
+
require("url");
|
|
42
|
+
|
|
43
|
+
require("./vendor/Package.7.cjs");
|
|
44
|
+
|
|
45
|
+
require("util");
|
|
46
|
+
|
|
47
|
+
require("./src/exceptions/dto/InvalidValueException.cjs");
|
|
48
|
+
|
|
49
|
+
require("./src/lib/base/abstracts/Exception.cjs");
|
|
50
|
+
|
|
51
|
+
require("./src/lib/base/internal/BasicInfo.cjs");
|
|
52
|
+
|
|
53
|
+
require("./src/lib/functions/As.cjs");
|
|
54
|
+
|
|
55
|
+
require("./src/lib/functions/Templating.cjs");
|
|
56
|
+
|
|
57
|
+
require("./src/lib/base/internal/CamelCase.cjs");
|
|
58
|
+
|
|
59
|
+
require("./src/lib/functions/NoCase.cjs");
|
|
60
|
+
|
|
61
|
+
require("./vendor/Package.8.cjs");
|
|
62
|
+
|
|
63
|
+
require("./src/lib/functions/IsHtml.cjs");
|
|
64
|
+
|
|
65
|
+
require("./src/lib/functions/IsXML.cjs");
|
|
66
|
+
|
|
67
|
+
require("./src/constants/metadata-keys/DTOMetadataKey.cjs");
|
|
68
|
+
|
|
69
|
+
require("./src/lib/functions/ObjectConstructor.cjs");
|
|
70
|
+
|
|
71
|
+
require("./src/lib/functions/ObjectParentConstructors.cjs");
|
|
72
|
+
|
|
73
|
+
require("./src/lib/functions/ObjectParentConstructor.cjs");
|
|
74
|
+
|
|
75
|
+
require("./src/lib/functions/ObjectPrototype.cjs");
|
|
76
|
+
|
|
77
|
+
require("./src/lib/core/Component.cjs");
|
|
78
|
+
|
|
79
|
+
require("./vendor/Package.3.cjs");
|
|
80
|
+
|
|
81
|
+
require("./src/lib/base/async-constructor/AsyncConstructor.cjs");
|
|
82
|
+
|
|
83
|
+
require("./src/lib/base/async-constructor/Append.cjs");
|
|
84
|
+
|
|
85
|
+
require("./src/lib/functions/IsPromiseLike.cjs");
|
|
86
|
+
|
|
87
|
+
require("./src/lib/functions/IsPromise.cjs");
|
|
88
|
+
|
|
89
|
+
require("util/types");
|
|
90
|
+
|
|
91
|
+
require("./src/decorators/di/Lifetime.cjs");
|
|
92
|
+
|
|
93
|
+
require("./src/lib/base/internal/ObjectLifetime.cjs");
|
|
94
|
+
|
|
95
|
+
require("./src/exceptions/di/LifetimeLockedException.cjs");
|
|
96
|
+
|
|
97
|
+
require("./src/exceptions/MethodNotFoundException.cjs");
|
|
98
|
+
|
|
99
|
+
require("./src/lib/ioc/DependencyInjectionContainer.cjs");
|
|
100
|
+
|
|
101
|
+
require("./src/lib/ioc/Errors.cjs");
|
|
102
|
+
|
|
103
|
+
require("./src/exceptions/di/DependencyInjectionException.cjs");
|
|
104
|
+
|
|
105
|
+
require("./src/lib/base/internal/ConstructorSymbol.cjs");
|
|
106
|
+
|
|
107
|
+
require("node:crypto");
|
|
108
|
+
|
|
109
|
+
require("./src/lib/ioc/InjectionMode.cjs");
|
|
110
|
+
|
|
111
|
+
require("./src/lib/ioc/Lifetime.cjs");
|
|
112
|
+
|
|
113
|
+
require("./src/lib/ioc/ListModules.cjs");
|
|
114
|
+
|
|
115
|
+
require("./vendor/Package.9.cjs");
|
|
116
|
+
|
|
117
|
+
require("os");
|
|
118
|
+
|
|
119
|
+
require("stream");
|
|
120
|
+
|
|
121
|
+
require("events");
|
|
122
|
+
|
|
123
|
+
require("./vendor/Package.10.cjs");
|
|
124
|
+
|
|
125
|
+
require("path");
|
|
126
|
+
|
|
127
|
+
require("fs");
|
|
128
|
+
|
|
129
|
+
require("./src/lib/ioc/Utils.cjs");
|
|
130
|
+
|
|
131
|
+
require("./src/lib/ioc/FunctionTokenizer.cjs");
|
|
132
|
+
|
|
133
|
+
require("./src/lib/ioc/LoadModules.cjs");
|
|
134
|
+
|
|
135
|
+
require("./src/lib/ioc/Resolvers.cjs");
|
|
136
|
+
|
|
137
|
+
require("./src/lib/ioc/ParamParser.cjs");
|
|
138
|
+
|
|
139
|
+
require("./src/lib/base/internal/ObjectWeakRefs.cjs");
|
|
140
|
+
|
|
141
|
+
require("./src/lib/base/internal/ConfigurableRecordsInjection.cjs");
|
|
142
|
+
|
|
143
|
+
require("./src/lib/base/internal/ObjectInjection.cjs");
|
|
144
|
+
|
|
145
|
+
require("./src/lib/base/internal/ObjectContainer.cjs");
|
|
146
|
+
|
|
147
|
+
require("./src/lib/functions/DevNull.cjs");
|
|
148
|
+
|
|
149
|
+
require("./src/decorators/dto/Expect.cjs");
|
|
150
|
+
|
|
151
|
+
require("./src/decorators/dto/IndexSignature.cjs");
|
|
152
|
+
|
|
153
|
+
require("./src/decorators/dto/Accept.cjs");
|
|
154
|
+
|
|
155
|
+
require("./src/lib/base/internal/MethodValidation.cjs");
|
|
156
|
+
|
|
157
|
+
require("./src/exceptions/dto/InvalidMethodAcceptException.cjs");
|
|
158
|
+
|
|
159
|
+
require("./src/exceptions/dto/InvalidMethodReturnException.cjs");
|
|
160
|
+
|
|
161
|
+
require("./src/lib/functions/IsEmptyObject.cjs");
|
|
162
|
+
|
|
163
|
+
require("./src/lib/base/EventEmitter.cjs");
|
|
164
|
+
|
|
165
|
+
require("./src/lib/core/Provider.cjs");
|
|
166
|
+
|
|
167
|
+
require("./vendor/Package.15.cjs");
|
|
168
|
+
|
|
169
|
+
require("./vendor/Package.14.cjs");
|
|
170
|
+
|
|
171
|
+
require("./vendor/Package.13.cjs");
|
|
172
|
+
|
|
173
|
+
require("./vendor/Package.11.cjs");
|
|
174
|
+
|
|
175
|
+
require("crypto");
|
|
176
|
+
|
|
177
|
+
require("tty");
|
|
178
|
+
|
|
179
|
+
require("module");
|
|
180
|
+
|
|
181
|
+
require("buffer");
|
|
182
|
+
|
|
183
|
+
require("fs/promises");
|
|
184
|
+
|
|
185
|
+
require("string_decoder");
|
|
186
|
+
|
|
187
|
+
require("./src/lib/base/internal/ControllerEntrypoint.cjs");
|
|
188
|
+
|
|
189
|
+
require("./src/lib/functions/ObjectHash.cjs");
|
|
190
|
+
|
|
191
|
+
require("./src/lib/functions/GetObjectNestingDepth.cjs");
|
|
192
|
+
|
|
193
|
+
require("./src/exceptions/InvalidActionPatternDepthException.cjs");
|
|
194
|
+
|
|
195
|
+
require("./src/lib/base/internal/PatternManager.cjs");
|
|
196
|
+
|
|
197
|
+
require("./src/exceptions/ControllerActionNotFoundException.cjs");
|
|
198
|
+
|
|
199
|
+
require("./src/exceptions/DestroyRuntimeContainerException.cjs");
|
|
200
|
+
|
|
201
|
+
require("./src/lib/functions/GetObjectPropertyPaths.cjs");
|
|
202
|
+
|
|
203
|
+
require("./src/lib/functions/UniqueArray.cjs");
|
|
204
|
+
|
|
205
|
+
require("node:http");
|
|
206
|
+
|
|
207
|
+
Object.defineProperty(exports, "Database", {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
get: () => e.Database
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
exports.CLIEntrypointBuilder = r.CLIEntrypointBuilder;
|
|
213
|
+
|
|
214
|
+
Object.defineProperty(exports, "Entrypoint", {
|
|
215
|
+
enumerable: true,
|
|
216
|
+
get: () => r.Entrypoint
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
exports.EntrypointBuilder = r.EntrypointBuilder;
|
|
220
|
+
|
|
221
|
+
exports.HTTPEntrypointBuilder = r.HTTPEntrypointBuilder;
|
|
222
|
+
|
|
223
|
+
exports.ServiceEntrypointBuilder = r.ServiceEntrypointBuilder;
|
|
224
|
+
|
|
225
|
+
Object.defineProperty(exports, "BaseContext", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: () => i.BaseContext
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
Object.defineProperty(exports, "ContextType", {
|
|
231
|
+
enumerable: true,
|
|
232
|
+
get: () => i.ContextType
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
exports.CLIContext = c.CLIContext;
|
|
236
|
+
|
|
237
|
+
exports.HTTPContext = s.HTTPContext;
|
|
238
|
+
|
|
239
|
+
exports.ServiceContext = t.ServiceContext;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as Component, A as ActionPattern, d as Controller, I as IBaseObjectConstructor, b as Module, i as CLIContext, H as HTTPContext, S as ServiceContext } from '
|
|
2
|
-
export { k as BaseContext, j as ContextType } from '
|
|
3
|
-
import { i as DataSourceOptions, D as DataSource, s as Driver, j as EntityManager, a2 as NamingStrategyInterface, aq as EntitySubscriberInterface, r as EntityMetadata, E as EntityTarget, an as QueryResultCache, v as Migration, O as ObjectLiteral, k as Repository, l as TreeRepository, n as MongoRepository, ap as IsolationLevel, Q as QueryRunner, o as SelectQueryBuilder, gG as ReplicationMode } from '
|
|
4
|
-
import '
|
|
5
|
-
import { D as DTO, J as JSONSchema } from '
|
|
6
|
-
import { I as IPatRun } from '
|
|
1
|
+
import { c as Component, A as ActionPattern, d as Controller, I as IBaseObjectConstructor, b as Module, i as CLIContext, H as HTTPContext, S as ServiceContext } from './vendor/TypeDef.3.cjs';
|
|
2
|
+
export { k as BaseContext, j as ContextType } from './vendor/TypeDef.3.cjs';
|
|
3
|
+
import { i as DataSourceOptions, D as DataSource, s as Driver, j as EntityManager, a2 as NamingStrategyInterface, aq as EntitySubscriberInterface, r as EntityMetadata, E as EntityTarget, an as QueryResultCache, v as Migration, O as ObjectLiteral, k as Repository, l as TreeRepository, n as MongoRepository, ap as IsolationLevel, Q as QueryRunner, o as SelectQueryBuilder, gG as ReplicationMode } from './vendor/TypeDef.8.cjs';
|
|
4
|
+
import './vendor/TypeDef.1.cjs';
|
|
5
|
+
import { D as DTO, J as JSONSchema } from './vendor/TypeDef.2.cjs';
|
|
6
|
+
import { I as IPatRun } from './vendor/TypeDef.7.cjs';
|
|
7
7
|
import 'node:http';
|
|
8
8
|
import 'fs';
|
|
9
9
|
import 'tls';
|
package/com.d.mts
ADDED
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { c as Component, A as ActionPattern, d as Controller, I as IBaseObjectConstructor, b as Module, i as CLIContext, H as HTTPContext, S as ServiceContext } from './vendor/TypeDef.3.mjs';
|
|
2
|
+
export { k as BaseContext, j as ContextType } from './vendor/TypeDef.3.mjs';
|
|
3
|
+
import { i as DataSourceOptions, D as DataSource, s as Driver, j as EntityManager, a2 as NamingStrategyInterface, aq as EntitySubscriberInterface, r as EntityMetadata, E as EntityTarget, an as QueryResultCache, v as Migration, O as ObjectLiteral, k as Repository, l as TreeRepository, n as MongoRepository, ap as IsolationLevel, Q as QueryRunner, o as SelectQueryBuilder, gG as ReplicationMode } from './vendor/TypeDef.8.mjs';
|
|
4
|
+
import './vendor/TypeDef.1.mjs';
|
|
5
|
+
import { D as DTO, J as JSONSchema } from './vendor/TypeDef.2.mjs';
|
|
6
|
+
import { I as IPatRun } from './vendor/TypeDef.7.mjs';
|
|
7
|
+
import 'node:http';
|
|
8
|
+
import 'fs';
|
|
9
|
+
import 'tls';
|
|
10
|
+
import 'net';
|
|
11
|
+
import 'dns';
|
|
12
|
+
import 'events';
|
|
13
|
+
import 'stream';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Database component
|
|
17
|
+
*/
|
|
18
|
+
declare class Database extends Component {
|
|
19
|
+
#private;
|
|
20
|
+
/**
|
|
21
|
+
* Connection options
|
|
22
|
+
*/
|
|
23
|
+
protected readonly options: DataSourceOptions;
|
|
24
|
+
/**
|
|
25
|
+
* Datasource instance
|
|
26
|
+
* @protected
|
|
27
|
+
*/
|
|
28
|
+
protected get datasource(): DataSource;
|
|
29
|
+
/**
|
|
30
|
+
* Connection driver
|
|
31
|
+
*/
|
|
32
|
+
get driver(): Driver;
|
|
33
|
+
/**
|
|
34
|
+
* EntityManager of this connection.
|
|
35
|
+
*/
|
|
36
|
+
get manager(): EntityManager;
|
|
37
|
+
/**
|
|
38
|
+
* Set naming strategy used in the connection.
|
|
39
|
+
* @param instance
|
|
40
|
+
*/
|
|
41
|
+
set namingStrategy(instance: NamingStrategyInterface);
|
|
42
|
+
/**
|
|
43
|
+
* Get naming strategy used in the connection.
|
|
44
|
+
*/
|
|
45
|
+
get namingStrategy(): NamingStrategyInterface;
|
|
46
|
+
/**
|
|
47
|
+
* Entity subscriber instances that are registered for this connection.
|
|
48
|
+
*/
|
|
49
|
+
get subscribers(): EntitySubscriberInterface<any>[];
|
|
50
|
+
/**
|
|
51
|
+
* All entity metadatas that are registered for this connection.
|
|
52
|
+
*/
|
|
53
|
+
get entityMetadatas(): EntityMetadata[];
|
|
54
|
+
/**
|
|
55
|
+
* All entity metadatas that are registered for this connection.
|
|
56
|
+
* This is a copy of #.entityMetadatas property -> used for more performant searches.
|
|
57
|
+
*/
|
|
58
|
+
get entityMetadatasMap(): Map<EntityTarget<any>, EntityMetadata>;
|
|
59
|
+
/**
|
|
60
|
+
* Used to work with query result cache.
|
|
61
|
+
*/
|
|
62
|
+
get queryResultCache(): QueryResultCache | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Initializer
|
|
65
|
+
* @protected
|
|
66
|
+
*/
|
|
67
|
+
protected init(): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Destroyer
|
|
70
|
+
* @protected
|
|
71
|
+
*/
|
|
72
|
+
protected destroy(): Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* Creates database schema for all entities registered in this connection.
|
|
75
|
+
* Can be used only after connection to the database is established.
|
|
76
|
+
*
|
|
77
|
+
* @param dropBeforeSync If set to true then it drops the database with all its tables and data
|
|
78
|
+
*/
|
|
79
|
+
synchronize(dropBeforeSync?: boolean): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Runs all pending migrations.
|
|
82
|
+
* Can be used only after connection to the database is established.
|
|
83
|
+
* @param options
|
|
84
|
+
*/
|
|
85
|
+
runMigrations(options?: {
|
|
86
|
+
transaction?: 'all' | 'none' | 'each';
|
|
87
|
+
fake?: boolean;
|
|
88
|
+
}): Promise<Migration[]>;
|
|
89
|
+
/**
|
|
90
|
+
* Reverts last executed migration.
|
|
91
|
+
* Can be used only after connection to the database is established.
|
|
92
|
+
* @param options
|
|
93
|
+
*/
|
|
94
|
+
undoLastMigration(options?: {
|
|
95
|
+
transaction?: 'all' | 'none' | 'each';
|
|
96
|
+
fake?: boolean;
|
|
97
|
+
}): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Lists all migrations and whether they have been run.
|
|
100
|
+
* Returns true if there are pending migrations
|
|
101
|
+
*/
|
|
102
|
+
showMigrations(): Promise<boolean>;
|
|
103
|
+
/**
|
|
104
|
+
* Checks if entity metadata exist for the given entity class, target name or table name.
|
|
105
|
+
* @param target
|
|
106
|
+
*/
|
|
107
|
+
hasMetadata(target: EntityTarget<any>): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Gets entity metadata for the given entity class or schema name.
|
|
110
|
+
* @param target
|
|
111
|
+
*/
|
|
112
|
+
getMetadata(target: EntityTarget<any>): EntityMetadata;
|
|
113
|
+
/**
|
|
114
|
+
* Gets repository for the given entity.
|
|
115
|
+
* @param target
|
|
116
|
+
*/
|
|
117
|
+
getRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): Repository<Entity>;
|
|
118
|
+
/**
|
|
119
|
+
* Gets tree repository for the given entity class or name.
|
|
120
|
+
* Only tree-type entities can have a TreeRepository, like ones decorated with @Tree decorator.
|
|
121
|
+
* @param target
|
|
122
|
+
*/
|
|
123
|
+
getTreeRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): TreeRepository<Entity>;
|
|
124
|
+
/**
|
|
125
|
+
* Gets mongodb-specific repository for the given entity class or name.
|
|
126
|
+
* Works only if connection is mongodb-specific.
|
|
127
|
+
* @param target
|
|
128
|
+
*/
|
|
129
|
+
getMongoRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): MongoRepository<Entity>;
|
|
130
|
+
/**
|
|
131
|
+
* Wraps given function execution (and all operations made there) into a transaction.
|
|
132
|
+
* All database operations must be executed using provided entity manager.
|
|
133
|
+
* @param runInTransaction
|
|
134
|
+
*/
|
|
135
|
+
transaction<T>(runInTransaction: (entityManager: EntityManager) => Promise<T>): Promise<T>;
|
|
136
|
+
transaction<T>(isolationLevel: IsolationLevel, runInTransaction: (entityManager: EntityManager) => Promise<T>): Promise<T>;
|
|
137
|
+
/**
|
|
138
|
+
* Executes raw SQL query and returns raw database results.
|
|
139
|
+
* @param query
|
|
140
|
+
* @param parameters
|
|
141
|
+
* @param queryRunner
|
|
142
|
+
*/
|
|
143
|
+
query<T = any>(query: string, parameters?: any[], queryRunner?: QueryRunner): Promise<T>;
|
|
144
|
+
/**
|
|
145
|
+
* Creates a new query builder that can be used to build a SQL query.
|
|
146
|
+
* @param entityClass
|
|
147
|
+
* @param alias
|
|
148
|
+
* @param queryRunner
|
|
149
|
+
*/
|
|
150
|
+
createQueryBuilder<Entity extends ObjectLiteral>(entityClass: EntityTarget<Entity>, alias: string, queryRunner?: QueryRunner): SelectQueryBuilder<Entity>;
|
|
151
|
+
createQueryBuilder(queryRunner?: QueryRunner): SelectQueryBuilder<any>;
|
|
152
|
+
/**
|
|
153
|
+
* Creates a query runner used for perform queries on a single database connection.
|
|
154
|
+
* Using query runners you can control your queries to execute using single database connection and
|
|
155
|
+
* manually control your database transaction.
|
|
156
|
+
*
|
|
157
|
+
* Mode is used in replication mode and indicates whatever you want to connect
|
|
158
|
+
* to master database or any of slave databases.
|
|
159
|
+
* If you perform writes you must use master database,
|
|
160
|
+
* if you perform reads you can use slave databases.
|
|
161
|
+
*
|
|
162
|
+
* @param mode
|
|
163
|
+
*/
|
|
164
|
+
createQueryRunner(mode?: ReplicationMode): QueryRunner;
|
|
165
|
+
/**
|
|
166
|
+
* Gets entity metadata of the junction table (many-to-many table).
|
|
167
|
+
* @param entityTarget
|
|
168
|
+
* @param relationPropertyPath
|
|
169
|
+
*/
|
|
170
|
+
getManyToManyMetadata(entityTarget: EntityTarget<any>, relationPropertyPath: string): EntityMetadata | undefined;
|
|
171
|
+
/**
|
|
172
|
+
* Creates an Entity Manager for the current connection with the help of the EntityManagerFactory.
|
|
173
|
+
* @param queryRunner
|
|
174
|
+
*/
|
|
175
|
+
createEntityManager(queryRunner?: QueryRunner): EntityManager;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
type ActionPatternMap = Map<ActionPattern, ActionDetails>;
|
|
179
|
+
type ActionDetails<ClassPrototype extends Controller = Controller, DTOConstructor extends typeof DTO = typeof DTO> = {
|
|
180
|
+
pattern: ActionPattern;
|
|
181
|
+
constructor: IBaseObjectConstructor<ClassPrototype>;
|
|
182
|
+
method: string | number | symbol;
|
|
183
|
+
dtoConstructor: DTOConstructor;
|
|
184
|
+
jsonSchema: JSONSchema;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
type PatternManagerOptions = {
|
|
188
|
+
globMatch?: boolean;
|
|
189
|
+
};
|
|
190
|
+
declare class PatternManager implements IPatRun {
|
|
191
|
+
#private;
|
|
192
|
+
constructor(options?: PatternManagerOptions);
|
|
193
|
+
/**
|
|
194
|
+
* Register a pattern, and the object that will be returned if an input matches.
|
|
195
|
+
* Both keys and values are considered to be strings.
|
|
196
|
+
* Other types are converted to strings.
|
|
197
|
+
* @param pattern
|
|
198
|
+
* @param obj
|
|
199
|
+
*/
|
|
200
|
+
add(pattern: Record<string, any>, obj: any): this;
|
|
201
|
+
/**
|
|
202
|
+
* Remove this pattern, and it's object, from the matcher.
|
|
203
|
+
* @param pattern
|
|
204
|
+
*/
|
|
205
|
+
remove(pattern: Record<string, any>): this;
|
|
206
|
+
/**
|
|
207
|
+
* Return the unique match for this subject, or null if not found.
|
|
208
|
+
* The properties of the subject are matched against the patterns previously added, and the most specifc pattern wins.
|
|
209
|
+
* Unknown properties in the subject are ignored.
|
|
210
|
+
* You can optionally provide a second boolean parameter, exact. If true, then all properties of the subject must match.
|
|
211
|
+
*
|
|
212
|
+
* If the optional third boolean parameter collect is true, then find returns an array of all sub matches
|
|
213
|
+
* (i.e. run find on each element of the power set of the subject pattern elements, and collate in breadth first order).
|
|
214
|
+
* Thus, {a:1,b:2} will generate {a:1},{b:2},{a:1,b:2} searches.
|
|
215
|
+
* If exact is true, only increasing sub patterns in lexicographical order are chosen.
|
|
216
|
+
* Thus, {a:1,b:2} will generate {a:1},{a:1,b:2}, omitting {b:2}. (You probably want to set exact to false!).
|
|
217
|
+
* @param subject
|
|
218
|
+
* @param exact
|
|
219
|
+
*/
|
|
220
|
+
find(subject: Record<string, any>, exact?: boolean): any;
|
|
221
|
+
/**
|
|
222
|
+
* Return the list of registered patterns that contain this partial pattern.
|
|
223
|
+
* You can use wildcards for property values.
|
|
224
|
+
* Omitted values are not equivalent to a wildcard of "*", you must specify each property explicitly.
|
|
225
|
+
* @param partialPattern
|
|
226
|
+
*/
|
|
227
|
+
list(partialPattern?: Record<string, any> | undefined): {
|
|
228
|
+
match: Record<string, any>;
|
|
229
|
+
data: any;
|
|
230
|
+
}[];
|
|
231
|
+
/**
|
|
232
|
+
* Generate a string representation of the decision tree for debugging.
|
|
233
|
+
*/
|
|
234
|
+
toJSON(): string;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
type CLIEntrypoint = (module: Module, cliMap: CLIMap, handler: CLIEntrypointHandler) => void;
|
|
238
|
+
type HTTPEntrypoint = (module: Module, routeMap: HTTPRouteMap, handler: HTTPEntrypointHandler) => void;
|
|
239
|
+
type ServiceEntrypoint = (module: Module, handler: ServiceEntrypointHandler) => void;
|
|
240
|
+
type CLIMap = Map<string, JSONSchema>;
|
|
241
|
+
type HTTPRouteMap<HTTPMethods = string> = Map<string, Set<HTTPMethods>>;
|
|
242
|
+
type CLIEntrypointHandler<T = unknown> = (context: CLIContext, abortController?: AbortController) => Promise<T>;
|
|
243
|
+
type HTTPEntrypointHandler<T = unknown> = (context: HTTPContext, abortController?: AbortController) => Promise<T>;
|
|
244
|
+
type ServiceEntrypointHandler<T = unknown> = (context: ServiceContext, abortController?: AbortController) => Promise<T>;
|
|
245
|
+
type EntrypointOptions = {
|
|
246
|
+
cli?: CLIEntrypoint | CLIEntrypoint[];
|
|
247
|
+
http?: HTTPEntrypoint | HTTPEntrypoint[];
|
|
248
|
+
service?: ServiceEntrypoint | ServiceEntrypoint[];
|
|
249
|
+
};
|
|
250
|
+
declare const CLIEntrypointBuilder: (entrypoint: CLIEntrypoint) => CLIEntrypoint;
|
|
251
|
+
declare const HTTPEntrypointBuilder: (entrypoint: HTTPEntrypoint) => HTTPEntrypoint;
|
|
252
|
+
declare const ServiceEntrypointBuilder: (entrypoint: ServiceEntrypoint) => ServiceEntrypoint;
|
|
253
|
+
declare const EntrypointBuilder: (options: EntrypointOptions) => EntrypointOptions;
|
|
254
|
+
/**
|
|
255
|
+
* Entrypoint Component
|
|
256
|
+
*/
|
|
257
|
+
declare class Entrypoint extends Component {
|
|
258
|
+
protected readonly CLIActionPatternMap: ActionPatternMap;
|
|
259
|
+
protected readonly HTTPActionPatternMap: ActionPatternMap;
|
|
260
|
+
protected readonly ServiceActionPatternMap: ActionPatternMap;
|
|
261
|
+
protected readonly CLIActionPatternManager: PatternManager;
|
|
262
|
+
protected readonly HTTPActionPatternManager: PatternManager;
|
|
263
|
+
protected readonly ServiceActionPatternManager: PatternManager;
|
|
264
|
+
cli?: CLIEntrypoint | CLIEntrypoint[];
|
|
265
|
+
http?: HTTPEntrypoint | HTTPEntrypoint[];
|
|
266
|
+
service?: ServiceEntrypoint | ServiceEntrypoint[];
|
|
267
|
+
/**
|
|
268
|
+
* Initializer
|
|
269
|
+
* @protected
|
|
270
|
+
*/
|
|
271
|
+
protected init(): Promise<void>;
|
|
272
|
+
/**
|
|
273
|
+
* Run controller's method and return its result (without AbortController)
|
|
274
|
+
* @param details
|
|
275
|
+
* @param context
|
|
276
|
+
* @param dtoConstructor
|
|
277
|
+
* @protected
|
|
278
|
+
*/
|
|
279
|
+
protected runControllerMethodWithoutAbortController<DTOConstructor extends typeof DTO = typeof DTO>(details: ActionDetails, context: CLIContext | HTTPContext | ServiceContext, dtoConstructor: DTOConstructor): Promise<unknown>;
|
|
280
|
+
/**
|
|
281
|
+
* Run controller's method and return its result (with AbortController)
|
|
282
|
+
* @param details
|
|
283
|
+
* @param context
|
|
284
|
+
* @param dtoConstructor
|
|
285
|
+
* @param abortController
|
|
286
|
+
* @protected
|
|
287
|
+
*/
|
|
288
|
+
protected runControllerMethodWithAbortController<DTOConstructor extends typeof DTO = typeof DTO>(details: ActionDetails, context: CLIContext | HTTPContext | ServiceContext, dtoConstructor: DTOConstructor, abortController: AbortController): Promise<unknown>;
|
|
289
|
+
/**
|
|
290
|
+
* Run controller's method and return its result
|
|
291
|
+
* @param details
|
|
292
|
+
* @param context
|
|
293
|
+
* @param dtoConstructor
|
|
294
|
+
* @param abortController
|
|
295
|
+
* @protected
|
|
296
|
+
*/
|
|
297
|
+
protected runControllerMethod<DTOConstructor extends typeof DTO = typeof DTO>(details: ActionDetails, context: CLIContext | HTTPContext | ServiceContext, dtoConstructor: DTOConstructor, abortController?: AbortController): Promise<unknown>;
|
|
298
|
+
/**
|
|
299
|
+
* Register
|
|
300
|
+
* @param eps
|
|
301
|
+
* @param registerFunc
|
|
302
|
+
* @protected
|
|
303
|
+
*/
|
|
304
|
+
protected register<T>(eps: any | any[] | undefined, registerFunc: (entrypoint: T) => void): void;
|
|
305
|
+
/**
|
|
306
|
+
* Register CLI entrypoint
|
|
307
|
+
* @param entrypoint
|
|
308
|
+
* @protected
|
|
309
|
+
*/
|
|
310
|
+
protected registerCLIEntrypoint(entrypoint: CLIEntrypoint): void;
|
|
311
|
+
/**
|
|
312
|
+
* Register http entrypoint
|
|
313
|
+
* @param entrypoint
|
|
314
|
+
* @protected
|
|
315
|
+
*/
|
|
316
|
+
protected registerHTTPEntrypoint(entrypoint: HTTPEntrypoint): void;
|
|
317
|
+
/**
|
|
318
|
+
* Register service entrypoint
|
|
319
|
+
* @param entrypoint
|
|
320
|
+
* @protected
|
|
321
|
+
*/
|
|
322
|
+
protected registerServiceEntrypoint(entrypoint: ServiceEntrypoint): void;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export { CLIContext, type CLIEntrypoint, CLIEntrypointBuilder, type CLIEntrypointHandler, type CLIMap, Database, Entrypoint, EntrypointBuilder, type EntrypointOptions, HTTPContext, type HTTPEntrypoint, HTTPEntrypointBuilder, type HTTPEntrypointHandler, type HTTPRouteMap, ServiceContext, type ServiceEntrypoint, ServiceEntrypointBuilder, type ServiceEntrypointHandler };
|