Skip to content

Commit 2925813

Browse files
chore: version packages [skip ci]
1 parent 9f124f1 commit 2925813

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

.changeset/twelve-wombats-peel.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# thatopen-services
22

3+
## 0.16.0
4+
5+
### Minor Changes
6+
7+
- 9f124f1: Add per-version lifecycle methods so callers can list, archive, recover, and permanently delete a single version of an item.
8+
- `listVersions(itemId, { archived })``GET /item/:itemId/versions`. Pass `archived: true` to receive only archived versions, `false` for active only, or omit the option to receive both. Sorted by creation date descending.
9+
- `archiveVersion(itemId, versionTag)``PUT /item/:itemId/version/:versionTag/archive`. Archived versions are hidden from the active list and queued for cleanup after the platform's retention window.
10+
- `recoverVersion(itemId, versionTag)``PUT /item/:itemId/version/:versionTag/recover`. Returns an archived version to the active list.
11+
- `deleteVersion(itemId, versionTag)``DELETE /item/:itemId/version/:versionTag`. The version must be archived first; the backend rejects the call otherwise. Removes the underlying object from S3 in addition to the database row.
12+
13+
All four go through the existing request layer, so they work with both auth modes (`accessToken` query string for API tokens, `Authorization: Bearer …` for `PlatformClient` JWTs).
14+
315
## 0.15.0
416

517
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "thatopen-services",
33
"description": "Client library and CLI for building BIM apps and cloud components on the That Open Platform",
44
"private": false,
5-
"version": "0.15.0",
5+
"version": "0.16.0",
66
"main": "dist/index.cjs.js",
77
"module": "dist/index.es.js",
88
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)