From f2c442457cd56ace7caa54274f7fa994c09f5bb8 Mon Sep 17 00:00:00 2001 From: "oura.a" Date: Thu, 14 Sep 2023 06:45:58 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=20412:=20IF=E4=B8=8D=E5=85=B7?= =?UTF-8?q?=E5=90=88=E4=BF=AE=E6=AD=A3=EF=BC=88=E3=82=A2=E3=82=AB=E3=82=A6?= =?UTF-8?q?=E3=83=B3=E3=83=88=E8=A8=AD=E5=AE=9AAPI=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [Task2663: IF不具合修正(アカウント設定API)](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2663) アカウント設定APIのIF不具合を修正しました。 ## レビューポイント なし ## UIの変更 なし ## 動作確認状況 クライアント側のapi.tsに期待通りの変更が反映されることを確認。 ## 補足 なし --- dictation_server/src/api/odms/openapi.json | 11 +++-------- .../src/features/accounts/types/types.ts | 13 +++++++------ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/dictation_server/src/api/odms/openapi.json b/dictation_server/src/api/odms/openapi.json index 03b186e..c5612fa 100644 --- a/dictation_server/src/api/odms/openapi.json +++ b/dictation_server/src/api/odms/openapi.json @@ -3107,6 +3107,7 @@ "worktypeId": { "type": "string", "minLength": 1, + "maxLength": 255, "description": "WorktypeID" }, "description": { "type": "string", "description": "Worktypeの説明" } @@ -3156,7 +3157,6 @@ "PostWorktypeOptionItem": { "type": "object", "properties": { - "id": { "type": "number" }, "itemLabel": { "type": "string", "maxLength": 16 }, "defaultValueType": { "type": "string", @@ -3165,7 +3165,7 @@ }, "initialValue": { "type": "string", "maxLength": 20 } }, - "required": ["id", "itemLabel", "defaultValueType", "initialValue"] + "required": ["itemLabel", "defaultValueType", "initialValue"] }, "UpdateOptionItemsRequest": { "type": "object", @@ -3251,12 +3251,7 @@ "description": "セカンダリ管理者ID" } }, - "required": [ - "parentAccountId", - "delegationPermission", - "primaryAdminUserId", - "secondryAdminUserId" - ] + "required": ["delegationPermission"] }, "UpdateAccountInfoResponse": { "type": "object", "properties": {} }, "ConfirmRequest": { diff --git a/dictation_server/src/features/accounts/types/types.ts b/dictation_server/src/features/accounts/types/types.ts index 81fccfb..a258533 100644 --- a/dictation_server/src/features/accounts/types/types.ts +++ b/dictation_server/src/features/accounts/types/types.ts @@ -523,16 +523,17 @@ export type PartnerInfoFromDb = { }; export class UpdateAccountInfoRequest { - @ApiProperty({ description: '親アカウントのID' }) - parentAccountId: number; + @ApiProperty({ description: '親アカウントのID', required: false }) + @IsOptional() + parentAccountId?: number | undefined; @ApiProperty({ description: '代行操作許可' }) delegationPermission: boolean; - @ApiProperty({ description: 'プライマリ管理者ID' }) + @ApiProperty({ description: 'プライマリ管理者ID', required: false }) @IsOptional() - primaryAdminUserId?: number; - @ApiProperty({ description: 'セカンダリ管理者ID' }) + primaryAdminUserId?: number | undefined; + @ApiProperty({ description: 'セカンダリ管理者ID', required: false }) @IsOptional() - secondryAdminUserId?: number; + secondryAdminUserId?: number | undefined; } export class UpdateAccountInfoResponse {}