const thoughtsCollection: ICollection = {
id: "thoughts",
name: "Thoughts",
description: "Your lonely cards – no name, content and hierarchy",
icon: "thought",
color: "pink",
created_when: "2023-12-07T12:13:26.685000",
filter_group: {
op: FilterGroupOperator.AND,
filters: [
{
type: FilterType.STATUS,
op: FilterOperator.WITHIN,
arg: [Status.PENDING, Status.ACTIVE],
},
{
type: FilterType.PERMS,
op: FilterOperator.CAN,
arg: Perm.EDIT_DATA,
},
{
op: FilterGroupOperator.OR,
filters: [
{
type: FilterType.NAME,
op: FilterOperator.EQUALS,
arg: "",
},
{
type: FilterType.CONTENT,
op: FilterOperator.EQUALS,
arg: "",
},
{
op: FilterGroupOperator.AND,
filters: [
{
type: FilterType.CHILD_COUNT,
op: FilterOperator.EQUALS,
arg: 0,
},
{
type: FilterType.PARENT_COUNT,
op: FilterOperator.EQUALS,
arg: 0,
},
],
},
],
},
],
},
};