@adaas/a-concept 0.2.13 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/.conf/tsconfig.base.json +91 -0
  2. package/.conf/tsconfig.browser.json +36 -0
  3. package/.conf/tsconfig.node.json +40 -0
  4. package/dist/browser/index.d.mts +4166 -212
  5. package/dist/browser/index.mjs +2 -67
  6. package/dist/browser/index.mjs.map +1 -1
  7. package/dist/node/index.cjs +5761 -0
  8. package/dist/node/index.cjs.map +1 -0
  9. package/dist/node/index.d.mts +4193 -212
  10. package/dist/node/index.d.ts +4193 -212
  11. package/dist/node/index.mjs +5699 -66
  12. package/dist/node/index.mjs.map +1 -1
  13. package/jest.config.ts +30 -15
  14. package/package.json +19 -18
  15. package/src/env/env-browser.ts +38 -1
  16. package/src/env/env-node.ts +26 -2
  17. package/src/env/env.base.ts +20 -1
  18. package/src/env/global.browser.d.ts +1 -1
  19. package/src/helpers/A_BasicTypeGuards.helper.ts +81 -0
  20. package/src/helpers/A_Common.helper.ts +2 -2
  21. package/src/helpers/A_Identity.helper.ts +2 -4
  22. package/src/helpers/A_TypeGuards.helper.ts +45 -30
  23. package/src/helpers/index.ts +5 -0
  24. package/src/index.ts +21 -94
  25. package/src/{global → lib}/A-Abstraction/A-Abstraction-Extend.decorator.ts +18 -13
  26. package/src/{global → lib}/A-Abstraction/A-Abstraction.class.ts +5 -5
  27. package/src/{global → lib}/A-Abstraction/A-Abstraction.error.ts +1 -1
  28. package/src/{global → lib}/A-Abstraction/A-Abstraction.types.ts +5 -5
  29. package/src/lib/A-Abstraction/index.ts +8 -0
  30. package/src/{global → lib}/A-Caller/A_Caller.class.ts +3 -4
  31. package/src/{global → lib}/A-Caller/A_Caller.error.ts +1 -4
  32. package/src/{global → lib}/A-Caller/A_Caller.types.ts +4 -4
  33. package/src/lib/A-Caller/index.ts +3 -0
  34. package/src/{global → lib}/A-Component/A-Component.class.ts +2 -3
  35. package/src/{global → lib}/A-Component/A-Component.meta.ts +5 -5
  36. package/src/{global → lib}/A-Component/A-Component.types.ts +5 -5
  37. package/src/lib/A-Component/index.ts +5 -0
  38. package/src/{global → lib}/A-Concept/A-Concept.class.ts +9 -7
  39. package/src/{global → lib}/A-Concept/A-Concept.meta.ts +2 -2
  40. package/src/{global → lib}/A-Concept/A-Concept.types.ts +7 -7
  41. package/src/lib/A-Concept/index.ts +4 -0
  42. package/src/{global → lib}/A-Container/A-Container.class.ts +3 -3
  43. package/src/{global → lib}/A-Container/A-Container.meta.ts +11 -6
  44. package/src/{global → lib}/A-Container/A-Container.types.ts +9 -6
  45. package/src/lib/A-Container/index.ts +5 -0
  46. package/src/{global → lib}/A-Context/A-Context.class.ts +41 -33
  47. package/src/{global → lib}/A-Context/A-Context.error.ts +1 -1
  48. package/src/lib/A-Context/A-Context.types.ts +14 -0
  49. package/src/lib/A-Context/index.ts +5 -0
  50. package/src/{global → lib}/A-Dependency/A-Dependency-All.decorator.ts +11 -11
  51. package/src/{global → lib}/A-Dependency/A-Dependency-Default.decorator.ts +11 -9
  52. package/src/{global → lib}/A-Dependency/A-Dependency-Flat.decorator.ts +11 -8
  53. package/src/{global → lib}/A-Dependency/A-Dependency-Load.decorator.ts +11 -9
  54. package/src/{global → lib}/A-Dependency/A-Dependency-Parent.decorator.ts +11 -9
  55. package/src/{global → lib}/A-Dependency/A-Dependency-Require.decorator.ts +11 -9
  56. package/src/{global → lib}/A-Dependency/A-Dependency.class.ts +9 -3
  57. package/src/{global → lib}/A-Dependency/A-Dependency.error.ts +1 -1
  58. package/src/{global → lib}/A-Dependency/A-Dependency.types.ts +9 -9
  59. package/src/lib/A-Dependency/index.ts +17 -0
  60. package/src/{global → lib}/A-Entity/A-Entity.class.ts +11 -9
  61. package/src/{global → lib}/A-Entity/A-Entity.error.ts +1 -1
  62. package/src/{global → lib}/A-Entity/A-Entity.meta.ts +3 -3
  63. package/src/{global → lib}/A-Entity/A-Entity.types.ts +5 -5
  64. package/src/lib/A-Entity/index.ts +5 -0
  65. package/src/{global → lib}/A-Error/A_Error.class.ts +13 -13
  66. package/src/{global → lib}/A-Error/A_Error.types.ts +2 -2
  67. package/src/lib/A-Error/index.ts +3 -0
  68. package/src/{global → lib}/A-Feature/A-Feature-Define.decorator.ts +16 -10
  69. package/src/{global → lib}/A-Feature/A-Feature-Extend.decorator.ts +13 -9
  70. package/src/{global → lib}/A-Feature/A-Feature.class.ts +15 -13
  71. package/src/{global → lib}/A-Feature/A-Feature.error.ts +2 -2
  72. package/src/{global → lib}/A-Feature/A-Feature.types.ts +21 -12
  73. package/src/lib/A-Feature/index.ts +13 -0
  74. package/src/{global → lib}/A-Fragment/A-Fragment.class.ts +0 -2
  75. package/src/{global → lib}/A-Fragment/A-Fragment.types.ts +1 -1
  76. package/src/lib/A-Fragment/index.ts +5 -0
  77. package/src/{global → lib}/A-Inject/A-Inject.decorator.ts +42 -24
  78. package/src/{global → lib}/A-Inject/A-Inject.error.ts +1 -1
  79. package/src/{global → lib}/A-Inject/A-Inject.types.ts +3 -9
  80. package/src/lib/A-Inject/index.ts +3 -0
  81. package/src/{global → lib}/A-Meta/A-Meta.decorator.ts +2 -2
  82. package/src/{global → lib}/A-Meta/A-Meta.types.ts +18 -10
  83. package/src/lib/A-Meta/index.ts +11 -0
  84. package/src/{global → lib}/A-Scope/A-Scope.class.ts +34 -24
  85. package/src/{global → lib}/A-Scope/A-Scope.error.ts +1 -1
  86. package/src/{global → lib}/A-Scope/A-Scope.types.ts +22 -14
  87. package/src/lib/A-Scope/index.ts +5 -0
  88. package/src/{global → lib}/A-Stage/A-Stage.class.ts +9 -10
  89. package/src/{global → lib}/A-Stage/A-Stage.error.ts +1 -1
  90. package/src/{global → lib}/A-Stage/A-Stage.types.ts +1 -4
  91. package/src/lib/A-Stage/index.ts +5 -0
  92. package/src/{global → lib}/A-StepManager/A-StepManager.class.ts +8 -4
  93. package/src/{global → lib}/A-StepManager/A-StepManager.error.ts +1 -1
  94. package/src/lib/A-StepManager/index.ts +4 -0
  95. package/src/{global → lib}/ASEID/ASEID.class.ts +20 -23
  96. package/src/lib/ASEID/ASEID.error.ts +12 -0
  97. package/src/lib/ASEID/index.ts +4 -0
  98. package/src/types/A_identity.types.ts +4 -0
  99. package/src/types/index.ts +2 -0
  100. package/tests/A-Abstraction.test.ts +6 -6
  101. package/tests/A-Common.test.ts +6 -4
  102. package/tests/A-Component.test.ts +7 -5
  103. package/tests/A-Concept.test.ts +13 -11
  104. package/tests/A-Container.test.ts +4 -3
  105. package/tests/A-Dependency.test.ts +6 -1
  106. package/tests/A-Entity.test.ts +7 -5
  107. package/tests/A-Error.test.ts +7 -4
  108. package/tests/A-Feature.test.ts +12 -8
  109. package/tests/A-Fragment.test.ts +1 -2
  110. package/tests/A-Inject.test.ts +4 -1
  111. package/tests/A-Meta.test.ts +12 -10
  112. package/tests/A-Scope.test.ts +11 -10
  113. package/tests/A-StepManager.test.ts +3 -3
  114. package/tests/ASEID.test.ts +2 -2
  115. package/tests/jest.setup.ts +23 -23
  116. package/tsconfig.json +59 -97
  117. package/tsup.config.ts +25 -13
  118. package/dist/browser/A-Context.types-BtR_HJ0j.d.mts +0 -3828
  119. package/dist/browser/env.d.mts +0 -64
  120. package/dist/browser/env.mjs +0 -3
  121. package/dist/browser/env.mjs.map +0 -1
  122. package/dist/node/A-Context.types-BtR_HJ0j.d.mts +0 -3828
  123. package/dist/node/A-Context.types-BtR_HJ0j.d.ts +0 -3828
  124. package/dist/node/env.d.mts +0 -91
  125. package/dist/node/env.d.ts +0 -91
  126. package/dist/node/env.js +0 -12
  127. package/dist/node/env.js.map +0 -1
  128. package/dist/node/env.mjs +0 -3
  129. package/dist/node/env.mjs.map +0 -1
  130. package/dist/node/index.js +0 -387
  131. package/dist/node/index.js.map +0 -1
  132. package/src/global/A-Context/A-Context.types.ts +0 -14
  133. package/src/global/ASEID/ASEID.error.ts +0 -12
  134. /package/src/{global → lib}/A-Component/A-Component.constants.ts +0 -0
  135. /package/src/{global → lib}/A-Concept/A-Concept.constants.ts +0 -0
  136. /package/src/{global → lib}/A-Container/A-Container.constants.ts +0 -0
  137. /package/src/{global → lib}/A-Entity/A-Entity.constants.ts +0 -0
  138. /package/src/{global → lib}/A-Error/A_Error.constants.ts +0 -0
  139. /package/src/{global → lib}/A-Meta/A-Meta.class.ts +0 -0
  140. /package/src/{global → lib}/ASEID/ASEID.constants.ts +0 -0
  141. /package/src/{global → lib}/ASEID/ASEID.types.ts +0 -0
