@hahnpro/hpc-api 2026.2.0 → 2026.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/hpc-api",
3
- "version": "2026.2.0",
3
+ "version": "2026.2.1",
4
4
  "description": "Module for easy access to the HahnPRO Cloud API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -1,5 +1,5 @@
1
1
  import { APIBaseMock, DataMockService, TrashMockService } from '.';
2
- import { AssetType, AssetTypeRevision, DeleteAssetTypeQuery, Paginated, RequestParameter, Template } from '../interfaces';
2
+ import { AssetType, AssetTypeRevision, DeleteAssetTypeQuery, Paginated, RequestParameter, Template, TokenOption } from '../interfaces';
3
3
  import { AssetTypesService } from '../services';
4
4
  import { ShareMockService } from './share.mock.service';
5
5
  interface BaseService extends DataMockService<AssetType>, ShareMockService<AssetType>, TrashMockService<AssetType> {
@@ -17,5 +17,6 @@ export declare class AssetTypesMockService extends BaseService implements AssetT
17
17
  rollback(id: string, revisionId: string): Promise<AssetType>;
18
18
  deleteRevision(assetId: string, revisionId: string): Promise<any>;
19
19
  getTemplate(id: string, templateName: string): Promise<Template>;
20
+ getSubtypeIds(id: string, options?: TokenOption): Promise<string[]>;
20
21
  }
21
22
  export {};
@@ -74,5 +74,8 @@ class AssetTypesMockService extends BaseService {
74
74
  getTemplate(id, templateName) {
75
75
  throw new Error('Method not implemented.');
76
76
  }
77
+ getSubtypeIds(id, options = {}) {
78
+ throw new Error('Method not implemented.');
79
+ }
77
80
  }
78
81
  exports.AssetTypesMockService = AssetTypesMockService;
@@ -15,5 +15,6 @@ export declare class AssetTypesService extends BaseService {
15
15
  rollback(id: string, revisionId: string, options?: TokenOption): Promise<AssetType>;
16
16
  deleteRevision(id: string, revisionId: string, options?: TokenOption): Promise<any>;
17
17
  getTemplate(id: string, templateName: string, options?: TokenOption): Promise<Template>;
18
+ getSubtypeIds(id: string, options?: TokenOption): Promise<string[]>;
18
19
  }
19
20
  export {};
@@ -32,5 +32,8 @@ class AssetTypesService extends BaseService {
32
32
  getTemplate(id, templateName, options = {}) {
33
33
  return this.httpClient.get(`${this.basePath}/${id}/templates/${templateName}`, options);
34
34
  }
35
+ getSubtypeIds(id, options = {}) {
36
+ return this.httpClient.get(`${this.basePath}/${id}/subtypes`, options);
37
+ }
35
38
  }
36
39
  exports.AssetTypesService = AssetTypesService;