/** * 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 { SurveyQuestionOptionSchema } from './SurveyQuestionOptionSchema'; import type { SurveyQuestionSchemaScaleLabels } from './SurveyQuestionSchemaScaleLabels'; /** * One question. Common fields: questionId (server-assigned when * omitted; stable forever after - answers key on it), type, text * (locale map), required. Per-type fields: * scale - scaleMin/scaleMax (integers, min < max), * optional scaleLabels {min, max} locale maps, * optional subtype "nps" (pins 0-10, enables * detractor/passive/promoter classification) * single-choice / multiple-choice * - options: 2-20 entries of {value, label}; * value is a stable lowercase slug (a-z, 0-9, -) * the recipient submits; label is a locale map * open-text - maxLength (default 2000, max 5000) * @export * @interface SurveyQuestionSchema */ export interface SurveyQuestionSchema { /** * Stable identity of the question. Server-assigned uuid hex when omitted at save. * @type {string} * @memberof SurveyQuestionSchema */ questionId?: string; /** * * @type {SurveyQuestionSchemaTypeEnum} * @memberof SurveyQuestionSchema */ type?: SurveyQuestionSchemaTypeEnum; /** * scale only. nps pins scaleMin=0/scaleMax=10 and classifies answers detractor/passive/promoter on submit. * @type {SurveyQuestionSchemaSubtypeEnum} * @memberof SurveyQuestionSchema */ subtype?: SurveyQuestionSchemaSubtypeEnum; /** * * @type {boolean} * @memberof SurveyQuestionSchema */ required?: boolean; /** * Locale map of the question text. en-US required to publish. * @type {{ [key: string]: string; }} * @memberof SurveyQuestionSchema */ text?: { [key: string]: string; }; /** * * @type {number} * @memberof SurveyQuestionSchema */ scaleMin?: number; /** * * @type {number} * @memberof SurveyQuestionSchema */ scaleMax?: number; /** * * @type {SurveyQuestionSchemaScaleLabels} * @memberof SurveyQuestionSchema */ scaleLabels?: SurveyQuestionSchemaScaleLabels; /** * * @type {Array} * @memberof SurveyQuestionSchema */ options?: Array; /** * open-text only. Default 2000. * @type {number} * @memberof SurveyQuestionSchema */ maxLength?: number; } /** * @export */ export declare const SurveyQuestionSchemaTypeEnum: { readonly Scale: "scale"; readonly SingleChoice: "single-choice"; readonly MultipleChoice: "multiple-choice"; readonly OpenText: "open-text"; }; export type SurveyQuestionSchemaTypeEnum = typeof SurveyQuestionSchemaTypeEnum[keyof typeof SurveyQuestionSchemaTypeEnum]; /** * @export */ export declare const SurveyQuestionSchemaSubtypeEnum: { readonly Nps: "nps"; }; export type SurveyQuestionSchemaSubtypeEnum = typeof SurveyQuestionSchemaSubtypeEnum[keyof typeof SurveyQuestionSchemaSubtypeEnum]; /** * Check if a given object implements the SurveyQuestionSchema interface. */ export declare function instanceOfSurveyQuestionSchema(value: object): value is SurveyQuestionSchema; export declare function SurveyQuestionSchemaFromJSON(json: any): SurveyQuestionSchema; export declare function SurveyQuestionSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): SurveyQuestionSchema; export declare function SurveyQuestionSchemaToJSON(json: any): SurveyQuestionSchema; export declare function SurveyQuestionSchemaToJSONTyped(value?: SurveyQuestionSchema | null, ignoreDiscriminator?: boolean): any; //# sourceMappingURL=SurveyQuestionSchema.d.ts.map