eligius 1.1.2 → 1.1.4

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 (280) hide show
  1. package/README.md +3 -1
  2. package/dist/action/action.d.ts +17 -17
  3. package/dist/action/endable-action.d.ts +9 -9
  4. package/dist/action/index.d.ts +3 -3
  5. package/dist/action/timeline-action.d.ts +14 -14
  6. package/dist/action/types.d.ts +17 -17
  7. package/dist/build/generate-importer-source-code.d.ts +15 -15
  8. package/dist/build/index.d.ts +1 -1
  9. package/dist/configuration/api/action-creator-factory.d.ts +31 -31
  10. package/dist/configuration/api/action-editor.d.ts +44 -44
  11. package/dist/configuration/api/configuration-factory.d.ts +135 -134
  12. package/dist/configuration/api/index.d.ts +7 -7
  13. package/dist/configuration/api/label-editor.d.ts +11 -11
  14. package/dist/configuration/api/name-providers.d.ts +13 -13
  15. package/dist/configuration/api/subtitle-converter.d.ts +11 -11
  16. package/dist/configuration/api/subtitle-editor.d.ts +24 -14
  17. package/dist/configuration/api/timeline-provider-settings-editor.d.ts +22 -22
  18. package/dist/configuration/configuration-resolver.d.ts +18 -18
  19. package/dist/configuration/types.d.ts +102 -102
  20. package/dist/controllers/event-listener-controller.d.ts +36 -35
  21. package/dist/controllers/index.d.ts +7 -7
  22. package/dist/controllers/label-controller.d.ts +31 -30
  23. package/dist/controllers/lottie-controller.d.ts +47 -46
  24. package/dist/controllers/metadata/event-listener-controller.d.ts +4 -4
  25. package/dist/controllers/metadata/index.d.ts +7 -7
  26. package/dist/controllers/metadata/label-controller.d.ts +4 -4
  27. package/dist/controllers/metadata/lottie-controller.d.ts +4 -4
  28. package/dist/controllers/metadata/navigation-controller.d.ts +4 -4
  29. package/dist/controllers/metadata/progressbar-controller.d.ts +4 -4
  30. package/dist/controllers/metadata/routing-controller.d.ts +4 -4
  31. package/dist/controllers/metadata/subtitles-controller.d.ts +4 -4
  32. package/dist/controllers/metadata/types.d.ts +6 -6
  33. package/dist/controllers/navigation-controller.d.ts +39 -38
  34. package/dist/controllers/progressbar-controller.d.ts +26 -25
  35. package/dist/controllers/routing-controller.d.ts +27 -27
  36. package/dist/controllers/subtitles-controller.d.ts +27 -25
  37. package/dist/controllers/types.d.ts +8 -8
  38. package/dist/diagnostics/{devtool-event-lister.d.ts → devtool-event-listener.d.ts} +7 -7
  39. package/dist/diagnostics/diagnostics.d.ts +5 -5
  40. package/dist/diagnostics/index.d.ts +3 -3
  41. package/dist/diagnostics/types.d.ts +28 -28
  42. package/dist/eligius-engine.d.ts +88 -88
  43. package/dist/eligius-flow-controller.d.ts +8 -8
  44. package/dist/engine-factory.d.ts +38 -38
  45. package/dist/eventbus/actionregistry-eventbus-listener.d.ts +11 -11
  46. package/dist/eventbus/eventbus.d.ts +18 -18
  47. package/dist/eventbus/index.d.ts +4 -4
  48. package/dist/eventbus/request-video-uri-interceptor.d.ts +6 -6
  49. package/dist/eventbus/types.d.ts +18 -18
  50. package/dist/importer/eligius-resource-importer.d.ts +9 -9
  51. package/dist/importer/index.d.ts +1 -1
  52. package/dist/index.cjs +6417 -0
  53. package/dist/index.cjs.map +7 -0
  54. package/dist/index.cjs.min.js +8 -0
  55. package/dist/index.cjs.min.js.map +7 -0
  56. package/dist/index.d.ts +22 -22
  57. package/dist/index.esm.js +8 -0
  58. package/dist/index.esm.js.map +7 -0
  59. package/dist/index.js +7 -8
  60. package/dist/language-manager.d.ts +24 -24
  61. package/dist/operation/add-class.d.ts +14 -13
  62. package/dist/operation/add-controller-to-element.d.ts +15 -14
  63. package/dist/operation/add-globals-to-operation.d.ts +12 -12
  64. package/dist/operation/animate-with-class.d.ts +17 -16
  65. package/dist/operation/animate.d.ts +17 -16
  66. package/dist/operation/broadcast-event.d.ts +13 -13
  67. package/dist/operation/calc.d.ts +14 -14
  68. package/dist/operation/clear-element.d.ts +11 -10
  69. package/dist/operation/clear-operation-data.d.ts +10 -10
  70. package/dist/operation/create-element.d.ts +18 -17
  71. package/dist/operation/custom-function.d.ts +12 -12
  72. package/dist/operation/end-action.d.ts +17 -17
  73. package/dist/operation/{end-loop.d.ts → end-for-each.d.ts} +8 -8
  74. package/dist/operation/end-when.d.ts +8 -8
  75. package/dist/operation/extend-controller.d.ts +10 -10
  76. package/dist/operation/{start-loop.d.ts → for-each.d.ts} +19 -17
  77. package/dist/operation/get-attributes-from-element.d.ts +21 -20
  78. package/dist/operation/get-controller-from-element.d.ts +16 -15
  79. package/dist/operation/get-controller-instance.d.ts +17 -17
  80. package/dist/operation/get-element-dimensions.d.ts +30 -29
  81. package/dist/operation/get-import.d.ts +13 -13
  82. package/dist/operation/get-query-params.d.ts +28 -28
  83. package/dist/operation/helper/attach-controller-to-element.d.ts +3 -2
  84. package/dist/operation/helper/deep-copy.d.ts +1 -1
  85. package/dist/operation/helper/find-matching-operation-index.d.ts +35 -35
  86. package/dist/operation/helper/get-element-data.d.ts +7 -6
  87. package/dist/operation/helper/get-property-chain-value.d.ts +24 -24
  88. package/dist/operation/helper/globals.d.ts +4 -4
  89. package/dist/operation/helper/internal-resolve.d.ts +2 -2
  90. package/dist/operation/helper/merge-operation-data.d.ts +2 -2
  91. package/dist/operation/helper/modify-dimensions.d.ts +20 -20
  92. package/dist/operation/helper/remove-event-data-from-operation-data.d.ts +2 -2
  93. package/dist/operation/helper/remove-global.d.ts +1 -1
  94. package/dist/operation/helper/resolve-event-arguments.d.ts +2 -2
  95. package/dist/operation/helper/resolve-external-property-chain.d.ts +14 -14
  96. package/dist/operation/helper/resolve-property-chain.d.ts +23 -23
  97. package/dist/operation/helper/resolve-property-values.d.ts +11 -11
  98. package/dist/operation/helper/set-global.d.ts +1 -1
  99. package/dist/operation/index.d.ts +46 -46
  100. package/dist/operation/invoke-object-method.d.ts +28 -28
  101. package/dist/operation/load-json.d.ts +28 -28
  102. package/dist/operation/log.d.ts +8 -8
  103. package/dist/operation/math.d.ts +12 -12
  104. package/dist/operation/metadata/add-class.d.ts +4 -4
  105. package/dist/operation/metadata/add-controller-to-element.d.ts +4 -4
  106. package/dist/operation/metadata/add-globals-to-operation.d.ts +4 -4
  107. package/dist/operation/metadata/animate-with-class.d.ts +4 -4
  108. package/dist/operation/metadata/animate.d.ts +4 -4
  109. package/dist/operation/metadata/broadcast-event.d.ts +4 -4
  110. package/dist/operation/metadata/calc.d.ts +4 -4
  111. package/dist/operation/metadata/clear-element.d.ts +4 -4
  112. package/dist/operation/metadata/clear-operation-data.d.ts +4 -4
  113. package/dist/operation/metadata/create-element.d.ts +4 -4
  114. package/dist/operation/metadata/custom-function.d.ts +4 -4
  115. package/dist/operation/metadata/end-action.d.ts +4 -4
  116. package/dist/operation/metadata/end-for-each.d.ts +3 -0
  117. package/dist/operation/metadata/end-when.d.ts +3 -3
  118. package/dist/operation/metadata/extend-controller.d.ts +4 -4
  119. package/dist/operation/metadata/for-each.d.ts +4 -0
  120. package/dist/operation/metadata/get-attributes-from-element.d.ts +4 -4
  121. package/dist/operation/metadata/get-controller-from-element.d.ts +4 -4
  122. package/dist/operation/metadata/get-controller-instance.d.ts +4 -4
  123. package/dist/operation/metadata/get-element-dimensions.d.ts +4 -4
  124. package/dist/operation/metadata/get-import.d.ts +4 -4
  125. package/dist/operation/metadata/get-query-params.d.ts +4 -4
  126. package/dist/operation/metadata/index.d.ts +45 -45
  127. package/dist/operation/metadata/invoke-object-method.d.ts +4 -4
  128. package/dist/operation/metadata/load-json.d.ts +4 -4
  129. package/dist/operation/metadata/log.d.ts +3 -3
  130. package/dist/operation/metadata/math.d.ts +4 -4
  131. package/dist/operation/metadata/otherwise.d.ts +3 -3
  132. package/dist/operation/metadata/remove-class.d.ts +4 -4
  133. package/dist/operation/metadata/remove-controller-from-element.d.ts +4 -4
  134. package/dist/operation/metadata/remove-element.d.ts +4 -4
  135. package/dist/operation/metadata/remove-properties-from-operation-data.d.ts +4 -4
  136. package/dist/operation/metadata/reparent-element.d.ts +4 -4
  137. package/dist/operation/metadata/request-action.d.ts +4 -4
  138. package/dist/operation/metadata/resize-action.d.ts +4 -4
  139. package/dist/operation/metadata/select-element.d.ts +4 -4
  140. package/dist/operation/metadata/set-data.d.ts +4 -4
  141. package/dist/operation/metadata/set-element-attributes.d.ts +4 -4
  142. package/dist/operation/metadata/set-element-content.d.ts +4 -4
  143. package/dist/operation/metadata/set-global-data.d.ts +4 -4
  144. package/dist/operation/metadata/set-operation-data.d.ts +4 -4
  145. package/dist/operation/metadata/set-style.d.ts +4 -4
  146. package/dist/operation/metadata/start-action.d.ts +4 -4
  147. package/dist/operation/metadata/toggle-class.d.ts +4 -4
  148. package/dist/operation/metadata/toggle-element.d.ts +4 -4
  149. package/dist/operation/metadata/types.d.ts +29 -29
  150. package/dist/operation/metadata/wait.d.ts +4 -4
  151. package/dist/operation/metadata/when.d.ts +4 -4
  152. package/dist/operation/otherwise.d.ts +9 -9
  153. package/dist/operation/remove-class.d.ts +14 -13
  154. package/dist/operation/remove-controller-from-element.d.ts +14 -13
  155. package/dist/operation/remove-element.d.ts +13 -12
  156. package/dist/operation/remove-properties-from-operation-data.d.ts +12 -12
  157. package/dist/operation/reparent-element.d.ts +15 -14
  158. package/dist/operation/request-action.d.ts +14 -14
  159. package/dist/operation/resize-action.d.ts +12 -12
  160. package/dist/operation/select-element.d.ts +19 -18
  161. package/dist/operation/set-data.d.ts +21 -21
  162. package/dist/operation/set-element-attributes.d.ts +14 -13
  163. package/dist/operation/set-element-content.d.ts +21 -20
  164. package/dist/operation/set-global-data.d.ts +11 -11
  165. package/dist/operation/set-operation-data.d.ts +13 -13
  166. package/dist/operation/set-style.d.ts +15 -14
  167. package/dist/operation/start-action.d.ts +17 -17
  168. package/dist/operation/toggle-class.d.ts +23 -22
  169. package/dist/operation/toggle-element.d.ts +19 -18
  170. package/dist/operation/types.d.ts +55 -55
  171. package/dist/operation/wait.d.ts +14 -14
  172. package/dist/operation/when.d.ts +21 -18
  173. package/dist/test/integration/create-language-selector.spec.d.ts +1 -0
  174. package/dist/test/integration/end-in-correct-order.spec.d.ts +1 -0
  175. package/dist/test/integration/for-each-loop.spec.d.ts +1 -0
  176. package/dist/test/integration/re-use-image-action.spec.d.ts +1 -0
  177. package/dist/test/integration/when-construction.spec.d.ts +1 -0
  178. package/dist/test/unit/action/action.spec.d.ts +1 -0
  179. package/dist/test/unit/build/generate-importer-source-code.spec.d.ts +1 -0
  180. package/dist/test/unit/chrono-trigger-engine.spec.d.ts +1 -0
  181. package/dist/test/unit/configuration/api/action-editor.spec.d.ts +1 -0
  182. package/dist/test/unit/configuration/api/configuration-factory.spec.d.ts +1 -0
  183. package/dist/test/unit/configuration/api/endable-action-editor.spec.d.ts +1 -0
  184. package/dist/test/unit/configuration/api/name-providers.spec.d.ts +1 -0
  185. package/dist/test/unit/configuration/api/subtitle-editor.spec.d.ts +1 -0
  186. package/dist/test/unit/configuration/api/timeline-action-editor.spec.d.ts +1 -0
  187. package/dist/test/unit/configuration/api/timeline-provider-settings-editor.spec.d.ts +1 -0
  188. package/dist/test/unit/configuration/configuration-resolver.spec.d.ts +1 -0
  189. package/dist/test/unit/controllers/EventListenerController.spec.d.ts +1 -0
  190. package/dist/test/unit/controllers/LabelController.spec.d.ts +1 -0
  191. package/dist/test/unit/engine-factory.spec.d.ts +1 -0
  192. package/dist/test/unit/eventbus/eventbus.spec.d.ts +1 -0
  193. package/dist/test/unit/importer/eligius-resource-importer.spec.d.ts +1 -0
  194. package/dist/test/unit/language-manager.spec.d.ts +1 -0
  195. package/dist/test/unit/operation/_operation-metadata.spec.d.ts +1 -0
  196. package/dist/test/unit/operation/add-class.spec.d.ts +1 -0
  197. package/dist/test/unit/operation/add-controller-to-element.spec.d.ts +1 -0
  198. package/dist/test/unit/operation/add-globals-to-operation.spec.d.ts +1 -0
  199. package/dist/test/unit/operation/animate-with-class.spec.d.ts +1 -0
  200. package/dist/test/unit/operation/animate.spec.d.ts +1 -0
  201. package/dist/test/unit/operation/broadcast-event.spec.d.ts +1 -0
  202. package/dist/test/unit/operation/calc.spec.d.ts +1 -0
  203. package/dist/test/unit/operation/clear-element.spec.d.ts +1 -0
  204. package/dist/test/unit/operation/clear-operation-data.spec.d.ts +1 -0
  205. package/dist/test/unit/operation/create-element.spec.d.ts +1 -0
  206. package/dist/test/unit/operation/custom-function.spec.d.ts +1 -0
  207. package/dist/test/unit/operation/end-action.spec.d.ts +1 -0
  208. package/dist/test/unit/operation/end-for-each.spec.d.ts +1 -0
  209. package/dist/test/unit/operation/end-when.spec.d.ts +1 -0
  210. package/dist/test/unit/operation/extend-controller.spec.d.ts +1 -0
  211. package/dist/test/unit/operation/for-each.spec.d.ts +1 -0
  212. package/dist/test/unit/operation/get-attributes-from-element.spec.d.ts +1 -0
  213. package/dist/test/unit/operation/get-controller-from-element.spec.d.ts +1 -0
  214. package/dist/test/unit/operation/get-controller-instance.spec.d.ts +1 -0
  215. package/dist/test/unit/operation/get-element-dimensions.spec.d.ts +1 -0
  216. package/dist/test/unit/operation/get-query-params.spec.d.ts +1 -0
  217. package/dist/test/unit/operation/helper/attach-controller-to-element.spec.d.ts +1 -0
  218. package/dist/test/unit/operation/helper/get-element-data.spec.d.ts +1 -0
  219. package/dist/test/unit/operation/helper/get-property-chain-value.spec.d.ts +1 -0
  220. package/dist/test/unit/operation/helper/globals.spec.d.ts +1 -0
  221. package/dist/test/unit/operation/helper/internal-resolve.spec.d.ts +1 -0
  222. package/dist/test/unit/operation/helper/merge-operation-data.spec.d.ts +1 -0
  223. package/dist/test/unit/operation/helper/modify-dimensions.spec.d.ts +1 -0
  224. package/dist/test/unit/operation/helper/remove-event-data-from-operation-data.spec.d.ts +1 -0
  225. package/dist/test/unit/operation/helper/remove-global.spec.d.ts +1 -0
  226. package/dist/test/unit/operation/helper/resolve-event-arguments.spec.d.ts +1 -0
  227. package/dist/test/unit/operation/helper/resolve-external-property-chain.spec.d.ts +1 -0
  228. package/dist/test/unit/operation/helper/resolve-property-values.spec.d.ts +1 -0
  229. package/dist/test/unit/operation/helper/set-global.spec.d.ts +1 -0
  230. package/dist/test/unit/operation/invoke-object-method.spec.d.ts +1 -0
  231. package/dist/test/unit/operation/load-json.spec.d.ts +1 -0
  232. package/dist/test/unit/operation/log.spec.d.ts +1 -0
  233. package/dist/test/unit/operation/math.spec.d.ts +1 -0
  234. package/dist/test/unit/operation/otherwise.spec.d.ts +1 -0
  235. package/dist/test/unit/operation/remove-class.spec.d.ts +1 -0
  236. package/dist/test/unit/operation/remove-properties-from-operation-data.spec.d.ts +1 -0
  237. package/dist/test/unit/operation/reparent-element.spec.d.ts +1 -0
  238. package/dist/test/unit/operation/request-action.spec.d.ts +1 -0
  239. package/dist/test/unit/operation/resize-action.spec.d.ts +1 -0
  240. package/dist/test/unit/operation/select-element.spec.d.ts +1 -0
  241. package/dist/test/unit/operation/set-data.spec.d.ts +1 -0
  242. package/dist/test/unit/operation/set-element-attributes.spec.d.ts +1 -0
  243. package/dist/test/unit/operation/set-element-content.spec.d.ts +1 -0
  244. package/dist/test/unit/operation/set-global-data.spec.d.ts +1 -0
  245. package/dist/test/unit/operation/set-operation-data.spec.d.ts +1 -0
  246. package/dist/test/unit/operation/set-style.spec.d.ts +1 -0
  247. package/dist/test/unit/operation/start-action.spec.d.ts +1 -0
  248. package/dist/test/unit/operation/toggle-class.spec.d.ts +1 -0
  249. package/dist/test/unit/operation/toggle-element.spec.d.ts +1 -0
  250. package/dist/test/unit/operation/wait.spec.d.ts +1 -0
  251. package/dist/test/unit/operation/when.spec.d.ts +1 -0
  252. package/dist/test/unit/timelineproviders/request-animation-frame-timeline-provider.spec.d.ts +1 -0
  253. package/dist/test/unit/util/prepare-value-for-serialization.spec.d.ts +1 -0
  254. package/dist/timeline-event-names.d.ts +81 -81
  255. package/dist/timelineproviders/index.d.ts +2 -1
  256. package/dist/timelineproviders/request-animation-frame-timeline-provider.d.ts +40 -40
  257. package/dist/timelineproviders/types.d.ts +21 -20
  258. package/dist/timelineproviders/{media-element-timeline-provider.d.ts → video-js-timeline-provider.d.ts} +39 -42
  259. package/dist/tools/doc-tools/generate-readmes.d.ts +1 -1
  260. package/dist/tools/schema-tools/generate-operation-schemas.d.ts +1 -1
  261. package/dist/tools/schema-tools/html-tag-names.d.ts +1 -1
  262. package/dist/types.d.ts +103 -102
  263. package/dist/util/animation-interval.d.ts +1 -1
  264. package/dist/util/apply-operation.d.ts +3 -3
  265. package/dist/util/camel-case-to-dash.d.ts +1 -1
  266. package/dist/util/dash-to-camel-case.d.ts +1 -1
  267. package/dist/util/guards/is-function.d.ts +1 -1
  268. package/dist/util/guards/is-object.d.ts +1 -1
  269. package/dist/util/guards/is-promise.d.ts +1 -1
  270. package/dist/util/guards/is-string.d.ts +1 -1
  271. package/dist/util/prepare-value-for-serialization.d.ts +1 -1
  272. package/package.json +60 -68
  273. package/dist/eligius.cjs.development.js +0 -7462
  274. package/dist/eligius.cjs.development.js.map +0 -1
  275. package/dist/eligius.cjs.production.min.js +0 -2
  276. package/dist/eligius.cjs.production.min.js.map +0 -1
  277. package/dist/eligius.esm.js +0 -7364
  278. package/dist/eligius.esm.js.map +0 -1
  279. package/dist/operation/metadata/end-loop.d.ts +0 -3
  280. package/dist/operation/metadata/start-loop.d.ts +0 -4
