dyo-tools 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.js +4 -4
- package/dist/constants.js.map +1 -1
- package/dist/core/DTAction.d.ts +10 -0
- package/dist/core/DTAction.js +24 -0
- package/dist/core/DTAction.js.map +1 -0
- package/dist/core/DTBunch.d.ts +6 -7
- package/dist/core/DTBunch.js +16 -13
- package/dist/core/DTBunch.js.map +1 -1
- package/dist/core/DTComponentPhysical.d.ts +6 -4
- package/dist/core/DTComponentPhysical.js +6 -0
- package/dist/core/DTComponentPhysical.js.map +1 -1
- package/dist/core/DTElement.d.ts +5 -0
- package/dist/core/DTElement.js +12 -2
- package/dist/core/DTElement.js.map +1 -1
- package/dist/core/DTManager.d.ts +3 -1
- package/dist/core/DTManager.js +24 -14
- package/dist/core/DTManager.js.map +1 -1
- package/dist/core/DTMaster.d.ts +24 -0
- package/dist/core/DTMaster.js +133 -0
- package/dist/core/DTMaster.js.map +1 -0
- package/dist/core/DTModule.d.ts +14 -0
- package/dist/core/DTModule.js +39 -0
- package/dist/core/DTModule.js.map +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/libs/player/DTPlayer.element.d.ts +5 -0
- package/dist/libs/player/DTPlayer.element.js +11 -0
- package/dist/libs/player/DTPlayer.element.js.map +1 -0
- package/dist/libs/player/DTPlayer.manager.d.ts +11 -0
- package/dist/libs/player/DTPlayer.manager.js +42 -0
- package/dist/libs/player/DTPlayer.manager.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/core.d.ts +103 -0
- package/dist/types/core.js +15 -0
- package/dist/types/core.js.map +1 -0
- package/dist/types/index.d.ts +2 -98
- package/dist/types/index.js +16 -12
- package/dist/types/index.js.map +1 -1
- package/dist/types/player.d.ts +5 -0
- package/dist/types/player.js +3 -0
- package/dist/types/player.js.map +1 -0
- package/docs/assets/highlight.css +29 -29
- package/docs/assets/main.js +59 -58
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +1414 -1367
- package/docs/classes/core_DTAction.DYOToolsAction.html +89 -0
- package/docs/classes/core_DTBunch.DYOToolsBunch.html +254 -0
- package/docs/classes/core_DTComponent.DYOToolsComponent.html +76 -0
- package/docs/classes/core_DTComponentPhysical.DYOToolsComponentPhysical.html +110 -0
- package/docs/classes/core_DTComponentWithMeta.DYOToolsComponentWithMeta.html +96 -0
- package/docs/classes/core_DTElement.DYOToolsElement.html +135 -0
- package/docs/classes/core_DTError.DYOToolsError.html +37 -0
- package/docs/classes/core_DTManager.DYOToolsManager.html +237 -0
- package/docs/classes/core_DTMaster.DYOToolsMaster.html +150 -0
- package/docs/classes/core_DTModule.DYOToolsModule.html +92 -0
- package/docs/classes/libs_DYOFinder.DYOFinder.html +34 -0
- package/docs/classes/libs_player_DTPlayer_element.DYOToolsPlayer.html +134 -0
- package/docs/classes/libs_player_DTPlayer_manager.DYOToolsPlayerManager.html +243 -0
- package/docs/enums/types_core.FilterOperatorType.html +10 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +1 -46
- package/docs/interfaces/types_core.DTBunchFilters.html +6 -0
- package/docs/interfaces/types_core.DTBunchOptions.html +19 -0
- package/docs/interfaces/types_core.DTBunchToObject.html +7 -0
- package/docs/interfaces/types_core.DTComponentOptions.html +5 -0
- package/docs/interfaces/types_core.DTComponentToObject.html +4 -0
- package/docs/interfaces/types_core.DTElementToObject.html +7 -0
- package/docs/interfaces/types_core.DTManagerFilters.html +6 -0
- package/docs/interfaces/types_core.DTManagerOptions.html +8 -0
- package/docs/interfaces/types_core.DTManagerToObject.html +5 -0
- package/docs/interfaces/types_core.DTMasterToObject.html +8 -0
- package/docs/interfaces/types_core.DTModuleToObject.html +6 -0
- package/docs/interfaces/types_core.DYOFinderConfigurationPropDefault.html +4 -0
- package/docs/interfaces/types_core.DYOFinderConfigurationPropObjectSearch.html +4 -0
- package/docs/interfaces/types_core.DYOFinderFilterOperatorAdvanced.html +5 -0
- package/docs/interfaces/types_core.DYOFinderFilterOperatorBase.html +5 -0
- package/docs/interfaces/types_player.DTPlayerManagerSimpleConfiguration.html +3 -0
- package/docs/modules/constants.html +6 -0
- package/docs/modules/core_DTAction.html +2 -0
- package/docs/modules/core_DTBunch.html +2 -0
- package/docs/modules/core_DTComponent.html +2 -0
- package/docs/modules/core_DTComponentPhysical.html +2 -0
- package/docs/modules/core_DTComponentWithMeta.html +2 -0
- package/docs/modules/core_DTElement.html +2 -0
- package/docs/modules/core_DTError.html +2 -0
- package/docs/modules/core_DTManager.html +2 -0
- package/docs/modules/core_DTMaster.html +2 -0
- package/docs/modules/core_DTModule.html +2 -0
- package/docs/modules/libs_DYOFinder.html +2 -0
- package/docs/modules/libs_player_DTPlayer_element.html +2 -0
- package/docs/modules/libs_player_DTPlayer_manager.html +2 -0
- package/docs/modules/types.html +29 -0
- package/docs/modules/types_core.html +28 -0
- package/docs/modules/types_player.html +2 -0
- package/docs/types/types_core.DTAcceptedMetaData.html +2 -0
- package/docs/types/types_core.DTManagerItemType.html +1 -0
- package/docs/types/types_core.DTManagerItemsType.html +2 -0
- package/docs/types/types_core.DYOFinderComponentType.html +1 -0
- package/docs/types/types_core.DYOFinderConfiguration.html +2 -0
- package/docs/types/types_core.DYOFinderConfigurationProp.html +1 -0
- package/docs/types/types_core.DYOFinderFilterOperator.html +1 -0
- package/docs/types/types_core.DYOFinderFilterOperatorArgument.html +1 -0
- package/docs/types/types_core.DYOFinderFilters.html +1 -0
- package/docs/types/types_core.StandardPrimitiveType.html +2 -0
- package/docs/types/types_core.StandardPrimitiveTypeWithArray.html +1 -0
- package/docs/variables/constants.bunchDefaultOptions.html +2 -0
- package/docs/variables/constants.componentBunchDefaultFinderConfiguration.html +1 -0
- package/docs/variables/constants.componentManagerDefaultFinderConfiguration.html +1 -0
- package/docs/variables/constants.componentPhysicalDefaultFinderConfiguration.html +1 -0
- package/docs/variables/constants.managerDefaultOptions.html +2 -0
- package/package.json +16 -17
- package/src/constants.ts +85 -85
- package/src/core/DTAction.ts +52 -0
- package/src/core/DTBunch.ts +467 -461
- package/src/core/DTComponent.ts +225 -225
- package/src/core/DTComponentPhysical.ts +53 -39
- package/src/core/DTComponentWithMeta.ts +65 -65
- package/src/core/DTElement.ts +102 -69
- package/src/core/DTError.ts +78 -78
- package/src/core/DTManager.ts +465 -446
- package/src/core/DTMaster.ts +318 -0
- package/src/core/DTModule.ts +90 -0
- package/src/index.ts +17 -9
- package/src/libs/DYOFinder.ts +175 -175
- package/src/libs/player/DTPlayer.element.ts +9 -0
- package/src/libs/player/DTPlayer.manager.ts +84 -0
- package/src/types/core.ts +169 -0
- package/src/types/index.ts +2 -162
- package/src/types/player.ts +6 -0
- package/test/core/DTAction.double.ts +78 -0
- package/test/core/DTAction.spec.ts +76 -0
- package/test/core/DTBunch.double.ts +18 -10
- package/test/core/DTBunch.spec.ts +70 -68
- package/test/core/DTComponentPhysical.double.ts +3 -3
- package/test/core/DTComponentPhysical.spec.ts +25 -11
- package/test/core/DTElement.double.ts +21 -5
- package/test/core/DTElement.spec.ts +52 -8
- package/test/core/DTError.double.ts +1 -1
- package/test/core/DTManager.double.ts +29 -5
- package/test/core/DTManager.spec.ts +80 -17
- package/test/core/DTMaster.double.ts +141 -0
- package/test/core/DTMaster.spec.ts +584 -0
- package/test/core/DTModule.double.ts +80 -0
- package/test/core/DTModule.spec.ts +138 -0
- package/test/core/copy.spec.ts +20 -4
- package/test/{core/DTPlayer.double.ts → libs/player/DTPlayer.element.double.ts} +15 -24
- package/test/libs/player/DTPlayer.element.spec.ts +28 -0
- package/test/libs/player/DTPlayer.manager.double.ts +92 -0
- package/test/libs/player/DTPlayer.manager.spec.ts +178 -0
- package/LICENSE +0 -21
- package/cucumber.js +0 -9
- package/dist/core/DTPlayer.d.ts +0 -8
- package/dist/core/DTPlayer.js +0 -30
- package/dist/core/DTPlayer.js.map +0 -1
- package/e2e/0.2.0/epic1.feature +0 -29
- package/e2e/0.2.0/epic2.feature +0 -22
- package/e2e/0.2.0/epic3.feature +0 -25
- package/e2e/0.2.0/resources/dominion.js +0 -195
- package/e2e/0.2.0/resources/utils.js +0 -27
- package/e2e/0.2.0/support/steps.js +0 -108
- package/e2e/future/epic4.feature +0 -39
- package/e2e/future/resources/dominion.js +0 -238
- package/e2e/future/resources/utils.js +0 -27
- package/src/core/DTPlayer.ts +0 -57
- package/test/core/DTPlayer.spec.ts +0 -80
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dyo-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
"test": "jest",
|
|
14
14
|
"test:coverage": "c8 --check-coverage npm test",
|
|
15
15
|
"test:coverage:verify": "c8 --check-coverage --lines 97 --functions 97 --branches 97 --statements 97 npm test",
|
|
16
|
-
"
|
|
17
|
-
"typedoc": "typedoc --tsconfig tsconfig.dev.json src/**/*.ts"
|
|
16
|
+
"typedoc": "typedoc --plugin typedoc-plugin-rename-defaults --entryPointStrategy expand ./src --exclude 'src/index.ts'"
|
|
18
17
|
},
|
|
19
18
|
"repository": {
|
|
20
19
|
"type": "git",
|
|
@@ -30,23 +29,23 @@
|
|
|
30
29
|
},
|
|
31
30
|
"homepage": "https://gitlab.com/dyo-system/dyo-tools#readme",
|
|
32
31
|
"devDependencies": {
|
|
33
|
-
"@babel/preset-env": "^7.
|
|
34
|
-
"@types/jest": "^
|
|
35
|
-
"@types/uuid": "^9.0.
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
37
|
-
"@typescript-eslint/parser": "^
|
|
38
|
-
"c8": "^
|
|
39
|
-
"eslint": "^8.
|
|
32
|
+
"@babel/preset-env": "^7.23.9",
|
|
33
|
+
"@types/jest": "^29.5.12",
|
|
34
|
+
"@types/uuid": "^9.0.8",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
36
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
37
|
+
"c8": "^9.1.0",
|
|
38
|
+
"eslint": "^8.56.0",
|
|
40
39
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
|
-
"eslint-config-airbnb-typescript": "^17.
|
|
42
|
-
"eslint-plugin-import": "^2.
|
|
43
|
-
"jest": "^
|
|
44
|
-
"ts-jest": "^
|
|
45
|
-
"typedoc": "^0.
|
|
40
|
+
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
41
|
+
"eslint-plugin-import": "^2.29.1",
|
|
42
|
+
"jest": "^29.7.0",
|
|
43
|
+
"ts-jest": "^29.1.2",
|
|
44
|
+
"typedoc": "^0.25.8",
|
|
45
|
+
"typedoc-plugin-rename-defaults": "^0.7.0",
|
|
46
46
|
"typescript": "4.8.4"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"
|
|
50
|
-
"uuid": "^9.0.0"
|
|
49
|
+
"uuid": "^9.0.1"
|
|
51
50
|
}
|
|
52
51
|
}
|
package/src/constants.ts
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DTAcceptedMetaData,
|
|
3
|
-
DTBunchOptions,
|
|
4
|
-
DTManagerOptions,
|
|
5
|
-
DYOFinderConfiguration,
|
|
6
|
-
FilterOperatorType,
|
|
7
|
-
StandardPrimitiveType,
|
|
8
|
-
} from './types';
|
|
9
|
-
import {
|
|
10
|
-
DTBunch, DTComponentPhysical, DTElement, DTManager,
|
|
11
|
-
} from './index';
|
|
12
|
-
|
|
13
|
-
/* ********************** CORE CONSTANTS ********************** */
|
|
14
|
-
/** DTBunch constants * */
|
|
15
|
-
export const bunchDefaultOptions: DTBunchOptions = {
|
|
16
|
-
errors: false,
|
|
17
|
-
uniqueKey: false,
|
|
18
|
-
inheritOwner: false,
|
|
19
|
-
replaceIndex: false,
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/** DTManager constants * */
|
|
24
|
-
export const managerDefaultOptions: DTManagerOptions = {
|
|
25
|
-
errors: false,
|
|
26
|
-
libraryDeletion: false,
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/** DYOFinder configuration constants * */
|
|
30
|
-
const baseOperators = [
|
|
31
|
-
FilterOperatorType.EQ,
|
|
32
|
-
FilterOperatorType.IN,
|
|
33
|
-
FilterOperatorType.NIN,
|
|
34
|
-
FilterOperatorType.NE,
|
|
35
|
-
];
|
|
36
|
-
const advancedOperators = [
|
|
37
|
-
...baseOperators,
|
|
38
|
-
FilterOperatorType.GTE,
|
|
39
|
-
FilterOperatorType.LTE,
|
|
40
|
-
FilterOperatorType.CONTAINS,
|
|
41
|
-
FilterOperatorType.NCONTAINS,
|
|
42
|
-
];
|
|
43
|
-
|
|
44
|
-
export const componentPhysicalDefaultFinderConfiguration: DYOFinderConfiguration = {
|
|
45
|
-
id: {
|
|
46
|
-
operators: baseOperators,
|
|
47
|
-
getValue: (item: DTComponentPhysical<DTAcceptedMetaData>) => item.getId(),
|
|
48
|
-
objectSearch: false,
|
|
49
|
-
},
|
|
50
|
-
key: {
|
|
51
|
-
operators: baseOperators,
|
|
52
|
-
getValue: (item: DTComponentPhysical<DTAcceptedMetaData>) => item.getKey(),
|
|
53
|
-
objectSearch: false,
|
|
54
|
-
},
|
|
55
|
-
owner: {
|
|
56
|
-
operators: baseOperators,
|
|
57
|
-
getValue: (item: DTComponentPhysical<DTAcceptedMetaData>) =>
|
|
58
|
-
objectSearch: false,
|
|
59
|
-
},
|
|
60
|
-
meta: {
|
|
61
|
-
operators: advancedOperators,
|
|
62
|
-
getValue: (item: DTComponentPhysical<DTAcceptedMetaData>) => item.getManyMeta(),
|
|
63
|
-
objectSearch: true,
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export const componentManagerDefaultFinderConfiguration: DYOFinderConfiguration = {
|
|
68
|
-
...componentPhysicalDefaultFinderConfiguration,
|
|
69
|
-
scope: {
|
|
70
|
-
operators: baseOperators,
|
|
71
|
-
getValue(item: DTBunch<DTElement<DTAcceptedMetaData>>, ctx: DTManager<DTElement<DTAcceptedMetaData>>): StandardPrimitiveType {
|
|
72
|
-
return ctx.getScope(item.getId());
|
|
73
|
-
},
|
|
74
|
-
objectSearch: false,
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export const componentBunchDefaultFinderConfiguration: DYOFinderConfiguration = {
|
|
79
|
-
...componentPhysicalDefaultFinderConfiguration,
|
|
80
|
-
|
|
81
|
-
operators: baseOperators,
|
|
82
|
-
getValue: (item:
|
|
83
|
-
objectSearch: false,
|
|
84
|
-
},
|
|
85
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
DTAcceptedMetaData,
|
|
3
|
+
DTBunchOptions,
|
|
4
|
+
DTManagerOptions,
|
|
5
|
+
DYOFinderConfiguration,
|
|
6
|
+
FilterOperatorType,
|
|
7
|
+
StandardPrimitiveType,
|
|
8
|
+
} from './types';
|
|
9
|
+
import {
|
|
10
|
+
DTBunch, DTComponentPhysical, DTElement, DTManager,
|
|
11
|
+
} from './index';
|
|
12
|
+
|
|
13
|
+
/* ********************** CORE CONSTANTS ********************** */
|
|
14
|
+
/** DTBunch constants * */
|
|
15
|
+
export const bunchDefaultOptions: DTBunchOptions = {
|
|
16
|
+
errors: false,
|
|
17
|
+
uniqueKey: false,
|
|
18
|
+
inheritOwner: false,
|
|
19
|
+
replaceIndex: false,
|
|
20
|
+
virtualContainer: false,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** DTManager constants * */
|
|
24
|
+
export const managerDefaultOptions: DTManagerOptions = {
|
|
25
|
+
errors: false,
|
|
26
|
+
libraryDeletion: false,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** DYOFinder configuration constants * */
|
|
30
|
+
const baseOperators = [
|
|
31
|
+
FilterOperatorType.EQ,
|
|
32
|
+
FilterOperatorType.IN,
|
|
33
|
+
FilterOperatorType.NIN,
|
|
34
|
+
FilterOperatorType.NE,
|
|
35
|
+
];
|
|
36
|
+
const advancedOperators = [
|
|
37
|
+
...baseOperators,
|
|
38
|
+
FilterOperatorType.GTE,
|
|
39
|
+
FilterOperatorType.LTE,
|
|
40
|
+
FilterOperatorType.CONTAINS,
|
|
41
|
+
FilterOperatorType.NCONTAINS,
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
export const componentPhysicalDefaultFinderConfiguration: DYOFinderConfiguration = {
|
|
45
|
+
id: {
|
|
46
|
+
operators: baseOperators,
|
|
47
|
+
getValue: (item: DTComponentPhysical<DTAcceptedMetaData>) => item.getId(),
|
|
48
|
+
objectSearch: false,
|
|
49
|
+
},
|
|
50
|
+
key: {
|
|
51
|
+
operators: baseOperators,
|
|
52
|
+
getValue: (item: DTComponentPhysical<DTAcceptedMetaData>) => item.getKey(),
|
|
53
|
+
objectSearch: false,
|
|
54
|
+
},
|
|
55
|
+
owner: {
|
|
56
|
+
operators: baseOperators,
|
|
57
|
+
getValue: (item: DTComponentPhysical<DTAcceptedMetaData>) => item.getOwner(),
|
|
58
|
+
objectSearch: false,
|
|
59
|
+
},
|
|
60
|
+
meta: {
|
|
61
|
+
operators: advancedOperators,
|
|
62
|
+
getValue: (item: DTComponentPhysical<DTAcceptedMetaData>) => item.getManyMeta(),
|
|
63
|
+
objectSearch: true,
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const componentManagerDefaultFinderConfiguration: DYOFinderConfiguration = {
|
|
68
|
+
...componentPhysicalDefaultFinderConfiguration,
|
|
69
|
+
scope: {
|
|
70
|
+
operators: baseOperators,
|
|
71
|
+
getValue(item: DTBunch<DTElement<DTAcceptedMetaData>>, ctx: DTManager<DTElement<DTAcceptedMetaData>>): StandardPrimitiveType {
|
|
72
|
+
return ctx.getScope(item.getId());
|
|
73
|
+
},
|
|
74
|
+
objectSearch: false,
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const componentBunchDefaultFinderConfiguration: DYOFinderConfiguration = {
|
|
79
|
+
...componentPhysicalDefaultFinderConfiguration,
|
|
80
|
+
container: {
|
|
81
|
+
operators: baseOperators,
|
|
82
|
+
getValue: (item: DTElement<DTAcceptedMetaData>) => (item.getContainer() ? item.getContainer().getId() : null),
|
|
83
|
+
objectSearch: false,
|
|
84
|
+
},
|
|
85
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import DYOToolsComponent from './DTComponent';
|
|
2
|
+
import { DTComponentToObject } from '../types';
|
|
3
|
+
import DYOToolsMaster from './DTMaster';
|
|
4
|
+
|
|
5
|
+
export default abstract class DYOToolsAction<Payload = unknown> extends DYOToolsComponent {
|
|
6
|
+
/**
|
|
7
|
+
* Defining component type to "action".
|
|
8
|
+
*/
|
|
9
|
+
protected _componentType: string = 'action';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Returns Master component from context, or undefined.
|
|
13
|
+
*/
|
|
14
|
+
getMaster(): DYOToolsMaster | undefined {
|
|
15
|
+
return this.getContext<DYOToolsMaster>('master');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Abstract method for action execution process.
|
|
20
|
+
*
|
|
21
|
+
* @param payload Object Payload to pass for action execution.
|
|
22
|
+
* @returns Promise
|
|
23
|
+
*/
|
|
24
|
+
abstract execute(payload: Payload): Promise<void>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Return String representation of the Action instance.
|
|
28
|
+
*
|
|
29
|
+
* @returns String representation of the Action.
|
|
30
|
+
*/
|
|
31
|
+
toString(): string {
|
|
32
|
+
return `Component ${this._key} - Type: Action`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Return JSON Object representation of the Action instance.
|
|
37
|
+
*
|
|
38
|
+
* JSON Object returned has the following structure :
|
|
39
|
+
* * **id** : _id property of the Action.
|
|
40
|
+
* * **key** : _key property of the Action.
|
|
41
|
+
* * **type** : _componentType property of the Action.
|
|
42
|
+
*
|
|
43
|
+
* @returns JSON Object representation of the Action.
|
|
44
|
+
*/
|
|
45
|
+
toObject(): DTComponentToObject {
|
|
46
|
+
return {
|
|
47
|
+
id: this._id,
|
|
48
|
+
key: this._key,
|
|
49
|
+
type: this._componentType,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|