This commit is contained in:
commit
f265233a06
168 changed files with 31208 additions and 0 deletions
34
server/src/http/routes/metrics.def.ts
Normal file
34
server/src/http/routes/metrics.def.ts
Normal file
|
@ -0,0 +1,34 @@
|
|||
import {Type} from "@sinclair/typebox";
|
||||
|
||||
export const CreateMetricBody = Type.Object({
|
||||
name: Type.String(),
|
||||
});
|
||||
|
||||
export const CreateMetricParams = Type.Object({
|
||||
projectId: Type.String(),
|
||||
});
|
||||
|
||||
export const UpdateMetricBody = Type.Object({
|
||||
name: Type.String(),
|
||||
});
|
||||
|
||||
export const UpdateMetricParams = Type.Object({
|
||||
projectId: Type.String(),
|
||||
metricId: Type.String(),
|
||||
});
|
||||
|
||||
export const SetMetricValueBody = Type.Object({
|
||||
value: Type.Number(),
|
||||
date: Type.Optional(Type.Number())
|
||||
});
|
||||
|
||||
export const SetMetricValueParams = Type.Object({
|
||||
projectId: Type.String(),
|
||||
metricId: Type.String()
|
||||
});
|
||||
|
||||
export const DeleteHistoryRecordParams = Type.Object({
|
||||
projectId: Type.String(),
|
||||
metricId: Type.String(),
|
||||
recordId: Type.String()
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue