feat(client,challenge-parser): support audio and transcript in quiz questions (#65711)

This commit is contained in:
Huyen Nguyen
2026-02-11 23:52:49 -08:00
committed by GitHub
parent 5202f95af4
commit 1108d25883
20 changed files with 769 additions and 7 deletions
@@ -26,6 +26,20 @@ const idToFilepath = new Map();
// recently overwritten files
const idToOverwrittenFile = new Map();
exports.createSchemaCustomization = ({ actions }) => {
const { createTypes } = actions;
const typeDefs = `
type QuizQuestion {
text: String!
distractors: [String!]!
answer: String!
audioId: String
transcript: String
}
`;
createTypes(typeDefs);
};
exports.sourceNodes = function sourceChallengesSourceNodes(
{ actions, reporter, createNodeId, createContentDigest },
pluginOptions