Skip to content

Commit 90b3a75

Browse files
committed
refactor(signing-progress): use ValidationFileRecord contract types
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 9aece3d commit 90b3a75

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/components/validation/SigningProgress.vue

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,12 @@ import {
6868
} from '@mdi/js'
6969
import { buildStatusMap } from '../../utils/fileStatus.js'
7070
import type { components } from '../../types/openapi/openapi'
71+
import type { ValidationFileRecord } from '../../types/index'
7172
72-
type OpenApiNextcloudFile = components['schemas']['DetailedFileResponse']
73-
type OpenApiSigner = components['schemas']['SignerDetail']
7473
type ProgressFile = components['schemas']['ProgressFile']
7574
type ProgressState = components['schemas']['ProgressPayload']
7675
77-
type ValidationDocument = {
78-
id?: OpenApiNextcloudFile['id'] | string | number
79-
nodeType?: OpenApiNextcloudFile['nodeType'] | string
80-
files?: Array<{
81-
id?: OpenApiNextcloudFile['id'] | string | number
82-
name?: OpenApiNextcloudFile['name']
83-
status?: OpenApiNextcloudFile['status'] | string | number
84-
}>
85-
signers?: Array<{
86-
signed?: OpenApiSigner['signed'] | boolean | Array<unknown>
87-
}>
88-
}
76+
type ValidationDocument = Partial<Pick<ValidationFileRecord, 'nodeType' | 'files' | 'signers'>>
8977
9078
type StatusMeta = {
9179
label: string

0 commit comments

Comments
 (0)