@toa.io/core 0.8.0-dev.2 → 0.8.0-dev.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/core",
3
- "version": "0.8.0-dev.2",
3
+ "version": "0.8.0-dev.4",
4
4
  "description": "Toa Core",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@rsql/parser": "1.2.4",
23
23
  "@toa.io/console": "0.6.0",
24
- "@toa.io/generic": "0.8.0-dev.2",
25
- "@toa.io/yaml": "0.7.2-dev.3",
24
+ "@toa.io/generic": "0.8.0-dev.4",
25
+ "@toa.io/yaml": "0.7.2-dev.5",
26
26
  "clone-deep": "4.0.1"
27
27
  },
28
- "gitHead": "85a6e6ce4f5d90af087507e3db65b94f32e9a818"
28
+ "gitHead": "3de648988a0bfb4b0217da0527db312f22ef7c54"
29
29
  }
package/src/index.js CHANGED
@@ -10,6 +10,7 @@ const { Event } = require('./event')
10
10
  const { Exposition } = require('./exposition')
11
11
  const { Locator } = require('./locator')
12
12
  const { Observation } = require('./observation')
13
+ const { Operation } = require('./operation')
13
14
  const { Query } = require('./query')
14
15
  const { Receiver } = require('./receiver')
15
16
  const { Reflection } = require('./reflection')
@@ -36,6 +37,7 @@ exports.Event = Event
36
37
  exports.Exposition = Exposition
37
38
  exports.Locator = Locator
38
39
  exports.Observation = Observation
40
+ exports.Operation = Operation
39
41
  exports.Query = Query
40
42
  exports.Receiver = Receiver
41
43
  exports.Reflection = Reflection
package/src/operation.js CHANGED
@@ -9,7 +9,6 @@ class Operation extends Connector {
9
9
  #cascade
10
10
  #contract
11
11
  #query
12
-
13
12
  #scope
14
13
 
15
14
  constructor (cascade, scope, contract, query, definition) {
package/src/transition.js CHANGED
@@ -50,8 +50,8 @@ class Transition extends Operation {
50
50
  /** @type {toa.generic.retry.Options} */
51
51
  const RETRY = {
52
52
  base: 10,
53
- dispersion: 1,
54
53
  max: 5000,
54
+ dispersion: 1,
55
55
  retries: Infinity
56
56
  }
57
57
 
@@ -6,7 +6,13 @@ import type * as connector from './connector'
6
6
  declare namespace toa.core.bridges {
7
7
 
8
8
  interface Algorithm extends connector.Connector {
9
- execute(input?: any, scope?: object | object[]): Promise<reply.Reply>
9
+ mount(context?: context.Context): Promise<void>
10
+
11
+ execute(input: any, scope: object | object[]): Promise<reply.Reply>
12
+
13
+ execute(input: any): Promise<reply.Reply>
14
+
15
+ execute(): Promise<reply.Reply>
10
16
  }
11
17
 
12
18
  interface Event {
@@ -17,6 +17,9 @@ declare namespace toa.core {
17
17
  * Calls remote endpoint
18
18
  */
19
19
  call(namespace: string, name: string, endpoint: string, request: _request.Request): Promise<_reply.Reply>
20
+
21
+ // shortcuts
22
+ [key: string]: any
20
23
  }
21
24
 
22
25
  }