Skip to content

Commit 1620d7a

Browse files
committed
updates
1 parent 7ccedf7 commit 1620d7a

File tree

18 files changed

+43
-37
lines changed

18 files changed

+43
-37
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "Upload a File",
77
description: "Uploads a file to a selected folder. [See the documentation](https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload__anchor)",
88
key: "dropbox-upload-file",
9-
version: "0.0.15",
9+
version: "1.0.0",
1010
type: "action",
1111
props: {
1212
dropbox,
@@ -25,7 +25,7 @@ export default {
2525
label: "File Name",
2626
description: "The name of your new file (make sure to include the file extension).",
2727
},
28-
file: {
28+
filePath: {
2929
type: "string",
3030
label: "File",
3131
description: "Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFlie.pdf).",
@@ -58,7 +58,7 @@ export default {
5858
},
5959
async run({ $ }) {
6060
const {
61-
file,
61+
filePath,
6262
path,
6363
name,
6464
autorename,
@@ -68,7 +68,7 @@ export default {
6868
clientModified,
6969
} = this;
7070

71-
const contents = await getFileStream(file);
71+
const contents = await getFileStream(filePath);
7272

7373
let normalizedPath = this.dropbox.getNormalizedPath(path, true);
7474

components/dropbox/actions/upload-multiple-files/upload-multiple-files.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
name: "Upload Multiple Files",
99
description: "Uploads multiple file to a selected folder. [See the documentation](https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload__anchor)",
1010
key: "dropbox-upload-multiple-files",
11-
version: "0.0.3",
11+
version: "1.0.0",
1212
type: "action",
1313
props: {
1414
dropbox,
@@ -22,7 +22,7 @@ export default {
2222
],
2323
description: "The folder to upload to. Type the folder name to search for it in the user's Dropbox.",
2424
},
25-
files: {
25+
filesPaths: {
2626
type: "string[]",
2727
label: "Files",
2828
description: "Provide an array of either file URLs or paths to a files in the /tmp directory (for example, /tmp/myFlie.pdf).",
@@ -62,15 +62,15 @@ export default {
6262
const {
6363
dropbox,
6464
path,
65-
files,
65+
filesPaths,
6666
autorename,
6767
mute,
6868
strictConflict,
6969
mode,
7070
filenames,
7171
} = this;
7272

73-
const numFiles = files.length;
73+
const numFiles = filesPaths.length;
7474
if (numFiles !== filenames.length) {
7575
throw new ConfigurationError(`Number of filenames must match number of files. Detected ${numFiles} file(s) and ${filenames.length} filename(s)`);
7676
}
@@ -79,7 +79,7 @@ export default {
7979
const normalizedPath = dropbox.getNormalizedPath(path, true);
8080
let i = 0;
8181

82-
for (const file of files) {
82+
for (const file of filesPaths) {
8383
const contents = await getFileStream(file);
8484
fileInfo.push({
8585
contents,

components/jira/actions/add-attachment-to-issue/add-attachment-to-issue.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ export default {
2525
}),
2626
],
2727
},
28-
file: {
28+
filename: {
2929
type: "string",
3030
label: "File",
3131
description: "Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFlie.pdf).",
3232
},
3333
},
3434
async run({ $ }) {
3535
const data = new FormData();
36-
const file = this.file;
36+
const file = this.filename;
3737

3838
const {
3939
stream, metadata,

components/jira/actions/add-multiple-attachments-to-issue/add-multiple-attachments-to-issue.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default {
2525
}),
2626
],
2727
},
28-
files: {
28+
filenames: {
2929
type: "string",
3030
label: "File",
3131
description: "Provide either an array of file URLs or paths to files in the /tmp directory (for example, /tmp/myFlie.pdf).",
@@ -34,8 +34,8 @@ export default {
3434
async run({ $ }) {
3535
const responses = [];
3636

37-
for (let i = 0; i < this.files.length; i++) {
38-
const file = this.files[i];
37+
for (let i = 0; i < this.filenames.length; i++) {
38+
const file = this.filenames[i];
3939
const data = new FormData();
4040
const {
4141
stream, metadata,

components/speechace/actions/score-scripted-recording/score-scripted-recording.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
type: "action",
1111
props: {
1212
speechace,
13-
file: {
13+
filePath: {
1414
propDefinition: [
1515
speechace,
1616
"file",
@@ -44,7 +44,7 @@ export default {
4444
const data = new FormData();
4545
const {
4646
stream, metadata,
47-
} = await getFileStreamAndMetadata(this.file);
47+
} = await getFileStreamAndMetadata(this.filePath);
4848
data.append("user_audio_file", stream, {
4949
contentType: metadata.contentType,
5050
knownLength: metadata.size,

components/speechace/actions/transcribe-and-score-recording/transcribe-and-score-recording.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
type: "action",
1111
props: {
1212
speechace,
13-
file: {
13+
filePath: {
1414
propDefinition: [
1515
speechace,
1616
"file",
@@ -39,7 +39,7 @@ export default {
3939
const data = new FormData();
4040
const {
4141
stream, metadata,
42-
} = await getFileStreamAndMetadata(this.file);
42+
} = await getFileStreamAndMetadata(this.filePath);
4343
data.append("user_audio_file", stream, {
4444
contentType: metadata.contentType,
4545
knownLength: metadata.size,

components/spotlightr/actions/create-video/create-video.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import spotlightr from "../../spotlightr.app.mjs";
55
export default {
66
key: "spotlightr-create-video",
77
name: "Create Video",
8-
version: "0.0.2",
8+
version: "1.0.0",
99
description: "Create a video in an application. [See the documentation](https://app.spotlightr.com/docs/api/#create-video)",
1010
type: "action",
1111
props: {

components/syncmate_by_assitro/actions/send-message/send-message.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { streamToBuffer } from "../../common/utils.mjs";
22
import syncmateByAssitro from "../../syncmate_by_assitro.app.mjs";
3-
import { getFileStream } from "@pipedream/platform";
3+
import {
4+
getFileStream, ConfigurationError,
5+
} from "@pipedream/platform";
46

57
export default {
68
key: "syncmate_by_assitro-send-message",
@@ -34,6 +36,10 @@ export default {
3436
},
3537
},
3638
async run({ $ }) {
39+
if (this.media && !this.fileName) {
40+
throw new ConfigurationError("You must provide the file name.");
41+
}
42+
3743
const msgs = [
3844
{
3945
number: this.number,

components/twitter/actions/upload-media/upload-media.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default defineAction({
1616
type: "action",
1717
props: {
1818
...common.props,
19-
file: {
19+
filePath: {
2020
type: "string",
2121
label: "File",
2222
description: "Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFlie.pdf).",
@@ -35,7 +35,7 @@ export default defineAction({
3535
try {
3636
const {
3737
stream, metadata,
38-
} = await getFileStreamAndMetadata(this.file);
38+
} = await getFileStreamAndMetadata(this.filePath);
3939
content = stream;
4040
meta = metadata;
4141
} catch (err) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
file: {
1414
type: "string",
1515
label: "File",
16-
description: "The path to the file saved to the `/tmp` directory (e.g. `/tmp/example.txt`). [See the documentation](https://pipedream.com/docs/workflows/steps/code/nodejs/working-with-files/#the-tmp-directory).",
16+
description: "Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFlie.pdf).",
1717
},
1818
},
1919
async run({ $ }) {

0 commit comments

Comments
 (0)