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
|
-
## [
|
|
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
|
|
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))
|
|
@@ -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
|
}
|