Skip to content

Commit 19d4e10

Browse files
authored
Configure file stash sync: Happy Scribe-Puppeteer (#17373)
Adds dir props to relevant components for apps starting with 'H' to 'P'. The 'dir' prop indicates that a stash ID should be passed when running these actions via the Connect API. This allows files written to the ephemeral /tmp directory in one action to be read by another, separately executed action since both can sync /tmp with the same File Stash directory.
1 parent 3afd891 commit 19d4e10

File tree

104 files changed

+468
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+468
-114
lines changed

components/happy_scribe/actions/submit-file/submit-file.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import app from "../../happy_scribe.app.mjs";
33

44
export default {
55
name: "Submit File",
6-
version: "0.1.0",
6+
version: "0.1.1",
77
key: "happy_scribe-submit-file",
88
description: "Submit a file. [See the documentation](https://dev.happyscribe.com/sections/product/#uploads-2-upload-your-file-with-the-signed-url)",
99
type: "action",
@@ -19,6 +19,12 @@ export default {
1919
label: "File Path or URL",
2020
description: "The file to upload. Provide either a file URL or a path to a file in the `/tmp` directory (for example, `/tmp/myFile.txt`)",
2121
},
22+
syncDir: {
23+
type: "dir",
24+
accessMode: "read",
25+
sync: true,
26+
optional: true,
27+
},
2228
},
2329
async run({ $ }) {
2430
const data = await getFileStream(this.filePath);

components/happy_scribe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/happy_scribe",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Pipedream Happy Scribe Components",
55
"main": "happy_scribe.app.mjs",
66
"keywords": [

components/hathr_ai/actions/upload-document/upload-document.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hathr_ai-upload-document",
88
name: "Upload Document",
99
description: "Uploads a document that can be used in future chat requests. [See the documentation](https://drive.google.com/drive/folders/1jtoSXqzhe-iwf9kfUwTCVQBu4iXVJO2x?usp=sharing)",
10-
version: "1.0.0",
10+
version: "1.0.1",
1111
type: "action",
1212
props: {
1313
hathrAi,
@@ -16,6 +16,12 @@ export default {
1616
label: "File Path or URL",
1717
description: "The file to upload. Provide a file URL or a path to a file in the `/tmp` directory.",
1818
},
19+
syncDir: {
20+
type: "dir",
21+
accessMode: "read",
22+
sync: true,
23+
optional: true,
24+
},
1925
},
2026
async run({ $ }) {
2127
const {

components/hathr_ai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/hathr_ai",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Pipedream Hathr AI Components",
55
"main": "hathr_ai.app.mjs",
66
"keywords": [

components/helper_functions/actions/csv-file-to-objects/csv-file-to-objects.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "helper_functions-csv-file-to-objects",
88
name: "CSV File To Objects",
99
description: "Convert a CSV file to an array of objects.",
10-
version: "0.0.1",
10+
version: "0.0.2",
1111
type: "action",
1212
props: {
1313
app,
@@ -44,6 +44,12 @@ export default {
4444
optional: true,
4545
default: false,
4646
},
47+
syncDir: {
48+
type: "dir",
49+
accessMode: "read",
50+
sync: true,
51+
optional: true,
52+
},
4753
},
4854
async run({ $ }) {
4955
const {

components/helper_functions/actions/download-file-to-tmp/download-file-to-tmp.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "helper_functions-download-file-to-tmp",
77
name: "Download File To /tmp",
88
description: "Downloads a file to [your workflow's /tmp directory](https://pipedream.com/docs/code/nodejs/working-with-files/#the-tmp-directory)",
9-
version: "0.3.0",
9+
version: "0.3.1",
1010
type: "action",
1111
props: {
1212
helper_functions,
@@ -20,6 +20,11 @@ export default {
2020
label: "Target Filename",
2121
description: "The filename that will be used to save in /tmp",
2222
},
23+
syncDir: {
24+
type: "dir",
25+
accessMode: "write",
26+
sync: true,
27+
},
2328
},
2429
async run({ $ }) {
2530
const {

components/helper_functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/helper_functions",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"description": "Pipedream Helper_functions Components",
55
"main": "helper_functions.app.mjs",
66
"keywords": [

components/heyy/actions/upload-file/upload-file.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "heyy-upload-file",
77
name: "Upload File",
88
description: "Uploads a file. [See the documentation](https://documenter.getpostman.com/view/27408936/2sA2r3a6DW#67e41b81-318c-4ed0-be78-e92fd39f3530).",
9-
version: "0.0.1",
9+
version: "0.0.2",
1010
type: "action",
1111
props: {
1212
app,
@@ -25,6 +25,12 @@ export default {
2525
"DOCUMENT",
2626
],
2727
},
28+
syncDir: {
29+
type: "dir",
30+
accessMode: "read",
31+
sync: true,
32+
optional: true,
33+
},
2834
},
2935
methods: {
3036
uploadFile(args = {}) {

components/heyy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/heyy",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Heyy Components",
55
"main": "heyy.app.mjs",
66
"keywords": [

components/hippo_video/actions/send-personalization-request/send-personalization-request.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "hippo_video-send-personalization-request",
99
name: "Send Personalization Request",
1010
description: "Sends a personalization request for a specified video. [See the documentation](https://help.hippovideo.io/support/solutions/articles/19000099793-bulk-video-personalization-and-tracking-api)",
11-
version: "1.0.0",
11+
version: "1.0.1",
1212
type: "action",
1313
props: {
1414
hippoVideo,
@@ -23,6 +23,12 @@ export default {
2323
label: "File Path or URL",
2424
description: "Provide a file URL or a path to a file (csv, xls, or xlsx) in the `/tmp` directory.",
2525
},
26+
syncDir: {
27+
type: "dir",
28+
accessMode: "read",
29+
sync: true,
30+
optional: true,
31+
},
2632
},
2733
async run({ $ }) {
2834
const formData = new FormData();

0 commit comments

Comments
 (0)