Skip to content

Commit 30f8000

Browse files
authored
Merging pull request #17811
* update pagination * pnpm-lock.yaml
1 parent 8361200 commit 30f8000

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

components/assemblyai/actions/create-captions/create-captions.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
name: "Create Captions",
55
description: "Export your completed transcripts in SRT (srt) or VTT (vtt) format, which can be used for subtitles and closed captions in videos. [See the documentation](https://www.assemblyai.com/docs/API%20reference/transcript)",
66
key: "assemblyai-create-captions",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
assemblyai,

components/assemblyai/actions/get-transcription/get-transcription.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
name: "Get Transcription",
55
description: "Fetches a specific transcribed result from the AssemblyAI API. [See the documentation](https://www.assemblyai.com/docs/API%20reference/transcript)",
66
key: "assemblyai-get-transcription",
7-
version: "0.0.3",
7+
version: "0.0.4",
88
type: "action",
99
props: {
1010
assemblyai,

components/assemblyai/assemblyai.app.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,19 @@ export default {
9999
};
100100
let prevUrl;
101101
const results = [];
102+
const afterId = args.params?.after_id;
102103

103104
do {
104105
const {
105106
transcripts, page_details: pageDetails,
106107
} = await this.listTranscripts(config);
107-
results.push(...transcripts);
108+
for (const transcript of transcripts) {
109+
if (transcript.id === afterId) {
110+
return results;
111+
}
112+
results.push(transcript);
113+
}
114+
config.params.after_id = undefined;
108115
prevUrl = pageDetails.prev_url;
109116
config.url = prevUrl;
110117
} while (prevUrl);

components/assemblyai/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/assemblyai",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Pipedream AssemblyAI Components",
55
"main": "assemblyai.app.mjs",
66
"keywords": [
@@ -13,6 +13,6 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@pipedream/platform": "^1.5.1"
16+
"@pipedream/platform": "^3.1.0"
1717
}
1818
}

components/assemblyai/sources/new-transcription-completed/new-transcription-completed.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "New Transcription Completed",
66
description: "Emit new event when a transcribed audio file from AssemblyAI is ready. [See the documentation](https://www.assemblyai.com/docs/API%20reference/transcript)",
77
key: "assemblyai-new-transcription-completed",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "source",
1010
dedupe: "unique",
1111
props: {

pnpm-lock.yaml

Lines changed: 6 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)