Skip to content

Function: caseFilterBody() ​

ts
function caseFilterBody(filter): object;

A filter as a JSON body (CaseFilter): single values become arrays, dates ISO strings, and anything that is not a filter key (sort, limit, ...) is left out.

Parameters ​

filter ​

CaseListFilter

Returns ​

object

assignee? ​

ts
optional assignee?: string;

country? ​

ts
optional country?: string;

dueBefore? ​

ts
optional dueBefore?: unknown;

priority? ​

ts
optional priority?: ("high" | "low" | "medium" | "critical")[];

queue? ​

ts
optional queue?: string;

reasonCode? ​

ts
optional reasonCode?: string;
ts
optional search?: string;

slaState? ​

ts
optional slaState?: ("ok" | "none" | "breached" | "due_soon")[];

status? ​

ts
optional status?: ("closed" | "open" | "decided" | "in_review")[];

subjectId? ​

ts
optional subjectId?: string;

type? ​

ts
optional type?: string;

waiting? ​

ts
optional waiting?: boolean;

Released under the Apache-2.0 License.