@toa.io/norm 0.9.0-dev.2 → 0.9.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 +8 -8
- package/src/.component/schema.yaml +19 -1
- package/types/component.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/norm",
|
|
3
|
-
"version": "0.9.0-dev.
|
|
3
|
+
"version": "0.9.0-dev.4",
|
|
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.
|
|
22
|
+
"@toa.io/mock": "0.7.5-dev.5"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@toa.io/core": "0.8.0-dev.
|
|
26
|
-
"@toa.io/generic": "0.8.0-dev.
|
|
27
|
-
"@toa.io/schema": "0.7.2-dev.
|
|
28
|
-
"@toa.io/schemas": "0.8.0-dev.
|
|
29
|
-
"@toa.io/yaml": "0.7.2-dev.
|
|
25
|
+
"@toa.io/core": "0.8.0-dev.4",
|
|
26
|
+
"@toa.io/generic": "0.8.0-dev.4",
|
|
27
|
+
"@toa.io/schema": "0.7.2-dev.5",
|
|
28
|
+
"@toa.io/schemas": "0.8.0-dev.4",
|
|
29
|
+
"@toa.io/yaml": "0.7.2-dev.5"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "3de648988a0bfb4b0217da0527db312f22ef7c54"
|
|
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
|
|
package/types/component.d.ts
CHANGED
|
@@ -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'
|
|
8
|
+
type Type = 'transition' | 'observation' | 'assignment' | 'computation' | 'effect'
|
|
9
|
+
type Scope = 'object' | 'objects' | 'changeset'
|
|
10
10
|
|
|
11
11
|
}
|
|
12
12
|
|