> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.teamwork.core.ListNotifications

- Component: `appmixer.teamwork.core.ListNotifications`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.teamwork 1.1.0](https://connectors.appmixer.com/connector/appmixer.teamwork/1.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.teamwork/1.1.0/component/appmixer.teamwork.core.ListNotifications>

List notifications in Teamwork.com

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Days Ago (`daysAgo`) | number | - |
| Order Mode (`orderMode`) | select | - |
| Limit (`limit`) | number | - |
| Unread Only (`unreadOnly`) | toggle | - |
| Notified Only (`notifiedOnly`) | toggle | - |
| From Users (`fromUsers`) | multiselect | - |

## Output ports

### Port `notifications`

| Field | Type | Description |
| --- | --- | --- |
| Notification (`notifications`) | array | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.teamwork.core.ListNotifications",
  "auth": {
    "service": "appmixer:teamwork"
  },
  "author": "hugh.marron@teamwork.com",
  "description": "List notifications in Teamwork.com",
  "private": false,
  "version": "1.0.0",
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "daysAgo": {
            "type": "integer"
          },
          "orderMode": {
            "type": "string"
          },
          "limit": {
            "type": "integer"
          },
          "unreadOnly": {
            "type": "boolean"
          },
          "notifiedOnly": {
            "type": "boolean"
          },
          "fromUsers": {
            "type": "array"
          }
        },
        "required": [
          "daysAgo"
        ]
      },
      "inspector": {
        "inputs": {
          "daysAgo": {
            "index": 0,
            "type": "number",
            "label": "Days Ago",
            "defaultValue": 1
          },
          "orderMode": {
            "index": 1,
            "type": "select",
            "label": "Order Mode",
            "options": [
              {
                "content": "Ascending",
                "value": "asc"
              },
              {
                "content": "Descending",
                "value": "desc"
              }
            ]
          },
          "limit": {
            "index": 2,
            "type": "number",
            "label": "Limit"
          },
          "unreadOnly": {
            "index": 3,
            "type": "toggle",
            "defaultValue": false,
            "label": "Unread Only"
          },
          "notifiedOnly": {
            "index": 4,
            "type": "toggle",
            "defaultValue": false,
            "label": "Notified Only"
          },
          "fromUsers": {
            "index": 5,
            "type": "multiselect",
            "label": "From Users",
            "min": 0,
            "source": {
              "url": "/component/appmixer/teamwork/core/ListPeople?outPort=people",
              "data": {
                "transform": "ListPeople#toInspector"
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "notifications",
      "options": [
        {
          "label": "Notification",
          "value": "notifications",
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number",
                  "title": "ID"
                },
                "description": {
                  "type": "string",
                  "title": "Description"
                },
                "link": {
                  "type": "string",
                  "title": "Link"
                },
                "event": {
                  "type": "string",
                  "title": "Event"
                },
                "extraInfo": {
                  "type": "string",
                  "title": "Extra Info"
                },
                "date": {
                  "type": "string",
                  "title": "Date"
                },
                "user": {
                  "title": "User",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "title": "ID"
                    },
                    "firstName": {
                      "type": "string",
                      "title": "First Name"
                    },
                    "lastName": {
                      "type": "string",
                      "title": "Last Name"
                    }
                  }
                },
                "item": {
                  "title": "Item",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "title": "ID"
                    },
                    "type": {
                      "type": "string",
                      "title": "Type"
                    }
                  }
                },
                "project": {
                  "title": "Project",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "title": "ID"
                    },
                    "name": {
                      "type": "string",
                      "title": "Name"
                    }
                  }
                }
              }
            }
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
