@activepieces/piece-sftp 0.5.1 → 0.5.3

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.
Files changed (53) hide show
  1. package/package.json +7 -19
  2. package/src/index.js +39 -47
  3. package/src/index.d.ts +0 -13
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/common.d.ts +0 -7
  7. package/src/lib/actions/common.d.ts.map +0 -1
  8. package/src/lib/actions/common.js +0 -138
  9. package/src/lib/actions/common.js.map +0 -1
  10. package/src/lib/actions/create-file.d.ts +0 -15
  11. package/src/lib/actions/create-file.d.ts.map +0 -1
  12. package/src/lib/actions/create-file.js +0 -92
  13. package/src/lib/actions/create-file.js.map +0 -1
  14. package/src/lib/actions/create-folder.d.ts +0 -15
  15. package/src/lib/actions/create-folder.d.ts.map +0 -1
  16. package/src/lib/actions/create-folder.js +0 -72
  17. package/src/lib/actions/create-folder.js.map +0 -1
  18. package/src/lib/actions/delete-file.d.ts +0 -14
  19. package/src/lib/actions/delete-file.d.ts.map +0 -1
  20. package/src/lib/actions/delete-file.js +0 -74
  21. package/src/lib/actions/delete-file.js.map +0 -1
  22. package/src/lib/actions/delete-folder.d.ts +0 -15
  23. package/src/lib/actions/delete-folder.d.ts.map +0 -1
  24. package/src/lib/actions/delete-folder.js +0 -87
  25. package/src/lib/actions/delete-folder.js.map +0 -1
  26. package/src/lib/actions/list-files.d.ts +0 -14
  27. package/src/lib/actions/list-files.d.ts.map +0 -1
  28. package/src/lib/actions/list-files.js +0 -94
  29. package/src/lib/actions/list-files.js.map +0 -1
  30. package/src/lib/actions/read-file.d.ts +0 -14
  31. package/src/lib/actions/read-file.d.ts.map +0 -1
  32. package/src/lib/actions/read-file.js +0 -92
  33. package/src/lib/actions/read-file.js.map +0 -1
  34. package/src/lib/actions/rename-file-or-folder.d.ts +0 -16
  35. package/src/lib/actions/rename-file-or-folder.d.ts.map +0 -1
  36. package/src/lib/actions/rename-file-or-folder.js +0 -88
  37. package/src/lib/actions/rename-file-or-folder.js.map +0 -1
  38. package/src/lib/actions/upload-file.d.ts +0 -15
  39. package/src/lib/actions/upload-file.d.ts.map +0 -1
  40. package/src/lib/actions/upload-file.js +0 -90
  41. package/src/lib/actions/upload-file.js.map +0 -1
  42. package/src/lib/auth.d.ts +0 -12
  43. package/src/lib/auth.d.ts.map +0 -1
  44. package/src/lib/auth.js +0 -121
  45. package/src/lib/auth.js.map +0 -1
  46. package/src/lib/common.d.ts +0 -17
  47. package/src/lib/common.d.ts.map +0 -1
  48. package/src/lib/common.js +0 -116
  49. package/src/lib/common.js.map +0 -1
  50. package/src/lib/triggers/new-modified-file.d.ts +0 -55
  51. package/src/lib/triggers/new-modified-file.d.ts.map +0 -1
  52. package/src/lib/triggers/new-modified-file.js +0 -82
  53. package/src/lib/triggers/new-modified-file.js.map +0 -1
