Merged PR 153: Task一覧APIのResponseで省略可能でないといけないプロパティが必須になっている箇所を修正する
## 概要 [Task1956: Task一覧APIのResponseで省略可能でないといけないプロパティが必須になっている箇所を修正する](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/1956) [Task1918: タスク一覧、タスク追加APIのコメント修正](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/OMDSDictation/_workitems/edit/1918) - Transcription開始日時と終了日時がNULLでも問題ないようにプロパティの型を修正しました。 - タスク一覧の音声ファイル録音時間のコメントも併せて修正しています。 ## レビューポイント - 修正内容は適切か ## UIの変更 - なし ## 動作確認状況 - ローカルで確認
This commit is contained in:
parent
42bc458632
commit
418d568af2
@ -2358,7 +2358,7 @@
|
||||
},
|
||||
"duration": {
|
||||
"type": "string",
|
||||
"description": "音声ファイルの録音時間(yyyy-mm-ddThh:mm:ss.sss)"
|
||||
"description": "音声ファイルの録音時間(ミリ秒の整数値)"
|
||||
},
|
||||
"createdDate": {
|
||||
"type": "string",
|
||||
@ -2510,7 +2510,7 @@
|
||||
},
|
||||
"audioDuration": {
|
||||
"type": "string",
|
||||
"description": "音声ファイルの録音時間(yyyy-mm-ddThh:mm:ss.sss)"
|
||||
"description": "音声ファイルの録音時間(ミリ秒の整数値)"
|
||||
},
|
||||
"audioCreatedDate": {
|
||||
"type": "string",
|
||||
|
||||
@ -22,7 +22,7 @@ export class FilesService {
|
||||
* @param url アップロード先Blob Storage(ファイル名含む)
|
||||
* @param authorId 自分自身(ログイン認証)したAuthorID
|
||||
* @param fileName 音声ファイル名
|
||||
* @param duration 音声ファイルの録音時間(yyyy-mm-ddThh:mm:ss.sss)
|
||||
* @param duration 音声ファイルの録音時間(ミリ秒の整数値)
|
||||
* @param createdDate 音声ファイルの録音作成日時(開始日時)(yyyy-mm-ddThh:mm:ss.sss)'
|
||||
* @param finishedDate 音声ファイルの録音作成終了日時(yyyy-mm-ddThh:mm:ss.sss)
|
||||
* @param uploadedDate 音声ファイルのアップロード日時(yyyy-mm-ddThh:mm:ss.sss)
|
||||
|
||||
@ -46,7 +46,7 @@ export class AudioUploadFinishedRequest {
|
||||
@ApiProperty({ description: '音声ファイル名' })
|
||||
fileName: string;
|
||||
@ApiProperty({
|
||||
description: '音声ファイルの録音時間(yyyy-mm-ddThh:mm:ss.sss)',
|
||||
description: '音声ファイルの録音時間(ミリ秒の整数値)',
|
||||
})
|
||||
duration: string;
|
||||
@ApiProperty({
|
||||
|
||||
@ -2,7 +2,7 @@ import {
|
||||
makeDefaultTasksRepositoryMockValue,
|
||||
makeDefaultUsersRepositoryMockValue,
|
||||
makeTasksServiceMock,
|
||||
} from '../tasks/test/tasks.service.mock';
|
||||
} from './test/tasks.service.mock';
|
||||
import { HttpException, HttpStatus } from '@nestjs/common';
|
||||
import { makeErrorResponse } from '../../common/error/makeErrorResponse';
|
||||
|
||||
@ -60,8 +60,8 @@ describe('TasksService', () => {
|
||||
],
|
||||
priority: '00',
|
||||
status: 'Uploaded',
|
||||
transcriptionFinishedDate: '',
|
||||
transcriptionStartedDate: '',
|
||||
transcriptionFinishedDate: undefined,
|
||||
transcriptionStartedDate: undefined,
|
||||
typist: undefined,
|
||||
url: 'test/test.zip',
|
||||
workType: 'WorkType',
|
||||
@ -258,8 +258,8 @@ describe('TasksService', () => {
|
||||
],
|
||||
priority: '00',
|
||||
status: 'Uploaded',
|
||||
transcriptionFinishedDate: '',
|
||||
transcriptionStartedDate: '',
|
||||
transcriptionFinishedDate: undefined,
|
||||
transcriptionStartedDate: undefined,
|
||||
typist: undefined,
|
||||
url: 'test/test.zip',
|
||||
workType: 'WorkType',
|
||||
|
||||
@ -49,8 +49,8 @@ const createTask = (
|
||||
priority: task.priority,
|
||||
status: task.status,
|
||||
jobNumber: task.job_number,
|
||||
transcriptionFinishedDate: task.finished_at?.toISOString() ?? '', // XXX Responseの型がnullableでないとおかしいのでdevelopマージ前に修正を行う[2023/06/07 17:43]
|
||||
transcriptionStartedDate: task.started_at?.toISOString() ?? '', // XXX Responseの型がnullableでないとおかしいのでdevelopマージ前に修正を行う[2023/06/07 17:43]
|
||||
transcriptionFinishedDate: task.finished_at?.toISOString(),
|
||||
transcriptionStartedDate: task.started_at?.toISOString(),
|
||||
authorId: file.author_id,
|
||||
workType: file.work_type_id,
|
||||
audioCreatedDate: file.started_at.toISOString(),
|
||||
|
||||
@ -97,7 +97,7 @@ export class Task {
|
||||
@ApiProperty({ description: '音声ファイル名' })
|
||||
fileName: string;
|
||||
@ApiProperty({
|
||||
description: '音声ファイルの録音時間(yyyy-mm-ddThh:mm:ss.sss)',
|
||||
description: '音声ファイルの録音時間(ミリ秒の整数値)',
|
||||
})
|
||||
audioDuration: string;
|
||||
@ApiProperty({
|
||||
@ -140,10 +140,16 @@ export class Task {
|
||||
'音声ファイルのファイルステータス Uploaded / Pending / InProgress / Finished / Backup',
|
||||
})
|
||||
status: string;
|
||||
@ApiProperty({ description: '文字起こし開始日時(yyyy-mm-ddThh:mm:ss.sss)' })
|
||||
transcriptionStartedDate: string;
|
||||
@ApiProperty({ description: '文字起こし終了日時(yyyy-mm-ddThh:mm:ss.sss)' })
|
||||
transcriptionFinishedDate: string;
|
||||
@ApiProperty({
|
||||
required: false,
|
||||
description: '文字起こし開始日時(yyyy-mm-ddThh:mm:ss.sss)',
|
||||
})
|
||||
transcriptionStartedDate?: string | undefined;
|
||||
@ApiProperty({
|
||||
required: false,
|
||||
description: '文字起こし終了日時(yyyy-mm-ddThh:mm:ss.sss)',
|
||||
})
|
||||
transcriptionFinishedDate?: string | undefined;
|
||||
}
|
||||
|
||||
export class TasksResponse {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user