mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
a785465943
This change updates the splash endpoints and related schemas for the admin ui tag.
24 lines
737 B
TypeScript
24 lines
737 B
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const splashRequestSchema = {
|
|
$id: '#/components/schemas/splashRequestSchema',
|
|
type: 'object',
|
|
description: 'Data related to a user having seen a splash screen.',
|
|
required: ['userId', 'splashId'],
|
|
properties: {
|
|
userId: {
|
|
type: 'integer',
|
|
description: 'The ID of the user that was shown the splash screen.',
|
|
example: 1,
|
|
},
|
|
splashId: {
|
|
type: 'string',
|
|
description: 'The ID of the splash screen that was shown.',
|
|
example: 'new-splash-screen',
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type SplashRequestSchema = FromSchema<typeof splashRequestSchema>;
|