Journals field fixed
This commit is contained in:
parent
8280ca60bd
commit
0b90ca7f8f
1 changed files with 4 additions and 22 deletions
26
libs/redmine-types/index.d.ts
vendored
26
libs/redmine-types/index.d.ts
vendored
|
|
@ -16,14 +16,14 @@ export module RedmineTypes {
|
|||
export type JournalDetail = {
|
||||
property: string;
|
||||
name: string;
|
||||
old_value: string;
|
||||
new_value: string;
|
||||
old_value?: string;
|
||||
new_value?: string;
|
||||
};
|
||||
|
||||
export type Journal = {
|
||||
id: number;
|
||||
user: IdAndName;
|
||||
notes: string;
|
||||
notes?: string;
|
||||
created_on: string;
|
||||
details?: JournalDetail[];
|
||||
};
|
||||
|
|
@ -48,7 +48,7 @@ export module RedmineTypes {
|
|||
updated_on?: string;
|
||||
closed_on?: string;
|
||||
relations?: Record<string, any>[];
|
||||
journals?: Journal.Item[];
|
||||
journals?: Journal[];
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-namespace-keyword
|
||||
|
|
@ -95,22 +95,4 @@ export module RedmineTypes {
|
|||
lastname: string;
|
||||
mail: string;
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-namespace-keyword
|
||||
export module Journal {
|
||||
export type Item = {
|
||||
id: number;
|
||||
user: IdAndName;
|
||||
notes: string;
|
||||
created_on: string;
|
||||
details?: Detail[];
|
||||
};
|
||||
|
||||
export type Detail = {
|
||||
property: string;
|
||||
name: string;
|
||||
new_value?: string;
|
||||
old_value?: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue