@adaas/a-concept 0.1.46 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +87 -2
- package/dist/index.d.ts +87 -2
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/global/A-Dependency/A-Dependency-Parent.decorator.ts +75 -0
- package/src/global/A-Dependency/A-Dependency.class.ts +34 -0
- package/src/global/A-Dependency/A-Dependency.types.ts +7 -0
- package/src/global/A-Entity/A-Entity.class.ts +2 -2
- package/src/global/A-Entity/A-Entity.error.ts +1 -1
- package/src/global/A-Feature/A-Feature.class.ts +4 -3
- package/src/global/A-Inject/A-Inject.types.ts +3 -0
- package/src/global/A-Stage/A-Stage.class.ts +27 -12
- package/src/helpers/A_Formatter.helper.ts +25 -6
- package/src/index.ts +16 -10
- package/tests/A-Common.test.ts +59 -4
- package/tests/A-Feature.test.ts +12 -7
package/dist/index.d.mts
CHANGED
|
@@ -482,6 +482,11 @@ declare enum A_TYPES__EntityMetaKey {
|
|
|
482
482
|
ABSTRACTIONS = "a-component-abstractions",
|
|
483
483
|
INJECTIONS = "a-component-injections"
|
|
484
484
|
}
|
|
485
|
+
declare enum A_TYPES__EntityFeatures {
|
|
486
|
+
SAVE = "save",
|
|
487
|
+
DESTROY = "destroy",
|
|
488
|
+
LOAD = "load"
|
|
489
|
+
}
|
|
485
490
|
|
|
486
491
|
/**
|
|
487
492
|
* Entity interface
|
|
@@ -1211,7 +1216,7 @@ declare class A_Stage {
|
|
|
1211
1216
|
* @param step
|
|
1212
1217
|
* @returns
|
|
1213
1218
|
*/
|
|
1214
|
-
protected getStepArgs(scope: A_Scope, step: A_TYPES__A_StageStep): Promise<
|
|
1219
|
+
protected getStepArgs(scope: A_Scope, step: A_TYPES__A_StageStep): Promise<any[]>;
|
|
1215
1220
|
/**
|
|
1216
1221
|
* Resolves the component of the step
|
|
1217
1222
|
*
|
|
@@ -2010,6 +2015,9 @@ declare enum A_TYPES__ConceptAbstractions {
|
|
|
2010
2015
|
*/
|
|
2011
2016
|
Stop = "stop"
|
|
2012
2017
|
}
|
|
2018
|
+
declare enum A_TYPES__ConceptMetaKey {
|
|
2019
|
+
LIFECYCLE = "a-component-extensions"
|
|
2020
|
+
}
|
|
2013
2021
|
|
|
2014
2022
|
/**
|
|
2015
2023
|
* A-Abstraction Extend decorator allows to extends behavior of each concept abstraction execution.
|
|
@@ -2572,6 +2580,9 @@ type A_TYPES__A_InjectDecorator_Meta = Array<{
|
|
|
2572
2580
|
require?: boolean;
|
|
2573
2581
|
load?: string;
|
|
2574
2582
|
defaultArgs?: any;
|
|
2583
|
+
parent?: {
|
|
2584
|
+
layerOffset?: number;
|
|
2585
|
+
};
|
|
2575
2586
|
create?: boolean;
|
|
2576
2587
|
instructions?: Partial<A_TYPES__A_InjectDecorator_EntityInjectionInstructions>;
|
|
2577
2588
|
}>;
|
|
@@ -3735,11 +3746,40 @@ declare class A_Context {
|
|
|
3735
3746
|
static isAllowedForMetaConstructor(param: any): param is A_TYPES__MetaLinkedComponentConstructors;
|
|
3736
3747
|
}
|
|
3737
3748
|
|
|
3749
|
+
declare class A_ContextError extends A_Error {
|
|
3750
|
+
static NotAllowedForScopeAllocationError: string;
|
|
3751
|
+
static ComponentAlreadyHasScopeAllocatedError: string;
|
|
3752
|
+
static InvalidMetaParameterError: string;
|
|
3753
|
+
static InvalidScopeParameterError: string;
|
|
3754
|
+
static ScopeNotFoundError: string;
|
|
3755
|
+
static InvalidFeatureParameterError: string;
|
|
3756
|
+
static InvalidFeatureDefinitionParameterError: string;
|
|
3757
|
+
static InvalidFeatureTemplateParameterError: string;
|
|
3758
|
+
static InvalidFeatureExtensionParameterError: string;
|
|
3759
|
+
static InvalidAbstractionParameterError: string;
|
|
3760
|
+
static InvalidAbstractionDefinitionParameterError: string;
|
|
3761
|
+
static InvalidAbstractionTemplateParameterError: string;
|
|
3762
|
+
static InvalidAbstractionExtensionParameterError: string;
|
|
3763
|
+
static InvalidInjectionParameterError: string;
|
|
3764
|
+
static InvalidExtensionParameterError: string;
|
|
3765
|
+
static InvalidRegisterParameterError: string;
|
|
3766
|
+
static InvalidComponentParameterError: string;
|
|
3767
|
+
static ComponentNotRegisteredError: string;
|
|
3768
|
+
static InvalidDeregisterParameterError: string;
|
|
3769
|
+
}
|
|
3770
|
+
|
|
3738
3771
|
declare class A_ConceptMeta extends A_Meta<any> {
|
|
3739
3772
|
private containers;
|
|
3740
3773
|
constructor(containers: Array<A_Container>);
|
|
3741
3774
|
}
|
|
3742
3775
|
|
|
3776
|
+
declare class A_EntityError extends A_Error {
|
|
3777
|
+
/**
|
|
3778
|
+
* Error code for validation errors.
|
|
3779
|
+
*/
|
|
3780
|
+
static readonly ValidationError = "A-Entity Validation Error";
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3743
3783
|
declare class A_AbstractionError extends A_Error {
|
|
3744
3784
|
/**
|
|
3745
3785
|
* This error code indicates that there was an issue extending the abstraction execution
|
|
@@ -3754,6 +3794,12 @@ declare class A_CallerError extends A_Error {
|
|
|
3754
3794
|
static readonly CallerInitializationError = "Unable to initialize A-Caller";
|
|
3755
3795
|
}
|
|
3756
3796
|
|
|
3797
|
+
declare const A_CONSTANTS__ERROR_CODES: {
|
|
3798
|
+
readonly UNEXPECTED_ERROR: "A-Error Unexpected Error";
|
|
3799
|
+
readonly VALIDATION_ERROR: "A-Error Validation Error";
|
|
3800
|
+
};
|
|
3801
|
+
declare const A_CONSTANTS__ERROR_DESCRIPTION = "If you see this error please let us know.";
|
|
3802
|
+
|
|
3757
3803
|
declare class ASEID_Error extends A_Error {
|
|
3758
3804
|
static readonly ASEIDInitializationError = "ASEID Initialization Error";
|
|
3759
3805
|
static readonly ASEIDValidationError = "ASEID Validation Error";
|
|
@@ -3780,6 +3826,7 @@ type A_TYPES__A_Dependency_LoadDecoratorReturn<T = any> = (target: T, propertyKe
|
|
|
3780
3826
|
* A-Dependency default decorator return type
|
|
3781
3827
|
*/
|
|
3782
3828
|
type A_TYPES__A_Dependency_DefaultDecoratorReturn<T = any> = (target: T, propertyKey: string | symbol | undefined, parameterIndex: number) => void;
|
|
3829
|
+
type A_TYPES__A_Dependency_ParentDecoratorReturn<T = any> = (target: T, propertyKey: string | symbol | undefined, parameterIndex: number) => void;
|
|
3783
3830
|
|
|
3784
3831
|
/**
|
|
3785
3832
|
* Should indicate which Default is required
|
|
@@ -3799,6 +3846,17 @@ declare function A_Dependency_Load(
|
|
|
3799
3846
|
*/
|
|
3800
3847
|
path: string): A_TYPES__A_Dependency_LoadDecoratorReturn;
|
|
3801
3848
|
|
|
3849
|
+
/**
|
|
3850
|
+
* Should indicate which dependency is required
|
|
3851
|
+
*/
|
|
3852
|
+
declare function A_Dependency_Parent(
|
|
3853
|
+
/**
|
|
3854
|
+
* Indicates how many layers up the parent dependency should be resolved from current dependency
|
|
3855
|
+
*
|
|
3856
|
+
* Default: -1 (one layer up)
|
|
3857
|
+
*/
|
|
3858
|
+
layerOffset?: number): A_TYPES__A_Dependency_ParentDecoratorReturn;
|
|
3859
|
+
|
|
3802
3860
|
/**
|
|
3803
3861
|
* Should indicate which dependency is required
|
|
3804
3862
|
*/
|
|
@@ -3825,6 +3883,28 @@ declare class A_Dependency {
|
|
|
3825
3883
|
* @returns
|
|
3826
3884
|
*/
|
|
3827
3885
|
static get Default(): typeof A_Dependency_Default;
|
|
3886
|
+
/**
|
|
3887
|
+
* Allows to indicate which parent dependency should be resolved
|
|
3888
|
+
* e.g. from which layer up the parent should be taken
|
|
3889
|
+
*
|
|
3890
|
+
* @returns
|
|
3891
|
+
*/
|
|
3892
|
+
static get Parent(): typeof A_Dependency_Parent;
|
|
3893
|
+
protected _name: string;
|
|
3894
|
+
/**
|
|
3895
|
+
* Class instances allows to indentify dependencies by name and use them for better type checking
|
|
3896
|
+
*
|
|
3897
|
+
* @param name
|
|
3898
|
+
*/
|
|
3899
|
+
constructor(name: string);
|
|
3900
|
+
/**
|
|
3901
|
+
* Gets the dependency name
|
|
3902
|
+
*
|
|
3903
|
+
* Can be identifier, url or any string value
|
|
3904
|
+
*
|
|
3905
|
+
* @returns
|
|
3906
|
+
*/
|
|
3907
|
+
get name(): string;
|
|
3828
3908
|
}
|
|
3829
3909
|
|
|
3830
3910
|
declare class A_DependencyError extends A_Error {
|
|
@@ -3834,6 +3914,11 @@ declare class A_DependencyError extends A_Error {
|
|
|
3834
3914
|
static readonly InvalidDefaultTarget = "Invalid Default Target";
|
|
3835
3915
|
}
|
|
3836
3916
|
|
|
3917
|
+
declare class A_InjectError extends A_Error {
|
|
3918
|
+
static readonly InvalidInjectionTarget = "Invalid target for A-Inject decorator";
|
|
3919
|
+
static readonly MissingInjectionTarget = "Missing target for A-Inject decorator";
|
|
3920
|
+
}
|
|
3921
|
+
|
|
3837
3922
|
/**
|
|
3838
3923
|
* A-Inject decorator
|
|
3839
3924
|
*
|
|
@@ -4212,4 +4297,4 @@ declare class A_TypeGuards {
|
|
|
4212
4297
|
static isErrorSerializedType<T extends A_TYPES__Error_Serialized>(param: any): param is T;
|
|
4213
4298
|
}
|
|
4214
4299
|
|
|
4215
|
-
export { ASEID, ASEID_Error, A_Abstraction, A_AbstractionError, A_Abstraction_Extend, A_CONSTANTS__DEFAULT_ENV_VARIABLES, A_CONSTANTS__DEFAULT_ENV_VARIABLES_ARRAY, A_Caller, A_CallerError, A_CommonHelper, A_Component, A_ComponentMeta, A_Concept, A_ConceptMeta, A_Container, A_ContainerMeta, A_Context, A_Dependency, A_DependencyError, A_Dependency_Default, A_Dependency_Load, A_Dependency_Require, A_Entity, A_Error, A_Feature, A_FeatureError, A_Feature_Define, A_Feature_Extend, A_FormatterHelper, A_Fragment, type A_ID_TYPES__TimeId_Parts, A_IdentityHelper, A_Inject, A_Meta, A_Scope, A_ScopeError, A_Stage, A_StageError, A_StepManagerError, A_StepsManager, type A_TYPES_ScopeDependentComponents, type A_TYPES_ScopeIndependentComponents, type A_TYPES_StageExecutionBehavior, type A_TYPES__ASEID_Constructor, type A_TYPES__ASEID_ConstructorConfig, type A_TYPES__ASEID_JSON, type A_TYPES__A_Dependency_DefaultDecoratorReturn, type A_TYPES__A_Dependency_LoadDecoratorReturn, type A_TYPES__A_Dependency_RequireDecoratorReturn, type A_TYPES__A_InjectDecoratorDescriptor, type A_TYPES__A_InjectDecoratorReturn, type A_TYPES__A_InjectDecorator_EntityInjectionInstructions, type A_TYPES__A_InjectDecorator_EntityInjectionPagination, type A_TYPES__A_InjectDecorator_EntityInjectionQuery, type A_TYPES__A_InjectDecorator_Meta, type A_TYPES__A_StageStep, type A_TYPES__A_StageStepProcessingExtraParams, A_TYPES__A_Stage_Status, type A_TYPES__AbstractionAvailableComponents, type A_TYPES__AbstractionDecoratorConfig, type A_TYPES__AbstractionDecoratorDescriptor, type A_TYPES__Abstraction_Constructor, type A_TYPES__Abstraction_Init, type A_TYPES__Abstraction_Serialized, type A_TYPES__CallerComponent, type A_TYPES__Caller_Constructor, type A_TYPES__Caller_Init, type A_TYPES__Caller_Serialized, type A_TYPES__ComponentMeta, type A_TYPES__ComponentMetaExtension, type A_TYPES__Component_Constructor, type A_TYPES__Component_Init, type A_TYPES__Component_Serialized, type A_TYPES__ConceptAbstraction, type A_TYPES__ConceptAbstractionMeta, type A_TYPES__ConceptENVVariables, type A_TYPES__Concept_Constructor, type A_TYPES__Concept_Init, type A_TYPES__Concept_Serialized, type A_TYPES__ContainerMeta, type A_TYPES__ContainerMetaExtension, type A_TYPES__Container_Constructor, type A_TYPES__Container_Init, type A_TYPES__Container_Serialized, type A_TYPES__ContextEnvironment, type A_TYPES__DeepPartial, type A_TYPES__Dictionary, type A_TYPES__EntityMeta, type A_TYPES__Entity_Constructor, type A_TYPES__Entity_Init, type A_TYPES__Entity_Serialized, type A_TYPES__Error_Constructor, type A_TYPES__Error_Init, type A_TYPES__Error_Serialized, type A_TYPES__ExtractNested, type A_TYPES__ExtractProperties, type A_TYPES__FeatureAvailableComponents, type A_TYPES__FeatureAvailableConstructors, type A_TYPES__FeatureDefineDecoratorConfig, type A_TYPES__FeatureDefineDecoratorDescriptor, type A_TYPES__FeatureDefineDecoratorMeta, type A_TYPES__FeatureDefineDecoratorTarget, type A_TYPES__FeatureDefineDecoratorTemplateItem, type A_TYPES__FeatureError_Init, type A_TYPES__FeatureExtendDecoratorConfig, type A_TYPES__FeatureExtendDecoratorDescriptor, type A_TYPES__FeatureExtendDecoratorMeta, type A_TYPES__FeatureExtendDecoratorScopeConfig, type A_TYPES__FeatureExtendDecoratorScopeItem, type A_TYPES__FeatureExtendDecoratorTarget, type A_TYPES__FeatureExtendableMeta, A_TYPES__FeatureState, type A_TYPES__Feature_Constructor, type A_TYPES__Feature_Init, type A_TYPES__Feature_InitWithComponent, type A_TYPES__Feature_InitWithTemplate, type A_TYPES__Feature_Serialized, type A_TYPES__Fragment_Constructor, type A_TYPES__Fragment_Init, type A_TYPES__Fragment_Serialized, type A_TYPES__IEntity, type A_TYPES__InjectableConstructors, type A_TYPES__InjectableTargets, type A_TYPES__MetaLinkedComponentConstructors, type A_TYPES__MetaLinkedComponents, type A_TYPES__NonObjectPaths, type A_TYPES__ObjectKeyEnum, type A_TYPES__Paths, type A_TYPES__PathsToObject, type A_TYPES__Required, type A_TYPES__ScopeConfig, type A_TYPES__ScopeLinkedComponents, type A_TYPES__ScopeLinkedConstructors, type A_TYPES__ScopeResolvableComponents, type A_TYPES__Scope_Constructor, type A_TYPES__Scope_Init, type A_TYPES__Scope_Serialized, type A_TYPES__Stage_Serialized, type A_TYPES__UnionToIntersection, A_TypeGuards };
|
|
4300
|
+
export { ASEID, ASEID_Error, A_Abstraction, A_AbstractionError, A_Abstraction_Extend, A_CONSTANTS__DEFAULT_ENV_VARIABLES, A_CONSTANTS__DEFAULT_ENV_VARIABLES_ARRAY, A_CONSTANTS__ERROR_CODES, A_CONSTANTS__ERROR_DESCRIPTION, A_Caller, A_CallerError, A_CommonHelper, A_Component, A_ComponentMeta, A_Concept, A_ConceptMeta, A_Container, A_ContainerMeta, A_Context, A_ContextError, A_Dependency, A_DependencyError, A_Dependency_Default, A_Dependency_Load, A_Dependency_Require, A_Entity, A_EntityError, A_EntityMeta, A_Error, A_Feature, A_FeatureError, A_Feature_Define, A_Feature_Extend, A_FormatterHelper, A_Fragment, type A_ID_TYPES__TimeId_Parts, A_IdentityHelper, A_Inject, A_InjectError, A_Meta, A_Scope, A_ScopeError, A_Stage, A_StageError, A_StepManagerError, A_StepsManager, type A_TYPES_ScopeDependentComponents, type A_TYPES_ScopeIndependentComponents, type A_TYPES_StageExecutionBehavior, type A_TYPES__ASEID_Constructor, type A_TYPES__ASEID_ConstructorConfig, type A_TYPES__ASEID_JSON, type A_TYPES__A_Dependency_DefaultDecoratorReturn, type A_TYPES__A_Dependency_LoadDecoratorReturn, type A_TYPES__A_Dependency_ParentDecoratorReturn, type A_TYPES__A_Dependency_RequireDecoratorReturn, type A_TYPES__A_InjectDecoratorDescriptor, type A_TYPES__A_InjectDecoratorReturn, type A_TYPES__A_InjectDecorator_EntityInjectionInstructions, type A_TYPES__A_InjectDecorator_EntityInjectionPagination, type A_TYPES__A_InjectDecorator_EntityInjectionQuery, type A_TYPES__A_InjectDecorator_Meta, type A_TYPES__A_StageStep, type A_TYPES__A_StageStepProcessingExtraParams, A_TYPES__A_Stage_Status, type A_TYPES__AbstractionAvailableComponents, type A_TYPES__AbstractionDecoratorConfig, type A_TYPES__AbstractionDecoratorDescriptor, type A_TYPES__Abstraction_Constructor, type A_TYPES__Abstraction_Init, type A_TYPES__Abstraction_Serialized, type A_TYPES__CallerComponent, type A_TYPES__Caller_Constructor, type A_TYPES__Caller_Init, type A_TYPES__Caller_Serialized, type A_TYPES__ComponentMeta, type A_TYPES__ComponentMetaExtension, A_TYPES__ComponentMetaKey, type A_TYPES__Component_Constructor, type A_TYPES__Component_Init, type A_TYPES__Component_Serialized, type A_TYPES__ConceptAbstraction, type A_TYPES__ConceptAbstractionMeta, A_TYPES__ConceptAbstractions, type A_TYPES__ConceptENVVariables, A_TYPES__ConceptMetaKey, type A_TYPES__Concept_Constructor, type A_TYPES__Concept_Init, type A_TYPES__Concept_Serialized, type A_TYPES__ContainerMeta, type A_TYPES__ContainerMetaExtension, A_TYPES__ContainerMetaKey, type A_TYPES__Container_Constructor, type A_TYPES__Container_Init, type A_TYPES__Container_Serialized, type A_TYPES__ContextEnvironment, type A_TYPES__DeepPartial, type A_TYPES__Dictionary, A_TYPES__EntityFeatures, type A_TYPES__EntityMeta, A_TYPES__EntityMetaKey, type A_TYPES__Entity_Constructor, type A_TYPES__Entity_Init, type A_TYPES__Entity_Serialized, type A_TYPES__Error_Constructor, type A_TYPES__Error_Init, type A_TYPES__Error_Serialized, type A_TYPES__ExtractNested, type A_TYPES__ExtractProperties, type A_TYPES__FeatureAvailableComponents, type A_TYPES__FeatureAvailableConstructors, type A_TYPES__FeatureDefineDecoratorConfig, type A_TYPES__FeatureDefineDecoratorDescriptor, type A_TYPES__FeatureDefineDecoratorMeta, type A_TYPES__FeatureDefineDecoratorTarget, type A_TYPES__FeatureDefineDecoratorTemplateItem, type A_TYPES__FeatureError_Init, type A_TYPES__FeatureExtendDecoratorConfig, type A_TYPES__FeatureExtendDecoratorDescriptor, type A_TYPES__FeatureExtendDecoratorMeta, type A_TYPES__FeatureExtendDecoratorScopeConfig, type A_TYPES__FeatureExtendDecoratorScopeItem, type A_TYPES__FeatureExtendDecoratorTarget, type A_TYPES__FeatureExtendableMeta, A_TYPES__FeatureState, type A_TYPES__Feature_Constructor, type A_TYPES__Feature_Init, type A_TYPES__Feature_InitWithComponent, type A_TYPES__Feature_InitWithTemplate, type A_TYPES__Feature_Serialized, type A_TYPES__Fragment_Constructor, type A_TYPES__Fragment_Init, type A_TYPES__Fragment_Serialized, type A_TYPES__IEntity, type A_TYPES__InjectableConstructors, type A_TYPES__InjectableTargets, type A_TYPES__MetaLinkedComponentConstructors, type A_TYPES__MetaLinkedComponents, type A_TYPES__NonObjectPaths, type A_TYPES__ObjectKeyEnum, type A_TYPES__Paths, type A_TYPES__PathsToObject, type A_TYPES__Required, type A_TYPES__ScopeConfig, type A_TYPES__ScopeLinkedComponents, type A_TYPES__ScopeLinkedConstructors, type A_TYPES__ScopeResolvableComponents, type A_TYPES__Scope_Constructor, type A_TYPES__Scope_Init, type A_TYPES__Scope_Serialized, type A_TYPES__Stage_Serialized, type A_TYPES__UnionToIntersection, A_TypeGuards };
|
package/dist/index.d.ts
CHANGED
|
@@ -482,6 +482,11 @@ declare enum A_TYPES__EntityMetaKey {
|
|
|
482
482
|
ABSTRACTIONS = "a-component-abstractions",
|
|
483
483
|
INJECTIONS = "a-component-injections"
|
|
484
484
|
}
|
|
485
|
+
declare enum A_TYPES__EntityFeatures {
|
|
486
|
+
SAVE = "save",
|
|
487
|
+
DESTROY = "destroy",
|
|
488
|
+
LOAD = "load"
|
|
489
|
+
}
|
|
485
490
|
|
|
486
491
|
/**
|
|
487
492
|
* Entity interface
|
|
@@ -1211,7 +1216,7 @@ declare class A_Stage {
|
|
|
1211
1216
|
* @param step
|
|
1212
1217
|
* @returns
|
|
1213
1218
|
*/
|
|
1214
|
-
protected getStepArgs(scope: A_Scope, step: A_TYPES__A_StageStep): Promise<
|
|
1219
|
+
protected getStepArgs(scope: A_Scope, step: A_TYPES__A_StageStep): Promise<any[]>;
|
|
1215
1220
|
/**
|
|
1216
1221
|
* Resolves the component of the step
|
|
1217
1222
|
*
|
|
@@ -2010,6 +2015,9 @@ declare enum A_TYPES__ConceptAbstractions {
|
|
|
2010
2015
|
*/
|
|
2011
2016
|
Stop = "stop"
|
|
2012
2017
|
}
|
|
2018
|
+
declare enum A_TYPES__ConceptMetaKey {
|
|
2019
|
+
LIFECYCLE = "a-component-extensions"
|
|
2020
|
+
}
|
|
2013
2021
|
|
|
2014
2022
|
/**
|
|
2015
2023
|
* A-Abstraction Extend decorator allows to extends behavior of each concept abstraction execution.
|
|
@@ -2572,6 +2580,9 @@ type A_TYPES__A_InjectDecorator_Meta = Array<{
|
|
|
2572
2580
|
require?: boolean;
|
|
2573
2581
|
load?: string;
|
|
2574
2582
|
defaultArgs?: any;
|
|
2583
|
+
parent?: {
|
|
2584
|
+
layerOffset?: number;
|
|
2585
|
+
};
|
|
2575
2586
|
create?: boolean;
|
|
2576
2587
|
instructions?: Partial<A_TYPES__A_InjectDecorator_EntityInjectionInstructions>;
|
|
2577
2588
|
}>;
|
|
@@ -3735,11 +3746,40 @@ declare class A_Context {
|
|
|
3735
3746
|
static isAllowedForMetaConstructor(param: any): param is A_TYPES__MetaLinkedComponentConstructors;
|
|
3736
3747
|
}
|
|
3737
3748
|
|
|
3749
|
+
declare class A_ContextError extends A_Error {
|
|
3750
|
+
static NotAllowedForScopeAllocationError: string;
|
|
3751
|
+
static ComponentAlreadyHasScopeAllocatedError: string;
|
|
3752
|
+
static InvalidMetaParameterError: string;
|
|
3753
|
+
static InvalidScopeParameterError: string;
|
|
3754
|
+
static ScopeNotFoundError: string;
|
|
3755
|
+
static InvalidFeatureParameterError: string;
|
|
3756
|
+
static InvalidFeatureDefinitionParameterError: string;
|
|
3757
|
+
static InvalidFeatureTemplateParameterError: string;
|
|
3758
|
+
static InvalidFeatureExtensionParameterError: string;
|
|
3759
|
+
static InvalidAbstractionParameterError: string;
|
|
3760
|
+
static InvalidAbstractionDefinitionParameterError: string;
|
|
3761
|
+
static InvalidAbstractionTemplateParameterError: string;
|
|
3762
|
+
static InvalidAbstractionExtensionParameterError: string;
|
|
3763
|
+
static InvalidInjectionParameterError: string;
|
|
3764
|
+
static InvalidExtensionParameterError: string;
|
|
3765
|
+
static InvalidRegisterParameterError: string;
|
|
3766
|
+
static InvalidComponentParameterError: string;
|
|
3767
|
+
static ComponentNotRegisteredError: string;
|
|
3768
|
+
static InvalidDeregisterParameterError: string;
|
|
3769
|
+
}
|
|
3770
|
+
|
|
3738
3771
|
declare class A_ConceptMeta extends A_Meta<any> {
|
|
3739
3772
|
private containers;
|
|
3740
3773
|
constructor(containers: Array<A_Container>);
|
|
3741
3774
|
}
|
|
3742
3775
|
|
|
3776
|
+
declare class A_EntityError extends A_Error {
|
|
3777
|
+
/**
|
|
3778
|
+
* Error code for validation errors.
|
|
3779
|
+
*/
|
|
3780
|
+
static readonly ValidationError = "A-Entity Validation Error";
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3743
3783
|
declare class A_AbstractionError extends A_Error {
|
|
3744
3784
|
/**
|
|
3745
3785
|
* This error code indicates that there was an issue extending the abstraction execution
|
|
@@ -3754,6 +3794,12 @@ declare class A_CallerError extends A_Error {
|
|
|
3754
3794
|
static readonly CallerInitializationError = "Unable to initialize A-Caller";
|
|
3755
3795
|
}
|
|
3756
3796
|
|
|
3797
|
+
declare const A_CONSTANTS__ERROR_CODES: {
|
|
3798
|
+
readonly UNEXPECTED_ERROR: "A-Error Unexpected Error";
|
|
3799
|
+
readonly VALIDATION_ERROR: "A-Error Validation Error";
|
|
3800
|
+
};
|
|
3801
|
+
declare const A_CONSTANTS__ERROR_DESCRIPTION = "If you see this error please let us know.";
|
|
3802
|
+
|
|
3757
3803
|
declare class ASEID_Error extends A_Error {
|
|
3758
3804
|
static readonly ASEIDInitializationError = "ASEID Initialization Error";
|
|
3759
3805
|
static readonly ASEIDValidationError = "ASEID Validation Error";
|
|
@@ -3780,6 +3826,7 @@ type A_TYPES__A_Dependency_LoadDecoratorReturn<T = any> = (target: T, propertyKe
|
|
|
3780
3826
|
* A-Dependency default decorator return type
|
|
3781
3827
|
*/
|
|
3782
3828
|
type A_TYPES__A_Dependency_DefaultDecoratorReturn<T = any> = (target: T, propertyKey: string | symbol | undefined, parameterIndex: number) => void;
|
|
3829
|
+
type A_TYPES__A_Dependency_ParentDecoratorReturn<T = any> = (target: T, propertyKey: string | symbol | undefined, parameterIndex: number) => void;
|
|
3783
3830
|
|
|
3784
3831
|
/**
|
|
3785
3832
|
* Should indicate which Default is required
|
|
@@ -3799,6 +3846,17 @@ declare function A_Dependency_Load(
|
|
|
3799
3846
|
*/
|
|
3800
3847
|
path: string): A_TYPES__A_Dependency_LoadDecoratorReturn;
|
|
3801
3848
|
|
|
3849
|
+
/**
|
|
3850
|
+
* Should indicate which dependency is required
|
|
3851
|
+
*/
|
|
3852
|
+
declare function A_Dependency_Parent(
|
|
3853
|
+
/**
|
|
3854
|
+
* Indicates how many layers up the parent dependency should be resolved from current dependency
|
|
3855
|
+
*
|
|
3856
|
+
* Default: -1 (one layer up)
|
|
3857
|
+
*/
|
|
3858
|
+
layerOffset?: number): A_TYPES__A_Dependency_ParentDecoratorReturn;
|
|
3859
|
+
|
|
3802
3860
|
/**
|
|
3803
3861
|
* Should indicate which dependency is required
|
|
3804
3862
|
*/
|
|
@@ -3825,6 +3883,28 @@ declare class A_Dependency {
|
|
|
3825
3883
|
* @returns
|
|
3826
3884
|
*/
|
|
3827
3885
|
static get Default(): typeof A_Dependency_Default;
|
|
3886
|
+
/**
|
|
3887
|
+
* Allows to indicate which parent dependency should be resolved
|
|
3888
|
+
* e.g. from which layer up the parent should be taken
|
|
3889
|
+
*
|
|
3890
|
+
* @returns
|
|
3891
|
+
*/
|
|
3892
|
+
static get Parent(): typeof A_Dependency_Parent;
|
|
3893
|
+
protected _name: string;
|
|
3894
|
+
/**
|
|
3895
|
+
* Class instances allows to indentify dependencies by name and use them for better type checking
|
|
3896
|
+
*
|
|
3897
|
+
* @param name
|
|
3898
|
+
*/
|
|
3899
|
+
constructor(name: string);
|
|
3900
|
+
/**
|
|
3901
|
+
* Gets the dependency name
|
|
3902
|
+
*
|
|
3903
|
+
* Can be identifier, url or any string value
|
|
3904
|
+
*
|
|
3905
|
+
* @returns
|
|
3906
|
+
*/
|
|
3907
|
+
get name(): string;
|
|
3828
3908
|
}
|
|
3829
3909
|
|
|
3830
3910
|
declare class A_DependencyError extends A_Error {
|
|
@@ -3834,6 +3914,11 @@ declare class A_DependencyError extends A_Error {
|
|
|
3834
3914
|
static readonly InvalidDefaultTarget = "Invalid Default Target";
|
|
3835
3915
|
}
|
|
3836
3916
|
|
|
3917
|
+
declare class A_InjectError extends A_Error {
|
|
3918
|
+
static readonly InvalidInjectionTarget = "Invalid target for A-Inject decorator";
|
|
3919
|
+
static readonly MissingInjectionTarget = "Missing target for A-Inject decorator";
|
|
3920
|
+
}
|
|
3921
|
+
|
|
3837
3922
|
/**
|
|
3838
3923
|
* A-Inject decorator
|
|
3839
3924
|
*
|
|
@@ -4212,4 +4297,4 @@ declare class A_TypeGuards {
|
|
|
4212
4297
|
static isErrorSerializedType<T extends A_TYPES__Error_Serialized>(param: any): param is T;
|
|
4213
4298
|
}
|
|
4214
4299
|
|
|
4215
|
-
export { ASEID, ASEID_Error, A_Abstraction, A_AbstractionError, A_Abstraction_Extend, A_CONSTANTS__DEFAULT_ENV_VARIABLES, A_CONSTANTS__DEFAULT_ENV_VARIABLES_ARRAY, A_Caller, A_CallerError, A_CommonHelper, A_Component, A_ComponentMeta, A_Concept, A_ConceptMeta, A_Container, A_ContainerMeta, A_Context, A_Dependency, A_DependencyError, A_Dependency_Default, A_Dependency_Load, A_Dependency_Require, A_Entity, A_Error, A_Feature, A_FeatureError, A_Feature_Define, A_Feature_Extend, A_FormatterHelper, A_Fragment, type A_ID_TYPES__TimeId_Parts, A_IdentityHelper, A_Inject, A_Meta, A_Scope, A_ScopeError, A_Stage, A_StageError, A_StepManagerError, A_StepsManager, type A_TYPES_ScopeDependentComponents, type A_TYPES_ScopeIndependentComponents, type A_TYPES_StageExecutionBehavior, type A_TYPES__ASEID_Constructor, type A_TYPES__ASEID_ConstructorConfig, type A_TYPES__ASEID_JSON, type A_TYPES__A_Dependency_DefaultDecoratorReturn, type A_TYPES__A_Dependency_LoadDecoratorReturn, type A_TYPES__A_Dependency_RequireDecoratorReturn, type A_TYPES__A_InjectDecoratorDescriptor, type A_TYPES__A_InjectDecoratorReturn, type A_TYPES__A_InjectDecorator_EntityInjectionInstructions, type A_TYPES__A_InjectDecorator_EntityInjectionPagination, type A_TYPES__A_InjectDecorator_EntityInjectionQuery, type A_TYPES__A_InjectDecorator_Meta, type A_TYPES__A_StageStep, type A_TYPES__A_StageStepProcessingExtraParams, A_TYPES__A_Stage_Status, type A_TYPES__AbstractionAvailableComponents, type A_TYPES__AbstractionDecoratorConfig, type A_TYPES__AbstractionDecoratorDescriptor, type A_TYPES__Abstraction_Constructor, type A_TYPES__Abstraction_Init, type A_TYPES__Abstraction_Serialized, type A_TYPES__CallerComponent, type A_TYPES__Caller_Constructor, type A_TYPES__Caller_Init, type A_TYPES__Caller_Serialized, type A_TYPES__ComponentMeta, type A_TYPES__ComponentMetaExtension, type A_TYPES__Component_Constructor, type A_TYPES__Component_Init, type A_TYPES__Component_Serialized, type A_TYPES__ConceptAbstraction, type A_TYPES__ConceptAbstractionMeta, type A_TYPES__ConceptENVVariables, type A_TYPES__Concept_Constructor, type A_TYPES__Concept_Init, type A_TYPES__Concept_Serialized, type A_TYPES__ContainerMeta, type A_TYPES__ContainerMetaExtension, type A_TYPES__Container_Constructor, type A_TYPES__Container_Init, type A_TYPES__Container_Serialized, type A_TYPES__ContextEnvironment, type A_TYPES__DeepPartial, type A_TYPES__Dictionary, type A_TYPES__EntityMeta, type A_TYPES__Entity_Constructor, type A_TYPES__Entity_Init, type A_TYPES__Entity_Serialized, type A_TYPES__Error_Constructor, type A_TYPES__Error_Init, type A_TYPES__Error_Serialized, type A_TYPES__ExtractNested, type A_TYPES__ExtractProperties, type A_TYPES__FeatureAvailableComponents, type A_TYPES__FeatureAvailableConstructors, type A_TYPES__FeatureDefineDecoratorConfig, type A_TYPES__FeatureDefineDecoratorDescriptor, type A_TYPES__FeatureDefineDecoratorMeta, type A_TYPES__FeatureDefineDecoratorTarget, type A_TYPES__FeatureDefineDecoratorTemplateItem, type A_TYPES__FeatureError_Init, type A_TYPES__FeatureExtendDecoratorConfig, type A_TYPES__FeatureExtendDecoratorDescriptor, type A_TYPES__FeatureExtendDecoratorMeta, type A_TYPES__FeatureExtendDecoratorScopeConfig, type A_TYPES__FeatureExtendDecoratorScopeItem, type A_TYPES__FeatureExtendDecoratorTarget, type A_TYPES__FeatureExtendableMeta, A_TYPES__FeatureState, type A_TYPES__Feature_Constructor, type A_TYPES__Feature_Init, type A_TYPES__Feature_InitWithComponent, type A_TYPES__Feature_InitWithTemplate, type A_TYPES__Feature_Serialized, type A_TYPES__Fragment_Constructor, type A_TYPES__Fragment_Init, type A_TYPES__Fragment_Serialized, type A_TYPES__IEntity, type A_TYPES__InjectableConstructors, type A_TYPES__InjectableTargets, type A_TYPES__MetaLinkedComponentConstructors, type A_TYPES__MetaLinkedComponents, type A_TYPES__NonObjectPaths, type A_TYPES__ObjectKeyEnum, type A_TYPES__Paths, type A_TYPES__PathsToObject, type A_TYPES__Required, type A_TYPES__ScopeConfig, type A_TYPES__ScopeLinkedComponents, type A_TYPES__ScopeLinkedConstructors, type A_TYPES__ScopeResolvableComponents, type A_TYPES__Scope_Constructor, type A_TYPES__Scope_Init, type A_TYPES__Scope_Serialized, type A_TYPES__Stage_Serialized, type A_TYPES__UnionToIntersection, A_TypeGuards };
|
|
4300
|
+
export { ASEID, ASEID_Error, A_Abstraction, A_AbstractionError, A_Abstraction_Extend, A_CONSTANTS__DEFAULT_ENV_VARIABLES, A_CONSTANTS__DEFAULT_ENV_VARIABLES_ARRAY, A_CONSTANTS__ERROR_CODES, A_CONSTANTS__ERROR_DESCRIPTION, A_Caller, A_CallerError, A_CommonHelper, A_Component, A_ComponentMeta, A_Concept, A_ConceptMeta, A_Container, A_ContainerMeta, A_Context, A_ContextError, A_Dependency, A_DependencyError, A_Dependency_Default, A_Dependency_Load, A_Dependency_Require, A_Entity, A_EntityError, A_EntityMeta, A_Error, A_Feature, A_FeatureError, A_Feature_Define, A_Feature_Extend, A_FormatterHelper, A_Fragment, type A_ID_TYPES__TimeId_Parts, A_IdentityHelper, A_Inject, A_InjectError, A_Meta, A_Scope, A_ScopeError, A_Stage, A_StageError, A_StepManagerError, A_StepsManager, type A_TYPES_ScopeDependentComponents, type A_TYPES_ScopeIndependentComponents, type A_TYPES_StageExecutionBehavior, type A_TYPES__ASEID_Constructor, type A_TYPES__ASEID_ConstructorConfig, type A_TYPES__ASEID_JSON, type A_TYPES__A_Dependency_DefaultDecoratorReturn, type A_TYPES__A_Dependency_LoadDecoratorReturn, type A_TYPES__A_Dependency_ParentDecoratorReturn, type A_TYPES__A_Dependency_RequireDecoratorReturn, type A_TYPES__A_InjectDecoratorDescriptor, type A_TYPES__A_InjectDecoratorReturn, type A_TYPES__A_InjectDecorator_EntityInjectionInstructions, type A_TYPES__A_InjectDecorator_EntityInjectionPagination, type A_TYPES__A_InjectDecorator_EntityInjectionQuery, type A_TYPES__A_InjectDecorator_Meta, type A_TYPES__A_StageStep, type A_TYPES__A_StageStepProcessingExtraParams, A_TYPES__A_Stage_Status, type A_TYPES__AbstractionAvailableComponents, type A_TYPES__AbstractionDecoratorConfig, type A_TYPES__AbstractionDecoratorDescriptor, type A_TYPES__Abstraction_Constructor, type A_TYPES__Abstraction_Init, type A_TYPES__Abstraction_Serialized, type A_TYPES__CallerComponent, type A_TYPES__Caller_Constructor, type A_TYPES__Caller_Init, type A_TYPES__Caller_Serialized, type A_TYPES__ComponentMeta, type A_TYPES__ComponentMetaExtension, A_TYPES__ComponentMetaKey, type A_TYPES__Component_Constructor, type A_TYPES__Component_Init, type A_TYPES__Component_Serialized, type A_TYPES__ConceptAbstraction, type A_TYPES__ConceptAbstractionMeta, A_TYPES__ConceptAbstractions, type A_TYPES__ConceptENVVariables, A_TYPES__ConceptMetaKey, type A_TYPES__Concept_Constructor, type A_TYPES__Concept_Init, type A_TYPES__Concept_Serialized, type A_TYPES__ContainerMeta, type A_TYPES__ContainerMetaExtension, A_TYPES__ContainerMetaKey, type A_TYPES__Container_Constructor, type A_TYPES__Container_Init, type A_TYPES__Container_Serialized, type A_TYPES__ContextEnvironment, type A_TYPES__DeepPartial, type A_TYPES__Dictionary, A_TYPES__EntityFeatures, type A_TYPES__EntityMeta, A_TYPES__EntityMetaKey, type A_TYPES__Entity_Constructor, type A_TYPES__Entity_Init, type A_TYPES__Entity_Serialized, type A_TYPES__Error_Constructor, type A_TYPES__Error_Init, type A_TYPES__Error_Serialized, type A_TYPES__ExtractNested, type A_TYPES__ExtractProperties, type A_TYPES__FeatureAvailableComponents, type A_TYPES__FeatureAvailableConstructors, type A_TYPES__FeatureDefineDecoratorConfig, type A_TYPES__FeatureDefineDecoratorDescriptor, type A_TYPES__FeatureDefineDecoratorMeta, type A_TYPES__FeatureDefineDecoratorTarget, type A_TYPES__FeatureDefineDecoratorTemplateItem, type A_TYPES__FeatureError_Init, type A_TYPES__FeatureExtendDecoratorConfig, type A_TYPES__FeatureExtendDecoratorDescriptor, type A_TYPES__FeatureExtendDecoratorMeta, type A_TYPES__FeatureExtendDecoratorScopeConfig, type A_TYPES__FeatureExtendDecoratorScopeItem, type A_TYPES__FeatureExtendDecoratorTarget, type A_TYPES__FeatureExtendableMeta, A_TYPES__FeatureState, type A_TYPES__Feature_Constructor, type A_TYPES__Feature_Init, type A_TYPES__Feature_InitWithComponent, type A_TYPES__Feature_InitWithTemplate, type A_TYPES__Feature_Serialized, type A_TYPES__Fragment_Constructor, type A_TYPES__Fragment_Init, type A_TYPES__Fragment_Serialized, type A_TYPES__IEntity, type A_TYPES__InjectableConstructors, type A_TYPES__InjectableTargets, type A_TYPES__MetaLinkedComponentConstructors, type A_TYPES__MetaLinkedComponents, type A_TYPES__NonObjectPaths, type A_TYPES__ObjectKeyEnum, type A_TYPES__Paths, type A_TYPES__PathsToObject, type A_TYPES__Required, type A_TYPES__ScopeConfig, type A_TYPES__ScopeLinkedComponents, type A_TYPES__ScopeLinkedConstructors, type A_TYPES__ScopeResolvableComponents, type A_TYPES__Scope_Constructor, type A_TYPES__Scope_Init, type A_TYPES__Scope_Serialized, type A_TYPES__Stage_Serialized, type A_TYPES__UnionToIntersection, A_TypeGuards };
|