@hahnpro/hpc-api 2026.7.7 → 2026.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @hahnpro/hpc-api
|
|
2
2
|
|
|
3
|
+
# 2026.7.6
|
|
4
|
+
|
|
5
|
+
- Changed the HPC-API `getAttachments`-endpoint for assets to be able to use it with pagination
|
|
6
|
+
|
|
3
7
|
# 2026.7.5
|
|
4
8
|
|
|
5
9
|
- Added optional `AssistantMessage.errorText` and `ErrorMessage.errorText` fields for localized AI error responses
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export declare class AssetService extends BaseService {
|
|
|
19
19
|
addElementToProperty(id: string, dto: AddToProperty): Promise<Asset>;
|
|
20
20
|
removeElementFromProperty(id: string, dto: RemoveFromProperty): Promise<Asset>;
|
|
21
21
|
getChildren(assetId: string, params?: RequestParameter, options?: TokenOption): Promise<Paginated<Asset>>;
|
|
22
|
-
getAttachments(assetId: string, options?: TokenOption): Promise<Paginated<Attachment>>;
|
|
22
|
+
getAttachments(assetId: string, params?: RequestParameter, options?: TokenOption): Promise<Paginated<Attachment>>;
|
|
23
23
|
getEventLevelOverride(ids: string[], causes: string[], options?: TokenOption): Promise<EventLevelOverride>;
|
|
24
24
|
updateEventCausesAsset(id: string, dto: EventCause, options?: TokenOption): Promise<Asset>;
|
|
25
25
|
getRevisions(assetId: string, options?: TokenOption): Promise<Paginated<AssetRevision>>;
|
|
@@ -36,8 +36,8 @@ class AssetService extends BaseService {
|
|
|
36
36
|
getChildren(assetId, params = {}, options = {}) {
|
|
37
37
|
return this.getManyFiltered({ parent: assetId }, params, options);
|
|
38
38
|
}
|
|
39
|
-
getAttachments(assetId, options = {}) {
|
|
40
|
-
return this.httpClient.get(`${this.basePath}/${assetId}/attachments`, options);
|
|
39
|
+
getAttachments(assetId, params = {}, options = {}) {
|
|
40
|
+
return this.httpClient.get(`${this.basePath}/${assetId}/attachments`, { params, ...options });
|
|
41
41
|
}
|
|
42
42
|
getEventLevelOverride(ids, causes, options = {}) {
|
|
43
43
|
return this.httpClient.post(`${this.basePath}/event-causes`, { ids, causes }, options);
|