@@ -1,22 +1,23 @@
1
- /// <reference types="jquery" />
2
- import { TOperation } from './types';
3
- export interface IToggleClassOperationData {
4
- /**
5
- * The element on which the class will be toggled
6
- */
7
- selectedElement: JQuery;
8
- /**
9
- * The class that will be toggled
10
- */
11
- className: string;
12
- }
13
- /**
14
- * This operation toggles the specfied class name on the given selected element.
15
- *
16
- * Meaning, if the specified class name exists on the given element it will be removed,
17
- * otherwise it will be added.
18
- *
19
- * @param operationData
20
- * @returns
21
- */
22
- export declare const toggleClass: TOperation<IToggleClassOperationData>;
1
+ /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
3
+ import { TOperation } from './types';
4
+ export interface IToggleClassOperationData {
5
+ /**
6
+ * The element on which the class will be toggled
7
+ */
8
+ selectedElement: JQuery;
9
+ /**
10
+ * The class that will be toggled
11
+ */
12
+ className: string;
13
+ }
14
+ /**
15
+ * This operation toggles the specfied class name on the given selected element.
16
+ *
17
+ * Meaning, if the specified class name exists on the given element it will be removed,
18
+ * otherwise it will be added.
19
+ *
20
+ * @param operationData
21
+ * @returns
22
+ */
23
+ export declare const toggleClass: TOperation<IToggleClassOperationData>;
@@ -1,18 +1,19 @@
1
- /// <reference types="jquery" />
2
- import { TOperation } from './types';
3
- export interface IToggleElementOperationData {
4
- /**
5
- * The element whose visibility will be toggled
6
- */
7
- selectedElement: JQuery;
8
- }
9
- /**
10
- * This operation toggles the visibility of the given selected element.
11
- *
12
- * Meaning, if the element is hidden, it will be made visible, otherwise
13
- * it will be hidden.
14
- *
15
- * @param operationData
16
- * @returns
17
- */
18
- export declare const toggleElement: TOperation<IToggleElementOperationData>;
1
+ /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
3
+ import { TOperation } from './types';
4
+ export interface IToggleElementOperationData {
5
+ /**
6
+ * The element whose visibility will be toggled
7
+ */
8
+ selectedElement: JQuery;
9
+ }
10
+ /**
11
+ * This operation toggles the visibility of the given selected element.
12
+ *
13
+ * Meaning, if the element is hidden, it will be made visible, otherwise
14
+ * it will be hidden.
15
+ *
16
+ * @param operationData
17
+ * @returns
18
+ */
19
+ export declare const toggleElement: TOperation<IToggleElementOperationData>;
@@ -1,55 +1,55 @@
1
- import { IResolvedOperation } from '../configuration/types';
2
- import { IEventbus } from '../eventbus';
3
- export declare type TOperationData = Record<string, any>;
4
- export declare type TOperationResult<T = TOperationData> = Promise<T> | T;
5
- export interface IOperationContext {
6
- /**
7
- * When inside a loop, this is the current iteration of said loop
8
- */
9
- loopIndex?: number;
10
- /**
11
- * The number of iterations for the current loop
12
- */
13
- loopLength?: number;
14
- /**
15
- * The start index of the loop within the total number of operations
16
- */
17
- loopStartIndex?: number;
18
- /**
19
- * The end index of the loop within the total number of operations
20
- */
21
- loopEndIndex?: number;
22
- /**
23
- * Set this index to change the current item in the main operations loop
24
- */
25
- newIndex?: number;
26
- /**
27
- * The current index with in the main operations loop
28
- */
29
- currentIndex: number;
30
- /**
31
- * The eventbus instance shared amongst actions and operations
32
- */
33
- eventbus: IEventbus;
34
- /**
35
- * The list of operations that is currently being executed
36
- */
37
- operations: IResolvedOperation[];
38
- /**
39
- * The result of the last when evaluation, if any
40
- */
41
- whenEvaluation?: boolean;
42
- /**
43
- *
44
- */
45
- owner?: any;
46
- /**
47
- *
48
- */
49
- currentItem?: any;
50
- /**
51
- *
52
- */
53
- parent?: IOperationContext;
54
- }
55
- export declare type TOperation<T = TOperationData> = (this: IOperationContext, operationData: T) => TOperationResult<T>;
1
+ import { IResolvedOperation } from '../configuration/types';
2
+ import { IEventbus } from '../eventbus';
3
+ export type TOperationData = Record<string, any>;
4
+ export type TOperationResult<T = TOperationData> = Promise<T> | T;
5
+ export interface IOperationContext {
6
+ /**
7
+ * When inside a loop, this is the current iteration of said loop
8
+ */
9
+ loopIndex?: number;
10
+ /**
11
+ * The number of iterations for the current loop
12
+ */
13
+ loopLength?: number;
14
+ /**
15
+ * The start index of the loop within the total number of operations
16
+ */
17
+ loopStartIndex?: number;
18
+ /**
19
+ * The end index of the loop within the total number of operations
20
+ */
21
+ loopEndIndex?: number;
22
+ /**
23
+ * Set this index to change the current item in the main operations loop
24
+ */
25
+ newIndex?: number;
26
+ /**
27
+ * The current index with in the main operations loop
28
+ */
29
+ currentIndex: number;
30
+ /**
31
+ * The eventbus instance shared amongst actions and operations
32
+ */
33
+ eventbus: IEventbus;
34
+ /**
35
+ * The list of operations that is currently being executed
36
+ */
37
+ operations: IResolvedOperation[];
38
+ /**
39
+ * The result of the last when evaluation, if any
40
+ */
41
+ whenEvaluation?: boolean;
42
+ /**
43
+ *
44
+ */
45
+ owner?: any;
46
+ /**
47
+ *
48
+ */
49
+ currentItem?: any;
50
+ /**
51
+ *
52
+ */
53
+ parent?: IOperationContext;
54
+ }
55
+ export type TOperation<T = TOperationData> = (this: IOperationContext, operationData: T) => TOperationResult<T>;
@@ -1,14 +1,14 @@
1
- import { TOperation } from './types';
2
- export interface IWaitOperationData {
3
- /**
4
- * The amount of milliseconds the operation will wait for.
5
- */
6
- milliseconds: number;
7
- }
8
- /**
9
- * This operation waits for the specified amount of milliseconds.
10
- *
11
- * @param operationData
12
- * @returns
13
- */
14
- export declare const wait: TOperation<IWaitOperationData>;
1
+ import { TOperation } from './types';
2
+ export interface IWaitOperationData {
3
+ /**
4
+ * The amount of milliseconds the operation will wait for.
5
+ */
6
+ milliseconds: number;
7
+ }
8
+ /**
9
+ * This operation waits for the specified amount of milliseconds.
10
+ *
11
+ * @param operationData
12
+ * @returns
13
+ */
14
+ export declare const wait: TOperation<IWaitOperationData>;
@@ -1,18 +1,21 @@
1
- import { TOperation } from './types';
2
- declare type TOperator = '!=' | '==' | '>=' | '<=' | '>' | '<';
3
- declare type TValue = `'${string}'` | number | `operationdata.${string}` | `globaldata.${string}` | `context.${string}`;
4
- declare type TExpression = `${TValue}${TOperator}${TValue}`;
5
- export interface IWhenOperationData {
6
- expression: TExpression;
7
- }
8
- /**
9
- * When the given expression evaluates to false, subsequent operations will be skipped
10
- * until an {@link endWhen} or {@link otherwise} operation is encountered.
11
- *
12
- * Practically, this means an `if` or `if`/`else` statement control flow implementation in a list of operations.
13
- *
14
- * @param operationData
15
- * @returns
16
- */
17
- export declare const when: TOperation<IWhenOperationData>;
18
- export {};
1
+ import { TOperation } from './types';
2
+ type TOperator = '!=' | '==' | '>=' | '<=' | '>' | '<';
3
+ type TValue = `'${string}'` | number | `operationdata.${string}` | `globaldata.${string}` | `context.${string}`;
4
+ type TExpression = `${TValue}${TOperator}${TValue}`;
5
+ export interface IWhenOperationData {
6
+ expression: TExpression;
7
+ }
8
+ /**
9
+ * When the given expression evaluates to false, subsequent operations will be skipped
10
+ * until an {@link endWhen} or {@link otherwise} operation is encountered.
11
+ *
12
+ * Practically, this means an `if` or `if`/`else` statement control flow implementation in a list of operations.
13
+ *
14
+ * @param operationData
15
+ * @returns
16
+ */
17
+ export declare const when: TOperation<IWhenOperationData>;
18
+ export declare const whenSystemName = "when";
19
+ export declare const otherwiseSystemName = "otherwise";
20
+ export declare const endWhenSystemName = "endWhen";
21
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};