Skip to content

Commit

Permalink
🚧 フロントエンドのコード生成
Browse files Browse the repository at this point in the history
  • Loading branch information
ikura-hamu committed Jan 10, 2025
1 parent 25935c4 commit acfba7c
Showing 1 changed file with 31 additions and 14 deletions.
45 changes: 31 additions & 14 deletions client/src/api/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,23 +549,29 @@ export interface components {
| components['schemas']['RunningBenchmark']
| components['schemas']['FinishedBenchmark']
/** @description ベンチマーク結果 */
Benchmark: (
Benchmark: {
status: 'Benchmark'
} & (Omit<
| components['schemas']['WaitingBenchmark']
| components['schemas']['RunningBenchmark']
| components['schemas']['FinishedBenchmark']
) & {
| components['schemas']['FinishedBenchmark'],
'status'
> & {
/**
* @description ベンチマークの競技者用ログ(標準出力)
* @example log
*/
log: string
}
})
/** @description Adminが見ることができるベンチマーク結果 */
BenchmarkAdminResult: (
BenchmarkAdminResult: {
status: 'BenchmarkAdminResult'
} & (Omit<
| components['schemas']['WaitingBenchmark']
| components['schemas']['RunningBenchmark']
| components['schemas']['FinishedBenchmark']
) & {
| components['schemas']['FinishedBenchmark'],
'status'
> & {
/**
* @description ベンチマークの競技者用ログ(標準出力)
* @example log
Expand All @@ -576,15 +582,18 @@ export interface components {
* @example admin log
*/
adminLog: string
}
})
/** @description status=waiting のベンチマーク結果 */
WaitingBenchmark: {
id: components['schemas']['BenchmarkId']
instanceId: components['schemas']['InstanceId']
teamId: components['schemas']['TeamId']
userId: components['schemas']['UserId']
/** @enum {string} */
status: 'waiting'
/**
* @description discriminator enum property added by openapi-typescript
* @enum {string}
*/
status: 'WaitingBenchmark'
createdAt: components['schemas']['CreatedAt']
}
/** @description status=running のベンチマーク結果 */
Expand All @@ -593,8 +602,11 @@ export interface components {
instanceId: components['schemas']['InstanceId']
teamId: components['schemas']['TeamId']
userId: components['schemas']['UserId']
/** @enum {string} */
status: 'running'
/**
* @description discriminator enum property added by openapi-typescript
* @enum {string}
*/
status: 'RunningBenchmark'
score: components['schemas']['Score']
createdAt: components['schemas']['CreatedAt']
startedAt: components['schemas']['StartedAt']
Expand All @@ -605,9 +617,14 @@ export interface components {
instanceId: components['schemas']['InstanceId']
teamId: components['schemas']['TeamId']
userId: components['schemas']['UserId']
/** @enum {string} */
status: 'finished'
/**
* @description discriminator enum property added by openapi-typescript
* @enum {string}
*/
status: 'FinishedBenchmark'
score: components['schemas']['Score']
/** @enum {string} */
result: 'passed' | 'failed' | 'error'
createdAt: components['schemas']['CreatedAt']
startedAt: components['schemas']['StartedAt']
finishedAt: components['schemas']['FinishedAt']
Expand Down

0 comments on commit acfba7c

Please sign in to comment.