2023-01-27 13:13:41 +01:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
|
|
|
|
export const projectStatsSchema = {
|
|
|
|
$id: '#/components/schemas/projectStatsSchema',
|
|
|
|
type: 'object',
|
|
|
|
additionalProperties: false,
|
2023-01-27 17:19:27 +01:00
|
|
|
required: [
|
|
|
|
'avgTimeToProdCurrentWindow',
|
|
|
|
'avgTimeToProdPastWindow',
|
|
|
|
'createdCurrentWindow',
|
|
|
|
'createdPastWindow',
|
|
|
|
'archivedCurrentWindow',
|
|
|
|
'archivedPastWindow',
|
|
|
|
'projectActivityCurrentWindow',
|
|
|
|
'projectActivityPastWindow',
|
|
|
|
'projectMembersAddedCurrentWindow',
|
|
|
|
],
|
2023-01-27 13:13:41 +01:00
|
|
|
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>;
|