# PimChanges

The PimChanges type of the TypeScript SDK, which calendars.getChanges and addressbooks.getChanges take or answer.

```ts
type PimChanges = {
  changed: PimChangedRef[]
  deleted: string[]
  syncToken: string
  truncated: boolean
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `changed` | [`PimChangedRef[]`](/docs/sdks/typescript/types/pim-changed-ref) |  |
| `deleted` | `string[]` | Deleted (or renamed-away) hrefs |
| `syncToken` | `string` | OPAQUE. Anchored at the last change reported when truncated |
| `truncated` | `boolean` | More changes remain; re-poll with the returned token (gateway maps to 507) |

## Used by

| Method | What it does |
| --- | --- |
| [`calendars.getChanges`](/docs/sdks/typescript/calendars/get-changes) | Sync changes for calendar |
| [`addressbooks.getChanges`](/docs/sdks/typescript/addressbooks/get-changes) | Sync changes for addressbook |
