hcloud-sdk 22.58.1 → 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
2
|
|
|
3
|
-
###
|
|
3
|
+
### ⚠ BREAKING CHANGES
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* update queue related fields in asset object
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
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))
|
|
@@ -56,6 +56,7 @@ declare enum NatsSubject {
|
|
|
56
56
|
HIGH5_WATCH_FOLDERS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.watchfolders.>",
|
|
57
57
|
HIGH5_WATCH_FOLDER = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.watchfolders.${base64watchFolderName}",
|
|
58
58
|
HIGH5_WATCHFOLDER_SCAN = "hcloud.high5.organization.${organizationId}.watchfolder.${watchFolderId}.scan",
|
|
59
|
+
COSMO_QUEUE = "hcloud.cosmo.queue",
|
|
59
60
|
COSMO_SPACES = "hcloud.cosmo.organization.${base64orgName}.spaces",
|
|
60
61
|
COSMO_NAMESPACES = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces",
|
|
61
62
|
COSMO_ASSETS = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.assets",
|
|
@@ -120,6 +121,7 @@ declare enum NatsObjectType {
|
|
|
120
121
|
DOCUMENT = "DOCUMENT",
|
|
121
122
|
AGENT = "AGENT",
|
|
122
123
|
MESSAGE = "MESSAGE",
|
|
124
|
+
QUEUE = "QUEUE",
|
|
123
125
|
ASSET = "ASSET",
|
|
124
126
|
STACK = "STACK",
|
|
125
127
|
COMMENT = "COMMENT",
|
|
@@ -386,6 +388,7 @@ declare class NatsSubjects {
|
|
|
386
388
|
static Logging: (product: Products) => string;
|
|
387
389
|
static Cosmo: {
|
|
388
390
|
new (): {};
|
|
391
|
+
QUEUE: () => NatsSubject;
|
|
389
392
|
SPACES: (organizationName: string) => string;
|
|
390
393
|
Space: {
|
|
391
394
|
new (): {};
|
|
@@ -59,6 +59,7 @@ var NatsSubject;
|
|
|
59
59
|
NatsSubject["HIGH5_WATCH_FOLDERS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.watchfolders.>";
|
|
60
60
|
NatsSubject["HIGH5_WATCH_FOLDER"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.watchfolders.${base64watchFolderName}";
|
|
61
61
|
NatsSubject["HIGH5_WATCHFOLDER_SCAN"] = "hcloud.high5.organization.${organizationId}.watchfolder.${watchFolderId}.scan";
|
|
62
|
+
NatsSubject["COSMO_QUEUE"] = "hcloud.cosmo.queue";
|
|
62
63
|
NatsSubject["COSMO_SPACES"] = "hcloud.cosmo.organization.${base64orgName}.spaces";
|
|
63
64
|
NatsSubject["COSMO_NAMESPACES"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.namespaces";
|
|
64
65
|
NatsSubject["COSMO_ASSETS"] = "hcloud.cosmo.organization.${base64orgName}.spaces.${base64spaceName}.assets";
|
|
@@ -125,6 +126,7 @@ var NatsObjectType;
|
|
|
125
126
|
NatsObjectType["DOCUMENT"] = "DOCUMENT";
|
|
126
127
|
NatsObjectType["AGENT"] = "AGENT";
|
|
127
128
|
NatsObjectType["MESSAGE"] = "MESSAGE";
|
|
129
|
+
NatsObjectType["QUEUE"] = "QUEUE";
|
|
128
130
|
NatsObjectType["ASSET"] = "ASSET";
|
|
129
131
|
NatsObjectType["STACK"] = "STACK";
|
|
130
132
|
NatsObjectType["COMMENT"] = "COMMENT";
|
|
@@ -444,6 +446,9 @@ NatsSubjects.Logging = (product) => {
|
|
|
444
446
|
NatsSubjects.Cosmo = (_v = class {
|
|
445
447
|
},
|
|
446
448
|
__setFunctionName(_v, "Cosmo"),
|
|
449
|
+
_v.QUEUE = () => {
|
|
450
|
+
return NatsSubject.COSMO_QUEUE;
|
|
451
|
+
},
|
|
447
452
|
_v.SPACES = (organizationName) => {
|
|
448
453
|
return NatsSubjects.replace(NatsSubject.COSMO_SPACES, { organizationName });
|
|
449
454
|
},
|
|
@@ -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
|
}
|