Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openapi: document operations for admin ui feedback (#4226)
This PR updates the endpoint documentation and schemas related to Admin UI feedback.
- Loading branch information
1 parent
3da1cbb
commit 8f5bda6
Showing
8 changed files
with
111 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { FromSchema } from 'json-schema-to-ts'; | ||
|
||
export const feedbackCreateSchema = { | ||
$id: '#/components/schemas/feedbackCreateSchema', | ||
required: ['feedbackId'], | ||
type: 'object', | ||
description: 'User feedback information to be created.', | ||
properties: { | ||
neverShow: { | ||
description: | ||
'`true` if the user has asked never to see this feedback questionnaire again. Defaults to `false`.', | ||
type: 'boolean', | ||
example: false, | ||
}, | ||
feedbackId: { | ||
description: 'The name of the feedback session', | ||
type: 'string', | ||
example: 'pnps', | ||
}, | ||
}, | ||
components: {}, | ||
} as const; | ||
|
||
export type FeedbackCreateSchema = FromSchema<typeof feedbackCreateSchema>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { FromSchema } from 'json-schema-to-ts'; | ||
|
||
export const feedbackUpdateSchema = { | ||
$id: '#/components/schemas/feedbackUpdateSchema', | ||
type: 'object', | ||
description: 'User feedback information to be updated.', | ||
properties: { | ||
userId: { | ||
description: 'The ID of the user that gave the feedback.', | ||
type: 'integer', | ||
example: 2, | ||
}, | ||
neverShow: { | ||
description: | ||
'`true` if the user has asked never to see this feedback questionnaire again.', | ||
type: 'boolean', | ||
example: false, | ||
}, | ||
given: { | ||
description: 'When this feedback was given', | ||
type: 'string', | ||
format: 'date-time', | ||
nullable: true, | ||
example: '2023-07-06T08:29:21.282Z', | ||
}, | ||
}, | ||
components: {}, | ||
} as const; | ||
|
||
export type FeedbackUpdateSchema = FromSchema<typeof feedbackUpdateSchema>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters