diff --git a/components/assemblyai/actions/create-captions/create-captions.mjs b/components/assemblyai/actions/create-captions/create-captions.mjs index cc6017d13a6cc..8fb97f6f89717 100644 --- a/components/assemblyai/actions/create-captions/create-captions.mjs +++ b/components/assemblyai/actions/create-captions/create-captions.mjs @@ -4,7 +4,7 @@ export default { name: "Create Captions", 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)", key: "assemblyai-create-captions", - version: "0.0.1", + version: "0.0.2", type: "action", props: { assemblyai, diff --git a/components/assemblyai/actions/get-transcription/get-transcription.mjs b/components/assemblyai/actions/get-transcription/get-transcription.mjs index c334dbfc0fe3b..0be26b1b831a9 100644 --- a/components/assemblyai/actions/get-transcription/get-transcription.mjs +++ b/components/assemblyai/actions/get-transcription/get-transcription.mjs @@ -4,7 +4,7 @@ export default { name: "Get Transcription", description: "Fetches a specific transcribed result from the AssemblyAI API. [See the documentation](https://www.assemblyai.com/docs/API%20reference/transcript)", key: "assemblyai-get-transcription", - version: "0.0.3", + version: "0.0.4", type: "action", props: { assemblyai, diff --git a/components/assemblyai/assemblyai.app.mjs b/components/assemblyai/assemblyai.app.mjs index 90cbbea2714a3..4e1f512c62c11 100644 --- a/components/assemblyai/assemblyai.app.mjs +++ b/components/assemblyai/assemblyai.app.mjs @@ -99,12 +99,19 @@ export default { }; let prevUrl; const results = []; + const afterId = args.params?.after_id; do { const { transcripts, page_details: pageDetails, } = await this.listTranscripts(config); - results.push(...transcripts); + for (const transcript of transcripts) { + if (transcript.id === afterId) { + return results; + } + results.push(transcript); + } + config.params.after_id = undefined; prevUrl = pageDetails.prev_url; config.url = prevUrl; } while (prevUrl); diff --git a/components/assemblyai/package.json b/components/assemblyai/package.json index f864b10394e7d..512ce1a4a6e5d 100644 --- a/components/assemblyai/package.json +++ b/components/assemblyai/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/assemblyai", - "version": "0.2.1", + "version": "0.2.2", "description": "Pipedream AssemblyAI Components", "main": "assemblyai.app.mjs", "keywords": [ @@ -13,6 +13,6 @@ "access": "public" }, "dependencies": { - "@pipedream/platform": "^1.5.1" + "@pipedream/platform": "^3.1.0" } } diff --git a/components/assemblyai/sources/new-transcription-completed/new-transcription-completed.mjs b/components/assemblyai/sources/new-transcription-completed/new-transcription-completed.mjs index 31d0d4c218e71..69df9c21c519e 100644 --- a/components/assemblyai/sources/new-transcription-completed/new-transcription-completed.mjs +++ b/components/assemblyai/sources/new-transcription-completed/new-transcription-completed.mjs @@ -5,7 +5,7 @@ export default { name: "New Transcription Completed", description: "Emit new event when a transcribed audio file from AssemblyAI is ready. [See the documentation](https://www.assemblyai.com/docs/API%20reference/transcript)", key: "assemblyai-new-transcription-completed", - version: "0.0.1", + version: "0.0.2", type: "source", dedupe: "unique", props: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 850abceccefbf..3b7b1fe072b97 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1074,8 +1074,8 @@ importers: components/assemblyai: dependencies: '@pipedream/platform': - specifier: ^1.5.1 - version: 1.6.6 + specifier: ^3.1.0 + version: 3.1.0 components/asters: dependencies: @@ -4158,8 +4158,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/ebay: - specifiers: {} + components/ebay: {} components/echtpost_postcards: dependencies: @@ -9571,8 +9570,7 @@ importers: specifier: ^4.3.2 version: 4.5.0 - components/openum: - specifiers: {} + components/openum: {} components/openweather_api: dependencies: @@ -12833,8 +12831,7 @@ importers: components/sms_magic: {} - components/sms_messages: - specifiers: {} + components/sms_messages: {} components/sms_partner: {} @@ -14904,8 +14901,7 @@ importers: specifier: ^3.0.0 version: 3.0.3 - components/wbiztool: - specifiers: {} + components/wbiztool: {} components/wealthbox: dependencies: @@ -37330,6 +37326,8 @@ snapshots: '@putout/operator-filesystem': 5.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3)) '@putout/operator-json': 2.2.0 putout: 36.13.1(eslint@8.57.1)(typescript@5.6.3) + transitivePeerDependencies: + - supports-color '@putout/operator-regexp@1.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3))': dependencies: