Skip to content

Commit 1b885f6

Browse files
committed
updates
1 parent 1d5cb52 commit 1b885f6

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

components/aws/sources/s3-restored-file/s3-restored-file.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ export default {
1010
version: "0.2.0",
1111
dedupe: "unique",
1212
props: {
13+
info: {
14+
type: "alert",
15+
alertType: "info",
16+
content: "Allows receipt of notifications for event initiation and completion when restoring objects from the **S3 Glacier Flexible Retrieval** storage class, **S3 Glacier Deep Archive** storage class, **S3 Intelligent-Tiering Archive Access tier**, and **S3 Intelligent-Tiering Deep Archive Access tier**.",
17+
},
1318
...base.props,
1419
detectRestoreInitiation: {
1520
type: "boolean",

components/box/box.app.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ export default {
129129
type: "string",
130130
label: "Target",
131131
description: "The target item that will be used by webhooks.",
132-
async options({ prevContext }) {
132+
async options({
133+
prevContext, type,
134+
}) {
133135
const {
134136
marker,
135137
queue,
@@ -154,7 +156,7 @@ export default {
154156
...resp.entries.filter((e) => e.type == "folder").map((e) => e.id),
155157
],
156158
},
157-
options: resp.entries.map((e) => ({
159+
options: resp.entries.filter((e) => !type || e.type == type).map((e) => ({
158160
value: JSON.stringify({
159161
id: e.id,
160162
type: e.type,
@@ -185,7 +187,7 @@ export default {
185187
...innerResp.entries.filter((e) => e.type == "folder").map((e) => e.id),
186188
],
187189
},
188-
options: innerResp.entries.map((e) => ({
190+
options: innerResp.entries.filter((e) => !type || e.type == type).map((e) => ({
189191
value: JSON.stringify({
190192
id: e.id,
191193
type: e.type,

components/box/sources/new-file/new-file.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ export default {
1212
...common,
1313
props: {
1414
...common.props,
15+
webhookTarget: {
16+
propDefinition: [
17+
common.props.app,
18+
"webhookTarget",
19+
() => ({
20+
type: "folder",
21+
}),
22+
],
23+
},
1524
includeLink: {
1625
label: "Include Link",
1726
type: "boolean",

0 commit comments

Comments
 (0)