@@ -5,25 +5,35 @@ import {
5
5
  A_TYPES__Scope_Constructor,
6
6
  A_TYPES__ScopeLinkedConstructors
7
7
  } from './A-Scope.types'
8
- import { A_Fragment } from "../A-Fragment/A-Fragment.class";
9
- import { A_Context } from "../A-Context/A-Context.class";
10
- import { A_Component } from "../A-Component/A-Component.class";
11
- import { A_Entity } from "../A-Entity/A-Entity.class";
12
- import { A_TypeGuards } from "@adaas/a-concept/helpers/A_TypeGuards.helper";
13
- import { A_Error } from "../A-Error/A_Error.class";
14
- import { A_FormatterHelper } from '@adaas/a-concept/helpers/A_Formatter.helper';
15
- import { A_CommonHelper } from '@adaas/a-concept/helpers/A_Common.helper';
16
- import { A_TYPES__Entity_Constructor } from '../A-Entity/A-Entity.types';
17
- import { A_ScopeError } from './A-Scope.error';
18
- import { A_TYPES__Component_Constructor } from '../A-Component/A-Component.types';
19
- import { A_TYPES__Fragment_Constructor } from '../A-Fragment/A-Fragment.types';
20
- import { A_TYPES__Error_Constructor } from '../A-Error/A_Error.types';
21
- import { A_TYPES__ComponentMetaKey } from '../A-Component/A-Component.constants';
22
- import { A_Meta } from '../A-Meta/A-Meta.class';
23
- import { A_Dependency } from '../A-Dependency/A-Dependency.class';
24
- import { A_TYPES__A_DependencyInjectable } from '../A-Dependency/A-Dependency.types';
25
- import { A_TYPES__Ctor } from '@adaas/a-concept/types/A_Common.types';
26
- import { ASEID } from '../ASEID/ASEID.class';
8
+ import {
9
+ A_Fragment,
10
+ A_TYPES__Fragment_Constructor
11
+ } from "@adaas/a-concept/a-fragment";
12
+ import { A_Context } from "@adaas/a-concept/a-context";
13
+ import {
14
+ A_Component,
15
+ A_TYPES__Component_Constructor,
16
+ A_TYPES__ComponentMetaKey
17
+ } from "@adaas/a-concept/a-component";
18
+ import {
19
+ A_Entity,
20
+ A_TYPES__Entity_Constructor
21
+ } from "@adaas/a-concept/a-entity";
22
+ import { A_TypeGuards} from "@adaas/a-concept/helpers/A_TypeGuards.helper";
23
+ import { A_FormatterHelper} from "@adaas/a-concept/helpers/A_Formatter.helper";
24
+ import { A_CommonHelper} from "@adaas/a-concept/helpers/A_Common.helper";
25
+ import {
26
+ A_Error,
27
+ A_TYPES__Error_Constructor
28
+ } from "@adaas/a-concept/a-error";
29
+ import { A_ScopeError } from '@adaas/a-concept/a-scope';
30
+ import { A_Meta } from '@adaas/a-concept/a-meta';
31
+ import {
32
+ A_Dependency,
33
+ A_TYPES__A_DependencyInjectable
34
+ } from '@adaas/a-concept/a-dependency';
35
+ import { A_TYPES__Ctor } from '@adaas/a-concept/types';
36
+ import { ASEID } from '@adaas/a-concept/aseid';
27
37
 
