2022-06-17 08:15:56 +02:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
|
|
|
|
export const feedbackSchema = {
|
|
|
|
$id: '#/components/schemas/feedbackSchema',
|
|
|
|
type: 'object',
|
|
|
|
additionalProperties: false,
|
2023-07-06 15:27:43 +02:00
|
|
|
description: 'User feedback information',
|
2022-06-17 08:15:56 +02:00
|
|
|
properties: {
|
|
|
|
userId: {
|
2023-07-06 15:27:43 +02:00
|
|
|
description: 'Identifier of the current user giving feedback',
|
|
|
|
type: 'integer',
|
|
|
|
example: 2,
|
2022-06-17 08:15:56 +02:00
|
|
|
},
|
|
|
|
feedbackId: {
|
2023-07-06 15:27:43 +02:00
|
|
|
description: 'The name of the feedback session',
|
2022-06-17 08:15:56 +02:00
|
|
|
type: 'string',
|
2023-07-06 15:27:43 +02:00
|
|
|
example: 'pnps',
|
2022-06-17 08:15:56 +02:00
|
|
|
},
|
|
|
|
neverShow: {
|
2023-07-06 15:27:43 +02:00
|
|
|
description:
|
|
|
|
'`true` when user opts-in to never show the feedback 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
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type FeedbackSchema = FromSchema<typeof feedbackSchema>;
|