@toa.io/norm 0.9.0-dev.1 → 0.9.0-dev.3

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/norm",
3
- "version": "0.9.0-dev.1",
3
+ "version": "0.9.0-dev.3",
4
4
  "description": "Toa declarations normalization and validation",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -19,14 +19,14 @@
19
19
  "test": "echo \"Error: run tests from root\" && exit 1"
20
20
  },
21
21
  "devDependencies": {
22
- "@toa.io/mock": "0.7.5-dev.2"
22
+ "@toa.io/mock": "0.7.5-dev.4"
23
23
  },
24
24
  "dependencies": {
25
- "@toa.io/core": "0.8.0-dev.1",
26
- "@toa.io/generic": "0.8.0-dev.1",
27
- "@toa.io/schema": "0.7.2-dev.2",
28
- "@toa.io/schemas": "0.8.0-dev.1",
29
- "@toa.io/yaml": "0.7.2-dev.2"
25
+ "@toa.io/core": "0.8.0-dev.3",
26
+ "@toa.io/generic": "0.8.0-dev.3",
27
+ "@toa.io/schema": "0.7.2-dev.4",
28
+ "@toa.io/schemas": "0.8.0-dev.3",
29
+ "@toa.io/yaml": "0.7.2-dev.4"
30
30
  },
31
- "gitHead": "9bb2f372c556440ee3e2a42e10eb415220ba1cb0"
31
+ "gitHead": "d72b4c2362e928dba56f4743cc956aa5486f82a4"
32
32
  }
@@ -97,7 +97,7 @@ properties:
97
97
  type: object
98
98
  properties:
99
99
  type:
100
- enum: [transition, observation, assignment]
100
+ enum: [transition, observation, assignment, computation, effect]
101
101
  scope:
102
102
  enum: [object, objects, changeset, none]
103
103
  concurrency:
@@ -165,6 +165,24 @@ properties:
165
165
  properties:
166
166
  scope:
167
167
  enum: [changeset]
168
+ - if: # computation
169
+ properties:
170
+ type:
171
+ const: computation
172
+ then:
173
+ properties:
174
+ scope:
175
+ const: none
176
+ default: none
177
+ - if: # effect
178
+ properties:
179
+ type:
180
+ const: effect
181
+ then:
182
+ properties:
183
+ scope:
184
+ const: none
185
+ default: none
168
186
  additionalProperties: false
169
187
  additionalProperties: false
170
188
 
@@ -5,8 +5,8 @@ export namespace toa.norm {
5
5
  namespace component {
6
6
  namespace operations {
7
7
 
8
- type Type = 'transition' | 'observation' | 'assignment'
9
- type Scope = 'object' | 'objects' | 'changeset' | 'none'
8
+ type Type = 'transition' | 'observation' | 'assignment' | 'computation' | 'effect'
9
+ type Scope = 'object' | 'objects' | 'changeset'
10
10
 
11
11
  }
12
12