28
38
 
29
39
 
@@ -1684,11 +1694,11 @@ export class A_Scope<
1684
1694
  this.allowedErrors.add(param1.constructor as _ErrorType[number]);
1685
1695
 
1686
1696
  this._errors.set(
1687
- param1.code,
1697
+ (param1 as any).code,
1688
1698
  param1 as InstanceType<_ErrorType[number]>
1689
1699
  );
1690
1700
 
1691
- A_Context.register(this, param1);
1701
+ A_Context.register(this, (param1 as any));
1692
1702
  break;
1693
1703
  }
1694
1704
 
@@ -1855,10 +1865,10 @@ export class A_Scope<
1855
1865
  // 5) In case when it's a A-Error instance
1856
1866
  case A_TypeGuards.isErrorInstance(param1): {
1857
1867
 
1858
- this._errors.delete(param1.code);
1859
- A_Context.deregister(param1);
1868
+ this._errors.delete((param1 as any).code);
1869
+ A_Context.deregister((param1 as any));
1860
1870
 
1861
- const ctor = param1.constructor as _ErrorType[number];
1871
+ const ctor = (param1 as any).constructor as _ErrorType[number];
1862
1872
 
1863
1873
  const hasError = Array.from(this._errors.values()).some(error => error instanceof ctor);
1864
1874
  if (!hasError) {
@@ -1,4 +1,4 @@
1
- import { A_Error } from "../A-Error/A_Error.class";
1
+ import { A_Error } from "@adaas/a-concept/a-error";
2
2
 
3
3
  export class A_ScopeError extends A_Error {
4
4
 
@@ -1,17 +1,25 @@
1
- import { A_Component } from "../A-Component/A-Component.class"
2
- import { A_TYPES__Component_Constructor } from "../A-Component/A-Component.types"
3
- import { A_Container } from "../A-Container/A-Container.class"
4
- import { A_Entity } from "../A-Entity/A-Entity.class"
5
- import { A_TYPES__Entity_Constructor } from "../A-Entity/A-Entity.types"
6
- import { A_Feature } from "../A-Feature/A-Feature.class"
7
- import { A_Fragment } from "../A-Fragment/A-Fragment.class"
8
- import { A_Caller } from "../A-Caller/A_Caller.class"
9
- import { A_Error } from "../A-Error/A_Error.class"
10
- import { A_TYPES__Error_Constructor } from "../A-Error/A_Error.types"
11
- import { A_Scope } from "./A-Scope.class"
12
- import { A_TYPES__Container_Constructor } from "../A-Container/A-Container.types"
13
- import { A_TYPES__Feature_Constructor } from "../A-Feature/A-Feature.types"
14
- import { A_TYPES__Ctor } from "@adaas/a-concept/types/A_Common.types"
1
+ import type {
2
+ A_Component,
3
+ A_TYPES__Component_Constructor
4
+ } from "@adaas/a-concept/a-component"
5
+ import type {
6
+ A_Container,
7
+ A_TYPES__Container_Constructor
8
+ } from "@adaas/a-concept/a-container"
9
+ import type {
10
+ A_Entity,
11
+ A_TYPES__Entity_Constructor
12
+ } from "@adaas/a-concept/a-entity"
13
+ import type { A_Feature } from "@adaas/a-concept/a-feature"
14
+ import type { A_Fragment } from "@adaas/a-concept/a-fragment"
15
+ import type { A_Caller } from "@adaas/a-concept/a-caller"
16
+ import type {
17
+ A_Error,
18
+ A_TYPES__Error_Constructor
19
+ } from "@adaas/a-concept/a-error"
20
+ import type { A_Scope } from "./A-Scope.class"
21
+ import type { A_TYPES__Feature_Constructor } from "@adaas/a-concept/a-feature"
22
+ import type { A_TYPES__Ctor } from "@adaas/a-concept/types"
15
23
 
16
24
 
17
25
  // ============================================================================
@@ -0,0 +1,5 @@
1
+ export { A_Scope } from './A-Scope.class'
2
+ // export { A_ScopeMeta } from './A-Scope.meta'
3
+ export { A_ScopeError } from './A-Scope.error'
4
+ export * from './A-Scope.types'
5
+ // export * from './A-Scope.constants'
@@ -3,16 +3,15 @@ import {
3
3
  A_TYPES__A_StageStep,
4
4
  A_TYPES__Stage_Serialized
5
5
  } from "./A-Stage.types";
6
- import { A_Context } from "../A-Context/A-Context.class";
7
- import { A_Feature } from "../A-Feature/A-Feature.class";
8
- import { A_Scope } from "../A-Scope/A-Scope.class";
6
+ import { A_Context } from "@adaas/a-concept/a-context";
7
+ import type { A_Feature } from "@adaas/a-concept/a-feature";
8
+ import type { A_Scope } from "@adaas/a-concept/a-scope";
9
9
  import { A_StageError } from "./A-Stage.error";
10
- import { A_Error } from "../A-Error/A_Error.class";
11
- import { A_TypeGuards } from "@adaas/a-concept/helpers/A_TypeGuards.helper";
12
- import { A_TYPES__Container_Constructor } from "../A-Container/A-Container.types";
13
- import { A_TYPES__Component_Constructor } from "../A-Component/A-Component.types";
14
- import { A_CommonHelper } from "@adaas/a-concept/helpers/A_Common.helper";
15
- import { A_TYPES__A_DependencyInjectable } from "../A-Dependency/A-Dependency.types";
10
+ import { A_Error } from "@adaas/a-concept/a-error";
11
+ import { A_TypeGuards} from "@adaas/a-concept/helpers/A_TypeGuards.helper";
12
+ import type { A_TYPES__Container_Constructor } from "@adaas/a-concept/a-container";
13
+ import type { A_TYPES__Component_Constructor } from "@adaas/a-concept/a-component";
14
+ import type { A_TYPES__A_DependencyInjectable } from "@adaas/a-concept/a-dependency";
16
15
 
17
16
 
18
17
 
@@ -197,7 +196,7 @@ export class A_Stage {
197
196
  *
198
197
  * @param scope - Scope to be used to resolve the steps dependencies
199
198
  */
200
- process(
199
+ process(
201
200
  /**
202
201
  * Scope to be used to resolve the steps dependencies
203
202
  */
@@ -1,4 +1,4 @@
1
- import { A_Error } from "../A-Error/A_Error.class";
1
+ import { A_Error } from "@adaas/a-concept/a-error";
2
2
 
3
3
 
4
4
  export class A_StageError extends A_Error {
@@ -1,7 +1,4 @@
1
- import { A_Container } from "../A-Container/A-Container.class"
2
- import { A_TYPES__Component_Constructor } from "../A-Component/A-Component.types"
3
- import { A_Dependency } from "../A-Dependency/A-Dependency.class"
4
- import { A_Component } from "../A-Component/A-Component.class"
1
+ import type { A_Dependency } from "@adaas/a-concept/a-dependency"
5
2
 
6
3
 
7
4
 
@@ -0,0 +1,5 @@
1
+ export { A_Stage } from './A-Stage.class';
2
+ // export { A_StageMeta } from './A-Stage.meta';
3
+ export { A_StageError } from './A-Stage.error';
4
+ export * from './A-Stage.types';
5
+ // export * from './A-Stage.constants';
@@ -1,7 +1,11 @@
1
- import { A_Feature } from "../A-Feature/A-Feature.class";
2
- import { A_TYPES__FeatureDefineDecoratorTemplateItem } from "../A-Feature/A-Feature.types";
3
- import { A_Stage } from "../A-Stage/A-Stage.class";
4
- import { A_TYPES__A_StageStep } from "../A-Stage/A-Stage.types";
1
+ import type {
2
+ A_Feature,
3
+ A_TYPES__FeatureDefineDecoratorTemplateItem
4
+ } from "@adaas/a-concept/a-feature";
5
+ import {
6
+ A_Stage,
7
+ A_TYPES__A_StageStep
8
+ } from "@adaas/a-concept/a-stage";
5
9
  import { A_StepManagerError } from "./A-StepManager.error";
6
10
 
7
11
  export class A_StepsManager {
@@ -1,4 +1,4 @@
1
- import { A_Error } from "../A-Error/A_Error.class";
1
+ import { A_Error } from "@adaas/a-concept/a-error";
2
2
 
3
3
 
4
4
 
@@ -0,0 +1,4 @@
1
+ export { A_StepsManager } from './A-StepManager.class';
2
+ export { A_StepManagerError } from './A-StepManager.error';
3
+ // export * from './A-StepManager.types';
4
+ // export * from './A-StepManager.constants';
@@ -2,12 +2,11 @@ import {
2
2
  A_TYPES__ASEID_Constructor,
3
3
  A_TYPES__ASEID_JSON
4
4
  } from "./ASEID.types";
5
- import { A_IdentityHelper } from "@adaas/a-concept/helpers/A_Identity.helper";
6
- import { A_TypeGuards } from "@adaas/a-concept/helpers/A_TypeGuards.helper";
7
- import { A_Context } from "../A-Context/A-Context.class";
8
- import { ASEID_Error } from "./ASEID.error";
9
- import { A_TYPES__Required } from "@adaas/a-concept/types/A_Common.types";
10
-
5
+ import { A_IdentityHelper} from "@adaas/a-concept/helpers/A_Identity.helper";
6
+ import { A_BasicTypeGuards} from "@adaas/a-concept/helpers/A_BasicTypeGuards.helper";
7
+ import { A_Context } from "@adaas/a-concept/a-context";
8
+ // import { ASEID_Error } from "./ASEID.error";
9
+ import { A_TYPES__Required } from "@adaas/a-concept/types";
11
10
 
12
11
 
13
12
  export class ASEID {
@@ -37,12 +36,12 @@ export class ASEID {
37
36
  return false;
38
37
  }
39
38
 
40
- if (A_TypeGuards.isString(aseid1) && this.isASEID(aseid1) === false) {
41
- throw new ASEID_Error(ASEID_Error.ASEIDValidationError, `Invalid ASEID format provided: ${aseid1}`);
39
+ if (A_BasicTypeGuards.isString(aseid1) && this.isASEID(aseid1) === false) {
40
+ throw new Error(`Invalid ASEID format provided: ${aseid1}`);
42
41
  }
43
42
 
44
- if (A_TypeGuards.isString(aseid2) && this.isASEID(aseid2) === false) {
45
- throw new ASEID_Error(ASEID_Error.ASEIDValidationError, `Invalid ASEID format provided: ${aseid2}`);
43
+ if (A_BasicTypeGuards.isString(aseid2) && this.isASEID(aseid2) === false) {
44
+ throw new Error(`Invalid ASEID format provided: ${aseid2}`);
46
45
  }
47
46
 
48
47
  const aseidObj1 = aseid1 instanceof ASEID ? aseid1 : new ASEID(aseid1);
@@ -186,15 +185,14 @@ export class ASEID {
186
185
  param1: string | A_TYPES__Required<Partial<A_TYPES__ASEID_Constructor>, ['id', 'entity']>
187
186
  ): (param1: any) => void | (() => void) {
188
187
  switch (true) {
189
- case A_TypeGuards.isString(param1):
188
+ case A_BasicTypeGuards.isString(param1):
190
189
  return this.fromString;
191
190
 
192
- case A_TypeGuards.isObject<A_TYPES__ASEID_Constructor>(param1):
191
+ case A_BasicTypeGuards.isObject<A_TYPES__ASEID_Constructor>(param1):
193
192
  return this.fromObject;
194
193
 
195
194
  default:
196
- throw new ASEID_Error(
197
- ASEID_Error.ASEIDInitializationError,
195
+ throw new Error(
198
196
  'Invalid parameters provided to ASEID constructor'
199
197
  );
200
198
  }
@@ -233,7 +231,7 @@ export class ASEID {
233
231
  : A_Context.concept;
234
232
 
235
233
  this._scope = param1.scope
236
- ? A_TypeGuards.isNumber(param1.scope)
234
+ ? A_BasicTypeGuards.isNumber(param1.scope)
237
235
  ? A_IdentityHelper.formatWithLeadingZeros(param1.scope) :
238
236
  ASEID.isASEID(param1.scope)
239
237
  ? new ASEID(param1.scope).id
@@ -242,7 +240,7 @@ export class ASEID {
242
240
 
243
241
  this._entity = param1.entity;
244
242
 
245
- this._id = A_TypeGuards.isNumber(param1.id)
243
+ this._id = A_BasicTypeGuards.isNumber(param1.id)
246
244
  ? A_IdentityHelper.formatWithLeadingZeros(param1.id)
247
245
  : param1.id;
248
246
 
@@ -285,16 +283,15 @@ export class ASEID {
285
283
 
286
284
  switch (true) {
287
285
  // 1) check for string and validate it as ASEID
288
- case A_TypeGuards.isString(param1) && !ASEID.isASEID(param1):
289
- throw new ASEID_Error(ASEID_Error.ASEIDValidationError, 'Invalid ASEID format provided')
286
+ case A_BasicTypeGuards.isString(param1) && !ASEID.isASEID(param1):
287
+ throw new Error( 'Invalid ASEID format provided')
290
288
 
291
289
  // 2) check for object and validate required fields
292
- case A_TypeGuards.isObject<A_TYPES__ASEID_Constructor>(param1) && !param1.id:
293
- throw new ASEID_Error(ASEID_Error.ASEIDValidationError, 'ASEID id is required')
294
-
290
+ case A_BasicTypeGuards.isObject<A_TYPES__ASEID_Constructor>(param1) && !param1.id:
291
+ throw new Error('ASEID id is required')
295
292
  // 3) check for object and validate required fields
296
- case A_TypeGuards.isObject<A_TYPES__ASEID_Constructor>(param1) && !param1.entity:
297
- throw new ASEID_Error(ASEID_Error.ASEIDValidationError, 'ASEID entity is required')
293
+ case A_BasicTypeGuards.isObject<A_TYPES__ASEID_Constructor>(param1) && !param1.entity:
294
+ throw new Error('ASEID entity is required')
298
295
 
299
296
  }
300
297
  }
@@ -0,0 +1,12 @@
1
+ // import { A_Error } from "@adaas/a-concept/a-error";
2
+
3
+
4
+
5
+ // export class ASEID_Error extends A_Error {
6
+
7
+
8
+ // static readonly ASEIDInitializationError = 'ASEID Initialization Error';
9
+
10
+ // static readonly ASEIDValidationError = 'ASEID Validation Error';
11
+
12
+ // }
@@ -0,0 +1,4 @@
1
+ export { ASEID } from './ASEID.class';
2
+ // export { ASEID_Error } from './ASEID.error';
3
+ export * from './ASEID.types';
4
+ // export * from './ASEID.constants';
@@ -0,0 +1,4 @@
1
+ export type A_ID_TYPES__TimeId_Parts = {
2
+ timestamp: Date;
3
+ random: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './A_Common.types';
2
+ export * from './A_identity.types';
@@ -1,9 +1,9 @@
1
- import { A_Component } from '@adaas/a-concept/global/A-Component/A-Component.class';
2
- import { A_Concept } from '@adaas/a-concept/global/A-Concept/A-Concept.class';
3
- import { A_Container } from '@adaas/a-concept/global/A-Container/A-Container.class';
4
- import { A_Context } from '@adaas/a-concept/global/A-Context/A-Context.class';
5
- import { A_Inject } from '@adaas/a-concept/global/A-Inject/A-Inject.decorator';
6
- import { A_Feature } from '@adaas/a-concept/global/A-Feature/A-Feature.class';
1
+ import { A_Component } from '@adaas/a-concept/a-component';
2
+ import { A_Concept } from '@adaas/a-concept/a-concept';
3
+ import { A_Container } from '@adaas/a-concept/a-container';
4
+ import { A_Context } from '@adaas/a-concept/a-context';
5
+ import { A_Inject } from '@adaas/a-concept/a-inject';
6
+ import { A_Feature } from '@adaas/a-concept/a-feature';
7
7
 
8
8
  jest.retryTimes(0);
9
9
 
@@ -1,7 +1,9 @@
1
- import { A_CommonHelper } from "@adaas/a-concept/helpers/A_Common.helper";
2
- import { A_IdentityHelper } from "@adaas/a-concept/helpers/A_Identity.helper";
3
- import { A_TYPES__DeepPartial } from "@adaas/a-concept/types/A_Common.types";
4
- import { A_FormatterHelper } from "../src";
1
+ import { A_TypeGuards} from "@adaas/a-concept/helpers/A_TypeGuards.helper";
2
+ import { A_FormatterHelper} from "@adaas/a-concept/helpers/A_Formatter.helper";
3
+ import { A_CommonHelper} from "@adaas/a-concept/helpers/A_Common.helper";
4
+ import { A_IdentityHelper} from "@adaas/a-concept/helpers/A_Identity.helper";
5
+ import { A_BasicTypeGuards} from "@adaas/a-concept/helpers/A_BasicTypeGuards.helper";
6
+ import { A_TYPES__DeepPartial } from "@adaas/a-concept/types";
5
7
  jest.retryTimes(0);
6
8
 
7
9
  describe('A-Common Tests', () => {
@@ -1,8 +1,10 @@
1
- import { A_Inject } from '@adaas/a-concept/global/A-Inject/A-Inject.decorator';
2
- import { A_Component } from "@adaas/a-concept/global/A-Component/A-Component.class";
3
- import { A_Context } from '@adaas/a-concept/global/A-Context/A-Context.class';
4
- import { A_Concept } from '@adaas/a-concept/global/A-Concept/A-Concept.class';
5
- import { A_TYPES__ComponentMetaKey } from '@adaas/a-concept/global/A-Component/A-Component.constants';
1
+ import { A_Inject } from '@adaas/a-concept/a-inject';
2
+ import {
3
+ A_Component,
4
+ A_TYPES__ComponentMetaKey
5
+ } from "@adaas/a-concept/a-component";
6
+ import { A_Context } from '@adaas/a-concept/a-context';
7
+ import { A_Concept } from '@adaas/a-concept/a-concept';
6
8
 
7
9
  jest.retryTimes(0);
8
10
 
@@ -1,14 +1,16 @@
1
- import { A_Caller } from '@adaas/a-concept/global/A-Caller/A_Caller.class';
2
- import { A_Component } from "@adaas/a-concept/global/A-Component/A-Component.class";
3
- import { A_Concept } from "@adaas/a-concept/global/A-Concept/A-Concept.class";
4
- import { A_Container } from "@adaas/a-concept/global/A-Container/A-Container.class";
5
- import { A_Context } from "@adaas/a-concept/global/A-Context/A-Context.class";
6
- import { A_Entity } from "@adaas/a-concept/global/A-Entity/A-Entity.class";
7
- import { A_Fragment } from "@adaas/a-concept/global/A-Fragment/A-Fragment.class";
8
- import { A_Inject } from '@adaas/a-concept/global/A-Inject/A-Inject.decorator';
9
- import { A_Scope } from "@adaas/a-concept/global/A-Scope/A-Scope.class";
10
- import { A_Feature } from '@adaas/a-concept/global/A-Feature/A-Feature.class';
11
- import { A_TYPES__EntityFeatures } from '@adaas/a-concept/global/A-Entity/A-Entity.constants';
1
+ import { A_Caller } from '@adaas/a-concept/a-caller';
2
+ import { A_Component } from "@adaas/a-concept/a-component";
3
+ import { A_Concept } from "@adaas/a-concept/a-concept";
4
+ import { A_Container } from "@adaas/a-concept/a-container";
5
+ import { A_Context } from "@adaas/a-concept/a-context";
6
+ import {
7
+ A_Entity,
8
+ A_TYPES__EntityFeatures
9
+ } from "@adaas/a-concept/a-entity";
10
+ import { A_Fragment } from "@adaas/a-concept/a-fragment";
11
+ import { A_Inject } from '@adaas/a-concept/a-inject';
12
+ import { A_Scope } from "@adaas/a-concept/a-scope";
13
+ import { A_Feature } from '@adaas/a-concept/a-feature';
12
14
 
13
15
 
14
16
  jest.retryTimes(0);
@@ -1,6 +1,7 @@
1
- import { A_Container } from '@adaas/a-concept/global/A-Container/A-Container.class';
2
- import { A_Scope } from '@adaas/a-concept/global/A-Scope/A-Scope.class';
3
- import { A_Concept, A_Feature } from '../src';
1
+ import { A_Concept } from '@adaas/a-concept/a-concept';
2
+ import { A_Container } from '@adaas/a-concept/a-container';
3
+ import { A_Feature } from '@adaas/a-concept/a-feature';
4
+ import { A_Scope } from '@adaas/a-concept/a-scope';
4
5
 
5
6
 
6
7
  describe('A-Container tests', () => {
@@ -1,4 +1,9 @@
1
- import { A_Component, A_Dependency, A_Entity, A_Error, A_Feature, A_FeatureError, A_Inject, A_Scope, A_ScopeError } from "../src";
1
+ import { A_Component } from "@adaas/a-concept/a-component";
2
+ import { A_Dependency } from "@adaas/a-concept/a-dependency";
3
+ import { A_Entity } from "@adaas/a-concept/a-entity";
4
+ import { A_Feature, A_FeatureError } from "@adaas/a-concept/a-feature";
5
+ import { A_Inject } from "@adaas/a-concept/a-inject";
6
+ import { A_Scope, A_ScopeError } from "@adaas/a-concept/a-scope";
2
7
 
3
8
 
4
9
 
@@ -1,9 +1,11 @@
1
1
  import { A_CONSTANTS__DEFAULT_ENV_VARIABLES } from "@adaas/a-concept/constants/env.constants";
2
- import { A_Context } from "@adaas/a-concept/global/A-Context/A-Context.class";
3
- import { A_Entity } from "@adaas/a-concept/global/A-Entity/A-Entity.class";
4
- import { A_TYPES__Entity_Serialized } from '@adaas/a-concept/global/A-Entity/A-Entity.types';
5
- import { A_Feature } from "@adaas/a-concept/global/A-Feature/A-Feature.class";
6
- import { ASEID } from '@adaas/a-concept/global/ASEID/ASEID.class';
2
+ import { A_Context } from "@adaas/a-concept/a-context";
3
+ import {
4
+ A_Entity,
5
+ A_TYPES__Entity_Serialized
6
+ } from "@adaas/a-concept/a-entity";
7
+ import { A_Feature } from "@adaas/a-concept/a-feature";
8
+ import { ASEID } from '@adaas/a-concept/aseid';
7
9
 
8
10
  jest.retryTimes(0);
9
11
 
@@ -1,8 +1,11 @@
1
1
  import { A_CONSTANTS__DEFAULT_ENV_VARIABLES } from "@adaas/a-concept/constants/env.constants";
2
- import { A_Context } from "@adaas/a-concept/global/A-Context/A-Context.class";
3
- import { A_Error } from "@adaas/a-concept/global/A-Error/A_Error.class";
4
- import { A_CONSTANTS__ERROR_CODES, A_CONSTANTS__ERROR_DESCRIPTION } from "@adaas/a-concept/global/A-Error/A_Error.constants";
5
- import { A_FormatterHelper } from "@adaas/a-concept/helpers/A_Formatter.helper";
2
+ import { A_Context } from "@adaas/a-concept/a-context";
3
+ import {
4
+ A_Error,
5
+ A_CONSTANTS__ERROR_CODES,
6
+ A_CONSTANTS__ERROR_DESCRIPTION
7
+ } from "@adaas/a-concept/a-error";
8
+ import { A_FormatterHelper} from "@adaas/a-concept/helpers/A_Formatter.helper";
6
9
 
7
10
  jest.retryTimes(0);
8
11
 
@@ -1,11 +1,15 @@
1
- import { A_Inject } from "@adaas/a-concept/global/A-Inject/A-Inject.decorator";
2
- import { A_Component } from "@adaas/a-concept/global/A-Component/A-Component.class";
3
- import { A_Feature } from "@adaas/a-concept/global/A-Feature/A-Feature.class";
4
- import { A_Scope } from "@adaas/a-concept/global/A-Scope/A-Scope.class";
5
- import { A_Caller } from '@adaas/a-concept/global/A-Caller/A_Caller.class';
6
- import { A_Context } from '@adaas/a-concept/global/A-Context/A-Context.class';
7
- import { A_TYPES__ComponentMetaKey } from '@adaas/a-concept/global/A-Component/A-Component.constants';
8
- import { A_Dependency, A_Entity, A_Error, A_TYPES__FeatureState } from "../src";
1
+ import { A_Inject } from "@adaas/a-concept/a-inject";
2
+ import {
3
+ A_Component,
4
+ A_TYPES__ComponentMetaKey
5
+ } from "@adaas/a-concept/a-component";
6
+ import { A_Feature, A_TYPES__FeatureState } from "@adaas/a-concept/a-feature";
7
+ import { A_Scope } from "@adaas/a-concept/a-scope";
8
+ import { A_Caller } from '@adaas/a-concept/a-caller';
9
+ import { A_Context } from '@adaas/a-concept/a-context';
10
+ import { A_Dependency } from "@adaas/a-concept/a-dependency";
11
+ import { A_Error } from "@adaas/a-concept/a-error";
12
+ import { A_Entity } from "@adaas/a-concept/a-entity";
9
13
 
10
14
  jest.retryTimes(0);
11
15
 
@@ -1,5 +1,4 @@
1
- import { A_Fragment } from "@adaas/a-concept/global/A-Fragment/A-Fragment.class";
2
- import { A_Scope } from "../src";
1
+ import { A_Fragment } from "@adaas/a-concept/a-fragment";
3
2
 
4
3
  jest.retryTimes(0);
5
4
 
@@ -1,4 +1,7 @@
1
- import { A_Component, A_Error, A_Inject, A_Scope } from "../src";
1
+ import { A_Component } from "@adaas/a-concept/a-component";
2
+ import { A_Error } from "@adaas/a-concept/a-error";
3
+ import { A_Inject } from "@adaas/a-concept/a-inject";
4
+ import { A_Scope } from "@adaas/a-concept/a-scope";
2
5
 
3
6
  jest.retryTimes(0);
4
7
 
@@ -1,12 +1,14 @@
1
- import { A_Component } from "@adaas/a-concept/global/A-Component/A-Component.class";
2
- import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/global/A-Component/A-Component.constants";
3
- import { A_ComponentMeta } from "@adaas/a-concept/global/A-Component/A-Component.meta";
4
- import { A_Concept } from "@adaas/a-concept/global/A-Concept/A-Concept.class";
5
- import { A_Context } from "@adaas/a-concept/global/A-Context/A-Context.class";
6
- import { A_Feature } from "@adaas/a-concept/global/A-Feature/A-Feature.class";
7
- import { A_Meta } from "@adaas/a-concept/global/A-Meta/A-Meta.class";
8
- import { A_Inject } from "@adaas/a-concept/global/A-Inject/A-Inject.decorator";
9
- import { A_TYPES__ComponentMeta } from "@adaas/a-concept/global/A-Component/A-Component.types";
1
+ import {
2
+ A_Component,
3
+ A_ComponentMeta,
4
+ A_TYPES__ComponentMeta,
5
+ A_TYPES__ComponentMetaKey
6
+ } from "@adaas/a-concept/a-component";
7
+ import { A_Concept } from "@adaas/a-concept/a-concept";
8
+ import { A_Context } from "@adaas/a-concept/a-context";
9
+ import { A_Feature } from "@adaas/a-concept/a-feature";
10
+ import { A_Meta } from "@adaas/a-concept/a-meta";
11
+ import { A_Inject } from "@adaas/a-concept/a-inject";
10
12
 
11
13
  jest.retryTimes(0);
12
14
 
@@ -144,7 +146,7 @@ describe('A-Meta tests', () => {
144
146
  @A_Meta.Define(CustomComponentMeta)
145
147
  class CustomComponent extends A_Component {
146
148
 
147
- static Test(){
149
+ static Test() {
148
150
 
149
151
  }
150
152
 
@@ -1,13 +1,14 @@
1
- import { A_Component } from "@adaas/a-concept/global/A-Component/A-Component.class";
2
- import { A_Concept } from '@adaas/a-concept/global/A-Concept/A-Concept.class';
3
- import { A_Container } from '@adaas/a-concept/global/A-Container/A-Container.class';
4
- import { A_Context } from '@adaas/a-concept/global/A-Context/A-Context.class';
5
- import { A_Entity } from "@adaas/a-concept/global/A-Entity/A-Entity.class";
6
- import { A_Feature } from '@adaas/a-concept/global/A-Feature/A-Feature.class';
7
- import { A_Fragment } from '@adaas/a-concept/global/A-Fragment/A-Fragment.class';
8
- import { A_Scope } from "@adaas/a-concept/global/A-Scope/A-Scope.class";
9
- import { ASEID } from '@adaas/a-concept/global/ASEID/ASEID.class';
10
- import { A_Dependency, A_Error } from '../src';
1
+ import { A_Component } from "@adaas/a-concept/a-component";
2
+ import { A_Concept } from '@adaas/a-concept/a-concept';
3
+ import { A_Container } from '@adaas/a-concept/a-container';
4
+ import { A_Context } from '@adaas/a-concept/a-context';
5
+ import { A_Entity } from "@adaas/a-concept/a-entity";
6
+ import { A_Feature } from '@adaas/a-concept/a-feature';
7
+ import { A_Fragment } from '@adaas/a-concept/a-fragment'
8
+ import { A_Scope } from "@adaas/a-concept/a-scope";
9
+ import { ASEID } from '@adaas/a-concept/aseid';
10
+ import { A_Dependency } from "@adaas/a-concept/a-dependency";
11
+ import { A_Error } from "@adaas/a-concept/a-error";
11
12
 
12
13
  jest.retryTimes(0);
13
14
 
@@ -1,6 +1,6 @@
1
- import { A_Component } from "@adaas/a-concept/global/A-Component/A-Component.class";
2
- import { A_Dependency } from "@adaas/a-concept/global/A-Dependency/A-Dependency.class";
3
- import { A_StepsManager } from "@adaas/a-concept/global/A-StepManager/A-StepManager.class";
1
+ import { A_Component } from "@adaas/a-concept/a-component";
2
+ import { A_Dependency } from "@adaas/a-concept/a-dependency";
3
+ import { A_StepsManager } from "@adaas/a-concept/a-step-manager";
4
4
 
5
5
  describe('A-StepManager tests', () => {
6
6
  it('Should Allow to create a step manager', async () => {
@@ -1,6 +1,6 @@
1
1
  import { A_CONSTANTS__DEFAULT_ENV_VARIABLES } from "@adaas/a-concept/constants/env.constants";
2
- import { A_Context } from '@adaas/a-concept/global/A-Context/A-Context.class';
3
- import { ASEID } from "@adaas/a-concept/global/ASEID/ASEID.class";
2
+ import { A_Context } from '@adaas/a-concept/a-context';
3
+ import { ASEID } from "@adaas/a-concept/aseid";
4
4
 
5
5
  jest.retryTimes(0);
6
6