@frogbotai/piece-data-summarizer 0.5.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/LICENSE +21 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/package.json +39 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 FrogBot
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type PieceFactoryConfig } from "frogbot/pieces";
|
|
2
|
+
export declare const dataSummarizerActions: readonly ["calculateAverage", "calculateSum", "countUniques", "getMinMax"];
|
|
3
|
+
export declare const dataSummarizerScopes: readonly [];
|
|
4
|
+
export declare function createDataSummarizer(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
|
|
5
|
+
/** Calculate Average: Calculates the average of a list of values. */
|
|
6
|
+
calculateAverage: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
7
|
+
/** Calculate Sum: Calculates the sum of a list of values. */
|
|
8
|
+
calculateSum: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
9
|
+
/** Count Uniques: Counts the number of unique values for multiple fields */
|
|
10
|
+
countUniques: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
11
|
+
/** Find Min and Max: Get the smallest and greatest values from a list of numeric values. */
|
|
12
|
+
getMinMax: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,qBAAqB,4EAA6E,CAAC;AAChH,eAAO,MAAM,oBAAoB,aAAc,CAAC;AAEhD,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAU5D,qEAAqE;;IAErE,6DAA6D;;IAE7D,4EAA4E;;IAE5E,4FAA4F;;EAG/F"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as module from '@activepieces/piece-data-summarizer';
|
|
2
|
+
import { createActivepiecesPiece } from "frogbot/pieces";
|
|
3
|
+
export const dataSummarizerActions = ['calculateAverage', 'calculateSum', 'countUniques', 'getMinMax'];
|
|
4
|
+
export const dataSummarizerScopes = [];
|
|
5
|
+
export function createDataSummarizer(config) {
|
|
6
|
+
const piece = createActivepiecesPiece({
|
|
7
|
+
module: module,
|
|
8
|
+
service: "data_summarizer",
|
|
9
|
+
credentialType: "none",
|
|
10
|
+
defaultActions: dataSummarizerActions,
|
|
11
|
+
scopes: dataSummarizerScopes,
|
|
12
|
+
config,
|
|
13
|
+
});
|
|
14
|
+
return Object.assign(piece, {
|
|
15
|
+
/** Calculate Average: Calculates the average of a list of values. */
|
|
16
|
+
calculateAverage: piece.tool("calculateAverage"),
|
|
17
|
+
/** Calculate Sum: Calculates the sum of a list of values. */
|
|
18
|
+
calculateSum: piece.tool("calculateSum"),
|
|
19
|
+
/** Count Uniques: Counts the number of unique values for multiple fields */
|
|
20
|
+
countUniques: piece.tool("countUniques"),
|
|
21
|
+
/** Find Min and Max: Get the smallest and greatest values from a list of numeric values. */
|
|
22
|
+
getMinMax: piece.tool("getMinMax"),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,kBAAkB,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,CAAU,CAAC;AAChH,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAW,CAAC;AAEhD,MAAM,UAAU,oBAAoB,CAAC,MAA2B;IAC9D,MAAM,KAAK,GAAG,uBAAuB,CAAC;QACpC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,iBAAiB;QAC1B,cAAc,EAAE,MAAM;QACtB,cAAc,EAAE,qBAAqB;QACrC,MAAM,EAAE,oBAAoB;QAC5B,MAAM;KACP,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;QAC1B,qEAAqE;QACrE,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC;QAChD,6DAA6D;QAC7D,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;QACxC,4EAA4E;QAC5E,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;QACxC,4FAA4F;QAC5F,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;KACnC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@frogbotai/piece-data-summarizer",
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Data summarization tools for FrogBot.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Colby Gilbert",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@activepieces/piece-data-summarizer": "0.0.11"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"frogbot": "0.5.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"typescript": "5.6.2",
|
|
29
|
+
"frogbot": "0.5.0"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc -p tsconfig.json",
|
|
36
|
+
"clean": "rm -rf dist",
|
|
37
|
+
"typecheck": "tsc --noEmit"
|
|
38
|
+
}
|
|
39
|
+
}
|