@fugood/bricks-project 2.21.0-beta.43 → 2.21.0
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 +2 -2
- package/types/data-calc.ts +19 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.21.0
|
|
3
|
+
"version": "2.21.0",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node scripts/build.js"
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"lodash": "^4.17.4",
|
|
14
14
|
"uuid": "^8.3.1"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "7198652cb0d8217f36d88a755542300321dd2d74"
|
|
17
17
|
}
|
package/types/data-calc.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Data } from './data'
|
|
2
2
|
|
|
3
|
+
/* DataCalculation has two types: DataCalculationScript and DataCalculationMap */
|
|
3
4
|
export interface DataCalculation {
|
|
4
5
|
__typename: string
|
|
5
6
|
id: string
|
|
@@ -7,6 +8,24 @@ export interface DataCalculation {
|
|
|
7
8
|
description?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
11
|
+
export type DataCalculationScript = DataCalculation & {
|
|
12
|
+
__typename: 'DataCalculationScript'
|
|
13
|
+
note?: string
|
|
14
|
+
enableAsync: boolean
|
|
15
|
+
code: string
|
|
16
|
+
inputs: Array<{
|
|
17
|
+
data: () => Data
|
|
18
|
+
key: string
|
|
19
|
+
trigger?: boolean
|
|
20
|
+
}>
|
|
21
|
+
error: (() => Data) | null
|
|
22
|
+
output: (() => Data) | null
|
|
23
|
+
outputs: Array<{
|
|
24
|
+
key: string
|
|
25
|
+
data: () => Data
|
|
26
|
+
}>
|
|
27
|
+
}
|
|
28
|
+
|
|
10
29
|
export interface DataCalculationData {
|
|
11
30
|
__typename: 'DataCalculationData'
|
|
12
31
|
title?: string
|
|
@@ -66,24 +85,6 @@ export type DataCalculationMap = DataCalculation & {
|
|
|
66
85
|
}>
|
|
67
86
|
}
|
|
68
87
|
|
|
69
|
-
export type DataCalculationScript = DataCalculation & {
|
|
70
|
-
__typename: 'DataCalculationScript'
|
|
71
|
-
note?: string
|
|
72
|
-
enableAsync: boolean
|
|
73
|
-
code: string
|
|
74
|
-
inputs: Array<{
|
|
75
|
-
data: () => Data
|
|
76
|
-
key: string
|
|
77
|
-
trigger?: boolean
|
|
78
|
-
}>
|
|
79
|
-
error: (() => Data) | null
|
|
80
|
-
output: (() => Data) | null
|
|
81
|
-
outputs: Array<{
|
|
82
|
-
key: string
|
|
83
|
-
data: () => Data
|
|
84
|
-
}>
|
|
85
|
-
}
|
|
86
|
-
|
|
87
88
|
/*
|
|
88
89
|
Empty array []
|
|
89
90
|
Return empty array []
|