2022-06-17 08:15:56 +02:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
|
2023-07-13 13:27:52 +02:00
|
|
|
export const feedbackResponseSchema = {
|
|
|
|
$id: '#/components/schemas/feedbackResponseSchema',
|
2022-06-17 08:15:56 +02:00
|
|
|
additionalProperties: false,
|
2023-07-13 13:27:52 +02:00
|
|
|
type: 'object',
|
|
|
|
description: 'User feedback information about a particular feedback item.',
|
2022-06-17 08:15:56 +02:00
|
|
|
properties: {
|
|
|
|
userId: {
|
2023-07-13 13:27:52 +02:00
|
|
|
description: 'The ID of the user that gave the feedback.',
|
2023-07-06 15:27:43 +02:00
|
|
|
type: 'integer',
|
|
|
|
example: 2,
|
2022-06-17 08:15:56 +02:00
|
|
|
},
|
|
|
|
neverShow: {
|
2023-07-06 15:27:43 +02:00
|
|
|
description:
|
2023-07-13 13:27:52 +02:00
|
|
|
'`true` if the user has asked never to see this feedback questionnaire again.',
|
2022-06-17 08:15:56 +02:00
|
|
|
type: 'boolean',
|
2023-07-06 15:27:43 +02:00
|
|
|
example: false,
|
2022-06-17 08:15:56 +02:00
|
|
|
},
|
|
|
|
given: {
|
2023-07-06 15:27:43 +02:00
|
|
|
description: 'When this feedback was given',
|
2022-06-17 08:15:56 +02:00
|
|
|
type: 'string',
|
|
|
|
format: 'date-time',
|
|
|
|
nullable: true,
|
2023-07-06 15:27:43 +02:00
|
|
|
example: '2023-07-06T08:29:21.282Z',
|
2022-06-17 08:15:56 +02:00
|
|
|
},
|
2023-07-13 13:27:52 +02:00
|
|
|
feedbackId: {
|
|
|
|
description: 'The name of the feedback session',
|
|
|
|
type: 'string',
|
|
|
|
example: 'pnps',
|
|
|
|
},
|
2022-06-17 08:15:56 +02:00
|
|
|
},
|
|
|
|
components: {},
|
|
|
|
} as const;
|
|
|
|
|
2023-07-13 13:27:52 +02:00
|
|
|
export type FeedbackResponseSchema = FromSchema<typeof feedbackResponseSchema>;
|