the folloiwng, modify it to get all fields of transcripts:
import { axios } from “@pipedream/platform”;
export default defineComponent({
name: “Source Demo”,
description: “This is a demo source”,
props: {
fireflies: {
type: “app”,
app: “fireflies”,
},
timer: {
type: “$.interface.timer”,
default: {
intervalSeconds: 15 * 60,
},
},
},
dedupe: “greatest”,
async run({ steps, $ }) {
const data = {
query: { transcripts { participants { id name email } } } ,
};
const response = await axios($, {
method: “POST”,
url: https://api.fireflies.ai/graphql,
headers: {
Authorization: Bearer ${this.fireflies.$auth.api_key},
},
data,
});
const transcripts = response.data.data.transcripts;
transcripts.forEach((transcript) => {
transcript.participants.forEach((participant) => {
this.$emit(participant, {
id: participant.id,
summary: `Participant: ${participant.name}`,
ts: new Date().getTime(),
});
});
});
},
});