File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 11import fireflies from "../../fireflies.app.mjs" ;
22import queries from "../../common/queries.mjs" ;
3+ import { ConfigurationError } from "@pipedream/platform" ;
34
45export default {
56 key : "fireflies-find-meeting-by-id" ,
67 name : "Find Meeting by ID" ,
78 description : "Locates a specific user meeting by its unique ID. [See the documentation](https://docs.fireflies.ai/graphql-api/query/transcript)" ,
8- version : "0.0.1 " ,
9+ version : "0.0.2 " ,
910 type : "action" ,
1011 props : {
1112 fireflies,
@@ -17,6 +18,10 @@ export default {
1718 } ,
1819 } ,
1920 async run ( { $ } ) {
21+ if ( ! this . meetingId ) {
22+ throw new ConfigurationError ( "Meeting ID is required" ) ;
23+ }
24+
2025 const meeting = await this . fireflies . query ( {
2126 $,
2227 data : {
@@ -26,6 +31,11 @@ export default {
2631 } ,
2732 } ,
2833 } ) ;
34+
35+ if ( meeting . errors ?. length ) {
36+ throw new ConfigurationError ( `Error: ${ meeting . errors [ 0 ] . message } ` ) ;
37+ }
38+
2939 $ . export ( "$summary" , `Successfully found meeting with ID: ${ this . meetingId } ` ) ;
3040 return meeting ;
3141 } ,
Original file line number Diff line number Diff line change 11import fireflies from "../../fireflies.app.mjs" ;
22import queries from "../../common/queries.mjs" ;
3+ import { ConfigurationError } from "@pipedream/platform" ;
34
45export default {
56 key : "fireflies-find-recent-meeting" ,
67 name : "Find Recent Meeting" ,
78 description : "Retrieves the most recent meeting for a user. [See the documentation](https://docs.fireflies.ai/graphql-api/query/user)" ,
8- version : "0.0.1 " ,
9+ version : "0.0.2 " ,
910 type : "action" ,
1011 props : {
1112 fireflies,
@@ -17,6 +18,10 @@ export default {
1718 } ,
1819 } ,
1920 async run ( { $ } ) {
21+ if ( ! this . userId ) {
22+ throw new ConfigurationError ( "User ID is required" ) ;
23+ }
24+
2025 const { data : { user : { recent_meeting : meetingId } } } = await this . fireflies . query ( {
2126 $,
2227 data : {
@@ -39,6 +44,11 @@ export default {
3944 } ,
4045 } ,
4146 } ) ;
47+
48+ if ( meeting . errors ?. length ) {
49+ throw new ConfigurationError ( `Error: ${ meeting . errors [ 0 ] . message } ` ) ;
50+ }
51+
4252 $ . export ( "$summary" , `Successfully fetched the most recent meeting for user with ID ${ this . userId } ` ) ;
4353 return meeting ;
4454 } ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @pipedream/fireflies" ,
3- "version" : " 0.1.0 " ,
3+ "version" : " 0.1.1 " ,
44 "description" : " Pipedream Fireflies Components" ,
55 "main" : " fireflies.app.mjs" ,
66 "keywords" : [
1313 "access" : " public"
1414 },
1515 "dependencies" : {
16- "@pipedream/platform" : " ^1.6.2 "
16+ "@pipedream/platform" : " ^3.0.3 "
1717 }
1818}
You can’t perform that action at this time.
0 commit comments