@frogbotai/piece-file-helper 0.14.0 → 0.16.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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PieceFactoryConfig } from
|
|
1
|
+
import { type PieceFactoryConfig } from 'frogbot/pieces';
|
|
2
2
|
export declare const fileHelperActions: readonly ["createFile", "read_file", "get_file_name", "checkFileType", "change_file_encoding", "zipFiles", "unzipFile"];
|
|
3
3
|
export declare const fileHelperScopes: readonly [];
|
|
4
4
|
export declare function createFileHelper(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +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,iBAAiB,
|
|
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,iBAAiB,yHAQpB,CAAC;AACX,eAAO,MAAM,gBAAgB,aAAc,CAAC;AAE5C,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAUxD,kDAAkD;;IAElD,4CAA4C;;IAE5C,2DAA2D;;IAE3D,oFAAoF;;IAEpF,mEAAmE;;IAEnE,4CAA4C;;IAE5C,4CAA4C;;EAG/C"}
|
package/dist/index.js
CHANGED
|
@@ -1,31 +1,39 @@
|
|
|
1
1
|
import * as module from '@activepieces/piece-file-helper';
|
|
2
|
-
import { createActivepiecesPiece } from
|
|
3
|
-
export const fileHelperActions = [
|
|
2
|
+
import { createActivepiecesPiece } from 'frogbot/pieces';
|
|
3
|
+
export const fileHelperActions = [
|
|
4
|
+
'createFile',
|
|
5
|
+
'read_file',
|
|
6
|
+
'get_file_name',
|
|
7
|
+
'checkFileType',
|
|
8
|
+
'change_file_encoding',
|
|
9
|
+
'zipFiles',
|
|
10
|
+
'unzipFile',
|
|
11
|
+
];
|
|
4
12
|
export const fileHelperScopes = [];
|
|
5
13
|
export function createFileHelper(config) {
|
|
6
14
|
const piece = createActivepiecesPiece({
|
|
7
15
|
module: module,
|
|
8
|
-
service:
|
|
9
|
-
credentialType:
|
|
16
|
+
service: 'file_helper',
|
|
17
|
+
credentialType: 'none',
|
|
10
18
|
defaultActions: fileHelperActions,
|
|
11
19
|
scopes: fileHelperScopes,
|
|
12
20
|
config,
|
|
13
21
|
});
|
|
14
22
|
return Object.assign(piece, {
|
|
15
23
|
/** Read File: Read a file from the file system */
|
|
16
|
-
readFile: piece.tool(
|
|
24
|
+
readFile: piece.tool('read_file'),
|
|
17
25
|
/** Create file: Create file from content */
|
|
18
|
-
createFile: piece.tool(
|
|
26
|
+
createFile: piece.tool('createFile'),
|
|
19
27
|
/** Change File Encoding: Changes the encoding of a file */
|
|
20
|
-
changeFileEncoding: piece.tool(
|
|
28
|
+
changeFileEncoding: piece.tool('change_file_encoding'),
|
|
21
29
|
/** Check file type: Check MIME type of a file and filter based on selected types */
|
|
22
|
-
checkFileType: piece.tool(
|
|
30
|
+
checkFileType: piece.tool('checkFileType'),
|
|
23
31
|
/** Zip Files: Create compressed zip file from one or many files */
|
|
24
|
-
zipFiles: piece.tool(
|
|
32
|
+
zipFiles: piece.tool('zipFiles'),
|
|
25
33
|
/** Unzip File: Unzip compressed zip file */
|
|
26
|
-
unzipFile: piece.tool(
|
|
34
|
+
unzipFile: piece.tool('unzipFile'),
|
|
27
35
|
/** Get File Name: Get the name of a file */
|
|
28
|
-
getFileName: piece.tool(
|
|
36
|
+
getFileName: piece.tool('get_file_name'),
|
|
29
37
|
});
|
|
30
38
|
}
|
|
31
39
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,YAAY;IACZ,WAAW;IACX,eAAe;IACf,eAAe;IACf,sBAAsB;IACtB,UAAU;IACV,WAAW;CACH,CAAC;AACX,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAW,CAAC;AAE5C,MAAM,UAAU,gBAAgB,CAAC,MAA2B;IAC1D,MAAM,KAAK,GAAG,uBAAuB,CAAC;QACpC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,aAAa;QACtB,cAAc,EAAE,MAAM;QACtB,cAAc,EAAE,iBAAiB;QACjC,MAAM,EAAE,gBAAgB;QACxB,MAAM;KACP,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;QAC1B,kDAAkD;QAClD,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;QACjC,4CAA4C;QAC5C,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;QACpC,2DAA2D;QAC3D,kBAAkB,EAAE,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC;QACtD,oFAAoF;QACpF,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;QAC1C,mEAAmE;QACnE,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC;QAChC,4CAA4C;QAC5C,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;QAClC,4CAA4C;QAC5C,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;KACzC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-file-helper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "File tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"@activepieces/piece-file-helper": "0.1.24"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"frogbot": "0.
|
|
25
|
+
"frogbot": "0.16.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "5.6.2",
|
|
29
|
-
"frogbot": "0.
|
|
29
|
+
"frogbot": "0.16.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|