@activepieces/piece-amazon-s3 0.3.0 → 0.3.2
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 +13 -12
- package/src/index.d.ts +2 -2
- package/src/index.js +76 -79
- package/src/index.js.map +1 -1
- package/src/lib/actions/read-file.d.ts +1 -1
- package/src/lib/actions/read-file.js +7 -7
- package/src/lib/actions/read-file.js.map +1 -1
- package/src/lib/actions/upload-file.d.ts +1 -1
- package/src/lib/actions/upload-file.js +45 -45
- package/src/lib/actions/upload-file.js.map +1 -1
- package/src/lib/common.d.ts +1 -1
- package/src/lib/common.js +3 -2
- package/src/lib/common.js.map +1 -1
- package/src/lib/triggers/new-file.d.ts +18 -2
- package/src/lib/triggers/new-file.js +14 -12
- package/src/lib/triggers/new-file.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-amazon-s3",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@aws-sdk/client-s3": "
|
|
6
|
-
"@sinclair/typebox": "
|
|
7
|
-
"axios": "1.
|
|
8
|
-
"dayjs": "
|
|
9
|
-
"is-base64": "
|
|
10
|
-
"
|
|
5
|
+
"@aws-sdk/client-s3": "3.398.0",
|
|
6
|
+
"@sinclair/typebox": "0.26.8",
|
|
7
|
+
"axios": "^1.6.3",
|
|
8
|
+
"dayjs": "1.11.9",
|
|
9
|
+
"is-base64": "1.1.0",
|
|
10
|
+
"lodash": "4.17.21",
|
|
11
|
+
"nanoid": "3.3.6",
|
|
11
12
|
"semver": "7.5.4",
|
|
12
|
-
"@activepieces/pieces-common": "0.2.
|
|
13
|
-
"@activepieces/pieces-framework": "0.
|
|
14
|
-
"@activepieces/shared": "0.
|
|
15
|
-
"tslib": "
|
|
13
|
+
"@activepieces/pieces-common": "0.2.8",
|
|
14
|
+
"@activepieces/pieces-framework": "0.7.15",
|
|
15
|
+
"@activepieces/shared": "0.10.68",
|
|
16
|
+
"tslib": "1.14.1"
|
|
16
17
|
},
|
|
17
18
|
"main": "./src/index.js",
|
|
18
|
-
"
|
|
19
|
+
"type": "commonjs"
|
|
19
20
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const amazonS3Auth: import("@activepieces/pieces-framework").CustomAuthProperty<
|
|
1
|
+
export declare const amazonS3Auth: import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
2
|
accessKeyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
secretAccessKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
4
|
bucket: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
5
|
endpoint: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
6
|
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
7
7
|
}>;
|
|
8
|
-
export declare const amazonS3: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<
|
|
8
|
+
export declare const amazonS3: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
9
|
accessKeyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
10
|
secretAccessKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
11
|
bucket: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
package/src/index.js
CHANGED
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.amazonS3 = exports.amazonS3Auth = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const
|
|
7
|
-
const new_file_1 = require("./lib/triggers/new-file");
|
|
6
|
+
const shared_1 = require("@activepieces/shared");
|
|
8
7
|
const read_file_1 = require("./lib/actions/read-file");
|
|
8
|
+
const upload_file_1 = require("./lib/actions/upload-file");
|
|
9
9
|
const common_1 = require("./lib/common");
|
|
10
|
+
const new_file_1 = require("./lib/triggers/new-file");
|
|
10
11
|
const description = `
|
|
11
12
|
This piece allows you to upload files to Amazon S3 or other S3 compatible services.
|
|
12
13
|
|
|
@@ -36,128 +37,128 @@ exports.amazonS3Auth = pieces_framework_1.PieceAuth.CustomAuth({
|
|
|
36
37
|
region: pieces_framework_1.Property.StaticDropdown({
|
|
37
38
|
displayName: 'Region',
|
|
38
39
|
options: {
|
|
39
|
-
|
|
40
|
+
options: [
|
|
40
41
|
{
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
label: 'Default',
|
|
43
|
+
value: 'us-east-1',
|
|
43
44
|
},
|
|
44
45
|
{
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
label: 'US East (N. Virginia) [us-east-1]',
|
|
47
|
+
value: 'us-east-1',
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
label: 'US East (Ohio) [us-east-2]',
|
|
51
|
+
value: 'us-east-2',
|
|
51
52
|
},
|
|
52
53
|
{
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
label: 'US West (N. California) [us-west-1]',
|
|
55
|
+
value: 'us-west-1',
|
|
55
56
|
},
|
|
56
57
|
{
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
label: 'US West (Oregon) [us-west-2]',
|
|
59
|
+
value: 'us-west-2',
|
|
59
60
|
},
|
|
60
61
|
{
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
label: 'Africa (Cape Town) [af-south-1]',
|
|
63
|
+
value: 'af-south-1',
|
|
63
64
|
},
|
|
64
65
|
{
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
label: 'Asia Pacific (Hong Kong) [ap-east-1]',
|
|
67
|
+
value: 'ap-east-1',
|
|
67
68
|
},
|
|
68
69
|
{
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
label: 'Asia Pacific (Mumbai) [ap-south-1]',
|
|
71
|
+
value: 'ap-south-1',
|
|
71
72
|
},
|
|
72
73
|
{
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
label: 'Asia Pacific (Osaka-Local) [ap-northeast-3]',
|
|
75
|
+
value: 'ap-northeast-3',
|
|
75
76
|
},
|
|
76
77
|
{
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
label: 'Asia Pacific (Seoul) [ap-northeast-2]',
|
|
79
|
+
value: 'ap-northeast-2',
|
|
79
80
|
},
|
|
80
81
|
{
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
label: 'Asia Pacific (Singapore) [ap-southeast-1]',
|
|
83
|
+
value: 'ap-southeast-1',
|
|
83
84
|
},
|
|
84
85
|
{
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
label: 'Asia Pacific (Sydney) [ap-southeast-2]',
|
|
87
|
+
value: 'ap-southeast-2',
|
|
87
88
|
},
|
|
88
89
|
{
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
label: 'Asia Pacific (Tokyo) [ap-northeast-1]',
|
|
91
|
+
value: 'ap-northeast-1',
|
|
91
92
|
},
|
|
92
93
|
{
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
label: 'Canada (Central) [ca-central-1]',
|
|
95
|
+
value: 'ca-central-1',
|
|
95
96
|
},
|
|
96
97
|
{
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
label: 'Europe (Frankfurt) [eu-central-1]',
|
|
99
|
+
value: 'eu-central-1',
|
|
99
100
|
},
|
|
100
101
|
{
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
label: 'Europe (Ireland) [eu-west-1]',
|
|
103
|
+
value: 'eu-west-1',
|
|
103
104
|
},
|
|
104
105
|
{
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
label: 'Europe (London) [eu-west-2]',
|
|
107
|
+
value: 'eu-west-2',
|
|
107
108
|
},
|
|
108
109
|
{
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
label: 'Europe (Milan) [eu-south-1]',
|
|
111
|
+
value: 'eu-south-1',
|
|
111
112
|
},
|
|
112
113
|
{
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
label: 'Europe (Paris) [eu-west-3]',
|
|
115
|
+
value: 'eu-west-3',
|
|
115
116
|
},
|
|
116
117
|
{
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
label: 'Europe (Stockholm) [eu-north-1]',
|
|
119
|
+
value: 'eu-north-1',
|
|
119
120
|
},
|
|
120
121
|
{
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
label: 'Middle East (Bahrain) [me-south-1]',
|
|
123
|
+
value: 'me-south-1',
|
|
123
124
|
},
|
|
124
125
|
{
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
label: 'South America (São Paulo) [sa-east-1]',
|
|
127
|
+
value: 'sa-east-1',
|
|
127
128
|
},
|
|
128
129
|
{
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
label: 'Europe (Spain) [eu-south-2]',
|
|
131
|
+
value: 'eu-south-2',
|
|
131
132
|
},
|
|
132
133
|
{
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
label: 'Asia Pacific (Hyderabad) [ap-south-2]',
|
|
135
|
+
value: 'ap-south-2',
|
|
135
136
|
},
|
|
136
137
|
{
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
label: 'Asia Pacific (Jakarta) [ap-southeast-3]',
|
|
139
|
+
value: 'ap-southeast-3',
|
|
139
140
|
},
|
|
140
141
|
{
|
|
141
|
-
|
|
142
|
-
|
|
142
|
+
label: 'Asia Pacific (Melbourne) [ap-southeast-4]',
|
|
143
|
+
value: 'ap-southeast-4',
|
|
143
144
|
},
|
|
144
145
|
{
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
label: 'China (Beijing) [cn-north-1]',
|
|
147
|
+
value: 'cn-north-1',
|
|
147
148
|
},
|
|
148
149
|
{
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
label: 'China (Ningxia) [cn-northwest-1]',
|
|
151
|
+
value: 'cn-northwest-1',
|
|
151
152
|
},
|
|
152
153
|
{
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
label: 'Europe (Zurich) [eu-central-2]',
|
|
155
|
+
value: 'eu-central-2',
|
|
155
156
|
},
|
|
156
157
|
{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
]
|
|
158
|
+
label: 'Middle East (UAE) [me-central-1]',
|
|
159
|
+
value: 'me-central-1',
|
|
160
|
+
},
|
|
161
|
+
],
|
|
161
162
|
},
|
|
162
163
|
required: true,
|
|
163
164
|
}),
|
|
@@ -167,33 +168,29 @@ exports.amazonS3Auth = pieces_framework_1.PieceAuth.CustomAuth({
|
|
|
167
168
|
try {
|
|
168
169
|
yield s3.listObjectsV2({
|
|
169
170
|
Bucket: auth.bucket,
|
|
170
|
-
MaxKeys: 1
|
|
171
|
+
MaxKeys: 1,
|
|
171
172
|
});
|
|
172
173
|
return {
|
|
173
|
-
valid: true
|
|
174
|
+
valid: true,
|
|
174
175
|
};
|
|
175
176
|
}
|
|
176
177
|
catch (e) {
|
|
177
178
|
return {
|
|
178
179
|
valid: false,
|
|
179
|
-
error: e === null || e === void 0 ? void 0 : e.message
|
|
180
|
+
error: e === null || e === void 0 ? void 0 : e.message,
|
|
180
181
|
};
|
|
181
182
|
}
|
|
182
183
|
}),
|
|
183
|
-
required: true
|
|
184
|
+
required: true,
|
|
184
185
|
});
|
|
185
186
|
exports.amazonS3 = (0, pieces_framework_1.createPiece)({
|
|
186
|
-
displayName:
|
|
187
|
-
logoUrl:
|
|
187
|
+
displayName: 'Amazon S3',
|
|
188
|
+
logoUrl: 'https://cdn.activepieces.com/pieces/amazon-s3.png',
|
|
188
189
|
minimumSupportedRelease: '0.5.0',
|
|
189
|
-
authors: [
|
|
190
|
+
authors: ['Willianwg', 'MoShizzle'],
|
|
191
|
+
categories: [shared_1.PieceCategory.DEVELOPER_TOOLS],
|
|
190
192
|
auth: exports.amazonS3Auth,
|
|
191
|
-
actions: [
|
|
192
|
-
|
|
193
|
-
read_file_1.readFile
|
|
194
|
-
],
|
|
195
|
-
triggers: [
|
|
196
|
-
new_file_1.newFile
|
|
197
|
-
],
|
|
193
|
+
actions: [upload_file_1.amazons3UploadFile, read_file_1.readFile],
|
|
194
|
+
triggers: [new_file_1.newFile],
|
|
198
195
|
});
|
|
199
196
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/amazon-s3/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,iDAAqD;AACrD,uDAAmD;AACnD,2DAA+D;AAC/D,yCAAwC;AACxC,sDAAkD;AAElD,MAAM,WAAW,GAAG;;;;;;CAMnB,CAAC;AAEW,QAAA,YAAY,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC/C,WAAW,EAAE,WAAW;IACxB,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,eAAe;YAC5B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,eAAe,EAAE,4BAAS,CAAC,UAAU,CAAC;YACpC,WAAW,EAAE,mBAAmB;YAChC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC9B,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE;gBACP,OAAO,E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C;SACH;IACH,CAAC,CAAA;IACD,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,QAAQ,GAAG,IAAA,8BAAW,EAAC;IAClC,WAAW,EAAE,WAAW;IAExB,OAAO,EAAE,mDAAmD;IAC5D,uBAAuB,EAAE,OAAO;IAChC,OAAO,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;IACnC,UAAU,EAAE,CAAC,sBAAa,CAAC,eAAe,CAAC;IAC3C,IAAI,EAAE,oBAAY;IAClB,OAAO,EAAE,CAAC,gCAAkB,EAAE,oBAAQ,CAAC;IACvC,QAAQ,EAAE,CAAC,kBAAO,CAAC;CACpB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const readFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<
|
|
1
|
+
export declare const readFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
2
|
accessKeyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
secretAccessKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
4
|
bucket: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
@@ -8,14 +8,14 @@ const common_1 = require("../common");
|
|
|
8
8
|
exports.readFile = (0, pieces_framework_1.createAction)({
|
|
9
9
|
auth: __1.amazonS3Auth,
|
|
10
10
|
name: 'read-file',
|
|
11
|
-
displayName:
|
|
12
|
-
description:
|
|
11
|
+
displayName: 'Read File',
|
|
12
|
+
description: 'Read a file from S3 to use it in other steps',
|
|
13
13
|
props: {
|
|
14
14
|
key: pieces_framework_1.Property.ShortText({
|
|
15
15
|
displayName: 'Key',
|
|
16
16
|
description: 'The key of the file to read',
|
|
17
|
-
required: true
|
|
18
|
-
})
|
|
17
|
+
required: true,
|
|
18
|
+
}),
|
|
19
19
|
},
|
|
20
20
|
run(context) {
|
|
21
21
|
var _a;
|
|
@@ -23,10 +23,10 @@ exports.readFile = (0, pieces_framework_1.createAction)({
|
|
|
23
23
|
const { bucket } = context.auth;
|
|
24
24
|
const { key } = context.propsValue;
|
|
25
25
|
const s3 = (0, common_1.createS3)(context.auth);
|
|
26
|
-
const file =
|
|
26
|
+
const file = yield s3.getObject({
|
|
27
27
|
Bucket: bucket,
|
|
28
|
-
Key: key
|
|
29
|
-
})
|
|
28
|
+
Key: key,
|
|
29
|
+
});
|
|
30
30
|
const base64 = yield ((_a = file.Body) === null || _a === void 0 ? void 0 : _a.transformToString('base64'));
|
|
31
31
|
if (!base64) {
|
|
32
32
|
throw new Error(`Could not read file ${key} from S3`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-file.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"read-file.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/amazon-s3/src/lib/actions/read-file.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AAExE,6BAAqC;AACrC,sCAAqC;AAExB,QAAA,QAAQ,GAAG,IAAA,+BAAY,EAAC;IACnC,IAAI,EAAE,gBAAY;IAClB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,8CAA8C;IAC3D,KAAK,EAAE;QACL,GAAG,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;;YACf,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAChC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACnC,MAAM,EAAE,GAAG,IAAA,iBAAQ,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAElC,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,SAAS,CAAC;gBAC9B,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,GAAG;aACT,CAAC,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAA,CAAC;YAC5D,IAAI,CAAC,MAAM,EAAE;gBACX,MAAM,IAAI,KAAK,CAAC,uBAAuB,GAAG,UAAU,CAAC,CAAC;aACvD;YACD,OAAO,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;gBAC/B,QAAQ,EAAE,GAAG;gBACb,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC;aACpC,CAAC,CAAC;;KACJ;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const amazons3UploadFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<
|
|
1
|
+
export declare const amazons3UploadFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
2
|
accessKeyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
secretAccessKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
4
|
bucket: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
@@ -8,8 +8,8 @@ const common_1 = require("../common");
|
|
|
8
8
|
exports.amazons3UploadFile = (0, pieces_framework_1.createAction)({
|
|
9
9
|
auth: __1.amazonS3Auth,
|
|
10
10
|
name: 'upload-file',
|
|
11
|
-
displayName:
|
|
12
|
-
description:
|
|
11
|
+
displayName: 'Upload File',
|
|
12
|
+
description: 'Upload an File to S3',
|
|
13
13
|
props: {
|
|
14
14
|
file: pieces_framework_1.Property.File({
|
|
15
15
|
displayName: 'File',
|
|
@@ -18,7 +18,7 @@ exports.amazons3UploadFile = (0, pieces_framework_1.createAction)({
|
|
|
18
18
|
fileName: pieces_framework_1.Property.ShortText({
|
|
19
19
|
displayName: 'File Name',
|
|
20
20
|
required: false,
|
|
21
|
-
description:
|
|
21
|
+
description: 'my-file-name (no extension)',
|
|
22
22
|
}),
|
|
23
23
|
acl: pieces_framework_1.Property.StaticDropdown({
|
|
24
24
|
displayName: 'ACL',
|
|
@@ -26,35 +26,35 @@ exports.amazons3UploadFile = (0, pieces_framework_1.createAction)({
|
|
|
26
26
|
options: {
|
|
27
27
|
options: [
|
|
28
28
|
{
|
|
29
|
-
label:
|
|
30
|
-
value:
|
|
29
|
+
label: 'private',
|
|
30
|
+
value: 'private',
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
label:
|
|
34
|
-
value:
|
|
33
|
+
label: 'public-read',
|
|
34
|
+
value: 'public-read',
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
label:
|
|
38
|
-
value:
|
|
37
|
+
label: 'public-read-write',
|
|
38
|
+
value: 'public-read-write',
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
label:
|
|
42
|
-
value:
|
|
41
|
+
label: 'authenticated-read',
|
|
42
|
+
value: 'authenticated-read',
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
label:
|
|
46
|
-
value:
|
|
45
|
+
label: 'aws-exec-read',
|
|
46
|
+
value: 'aws-exec-read',
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
|
-
label:
|
|
50
|
-
value:
|
|
49
|
+
label: 'bucket-owner-read',
|
|
50
|
+
value: 'bucket-owner-read',
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
label:
|
|
54
|
-
value:
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
}
|
|
53
|
+
label: 'bucket-owner-full-control',
|
|
54
|
+
value: 'bucket-owner-full-control',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
58
|
}),
|
|
59
59
|
type: pieces_framework_1.Property.StaticDropdown({
|
|
60
60
|
displayName: 'Type',
|
|
@@ -62,47 +62,47 @@ exports.amazons3UploadFile = (0, pieces_framework_1.createAction)({
|
|
|
62
62
|
options: {
|
|
63
63
|
options: [
|
|
64
64
|
{
|
|
65
|
-
label:
|
|
66
|
-
value:
|
|
65
|
+
label: 'image/png',
|
|
66
|
+
value: 'image/png',
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
label:
|
|
70
|
-
value:
|
|
69
|
+
label: 'image/jpeg',
|
|
70
|
+
value: 'image/jpeg',
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
label:
|
|
74
|
-
value:
|
|
73
|
+
label: 'image/gif',
|
|
74
|
+
value: 'image/gif',
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
|
-
label:
|
|
78
|
-
value:
|
|
77
|
+
label: 'audio/mpeg',
|
|
78
|
+
value: 'audio/mpeg',
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
label:
|
|
82
|
-
value:
|
|
81
|
+
label: 'audio/wav',
|
|
82
|
+
value: 'audio/wav',
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
|
-
label:
|
|
86
|
-
value:
|
|
85
|
+
label: 'video/mp4',
|
|
86
|
+
value: 'video/mp4',
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
label:
|
|
90
|
-
value:
|
|
89
|
+
label: 'application/pdf',
|
|
90
|
+
value: 'application/pdf',
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
label:
|
|
94
|
-
value:
|
|
93
|
+
label: 'application/msword',
|
|
94
|
+
value: 'application/msword',
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
|
-
label:
|
|
98
|
-
value:
|
|
97
|
+
label: 'text/plain',
|
|
98
|
+
value: 'text/plain',
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
label:
|
|
102
|
-
value:
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
}
|
|
101
|
+
label: 'application/json',
|
|
102
|
+
value: 'application/json',
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
106
|
}),
|
|
107
107
|
},
|
|
108
108
|
run(context) {
|
|
@@ -111,8 +111,8 @@ exports.amazons3UploadFile = (0, pieces_framework_1.createAction)({
|
|
|
111
111
|
const { file, fileName, acl, type } = context.propsValue;
|
|
112
112
|
const s3 = (0, common_1.createS3)(context.auth);
|
|
113
113
|
const contentType = type;
|
|
114
|
-
const [_, ext] = contentType.split(
|
|
115
|
-
const extension =
|
|
114
|
+
const [_, ext] = contentType.split('/');
|
|
115
|
+
const extension = '.' + ext;
|
|
116
116
|
const generatedName = new Date().toISOString() + Date.now() + extension;
|
|
117
117
|
const finalFileName = fileName ? fileName + extension : generatedName;
|
|
118
118
|
const uploadResponse = yield s3.putObject({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/amazon-s3/src/lib/actions/upload-file.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAqC;AACrC,sCAAqC;AAExB,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,gBAAY;IAClB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,sBAAsB;IACnC,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,IAAI,CAAC;YAClB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,WAAW;YACxB,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,6BAA6B;SAC3C,CAAC;QACF,GAAG,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC3B,WAAW,EAAE,KAAK;YAClB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,SAAS;wBAChB,KAAK,EAAE,SAAS;qBAC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AAG,CAAC,OAAO;;YACf,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAChC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEzD,MAAM,EAAE,GAAG,IAAA,iBAAQ,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAElC,MAAM,WAAW,GAAG,IAAI,CAAC;YACzB,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACxC,MAAM,SAAS,GAAG,GAAG,GAAG,GAAG,CAAC;YAE5B,MAAM,aAAa,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;YAExE,MAAM,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC;YAEtE,MAAM,cAAc,GAAG,MAAM,EAAE,CAAC,SAAS,CAAC;gBACxC,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,aAAa;gBAClB,GAAG,EAAE,GAAG;gBACR,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,IAAI,CAAC,IAAI;aAChB,CAAC,CAAC;YAEH,OAAO;gBACL,QAAQ,EAAE,aAAa;gBACvB,IAAI,EAAE,cAAc,CAAC,IAAI;aAC1B,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
package/src/lib/common.d.ts
CHANGED
package/src/lib/common.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createS3 = void 0;
|
|
4
|
+
const shared_1 = require("@activepieces/shared");
|
|
4
5
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
5
6
|
function createS3(auth) {
|
|
6
7
|
const s3 = new client_s3_1.S3({
|
|
@@ -8,9 +9,9 @@ function createS3(auth) {
|
|
|
8
9
|
accessKeyId: auth.accessKeyId,
|
|
9
10
|
secretAccessKey: auth.secretAccessKey,
|
|
10
11
|
},
|
|
11
|
-
forcePathStyle: auth.endpoint ? true :
|
|
12
|
+
forcePathStyle: auth.endpoint ? true : undefined,
|
|
12
13
|
region: auth.region,
|
|
13
|
-
endpoint: auth.endpoint,
|
|
14
|
+
endpoint: auth.endpoint === '' || (0, shared_1.isNil)(auth.endpoint) ? undefined : auth.endpoint,
|
|
14
15
|
});
|
|
15
16
|
return s3;
|
|
16
17
|
}
|
package/src/lib/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/amazon-s3/src/lib/common.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAC7C,kDAAwC;AAExC,SAAgB,QAAQ,CAAC,IAKxB;IACC,MAAM,EAAE,GAAG,IAAI,cAAE,CAAC;QAChB,WAAW,EAAE;YACX,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC;QACD,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;QAChD,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,QAAQ,EACN,IAAI,CAAC,QAAQ,KAAK,EAAE,IAAI,IAAA,cAAK,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ;KAC3E,CAAC,CAAC;IACH,OAAO,EAAE,CAAC;AACZ,CAAC;AAjBD,4BAiBC"}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
import { TriggerStrategy } from
|
|
2
|
-
export declare const newFile: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.
|
|
1
|
+
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
+
export declare const newFile: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
+
accessKeyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
secretAccessKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
+
bucket: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
+
endpoint: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
+
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
8
|
+
}>, {
|
|
9
|
+
folderPath: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
+
accessKeyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
+
secretAccessKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
+
bucket: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
14
|
+
endpoint: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
15
|
+
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
16
|
+
}>, {
|
|
17
|
+
folderPath: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
18
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
19
|
accessKeyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
20
|
secretAccessKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
21
|
bucket: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
@@ -15,17 +15,19 @@ const polling = {
|
|
|
15
15
|
const params = {
|
|
16
16
|
Bucket: auth.bucket,
|
|
17
17
|
MaxKeys: 100,
|
|
18
|
-
StartAfter: lastItemId
|
|
18
|
+
StartAfter: lastItemId,
|
|
19
19
|
};
|
|
20
20
|
if (propsValue.folderPath)
|
|
21
|
-
params.Prefix = `${propsValue.folderPath.endsWith('/')
|
|
21
|
+
params.Prefix = `${propsValue.folderPath.endsWith('/')
|
|
22
|
+
? propsValue.folderPath.slice(0, -1)
|
|
23
|
+
: propsValue.folderPath}`;
|
|
22
24
|
const currentValues = (_a = (yield s3.listObjectsV2(params)).Contents) !== null && _a !== void 0 ? _a : [];
|
|
23
25
|
const items = currentValues.map((item) => ({
|
|
24
26
|
id: item.Key,
|
|
25
|
-
data: item
|
|
27
|
+
data: item,
|
|
26
28
|
}));
|
|
27
29
|
return items;
|
|
28
|
-
})
|
|
30
|
+
}),
|
|
29
31
|
};
|
|
30
32
|
exports.newFile = (0, pieces_framework_1.createTrigger)({
|
|
31
33
|
auth: __1.amazonS3Auth,
|
|
@@ -35,8 +37,8 @@ exports.newFile = (0, pieces_framework_1.createTrigger)({
|
|
|
35
37
|
props: {
|
|
36
38
|
folderPath: pieces_framework_1.Property.ShortText({
|
|
37
39
|
displayName: 'Folder Path',
|
|
38
|
-
required: false
|
|
39
|
-
})
|
|
40
|
+
required: false,
|
|
41
|
+
}),
|
|
40
42
|
},
|
|
41
43
|
type: pieces_framework_2.TriggerStrategy.POLLING,
|
|
42
44
|
onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -68,11 +70,11 @@ exports.newFile = (0, pieces_framework_1.createTrigger)({
|
|
|
68
70
|
});
|
|
69
71
|
}),
|
|
70
72
|
sampleData: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
73
|
+
Key: 'myfolder/100-3.png',
|
|
74
|
+
LastModified: '2023-08-04T13:51:26.000Z',
|
|
75
|
+
ETag: '"e9f16cce12352322272525f5af65a2e"',
|
|
76
|
+
Size: 40239,
|
|
77
|
+
StorageClass: 'STANDARD',
|
|
78
|
+
},
|
|
77
79
|
});
|
|
78
80
|
//# sourceMappingURL=new-file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-file.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"new-file.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/amazon-s3/src/lib/triggers/new-file.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,qEAAiE;AACjE,+DAIqC;AAErC,6BAAqC;AACrC,sCAAqC;AAErC,MAAM,OAAO,GAGT;IACF,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAClC,KAAK,EAAE,CAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,EAAE;;QAChD,MAAM,EAAE,GAAG,IAAA,iBAAQ,EAAC,IAAI,CAAC,CAAC;QAC1B,MAAM,MAAM,GAAQ;YAClB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,OAAO,EAAE,GAAG;YACZ,UAAU,EAAE,UAAU;SACvB,CAAC;QACF,IAAI,UAAU,CAAC,UAAU;YACvB,MAAM,CAAC,MAAM,GAAG,GACd,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC;gBACjC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACpC,CAAC,CAAC,UAAU,CAAC,UACjB,EAAE,CAAC;QAEL,MAAM,aAAa,GAAG,MAAA,CAAC,MAAM,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,mCAAI,EAAE,CAAC;QACtE,MAAM,KAAK,GAAI,aAAuB,CAAC,GAAG,CAAC,CAAC,IAAqB,EAAE,EAAE,CAAC,CAAC;YACrE,EAAE,EAAE,IAAI,CAAC,GAAG;YACZ,IAAI,EAAE,IAAI;SACX,CA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