Skip to content

Conversation

@vladconstructor
Copy link
Contributor

No description provided.

* @param {array} [parameters.answers] - An array of answers in the format [[1,2], [1], ["true"], ["seen"], [""]]. Based on the question type, answers should either be an integer, "true"/"false", "seen" or an empty string ("") if skipped
* @param {string} [parameters.quizVersionId] - Version identifier for the quiz. Version ID will be returned with the first request and it should be passed with subsequent requests. More information can be found: https://docs.constructor.com/reference/configuration-quizzes
* @param {string} [parameters.quizSessionId] - Session identifier for the quiz. Session ID will be returned with the first request and it should be passed with subsequent requests. More information can be found: https://docs.constructor.com/reference/configuration-quizzes
* @param {boolean} [parameters.skipTracking] - Boolean value indicating if tracking for this question has to be skipped. Might be useful, when you are willing to preload first question of the quiz.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param {boolean} [parameters.skipTracking] - Boolean value indicating if tracking for this question has to be skipped. Might be useful, when you are willing to preload first question of the quiz.
* @param {boolean} [parameters.skipTracking] - If true, tracking for this question will be skipped. This is useful for preloading the first question of a quiz

answers?: any[];
quizVersionId?: string;
quizSessionId?: string;
skipTracking?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed we use QuizzesParameters in functions other than getQuizNextQuestion. We should either omit it other places or have a separate type that extends this on for getQuizNextQuestion

Copy link
Contributor

@esezen esezen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes!

@esezen esezen merged commit fb31be3 into Constructor-io:master Nov 17, 2025
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants