Skip to content

Commit ead6ec0

Browse files
add types and enum for fs
1 parent 65fa47d commit ead6ec0

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

app/src/types/threads.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { addComponent } from '@nuxt/kit'
12
import { FragmentPartDto } from '~/tickets/thread/_dto/parts/fragment.part.dto'
23
import { Metadata } from './'
34

@@ -10,6 +11,7 @@ export interface Thread {
1011
metadata: Metadata
1112
ticketId: string
1213
fragments: Fragments
14+
attachments: Attachments
1315
}
1416

1517
export interface Fragments {
@@ -37,3 +39,11 @@ export interface Raw {
3739
disposition: string
3840
message: string
3941
}
42+
43+
export interface Attachments {
44+
id: string
45+
name: string
46+
namespace: string
47+
path: string
48+
mime: string
49+
}

app/src/utils/statics.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ export enum Priority {
4040
Urgent = 'Urgent',
4141
}
4242

43+
export enum FsType {
44+
DIRECTORY = 'd',
45+
FILE = 'f',
46+
SYMLINK = 'l',
47+
}
48+
4349
export const impact = [
4450
{
4551
id: '612345678901234567890123',

0 commit comments

Comments
 (0)