hcloud-sdk 22.59.0 → 23.0.0

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,10 @@
1
- ## [22.59.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.58.1...v22.59.0) (2026-11-03)
1
+ ## [23.0.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.59.0...v23.0.0) (2026-11-04)
2
+
3
+ ### ⚠ BREAKING CHANGES
4
+
5
+ * update queue related fields in asset object
2
6
 
3
7
  ### Features
4
8
 
5
- * add cosmo queue subject ([32d1d89](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/32d1d89d839e683ba7be8e850f67aa2b2e86ddc7))
9
+ * add queue endpoint to cosmo ([e188b04](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e188b04492d0ddb11955f5ec62ec42a1b7a97419))
10
+ * update queue related fields in asset object ([c4d586a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c4d586a7ff8bb2d65b59b8880c43534ebc71ac3e))
@@ -43,8 +43,7 @@ export type MediaAsset = {
43
43
  tag?: Tag;
44
44
  metadata?: NamespaceMetadata;
45
45
  }>;
46
- queuePosition?: number;
47
- queueTotal?: number;
46
+ queuePosition?: string;
48
47
  stack?: {
49
48
  version: number;
50
49
  stack: {
@@ -54,5 +54,9 @@ export default class CosmoService extends Base {
54
54
  * @returns Version object
55
55
  */
56
56
  version(): Promise<Version>;
57
+ queue(): Promise<{
58
+ start: bigint;
59
+ end: bigint;
60
+ }>;
57
61
  protected getEndpoint(endpoint: string): string;
58
62
  }
@@ -136,6 +136,15 @@ class CosmoService extends Base_1.default {
136
136
  return resp.data;
137
137
  });
138
138
  }
139
+ queue() {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ const resp = yield this.axios.get(this.getEndpoint("/v1/queue"));
142
+ return {
143
+ start: BigInt(resp.data.start),
144
+ end: BigInt(resp.data.end),
145
+ };
146
+ });
147
+ }
139
148
  getEndpoint(endpoint) {
140
149
  return `${this.options.server}/api/cosmo${endpoint}`;
141
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.59.0",
3
+ "version": "23.0.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",