Skip to content

Commit

Permalink
fix: add missing close_language to languages of UpdateTaskParams
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixGraf committed May 23, 2023
1 parent 09d0f46 commit a8b5536
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/collections/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ interface ListTaskParams extends ProjectWithPagination {
filter_statuses?: string;
}

type TaskLanguage = {
language_iso: string;
users?: string[] | number[];
groups?: string[] | number[];
}

type CreateTaskParams = {
title: string;
description?: string;
due_date?: string;
keys?: string[] | number[];
languages?: Array<{
language_iso: string;
users?: string[] | number[];
groups?: string[] | number[];
}>;
languages?: Array<TaskLanguage>;
source_language_iso?: string;
auto_close_languages?: boolean;
auto_close_task?: boolean;
Expand All @@ -41,6 +43,9 @@ type UpdateTaskParams = Omit<
> & {
title?: string;
close_task?: boolean;
languages?: Array<TaskLanguage & {
close_language?: boolean;
}>
};

type TaskDeleted = {
Expand Down

0 comments on commit a8b5536

Please sign in to comment.