/** * SmartyMeet Dev03 API REST * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.1 * Contact: developer@smartymeet.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { AnswerFileSchema } from './AnswerFileSchema'; import type { AnswerSchemaValue } from './AnswerSchemaValue'; /** * A candidate's answer to one question. The `value` shape depends * on the question type - branch on `questionType` to know how to * read it. File uploads (file-upload / video-recording question * types) live in the separate `files` array, NOT in `value`. This * mirrors the wire shape used by /v1/guest/attempts/{id} PATCH * and avoids OpenAPI generator collisions on multiple array * variants in a single oneOf. * @export * @interface AnswerSchema */ export interface AnswerSchema { /** * References QuestionSchema.questionId. * @type {string} * @memberof AnswerSchema */ questionId: string; /** * Mirror of the question's type for client-side discrimination. * @type {AnswerSchemaQuestionTypeEnum} * @memberof AnswerSchema */ questionType?: AnswerSchemaQuestionTypeEnum; /** * * @type {AnswerSchemaValue} * @memberof AnswerSchema */ value?: AnswerSchemaValue; /** * File / video uploads for `file-upload` and `video-recording` * question types. Empty for all other types. Files are uploaded * via presigned PUT to S3 first; this carries the resulting * references. * @type {Array} * @memberof AnswerSchema */ files?: Array; } /** * @export */ export declare const AnswerSchemaQuestionTypeEnum: { readonly SingleChoice: "single-choice"; readonly MultipleChoice: "multiple-choice"; readonly Scale: "scale"; readonly OpenText: "open-text"; readonly Ranking: "ranking"; readonly SituationalJudgment: "situational-judgment"; readonly FileUpload: "file-upload"; readonly VideoRecording: "video-recording"; }; export type AnswerSchemaQuestionTypeEnum = typeof AnswerSchemaQuestionTypeEnum[keyof typeof AnswerSchemaQuestionTypeEnum]; /** * Check if a given object implements the AnswerSchema interface. */ export declare function instanceOfAnswerSchema(value: object): value is AnswerSchema; export declare function AnswerSchemaFromJSON(json: any): AnswerSchema; export declare function AnswerSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnswerSchema; export declare function AnswerSchemaToJSON(json: any): AnswerSchema; export declare function AnswerSchemaToJSONTyped(value?: AnswerSchema | null, ignoreDiscriminator?: boolean): any; //# sourceMappingURL=AnswerSchema.d.ts.map