@quadnix/octo 0.0.19 → 0.0.21
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/app.type.d.ts +5 -0
- package/dist/app.type.js +6 -0
- package/dist/app.type.js.map +1 -1
- package/dist/decorators/action.decorator.d.ts +17 -0
- package/dist/decorators/action.decorator.js +26 -1
- package/dist/decorators/action.decorator.js.map +1 -1
- package/dist/decorators/anchor.decorator.d.ts +13 -0
- package/dist/decorators/anchor.decorator.js +16 -1
- package/dist/decorators/anchor.decorator.js.map +1 -1
- package/dist/decorators/container.d.ts +61 -0
- package/dist/decorators/container.js +68 -3
- package/dist/decorators/container.js.map +1 -1
- package/dist/decorators/enable-hook.decorator.d.ts +14 -0
- package/dist/decorators/enable-hook.decorator.js +14 -0
- package/dist/decorators/enable-hook.decorator.js.map +1 -1
- package/dist/decorators/event-source.decorator.d.ts +18 -0
- package/dist/decorators/event-source.decorator.js +22 -0
- package/dist/decorators/event-source.decorator.js.map +1 -0
- package/dist/decorators/factory.decorator.d.ts +30 -0
- package/dist/decorators/factory.decorator.js +30 -0
- package/dist/decorators/factory.decorator.js.map +1 -1
- package/dist/decorators/model.decorator.d.ts +13 -0
- package/dist/decorators/model.decorator.js +16 -1
- package/dist/decorators/model.decorator.js.map +1 -1
- package/dist/decorators/module.decorator.d.ts +52 -0
- package/dist/decorators/module.decorator.js +60 -1
- package/dist/decorators/module.decorator.js.map +1 -1
- package/dist/decorators/on-event.decorator.d.ts +20 -0
- package/dist/decorators/on-event.decorator.js +24 -0
- package/dist/decorators/on-event.decorator.js.map +1 -0
- package/dist/decorators/overlay.decorator.d.ts +13 -0
- package/dist/decorators/overlay.decorator.js +16 -1
- package/dist/decorators/overlay.decorator.js.map +1 -1
- package/dist/decorators/resource.decorator.d.ts +13 -0
- package/dist/decorators/resource.decorator.js +16 -1
- package/dist/decorators/resource.decorator.js.map +1 -1
- package/dist/decorators/test-container.d.ts +52 -0
- package/dist/decorators/test-container.js +54 -2
- package/dist/decorators/test-container.js.map +1 -1
- package/dist/decorators/validate.decorator.d.ts +9 -0
- package/dist/decorators/validate.decorator.js +23 -0
- package/dist/decorators/validate.decorator.js.map +1 -0
- package/dist/events/error.event.d.ts +35 -0
- package/dist/events/error.event.js +36 -0
- package/dist/events/error.event.js.map +1 -0
- package/dist/events/event.model.d.ts +37 -0
- package/dist/events/event.model.js +43 -0
- package/dist/events/event.model.js.map +1 -0
- package/dist/events/hook.event.d.ts +194 -0
- package/dist/events/hook.event.js +195 -0
- package/dist/events/hook.event.js.map +1 -0
- package/dist/events/module.event.d.ts +15 -0
- package/dist/events/module.event.js +16 -0
- package/dist/events/module.event.js.map +1 -0
- package/dist/events/registration.event.d.ts +112 -0
- package/dist/events/registration.event.js +170 -0
- package/dist/events/registration.event.js.map +1 -0
- package/dist/events/serialization.event.d.ts +72 -0
- package/dist/events/serialization.event.js +73 -0
- package/dist/events/serialization.event.js.map +1 -0
- package/dist/events/transaction.event.d.ts +48 -0
- package/dist/events/transaction.event.js +49 -0
- package/dist/events/transaction.event.js.map +1 -0
- package/dist/functions/dependency/dependency.js +1 -8
- package/dist/functions/dependency/dependency.js.map +1 -1
- package/dist/functions/diff/diff-metadata.d.ts +3 -0
- package/dist/functions/diff/diff-metadata.js +5 -10
- package/dist/functions/diff/diff-metadata.js.map +1 -1
- package/dist/functions/diff/diff.d.ts +3 -0
- package/dist/functions/diff/diff.js +3 -4
- package/dist/functions/diff/diff.js.map +1 -1
- package/dist/functions/diff/diff.utility.d.ts +32 -0
- package/dist/functions/diff/diff.utility.js +49 -0
- package/dist/functions/diff/diff.utility.js.map +1 -1
- package/dist/functions/hook/commit.hook.js +11 -3
- package/dist/functions/hook/commit.hook.js.map +1 -1
- package/dist/functions/hook/model-action.hook.js +11 -3
- package/dist/functions/hook/model-action.hook.js.map +1 -1
- package/dist/functions/hook/resource-action.hook.js +11 -3
- package/dist/functions/hook/resource-action.hook.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +11 -2
- package/dist/main.js +34 -16
- package/dist/main.js.map +1 -1
- package/dist/models/app/app.interface.d.ts +5 -0
- package/dist/models/app/app.model.d.ts +29 -0
- package/dist/models/app/app.model.js +40 -3
- package/dist/models/app/app.model.js.map +1 -1
- package/dist/models/deployment/deployment.interface.d.ts +5 -0
- package/dist/models/deployment/deployment.model.d.ts +15 -0
- package/dist/models/deployment/deployment.model.js +20 -3
- package/dist/models/deployment/deployment.model.js.map +1 -1
- package/dist/models/environment/environment.interface.d.ts +5 -0
- package/dist/models/environment/environment.model.d.ts +18 -0
- package/dist/models/environment/environment.model.js +33 -4
- package/dist/models/environment/environment.model.js.map +1 -1
- package/dist/models/execution/execution.interface.d.ts +5 -0
- package/dist/models/execution/execution.model.d.ts +23 -0
- package/dist/models/execution/execution.model.js +39 -2
- package/dist/models/execution/execution.model.js.map +1 -1
- package/dist/models/image/image.interface.d.ts +5 -0
- package/dist/models/image/image.model.d.ts +35 -0
- package/dist/models/image/image.model.js +25 -6
- package/dist/models/image/image.model.js.map +1 -1
- package/dist/models/model-action.interface.d.ts +21 -0
- package/dist/models/model.abstract.d.ts +265 -0
- package/dist/models/model.abstract.js +274 -5
- package/dist/models/model.abstract.js.map +1 -1
- package/dist/models/model.interface.d.ts +25 -0
- package/dist/models/pipeline/pipeline.interface.d.ts +5 -0
- package/dist/models/pipeline/pipeline.model.d.ts +15 -0
- package/dist/models/pipeline/pipeline.model.js +25 -4
- package/dist/models/pipeline/pipeline.model.js.map +1 -1
- package/dist/models/region/region.interface.d.ts +5 -0
- package/dist/models/region/region.model.d.ts +18 -0
- package/dist/models/region/region.model.js +29 -3
- package/dist/models/region/region.model.js.map +1 -1
- package/dist/models/server/server.interface.d.ts +5 -0
- package/dist/models/server/server.model.d.ts +17 -0
- package/dist/models/server/server.model.js +24 -3
- package/dist/models/server/server.model.js.map +1 -1
- package/dist/models/service/service.interface.d.ts +5 -0
- package/dist/models/service/service.model.d.ts +15 -0
- package/dist/models/service/service.model.js +19 -2
- package/dist/models/service/service.model.js.map +1 -1
- package/dist/models/subnet/subnet.interface.d.ts +5 -0
- package/dist/models/subnet/subnet.model.d.ts +48 -0
- package/dist/models/subnet/subnet.model.js +52 -7
- package/dist/models/subnet/subnet.model.js.map +1 -1
- package/dist/modules/module.container.d.ts +2 -0
- package/dist/modules/module.container.js +22 -10
- package/dist/modules/module.container.js.map +1 -1
- package/dist/modules/test-module.container.d.ts +4 -3
- package/dist/modules/test-module.container.js +13 -10
- package/dist/modules/test-module.container.js.map +1 -1
- package/dist/overlays/anchor.abstract.js +0 -3
- package/dist/overlays/anchor.abstract.js.map +1 -1
- package/dist/overlays/overlay-data.repository.js +0 -3
- package/dist/overlays/overlay-data.repository.js.map +1 -1
- package/dist/overlays/overlay.abstract.js +3 -3
- package/dist/overlays/overlay.abstract.js.map +1 -1
- package/dist/overlays/overlay.service.js +0 -2
- package/dist/overlays/overlay.service.js.map +1 -1
- package/dist/resources/resource-data.repository.js +6 -3
- package/dist/resources/resource-data.repository.js.map +1 -1
- package/dist/resources/resource.abstract.js +4 -4
- package/dist/resources/resource.abstract.js.map +1 -1
- package/dist/resources/shared-resource.abstract.js +4 -1
- package/dist/resources/shared-resource.abstract.js.map +1 -1
- package/dist/services/capture/capture.service.js +3 -2
- package/dist/services/capture/capture.service.js.map +1 -1
- package/dist/services/event/event.service.d.ts +17 -0
- package/dist/services/event/event.service.js +92 -0
- package/dist/services/event/event.service.js.map +1 -0
- package/dist/services/input/input.service.js +1 -3
- package/dist/services/input/input.service.js.map +1 -1
- package/dist/services/serialization/model/model-serialization.service.d.ts +1 -1
- package/dist/services/serialization/model/model-serialization.service.js +28 -5
- package/dist/services/serialization/model/model-serialization.service.js.map +1 -1
- package/dist/services/serialization/resource/resource-serialization.service.js +32 -4
- package/dist/services/serialization/resource/resource-serialization.service.js.map +1 -1
- package/dist/services/state-management/local.state-provider.js +0 -1
- package/dist/services/state-management/local.state-provider.js.map +1 -1
- package/dist/services/state-management/state-management.service.js +0 -2
- package/dist/services/state-management/state-management.service.js.map +1 -1
- package/dist/services/state-management/test.state-provider.js +3 -1
- package/dist/services/state-management/test.state-provider.js.map +1 -1
- package/dist/services/transaction/transaction.service.d.ts +4 -0
- package/dist/services/transaction/transaction.service.js +69 -9
- package/dist/services/transaction/transaction.service.js.map +1 -1
- package/dist/services/validation/validation.service.d.ts +19 -0
- package/dist/services/validation/validation.service.js +66 -0
- package/dist/services/validation/validation.service.js.map +1 -0
- package/dist/utilities/object/object.utility.js +1 -0
- package/dist/utilities/object/object.utility.js.map +1 -1
- package/dist/utilities/validation/validation.utility.d.ts +5 -0
- package/dist/utilities/validation/validation.utility.js +12 -0
- package/dist/utilities/validation/validation.utility.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { Event } from './event.model.js';
|
|
2
|
+
/**
|
|
3
|
+
* The HookEvent class is the superclass for all events emitting in relation to hooks.
|
|
4
|
+
*
|
|
5
|
+
* :::warning Warning
|
|
6
|
+
* It is not a good practice to create an event from this class directly,
|
|
7
|
+
* but should rather create one from one of the subclasses.
|
|
8
|
+
* This promotes a more accurate classification of events.
|
|
9
|
+
* :::
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const myEvent = new HookEvent();
|
|
14
|
+
* EventService.getInstance().emit(myEvent);
|
|
15
|
+
* ```
|
|
16
|
+
* @group Events
|
|
17
|
+
* @returns The Event instance.
|
|
18
|
+
*/
|
|
19
|
+
export declare class HookEvent extends Event<void> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The CommitHookEvent class is the superclass for all events emitting in relation to commit hooks.
|
|
23
|
+
*
|
|
24
|
+
* :::warning Warning
|
|
25
|
+
* It is not a good practice to create an event from this class directly,
|
|
26
|
+
* but should rather create one from one of the subclasses.
|
|
27
|
+
* This promotes a more accurate classification of events.
|
|
28
|
+
* :::
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const myEvent = new CommitHookEvent();
|
|
33
|
+
* EventService.getInstance().emit(myEvent);
|
|
34
|
+
* ```
|
|
35
|
+
* @group Events
|
|
36
|
+
* @returns The Event instance.
|
|
37
|
+
*/
|
|
38
|
+
export declare class CommitHookEvent extends HookEvent {
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The ModelActionHookEvent class is the superclass for all events emitting in relation to model action hooks.
|
|
42
|
+
*
|
|
43
|
+
* :::warning Warning
|
|
44
|
+
* It is not a good practice to create an event from this class directly,
|
|
45
|
+
* but should rather create one from one of the subclasses.
|
|
46
|
+
* This promotes a more accurate classification of events.
|
|
47
|
+
* :::
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const myEvent = new ModelActionHookEvent();
|
|
52
|
+
* EventService.getInstance().emit(myEvent);
|
|
53
|
+
* ```
|
|
54
|
+
* @group Events
|
|
55
|
+
* @returns The Event instance.
|
|
56
|
+
*/
|
|
57
|
+
export declare class ModelActionHookEvent extends HookEvent {
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The ResourceActionHookEvent class is the superclass for all events emitting in relation to resource action hooks.
|
|
61
|
+
*
|
|
62
|
+
* :::warning Warning
|
|
63
|
+
* It is not a good practice to create an event from this class directly,
|
|
64
|
+
* but should rather create one from one of the subclasses.
|
|
65
|
+
* This promotes a more accurate classification of events.
|
|
66
|
+
* :::
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const myEvent = new ResourceActionHookEvent();
|
|
71
|
+
* EventService.getInstance().emit(myEvent);
|
|
72
|
+
* ```
|
|
73
|
+
* @group Events
|
|
74
|
+
* @returns The Event instance.
|
|
75
|
+
*/
|
|
76
|
+
export declare class ResourceActionHookEvent extends HookEvent {
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* This hook event is emitted when the base decorated method is done executing.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const myEvent = new CommitHookCallbackDoneEvent();
|
|
84
|
+
* EventService.getInstance().emit(myEvent);
|
|
85
|
+
* ```
|
|
86
|
+
* @group Events
|
|
87
|
+
* @returns The Event instance.
|
|
88
|
+
*/
|
|
89
|
+
export declare class CommitHookCallbackDoneEvent extends CommitHookEvent {
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* This hook event is emitted when the base decorated method is done executing.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* const myEvent = new ModelActionHookCallbackDoneEvent();
|
|
97
|
+
* EventService.getInstance().emit(myEvent);
|
|
98
|
+
* ```
|
|
99
|
+
* @group Events
|
|
100
|
+
* @returns The Event instance.
|
|
101
|
+
*/
|
|
102
|
+
export declare class ModelActionHookCallbackDoneEvent extends ModelActionHookEvent {
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* This hook event is emitted when the base decorated method is done executing.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* const myEvent = new ResourceActionHookCallbackDoneEvent();
|
|
110
|
+
* EventService.getInstance().emit(myEvent);
|
|
111
|
+
* ```
|
|
112
|
+
* @group Events
|
|
113
|
+
* @returns The Event instance.
|
|
114
|
+
*/
|
|
115
|
+
export declare class ResourceActionHookCallbackDoneEvent extends ResourceActionHookEvent {
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* This hook event is emitted when a post-commit hook callback is done executing.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```ts
|
|
122
|
+
* const myEvent = new PostCommitHookCallbackDoneEvent();
|
|
123
|
+
* EventService.getInstance().emit(myEvent);
|
|
124
|
+
* ```
|
|
125
|
+
* @group Events
|
|
126
|
+
* @returns The Event instance.
|
|
127
|
+
*/
|
|
128
|
+
export declare class PostCommitHookCallbackDoneEvent extends CommitHookEvent {
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* This hook event is emitted when a post-model action hook callback is done executing.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```ts
|
|
135
|
+
* const myEvent = new PostModelActionHookCallbackDoneEvent();
|
|
136
|
+
* EventService.getInstance().emit(myEvent);
|
|
137
|
+
* ```
|
|
138
|
+
* @group Events
|
|
139
|
+
* @returns The Event instance.
|
|
140
|
+
*/
|
|
141
|
+
export declare class PostModelActionHookCallbackDoneEvent extends ModelActionHookEvent {
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* This hook event is emitted when a post-resource action hook callback is done executing.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* ```ts
|
|
148
|
+
* const myEvent = new PostResourceActionHookCallbackDoneEvent();
|
|
149
|
+
* EventService.getInstance().emit(myEvent);
|
|
150
|
+
* ```
|
|
151
|
+
* @group Events
|
|
152
|
+
* @returns The Event instance.
|
|
153
|
+
*/
|
|
154
|
+
export declare class PostResourceActionHookCallbackDoneEvent extends ResourceActionHookEvent {
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* This hook event is emitted when a pre-commit hook callback is done executing.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```ts
|
|
161
|
+
* const myEvent = new PreCommitHookCallbackDoneEvent();
|
|
162
|
+
* EventService.getInstance().emit(myEvent);
|
|
163
|
+
* ```
|
|
164
|
+
* @group Events
|
|
165
|
+
* @returns The Event instance.
|
|
166
|
+
*/
|
|
167
|
+
export declare class PreCommitHookCallbackDoneEvent extends CommitHookEvent {
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* This hook event is emitted when a pre-model action hook callback is done executing.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```ts
|
|
174
|
+
* const myEvent = new PreModelActionHookCallbackDoneEvent();
|
|
175
|
+
* EventService.getInstance().emit(myEvent);
|
|
176
|
+
* ```
|
|
177
|
+
* @group Events
|
|
178
|
+
* @returns The Event instance.
|
|
179
|
+
*/
|
|
180
|
+
export declare class PreModelActionHookCallbackDoneEvent extends ModelActionHookEvent {
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* This hook event is emitted when a pre-resource action hook callback is done executing.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```ts
|
|
187
|
+
* const myEvent = new PreResourceActionHookCallbackDoneEvent();
|
|
188
|
+
* EventService.getInstance().emit(myEvent);
|
|
189
|
+
* ```
|
|
190
|
+
* @group Events
|
|
191
|
+
* @returns The Event instance.
|
|
192
|
+
*/
|
|
193
|
+
export declare class PreResourceActionHookCallbackDoneEvent extends ResourceActionHookEvent {
|
|
194
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { Event } from './event.model.js';
|
|
2
|
+
/**
|
|
3
|
+
* The HookEvent class is the superclass for all events emitting in relation to hooks.
|
|
4
|
+
*
|
|
5
|
+
* :::warning Warning
|
|
6
|
+
* It is not a good practice to create an event from this class directly,
|
|
7
|
+
* but should rather create one from one of the subclasses.
|
|
8
|
+
* This promotes a more accurate classification of events.
|
|
9
|
+
* :::
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const myEvent = new HookEvent();
|
|
14
|
+
* EventService.getInstance().emit(myEvent);
|
|
15
|
+
* ```
|
|
16
|
+
* @group Events
|
|
17
|
+
* @returns The Event instance.
|
|
18
|
+
*/
|
|
19
|
+
export class HookEvent extends Event {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The CommitHookEvent class is the superclass for all events emitting in relation to commit hooks.
|
|
23
|
+
*
|
|
24
|
+
* :::warning Warning
|
|
25
|
+
* It is not a good practice to create an event from this class directly,
|
|
26
|
+
* but should rather create one from one of the subclasses.
|
|
27
|
+
* This promotes a more accurate classification of events.
|
|
28
|
+
* :::
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const myEvent = new CommitHookEvent();
|
|
33
|
+
* EventService.getInstance().emit(myEvent);
|
|
34
|
+
* ```
|
|
35
|
+
* @group Events
|
|
36
|
+
* @returns The Event instance.
|
|
37
|
+
*/
|
|
38
|
+
export class CommitHookEvent extends HookEvent {
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The ModelActionHookEvent class is the superclass for all events emitting in relation to model action hooks.
|
|
42
|
+
*
|
|
43
|
+
* :::warning Warning
|
|
44
|
+
* It is not a good practice to create an event from this class directly,
|
|
45
|
+
* but should rather create one from one of the subclasses.
|
|
46
|
+
* This promotes a more accurate classification of events.
|
|
47
|
+
* :::
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const myEvent = new ModelActionHookEvent();
|
|
52
|
+
* EventService.getInstance().emit(myEvent);
|
|
53
|
+
* ```
|
|
54
|
+
* @group Events
|
|
55
|
+
* @returns The Event instance.
|
|
56
|
+
*/
|
|
57
|
+
export class ModelActionHookEvent extends HookEvent {
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The ResourceActionHookEvent class is the superclass for all events emitting in relation to resource action hooks.
|
|
61
|
+
*
|
|
62
|
+
* :::warning Warning
|
|
63
|
+
* It is not a good practice to create an event from this class directly,
|
|
64
|
+
* but should rather create one from one of the subclasses.
|
|
65
|
+
* This promotes a more accurate classification of events.
|
|
66
|
+
* :::
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const myEvent = new ResourceActionHookEvent();
|
|
71
|
+
* EventService.getInstance().emit(myEvent);
|
|
72
|
+
* ```
|
|
73
|
+
* @group Events
|
|
74
|
+
* @returns The Event instance.
|
|
75
|
+
*/
|
|
76
|
+
export class ResourceActionHookEvent extends HookEvent {
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* This hook event is emitted when the base decorated method is done executing.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const myEvent = new CommitHookCallbackDoneEvent();
|
|
84
|
+
* EventService.getInstance().emit(myEvent);
|
|
85
|
+
* ```
|
|
86
|
+
* @group Events
|
|
87
|
+
* @returns The Event instance.
|
|
88
|
+
*/
|
|
89
|
+
export class CommitHookCallbackDoneEvent extends CommitHookEvent {
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* This hook event is emitted when the base decorated method is done executing.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* const myEvent = new ModelActionHookCallbackDoneEvent();
|
|
97
|
+
* EventService.getInstance().emit(myEvent);
|
|
98
|
+
* ```
|
|
99
|
+
* @group Events
|
|
100
|
+
* @returns The Event instance.
|
|
101
|
+
*/
|
|
102
|
+
export class ModelActionHookCallbackDoneEvent extends ModelActionHookEvent {
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* This hook event is emitted when the base decorated method is done executing.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* const myEvent = new ResourceActionHookCallbackDoneEvent();
|
|
110
|
+
* EventService.getInstance().emit(myEvent);
|
|
111
|
+
* ```
|
|
112
|
+
* @group Events
|
|
113
|
+
* @returns The Event instance.
|
|
114
|
+
*/
|
|
115
|
+
export class ResourceActionHookCallbackDoneEvent extends ResourceActionHookEvent {
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* This hook event is emitted when a post-commit hook callback is done executing.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```ts
|
|
122
|
+
* const myEvent = new PostCommitHookCallbackDoneEvent();
|
|
123
|
+
* EventService.getInstance().emit(myEvent);
|
|
124
|
+
* ```
|
|
125
|
+
* @group Events
|
|
126
|
+
* @returns The Event instance.
|
|
127
|
+
*/
|
|
128
|
+
export class PostCommitHookCallbackDoneEvent extends CommitHookEvent {
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* This hook event is emitted when a post-model action hook callback is done executing.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```ts
|
|
135
|
+
* const myEvent = new PostModelActionHookCallbackDoneEvent();
|
|
136
|
+
* EventService.getInstance().emit(myEvent);
|
|
137
|
+
* ```
|
|
138
|
+
* @group Events
|
|
139
|
+
* @returns The Event instance.
|
|
140
|
+
*/
|
|
141
|
+
export class PostModelActionHookCallbackDoneEvent extends ModelActionHookEvent {
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* This hook event is emitted when a post-resource action hook callback is done executing.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* ```ts
|
|
148
|
+
* const myEvent = new PostResourceActionHookCallbackDoneEvent();
|
|
149
|
+
* EventService.getInstance().emit(myEvent);
|
|
150
|
+
* ```
|
|
151
|
+
* @group Events
|
|
152
|
+
* @returns The Event instance.
|
|
153
|
+
*/
|
|
154
|
+
export class PostResourceActionHookCallbackDoneEvent extends ResourceActionHookEvent {
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* This hook event is emitted when a pre-commit hook callback is done executing.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```ts
|
|
161
|
+
* const myEvent = new PreCommitHookCallbackDoneEvent();
|
|
162
|
+
* EventService.getInstance().emit(myEvent);
|
|
163
|
+
* ```
|
|
164
|
+
* @group Events
|
|
165
|
+
* @returns The Event instance.
|
|
166
|
+
*/
|
|
167
|
+
export class PreCommitHookCallbackDoneEvent extends CommitHookEvent {
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* This hook event is emitted when a pre-model action hook callback is done executing.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```ts
|
|
174
|
+
* const myEvent = new PreModelActionHookCallbackDoneEvent();
|
|
175
|
+
* EventService.getInstance().emit(myEvent);
|
|
176
|
+
* ```
|
|
177
|
+
* @group Events
|
|
178
|
+
* @returns The Event instance.
|
|
179
|
+
*/
|
|
180
|
+
export class PreModelActionHookCallbackDoneEvent extends ModelActionHookEvent {
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* This hook event is emitted when a pre-resource action hook callback is done executing.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```ts
|
|
187
|
+
* const myEvent = new PreResourceActionHookCallbackDoneEvent();
|
|
188
|
+
* EventService.getInstance().emit(myEvent);
|
|
189
|
+
* ```
|
|
190
|
+
* @group Events
|
|
191
|
+
* @returns The Event instance.
|
|
192
|
+
*/
|
|
193
|
+
export class PreResourceActionHookCallbackDoneEvent extends ResourceActionHookEvent {
|
|
194
|
+
}
|
|
195
|
+
//# sourceMappingURL=hook.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook.event.js","sourceRoot":"","sources":["../../src/events/hook.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,SAAU,SAAQ,KAAW;CAAG;AAE7C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,eAAgB,SAAQ,SAAS;CAAG;AAEjD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,oBAAqB,SAAQ,SAAS;CAAG;AAEtD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,uBAAwB,SAAQ,SAAS;CAAG;AAEzD;;;;;;;;;;GAUG;AACH,MAAM,OAAO,2BAA4B,SAAQ,eAAe;CAAG;AAEnE;;;;;;;;;;GAUG;AACH,MAAM,OAAO,gCAAiC,SAAQ,oBAAoB;CAAG;AAE7E;;;;;;;;;;GAUG;AACH,MAAM,OAAO,mCAAoC,SAAQ,uBAAuB;CAAG;AAEnF;;;;;;;;;;GAUG;AACH,MAAM,OAAO,+BAAgC,SAAQ,eAAe;CAAG;AAEvE;;;;;;;;;;GAUG;AACH,MAAM,OAAO,oCAAqC,SAAQ,oBAAoB;CAAG;AAEjF;;;;;;;;;;GAUG;AACH,MAAM,OAAO,uCAAwC,SAAQ,uBAAuB;CAAG;AAEvF;;;;;;;;;;GAUG;AACH,MAAM,OAAO,8BAA+B,SAAQ,eAAe;CAAG;AAEtE;;;;;;;;;;GAUG;AACH,MAAM,OAAO,mCAAoC,SAAQ,oBAAoB;CAAG;AAEhF;;;;;;;;;;GAUG;AACH,MAAM,OAAO,sCAAuC,SAAQ,uBAAuB;CAAG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Event } from './event.model.js';
|
|
2
|
+
/**
|
|
3
|
+
* This event is emitted when a module's `onInit()` method is run.
|
|
4
|
+
* It emits the name of the module.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* const myEvent = new ModuleEvent('MyModule');
|
|
9
|
+
* EventService.getInstance().emit(myEvent);
|
|
10
|
+
* ```
|
|
11
|
+
* @group Events
|
|
12
|
+
* @returns The Event instance.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ModuleEvent extends Event<string> {
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Event } from './event.model.js';
|
|
2
|
+
/**
|
|
3
|
+
* This event is emitted when a module's `onInit()` method is run.
|
|
4
|
+
* It emits the name of the module.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* const myEvent = new ModuleEvent('MyModule');
|
|
9
|
+
* EventService.getInstance().emit(myEvent);
|
|
10
|
+
* ```
|
|
11
|
+
* @group Events
|
|
12
|
+
* @returns The Event instance.
|
|
13
|
+
*/
|
|
14
|
+
export class ModuleEvent extends Event {
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=module.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.event.js","sourceRoot":"","sources":["../../src/events/module.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAa;CAAG"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { EventService } from '../services/event/event.service.js';
|
|
2
|
+
import { Event } from './event.model.js';
|
|
3
|
+
/**
|
|
4
|
+
* The RegistrationEvent class is the superclass for all events in relation to class registration.
|
|
5
|
+
*
|
|
6
|
+
* :::warning Warning
|
|
7
|
+
* It is not a good practice to create an event from this class directly,
|
|
8
|
+
* but should rather create one from one of the subclasses.
|
|
9
|
+
* This promotes a more accurate classification of events.
|
|
10
|
+
* :::
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const myEvent = new RegistrationEvent('MyClass');
|
|
15
|
+
* EventService.getInstance().emit(myEvent);
|
|
16
|
+
* ```
|
|
17
|
+
* @group Events
|
|
18
|
+
* @returns The Event instance.
|
|
19
|
+
*/
|
|
20
|
+
export declare class RegistrationEvent extends Event<string> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* This event is emitted when a class with `@Anchor()` decorator is registered.
|
|
24
|
+
* It emits the name of the class.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const myEvent = new AnchorRegistrationEvent('MyClass');
|
|
29
|
+
* EventService.getInstance().emit(myEvent);
|
|
30
|
+
* ```
|
|
31
|
+
* @group Events
|
|
32
|
+
* @returns The Event instance.
|
|
33
|
+
*/
|
|
34
|
+
export declare class AnchorRegistrationEvent extends RegistrationEvent {
|
|
35
|
+
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* This event is emitted when a class with `@Action(ModelType.MODEL)` decorator is registered.
|
|
39
|
+
* It emits the name of the class.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const myEvent = new ModelActionRegistrationEvent('MyClass');
|
|
44
|
+
* EventService.getInstance().emit(myEvent);
|
|
45
|
+
* ```
|
|
46
|
+
* @group Events
|
|
47
|
+
* @returns The Event instance.
|
|
48
|
+
*/
|
|
49
|
+
export declare class ModelActionRegistrationEvent extends RegistrationEvent {
|
|
50
|
+
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* This event is emitted when a class with `@Model()` decorator is registered.
|
|
54
|
+
* It emits the name of the class.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const myEvent = new ModelRegistrationEvent('MyClass');
|
|
59
|
+
* EventService.getInstance().emit(myEvent);
|
|
60
|
+
* ```
|
|
61
|
+
* @group Events
|
|
62
|
+
* @returns The Event instance.
|
|
63
|
+
*/
|
|
64
|
+
export declare class ModelRegistrationEvent extends RegistrationEvent {
|
|
65
|
+
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* This event is emitted when a class with `@Overlay()` decorator is registered.
|
|
69
|
+
* It emits the name of the class.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const myEvent = new OverlayRegistrationEvent('MyClass');
|
|
74
|
+
* EventService.getInstance().emit(myEvent);
|
|
75
|
+
* ```
|
|
76
|
+
* @group Events
|
|
77
|
+
* @returns The Event instance.
|
|
78
|
+
*/
|
|
79
|
+
export declare class OverlayRegistrationEvent extends RegistrationEvent {
|
|
80
|
+
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* This event is emitted when a class with `@Action(ModelType.RESOURCE)` or `@Action(ModelType.SHARED_RESOURCE)`
|
|
84
|
+
* decorator is registered.
|
|
85
|
+
* It emits the name of the class.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```ts
|
|
89
|
+
* const myEvent = new ResourceActionRegistrationEvent('MyClass');
|
|
90
|
+
* EventService.getInstance().emit(myEvent);
|
|
91
|
+
* ```
|
|
92
|
+
* @group Events
|
|
93
|
+
* @returns The Event instance.
|
|
94
|
+
*/
|
|
95
|
+
export declare class ResourceActionRegistrationEvent extends RegistrationEvent {
|
|
96
|
+
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* This event is emitted when a class with `@Resource()` decorator is registered.
|
|
100
|
+
* It emits the name of the class.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* const myEvent = new ResourceRegistrationEvent('MyClass');
|
|
105
|
+
* EventService.getInstance().emit(myEvent);
|
|
106
|
+
* ```
|
|
107
|
+
* @group Events
|
|
108
|
+
* @returns The Event instance.
|
|
109
|
+
*/
|
|
110
|
+
export declare class ResourceRegistrationEvent extends RegistrationEvent {
|
|
111
|
+
static registrar(eventService: EventService, descriptor: PropertyDescriptor): void;
|
|
112
|
+
}
|