1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/lib/openapi/spec/project-stats-schema.ts

40 lines
989 B
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
export const projectStatsSchema = {
$id: '#/components/schemas/projectStatsSchema',
type: 'object',
additionalProperties: false,
properties: {
avgTimeToProdCurrentWindow: {
type: 'number',
},
avgTimeToProdPastWindow: {
type: 'number',
},
createdCurrentWindow: {
type: 'number',
},
createdPastWindow: {
type: 'number',
},
archivedCurrentWindow: {
type: 'number',
},
archivedPastWindow: {
type: 'number',
},
projectActivityCurrentWindow: {
type: 'number',
},
projectActivityPastWindow: {
type: 'number',
},
projectMembersAddedCurrentWindow: {
type: 'number',
},
},
components: {},
} as const;
export type ProjectStatsSchema = FromSchema<typeof projectStatsSchema>;