@fugood/bricks-project 2.23.0-beta.27 → 2.23.0-beta.28
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 +42 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.23.0-beta.
|
|
3
|
+
"version": "2.23.0-beta.28",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "bun scripts/build.js"
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"lodash": "^4.17.4",
|
|
15
15
|
"uuid": "^8.3.1"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "70dc90287c23f791bc1ed079b80586071e439d15"
|
|
18
18
|
}
|
package/types/data-calc.ts
CHANGED
|
@@ -3850,6 +3850,48 @@ export type DataCommandStringTitleCase = DataCommand & {
|
|
|
3850
3850
|
}>
|
|
3851
3851
|
}
|
|
3852
3852
|
|
|
3853
|
+
/*
|
|
3854
|
+
TOON Decode
|
|
3855
|
+
Decode TOON string. Return undefined if decode failed.
|
|
3856
|
+
*/
|
|
3857
|
+
export type DataCommandStringToolDecode = DataCommand & {
|
|
3858
|
+
__commandName: 'STRING_TOOL_DECODE'
|
|
3859
|
+
inputs?: Array<{
|
|
3860
|
+
// Default value: "{}"
|
|
3861
|
+
key: 'subject'
|
|
3862
|
+
source: (() => DataCalculationData | DataCommand) | string
|
|
3863
|
+
sourceKey: string
|
|
3864
|
+
trigger?: boolean
|
|
3865
|
+
}>
|
|
3866
|
+
outputs?: Array<{
|
|
3867
|
+
key: 'result'
|
|
3868
|
+
// target type: any
|
|
3869
|
+
target: () => DataCalculationData | DataCommand
|
|
3870
|
+
targetKey: string
|
|
3871
|
+
}>
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3874
|
+
/*
|
|
3875
|
+
TOON Encode
|
|
3876
|
+
Encode TOON string. Return undefined if encode failed.
|
|
3877
|
+
*/
|
|
3878
|
+
export type DataCommandStringToolEncode = DataCommand & {
|
|
3879
|
+
__commandName: 'STRING_TOOL_ENCODE'
|
|
3880
|
+
inputs?: Array<{
|
|
3881
|
+
// Default value: {}
|
|
3882
|
+
key: 'subject'
|
|
3883
|
+
source: (() => DataCalculationData | DataCommand) | any
|
|
3884
|
+
sourceKey: string
|
|
3885
|
+
trigger?: boolean
|
|
3886
|
+
}>
|
|
3887
|
+
outputs?: Array<{
|
|
3888
|
+
key: 'result'
|
|
3889
|
+
// target type: string
|
|
3890
|
+
target: () => DataCalculationData | DataCommand
|
|
3891
|
+
targetKey: string
|
|
3892
|
+
}>
|
|
3893
|
+
}
|
|
3894
|
+
|
|
3853
3895
|
/*
|
|
3854
3896
|
Trim
|
|
3855
3897
|
Removes whitespaces from left and right sides of the subject.
|