mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-06 01:15:28 +02:00
23 lines
760 B
TypeScript
23 lines
760 B
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
import { splashRequestSchema } from './splash-request-schema';
|
|
|
|
export const splashResponseSchema = {
|
|
...splashRequestSchema,
|
|
$id: '#/components/schemas/splashResponseSchema',
|
|
additionalProperties: false,
|
|
description: 'Data related to a user having seen a splash screen.',
|
|
required: [...splashRequestSchema.required, 'seen'],
|
|
properties: {
|
|
...splashRequestSchema.properties,
|
|
seen: {
|
|
type: 'boolean',
|
|
description:
|
|
'Indicates whether the user has seen the splash screen or not.',
|
|
example: true,
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type SplashResponseSchema = FromSchema<typeof splashResponseSchema>;
|