SpecificationQuestion

Type Alias: SpecificationQuestion

[object Object]

Defined in: api/types.gen.ts:1929

Represents a specification question that is associated with an activity. This entity is used to define specific questions that members are required or allowed to answer when enrolling for an activity. Each SpecificationQuestion is linked to a specific Activity and can have various properties such as the question text in both Dutch and English, the type of the question (e.g., string, boolean, multiple choice), whether answering the question is mandatory for enrollment, and whether the answers provided for this question are visible to other members who enrolled for the same activity. Additionally, if the question type is MultipleChoice, the Options property can be used to define the available options for that question. This entity plays a crucial role in facilitating the collection of relevant information from members during the enrollment process for activities within the system.

Properties

activity?

optional activity?: Activity

Defined in: api/types.gen.ts:1955


activityId?

optional activityId?: number

Defined in: api/types.gen.ts:1937

The unique identifier of the activity to which this specification question belongs.


answers?

optional answers?: SpecificationAnswer[]

Defined in: api/types.gen.ts:1959

The collection of answers provided for this specification question. The content and format of these answers depend on the type of this specification question.


closeOnUnenrollmentDeadline?

optional closeOnUnenrollmentDeadline?: boolean

Defined in: api/types.gen.ts:1971

Whether this question's answer closes at the activity's unenrollment deadline instead of its enrollment deadline. When true and the activity has an unenrollment deadline, the answer can no longer be given or changed once that deadline passes. Otherwise - or when this is false - the answer remains open until the activity's enrollment deadline, falling back to the activity's end date and time if neither deadline is set.


id?

optional id?: number

Defined in: api/types.gen.ts:1933

The unique identifier of a specification question, assigned incrementally.


isMandatory?

optional isMandatory?: boolean

Defined in: api/types.gen.ts:1950

Whether providing an answer for this specification question is mandatory when enrolling for the associated activity.


isPublic?

optional isPublic?: boolean

Defined in: api/types.gen.ts:1954

Whether the answers provided for this specification question are visible to other members who enrolled for the same activity.


options?

optional options?: string | null

Defined in: api/types.gen.ts:1963

The options for this specification question, applicable only if the type of this specification question is MultipleChoice. The content of this field is a list of strings representing the available options seperated by semicolons. For example: "Option 1;Option 2;Option 3".


questionDutch

[object Object]

Defined in: api/types.gen.ts:1941

The question in Dutch.


questionEnglish

[object Object]

Defined in: api/types.gen.ts:1945

The question in English.


type?

optional type?: QuestionType

Defined in: api/types.gen.ts:1946

On this page