package/src/index.d.ts DELETED
@@ -1,13 +0,0 @@
1
- export { getProtocolBackwardCompatibility, getClient, endClient } from './lib/common';
2
- export declare const ftpSftp: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
3
- protocol: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
4
- allow_unauthorized_certificates: import("@activepieces/pieces-framework").CheckboxProperty<false>;
5
- allow_anonymous_login: import("@activepieces/pieces-framework").CheckboxProperty<false>;
6
- host: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- port: import("@activepieces/pieces-framework").NumberProperty<true>;
8
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
9
- password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
10
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
11
- algorithm: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
12
- }>>;
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,gCAAgC,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtF,eAAO,MAAM,OAAO;;;;;;;;;;GA0BlB,CAAC"}
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,qEAEwC;AACxC,iDAAqD;AACrD,2DAAuD;AACvD,2DAA6D;AAC7D,uDAA0D;AAC1D,wEAAqE;AACrE,+DAAiE;AACjE,2DAA6D;AAC7D,yDAAoE;AACpE,+DAAiE;AACjE,+EAA+E;AAC/E,qCAAsC;AACtC,uCAAsF;AAA7E,0HAAA,gCAAgC,OAAA;AAAE,mGAAA,SAAS,OAAA;AAAE,mGAAA,SAAS,OAAA;AAElD,QAAA,OAAO,GAAG,IAAA,8BAAW,EAAC;IACjC,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,sCAAsC;IACnD,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,uDAAuD;IAChE,UAAU,EAAE,CAAC,sBAAa,CAAC,IAAI,EAAE,sBAAa,CAAC,eAAe,CAAC;IAC/D,OAAO,EAAE;QACP,qBAAqB;QACrB,YAAY;QACZ,sBAAsB;QACtB,eAAe;QACf,UAAU;QACV,kBAAkB;KACnB;IACD,IAAI,EAAE,eAAQ;IACd,OAAO,EAAE;QACP,wBAAU;QACV,8BAAgB;QAChB,2BAAe;QACf,8BAAgB;QAChB,kCAAkB;QAClB,kCAAkB;QAClB,qCAAwB;QACxB,gDAAwB;KACzB;IACD,QAAQ,EAAE,CAAC,qCAAiB,CAAC;CAC9B,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- type sFtpError = {
2
- error: string;
3
- description?: string;
4
- };
5
- export declare function getSftpError(code: number): sFtpError;
6
- export {};
7
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/common.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAA;AAyID,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAGpD"}
@@ -1,138 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSftpError = getSftpError;
4
- const sftpErrors = {
5
- 0: {
6
- error: 'OK',
7
- description: 'Indicates successful completion of the operation.',
8
- },
9
- 1: {
10
- error: 'EOF',
11
- description: 'An attempt to read past the end-of-file was made; or, there are no more directory entries to return.',
12
- },
13
- 2: {
14
- error: 'No such file',
15
- description: 'A reference was made to a file which does not exist.',
16
- },
17
- 3: {
18
- error: 'Permission denied',
19
- description: 'The user does not have sufficient permissions to perform the operation.',
20
- },
21
- 4: {
22
- error: 'Failure',
23
- description: 'An error occurred, but no specific error code exists to describe the failure. This error message should always have meaningful text in the error message field.',
24
- },
25
- 5: {
26
- error: 'Bad message',
27
- description: 'A badly formatted packet or other SFTP protocol incompatibility was detected.',
28
- },
29
- 6: {
30
- error: 'No connection',
31
- description: 'There is no connection to the server. This error may be used locally, but must not be returned by a server.',
32
- },
33
- 7: {
34
- error: 'Connection lost',
35
- description: 'The connection to the server was lost. This error may be used locally, but must not be returned by a server.',
36
- },
37
- 8: {
38
- error: 'Operation unsupported',
39
- description: 'An attempted operation could not be completed by the server because the server does not support the operation.',
40
- },
41
- 9: {
42
- error: 'Invalid handle',
43
- description: 'The handle value was invalid.',
44
- },
45
- 10: {
46
- error: 'No such path',
47
- description: 'The file path does not exist or is invalid.',
48
- },
49
- 11: {
50
- error: 'File already exists',
51
- description: 'The file already exists.',
52
- },
53
- 12: {
54
- error: 'Write protect',
55
- description: 'The file is on read-only media, or the media is write protected.',
56
- },
57
- 13: {
58
- error: 'No media',
59
- description: 'The requested operation cannot be completed because there is no media available in the drive.',
60
- },
61
- 14: {
62
- error: 'No space on file-system',
63
- description: 'The requested operation cannot be completed because there is insufficient free space on the filesystem.',
64
- },
65
- 15: {
66
- error: 'Quota exceeded',
67
- description: "The operation cannot be completed because it would exceed the user’s storage quota.",
68
- },
69
- 16: {
70
- error: 'Unknown principal',
71
- description: 'A principal referenced by the request (either the owner, group, or who field of an ACL), was unknown.',
72
- },
73
- 17: {
74
- error: 'Lock conflict',
75
- description: 'The file could not be opened because it is locked by another process.',
76
- },
77
- 18: {
78
- error: 'Directory not empty',
79
- description: 'The directory is not empty.',
80
- },
81
- 19: {
82
- error: 'Not a directory',
83
- description: 'The specified file is not a directory.',
84
- },
85
- 20: {
86
- error: 'Invalid filename',
87
- description: 'The filename is not valid.',
88
- },
89
- 21: {
90
- error: 'Link loop',
91
- description: 'Too many symbolic links encountered or an SSH_FXF_NOFOLLOW encountered a symbolic link as the final component.',
92
- },
93
- 22: {
94
- error: 'Cannot delete',
95
- description: 'The file cannot be deleted. One possible reason is that the advisory read-only attribute-bit is set.',
96
- },
97
- 23: {
98
- error: 'Invalid parameter',
99
- description: 'One of the parameters was out of range or the parameters specified cannot be used together.',
100
- },
101
- 24: {
102
- error: 'File is a directory',
103
- description: 'The specified file was a directory in a context where a directory cannot be used.',
104
- },
105
- 25: {
106
- error: 'Range lock conflict',
107
- description: 'A read or write operation failed because another process’s mandatory byte-range lock overlaps with the request.',
108
- },
109
- 26: {
110
- error: 'Range lock refused',
111
- description: 'A request for a byte range lock was refused.',
112
- },
113
- 27: {
114
- error: 'Delete pending',
115
- description: 'An operation was attempted on a file for which a delete operation is pending.',
116
- },
117
- 28: {
118
- error: 'File corrupt',
119
- description: 'The file is corrupt; a filesystem integrity check should be run.',
120
- },
121
- 29: {
122
- error: 'Owner invalid',
123
- description: 'The principal specified cannot be assigned as an owner of a file.',
124
- },
125
- 30: {
126
- error: 'Group invalid',
127
- description: 'The principal specified cannot be assigned as the primary group of a file.',
128
- },
129
- 31: {
130
- error: 'No matching byte range lock',
131
- description: 'The requested operation could not be completed because the specified byte range lock has not been granted.',
132
- },
133
- };
134
- function getSftpError(code) {
135
- const error = sftpErrors[code];
136
- return error !== null && error !== void 0 ? error : { error: 'Unknown error code' };
137
- }
138
- //# sourceMappingURL=common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/lib/actions/common.ts"],"names":[],"mappings":";;AA4IA,oCAGC;AAtID,MAAM,UAAU,GAAsB;IAClC,CAAC,EAAE;QACC,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,mDAAmD;KACnE;IACD,CAAC,EAAE;QACC,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,sGAAsG;KACtH;IACD,CAAC,EAAE;QACC,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,sDAAsD;KACtE;IACD,CAAC,EAAE;QACC,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,yEAAyE;KACzF;IACD,CAAC,EAAE;QACC,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,iKAAiK;KACjL;IACD,CAAC,EAAE;QACC,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,+EAA+E;KAC/F;IACD,CAAC,EAAE;QACC,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,6GAA6G;KAC7H;IACD,CAAC,EAAE;QACC,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,8GAA8G;KAC9H;IACD,CAAC,EAAE;QACC,KAAK,EAAE,uBAAuB;QAC9B,WAAW,EAAE,gHAAgH;KAChI;IACD,CAAC,EAAE;QACC,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,+BAA+B;KAC/C;IACD,EAAE,EAAE;QACA,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,6CAA6C;KAC7D;IACD,EAAE,EAAE;QACA,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EAAE,0BAA0B;KAC1C;IACD,EAAE,EAAE;QACA,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,kEAAkE;KAClF;IAC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;QACtB,WAAW,EAAE,mEAAmE;KACnF;IACD,EAAE,EAAE;QACA,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,4EAA4E;KAC5F;IACD,EAAE,EAAE;QACA,KAAK,EAAE,6BAA6B;QACpC,WAAW,EAAE,4GAA4G;KAC5H;CACJ,CAAC;AAEF,SAAgB,YAAY,CAAC,IAAY;IACrC,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/B,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;AACpD,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const createFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- protocol: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
3
- allow_unauthorized_certificates: import("@activepieces/pieces-framework").CheckboxProperty<false>;
4
- allow_anonymous_login: import("@activepieces/pieces-framework").CheckboxProperty<false>;
5
- host: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- port: import("@activepieces/pieces-framework").NumberProperty<true>;
7
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
9
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
10
- algorithm: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
11
- }>, {
12
- fileName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
- fileContent: import("@activepieces/pieces-framework").LongTextProperty<true>;
14
- }>;
15
- //# sourceMappingURL=create-file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-file.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-file.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,UAAU;;;;;;;;;;;;;EAsDrB,CAAC"}
@@ -1,92 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createFile = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const basic_ftp_1 = require("basic-ftp");
7
- const common_1 = require("../common");
8
- const auth_1 = require("../auth");
9
- const stream_1 = require("stream");
10
- const common_2 = require("./common");
11
- function createFileWithSFTP(client, fileName, fileContent) {
12
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
13
- const remotePathExists = yield client.exists(fileName);
14
- if (!remotePathExists) {
15
- // Extract the directory path from the fileName
16
- const remoteDirectory = fileName.substring(0, fileName.lastIndexOf('/'));
17
- // Create the directory if it doesn't exist
18
- yield client.mkdir(remoteDirectory, true);
19
- }
20
- yield client.put(Buffer.from(fileContent), fileName);
21
- });
22
- }
23
- function createFileWithFTP(client, fileName, fileContent) {
24
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
25
- // Extract the directory path from the fileName
26
- const remoteDirectory = fileName.substring(0, fileName.lastIndexOf('/'));
27
- // Create the directory if it doesn't exist
28
- yield client.ensureDir(remoteDirectory);
29
- // Upload the file content
30
- const buffer = Buffer.from(fileContent);
31
- yield client.uploadFrom(stream_1.Readable.from(buffer), fileName);
32
- });
33
- }
34
- exports.createFile = (0, pieces_framework_1.createAction)({
35
- audience: 'human',
36
- auth: auth_1.sftpAuth,
37
- name: 'create_file',
38
- displayName: 'Create File from Text',
39
- description: 'Create a new file in the given path',
40
- props: {
41
- fileName: pieces_framework_1.Property.ShortText({
42
- displayName: 'File Path',
43
- required: true,
44
- }),
45
- fileContent: pieces_framework_1.Property.LongText({
46
- displayName: 'File content',
47
- required: true,
48
- }),
49
- },
50
- run(context) {
51
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
52
- const fileName = context.propsValue['fileName'];
53
- const fileContent = context.propsValue['fileContent'];
54
- const protocolBackwardCompatibility = yield (0, common_1.getProtocolBackwardCompatibility)(context.auth.props.protocol);
55
- const client = yield (0, common_1.getClient)(context.auth.props);
56
- try {
57
- switch (protocolBackwardCompatibility) {
58
- case 'ftps':
59
- case 'ftp':
60
- yield createFileWithFTP(client, fileName, fileContent);
61
- break;
62
- default:
63
- case 'sftp':
64
- yield createFileWithSFTP(client, fileName, fileContent);
65
- break;
66
- }
67
- return {
68
- status: 'success',
69
- };
70
- }
71
- catch (err) {
72
- if (err instanceof basic_ftp_1.FTPError) {
73
- console.error((0, common_2.getSftpError)(err.code));
74
- return {
75
- status: 'error',
76
- error: (0, common_2.getSftpError)(err.code),
77
- };
78
- }
79
- else {
80
- return {
81
- status: 'error',
82
- error: err
83
- };
84
- }
85
- }
86
- finally {
87
- yield (0, common_1.endClient)(client, context.auth.props.protocol);
88
- }
89
- });
90
- },
91
- });
92
- //# sourceMappingURL=create-file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-file.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-file.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AAExE,yCAA0D;AAC1D,sCAAmF;AACnF,kCAAmC;AACnC,mCAAkC;AAClC,qCAAwC;AAExC,SAAe,kBAAkB,CAAC,MAAc,EAAE,QAAgB,EAAE,WAAmB;;QACnF,MAAM,gBAAgB,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACvD,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACpB,+CAA+C;YAC/C,MAAM,eAAe,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;YACzE,2CAA2C;YAC3C,MAAM,MAAM,CAAC,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;QAC9C,CAAC;QACD,MAAM,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;CAAA;AAED,SAAe,iBAAiB,CAAC,MAAiB,EAAE,QAAgB,EAAE,WAAmB;;QACrF,+CAA+C;QAC/C,MAAM,eAAe,GAAG,QA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iB,CAAC,MAAmB,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;wBACpE,MAAM;oBACV,QAAQ;oBACR,KAAK,MAAM;wBACP,MAAM,kBAAkB,CAAC,MAAgB,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;wBAClE,MAAM;gBACd,CAAC;gBAED,OAAO;oBACH,MAAM,EAAE,SAAS;iBACpB,CAAC;YACN,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,GAAG,YAAY,oBAAQ,EAAE,CAAC;oBAC1B,OAAO,CAAC,KAAK,CAAC,IAAA,qBAAY,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;oBACtC,OAAO;wBACH,MAAM,EAAE,OAAO;wBACf,KAAK,EAAE,IAAA,qBAAY,EAAC,GAAG,CAAC,IAAI,CAAC;qBAChC,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,OAAO;wBACH,MAAM,EAAE,OAAO;wBACf,KAAK,EAAE,GAAG;qBACb,CAAA;gBACL,CAAC;YACL,CAAC;oBAAS,CAAC;gBACP,MAAM,IAAA,kBAAS,EAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACzD,CAAC;QACL,CAAC;KAAA;CACJ,CAAC,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const createFolderAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- protocol: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
3
- allow_unauthorized_certificates: import("@activepieces/pieces-framework").CheckboxProperty<false>;
4
- allow_anonymous_login: import("@activepieces/pieces-framework").CheckboxProperty<false>;
5
- host: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- port: import("@activepieces/pieces-framework").NumberProperty<true>;
7
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
9
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
10
- algorithm: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
11
- }>, {
12
- folderPath: import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
- recursive: import("@activepieces/pieces-framework").CheckboxProperty<false>;
14
- }>;
15
- //# sourceMappingURL=create-folder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-folder.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-folder.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;EAyD7B,CAAC"}
@@ -1,72 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createFolderAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
6
- const index_1 = require("../../index");
7
- const pieces_framework_1 = require("@activepieces/pieces-framework");
8
- const basic_ftp_1 = require("basic-ftp");
9
- const common_1 = require("./common");
10
- exports.createFolderAction = (0, pieces_framework_1.createAction)({
11
- audience: 'human',
12
- auth: auth_1.sftpAuth,
13
- name: 'createFolder',
14
- displayName: 'Create Folder',
15
- description: 'Creates a folder at given path.',
16
- props: {
17
- folderPath: pieces_framework_1.Property.ShortText({
18
- displayName: 'Folder Path',
19
- required: true,
20
- description: 'The new folder path e.g. `./myfolder`. For FTP/FTPS, it will create nested folders if necessary.',
21
- }),
22
- recursive: pieces_framework_1.Property.Checkbox({
23
- displayName: 'Recursive',
24
- defaultValue: false,
25
- required: false,
26
- description: 'For SFTP only: Create parent directories if they do not exist',
27
- }),
28
- },
29
- run(context) {
30
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
- var _a;
32
- const client = yield (0, index_1.getClient)(context.auth.props);
33
- const directoryPath = context.propsValue.folderPath;
34
- const recursive = (_a = context.propsValue.recursive) !== null && _a !== void 0 ? _a : false;
35
- const protocolBackwardCompatibility = yield (0, index_1.getProtocolBackwardCompatibility)(context.auth.props.protocol);
36
- try {
37
- switch (protocolBackwardCompatibility) {
38
- case 'ftps':
39
- case 'ftp':
40
- yield client.ensureDir(directoryPath);
41
- break;
42
- default:
43
- case 'sftp':
44
- yield client.mkdir(directoryPath, recursive);
45
- break;
46
- }
47
- return {
48
- status: 'success',
49
- };
50
- }
51
- catch (err) {
52
- if (err instanceof basic_ftp_1.FTPError) {
53
- console.error((0, common_1.getSftpError)(err.code));
54
- return {
55
- status: 'error',
56
- error: (0, common_1.getSftpError)(err.code),
57
- };
58
- }
59
- else {
60
- return {
61
- status: 'error',
62
- error: err
63
- };
64
- }
65
- }
66
- finally {
67
- yield (0, index_1.endClient)(client, context.auth.props.protocol);
68
- }
69
- });
70
- },
71
- });
72
- //# sourceMappingURL=create-folder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-folder.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-folder.ts"],"names":[],"mappings":";;;;AAAE,kCAAmC;AACrC,uCAAqF;AACrF,qEAAwE;AAExE,yCAA0D;AAC1D,qCAAwC;AAE3B,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,eAAQ;IACd,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,kGAAkG;SAChH,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC3B,WAAW,EAAE,WAAW;YACxB,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,+DAA+D;SAC7E,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;;YACf,MAAM,MAAM,GAAG,MAAM,IAAA,iBAAS,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnD,MAAM,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;YACpD,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,UAAU,CAAC,SAAS,mCAAI,KAAK,CAAC;YACxD,MAAM,6BAA6B,GAAG,MAAM,IAAA,wCAAgC,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YAC1G,IAAI,CAAC;gBACH,QAAQ,6BAA6B,EAAE,CAAC;oBACtC,KAAK,MAAM,CAAC;oBACZ,KAAK,KAAK;wBACR,MAAO,MAAoB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;wBACrD,MAAM;oBACR,QAAQ;oBACR,KAAK,MAAM;wBACT,MAAO,MAAiB,CAAC,KAAK,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;wBACzD,MAAM;gBACV,CAAC;gBAED,OAAO;oBACL,MAAM,EAAE,SAAS;iBAClB,CAAC;YACJ,CAAC;YACD,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,GAAG,YAAY,oBAAQ,EAAE,CAAC;oBAC1B,OAAO,CAAC,KAAK,CAAC,IAAA,qBAAY,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;oBACtC,OAAO;wBACH,MAAM,EAAE,OAAO;wBACf,KAAK,EAAE,IAAA,qBAAY,EAAC,GAAG,CAAC,IAAI,CAAC;qBAChC,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,OAAO;wBACH,MAAM,EAAE,OAAO;wBACf,KAAK,EAAE,GAAG;qBACb,CAAA;gBACL,CAAC;YACH,CAAC;oBAAS,CAAC;gBACT,MAAM,IAAA,iBAAS,EAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACvD,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,14 +0,0 @@
1
- export declare const deleteFileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- protocol: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
3
- allow_unauthorized_certificates: import("@activepieces/pieces-framework").CheckboxProperty<false>;
4
- allow_anonymous_login: import("@activepieces/pieces-framework").CheckboxProperty<false>;
5
- host: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- port: import("@activepieces/pieces-framework").NumberProperty<true>;
7
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
9
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
10
- algorithm: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
11
- }>, {
12
- filePath: import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
- }>;
14
- //# sourceMappingURL=delete-file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-file.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-file.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAkD3B,CAAC"}
@@ -1,74 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteFileAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const common_1 = require("../common");
7
- const auth_1 = require("../auth");
8
- const basic_ftp_1 = require("basic-ftp");
9
- const common_2 = require("./common");
10
- function deleteFileFromFTP(client, filePath) {
11
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
- yield client.remove(filePath);
13
- });
14
- }
15
- function deleteFileFromSFTP(client, filePath) {
16
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
17
- yield client.delete(filePath);
18
- });
19
- }
20
- exports.deleteFileAction = (0, pieces_framework_1.createAction)({
21
- audience: 'human',
22
- auth: auth_1.sftpAuth,
23
- name: 'deleteFile',
24
- displayName: 'Delete file',
25
- description: 'Deletes a file at given path.',
26
- props: {
27
- filePath: pieces_framework_1.Property.ShortText({
28
- displayName: 'File Path',
29
- required: true,
30
- description: 'The path of the file to delete e.g. `./myfolder/test.mp3`',
31
- }),
32
- },
33
- run(context) {
34
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
35
- const client = yield (0, common_1.getClient)(context.auth.props);
36
- const filePath = context.propsValue.filePath;
37
- const protocolBackwardCompatibility = yield (0, common_1.getProtocolBackwardCompatibility)(context.auth.props.protocol);
38
- try {
39
- switch (protocolBackwardCompatibility) {
40
- case 'ftps':
41
- case 'ftp':
42
- yield deleteFileFromFTP(client, filePath);
43
- break;
44
- default:
45
- case 'sftp':
46
- yield deleteFileFromSFTP(client, filePath);
47
- break;
48
- }
49
- return {
50
- status: 'success',
51
- };
52
- }
53
- catch (err) {
54
- if (err instanceof basic_ftp_1.FTPError) {
55
- console.error((0, common_2.getSftpError)(err.code));
56
- return {
57
- status: 'error',
58
- error: (0, common_2.getSftpError)(err.code),
59
- };
60
- }
61
- else {
62
- return {
63
- status: 'error',
64
- error: err
65
- };
66
- }
67
- }
68
- finally {
69
- yield (0, common_1.endClient)(client, context.auth.props.protocol);
70
- }
71
- });
72
- },
73
- });
74
- //# sourceMappingURL=delete-file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-file.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-file.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAmF;AACnF,kCAAmC;AACnC,yCAA0D;AAE1D,qCAAwC;AAExC,SAAe,iBAAiB,CAAC,MAAiB,EAAE,QAAgB;;QAClE,MAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CAAA;AAED,SAAe,kBAAkB,CAAC,MAAc,EAAE,QAAgB;;QAChE,MAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CAAA;AAEY,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,QAAQ,EAAE,OAAO;IACjB,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EAAE,GAAG;qBACX,CAAA;gBACH,CAAC;YACH,CAAC;oBAAS,CAAC;gBACT,MAAM,IAAA,kBAAS,EAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACvD,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const deleteFolderAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- protocol: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
3
- allow_unauthorized_certificates: import("@activepieces/pieces-framework").CheckboxProperty<false>;
4
- allow_anonymous_login: import("@activepieces/pieces-framework").CheckboxProperty<false>;
5
- host: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- port: import("@activepieces/pieces-framework").NumberProperty<true>;
7
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
9
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
10
- algorithm: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
11
- }>, {
12
- folderPath: import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
- recursive: import("@activepieces/pieces-framework").CheckboxProperty<false>;
14
- }>;
15
- //# sourceMappingURL=delete-folder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-folder.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-folder.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;EA0D7B,CAAC"}
@@ -1,87 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteFolderAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const basic_ftp_1 = require("basic-ftp");
7
- const common_1 = require("../common");
8
- const auth_1 = require("../auth");
9
- const common_2 = require("./common");
10
- function deleteFolderFTP(client, directoryPath, recursive) {
11
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
- if (recursive) {
13
- yield client.removeDir(directoryPath);
14
- }
15
- else {
16
- yield client.removeEmptyDir(directoryPath);
17
- }
18
- });
19
- }
20
- function deleteFolderSFTP(client, directoryPath, recursive) {
21
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
22
- yield client.rmdir(directoryPath, recursive);
23
- });
24
- }
25
- exports.deleteFolderAction = (0, pieces_framework_1.createAction)({
26
- audience: 'human',
27
- auth: auth_1.sftpAuth,
28
- name: 'deleteFolder',
29
- displayName: 'Delete Folder',
30
- description: 'Deletes an existing folder at given path.',
31
- props: {
32
- folderPath: pieces_framework_1.Property.ShortText({
33
- displayName: 'Folder Path',
34
- required: true,
35
- description: 'The path of the folder to delete e.g. `./myfolder`',
36
- }),
37
- recursive: pieces_framework_1.Property.Checkbox({
38
- displayName: 'Recursive',
39
- defaultValue: false,
40
- required: false,
41
- description: 'Enable this option to delete the folder and all its contents, including subfolders and files.',
42
- }),
43
- },
44
- run(context) {
45
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
46
- var _a;
47
- const client = yield (0, common_1.getClient)(context.auth.props);
48
- const directoryPath = context.propsValue.folderPath;
49
- const recursive = (_a = context.propsValue.recursive) !== null && _a !== void 0 ? _a : false;
50
- const protocolBackwardCompatibility = yield (0, common_1.getProtocolBackwardCompatibility)(context.auth.props.protocol);
51
- try {
52
- switch (protocolBackwardCompatibility) {
53
- case 'ftps':
54
- case 'ftp':
55
- yield deleteFolderFTP(client, directoryPath, recursive);
56
- break;
57
- default:
58
- case 'sftp':
59
- yield deleteFolderSFTP(client, directoryPath, recursive);
60
- break;
61
- }
62
- return {
63
- status: 'success',
64
- };
65
- }
66
- catch (err) {
67
- if (err instanceof basic_ftp_1.FTPError) {
68
- console.error((0, common_2.getSftpError)(err.code));
69
- return {
70
- status: 'error',
71
- error: (0, common_2.getSftpError)(err.code),
72
- };
73
- }
74
- else {
75
- return {
76
- status: 'error',
77
- error: err
78
- };
79
- }
80
- }
81
- finally {
82
- yield (0, common_1.endClient)(client, context.auth.props.protocol);
83
- }
84
- });
85
- },
86
- });
87
- //# sourceMappingURL=delete-folder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-folder.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-folder.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AAExE,yCAA0D;AAC1D,sCAAmF;AACnF,kCAAmC;AACnC,qCAAwC;AAExC,SAAe,eAAe,CAAC,MAAiB,EAAE,aAAqB,EAAE,SAAkB;;QACzF,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACN,MAAM,MAAM,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;CAAA;AAED,SAAe,gBAAgB,CAAC,MAAc,EAAE,aAAqB,EAAE,SAAkB;;QACvF,MAAM,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IAC/C,CAAC;CAAA;AAEY,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,eAAQ;IACd,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,2CAA2C;IACxD,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,oDAAoD;SAClE,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC3B,WAAW,EAAE,WAAW;YACxB,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;YACf,WAAW,EACT,+FAA+F;SAClG,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;;YACf,MAAM,M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,CAAC,CAAC"}
@@ -1,14 +0,0 @@
1
- export declare const listFolderContentsAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- protocol: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
3
- allow_unauthorized_certificates: import("@activepieces/pieces-framework").CheckboxProperty<false>;
4
- allow_anonymous_login: import("@activepieces/pieces-framework").CheckboxProperty<false>;
5
- host: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- port: import("@activepieces/pieces-framework").NumberProperty<true>;
7
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
9
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
10
- algorithm: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
11
- }>, {
12
- directoryPath: import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
- }>;
14
- //# sourceMappingURL=list-files.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-files.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/list-files.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAsDnC,CAAC"}