Journals field fixed

This commit is contained in:
Pavel Gnedov 2022-05-17 16:49:09 +07:00
parent 8280ca60bd
commit 0b90ca7f8f

View file

@ -16,14 +16,14 @@ export module RedmineTypes {
export type JournalDetail = { export type JournalDetail = {
property: string; property: string;
name: string; name: string;
old_value: string; old_value?: string;
new_value: string; new_value?: string;
}; };
export type Journal = { export type Journal = {
id: number; id: number;
user: IdAndName; user: IdAndName;
notes: string; notes?: string;
created_on: string; created_on: string;
details?: JournalDetail[]; details?: JournalDetail[];
}; };
@ -48,7 +48,7 @@ export module RedmineTypes {
updated_on?: string; updated_on?: string;
closed_on?: string; closed_on?: string;
relations?: Record<string, any>[]; relations?: Record<string, any>[];
journals?: Journal.Item[]; journals?: Journal[];
}; };
// eslint-disable-next-line @typescript-eslint/prefer-namespace-keyword // eslint-disable-next-line @typescript-eslint/prefer-namespace-keyword
@ -95,22 +95,4 @@ export module RedmineTypes {
lastname: string; lastname: string;
mail: 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;
};
}
} }