hcloud-sdk 22.26.0 → 22.28.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,5 @@
|
|
|
1
|
-
## [22.
|
|
1
|
+
## [22.28.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.27.0...v22.28.0) (2026-09-01)
|
|
2
2
|
|
|
3
3
|
### Features
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* add executor to execution status ([df22fd7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/df22fd7a6e9ab337969fab9c0d87066c9cacf5a6))
|
|
@@ -5,6 +5,7 @@ import { High5ExecuteOnAgentRequest, High5ExecutionCancelRequest } from "../high
|
|
|
5
5
|
import { CapturedRequest } from "../high5/space/request";
|
|
6
6
|
import { LicenseTier } from "../idp";
|
|
7
7
|
declare enum NatsSubject {
|
|
8
|
+
IDP_USER = "hcloud.idp.user.${userId}",
|
|
8
9
|
IDP_USER_GENERAL = "hcloud.idp.user.${userId}.general",
|
|
9
10
|
IDP_USER_PROFILE = "hcloud.idp.user.${userId}.profile",
|
|
10
11
|
IDP_USER_NOTIFICATIONS = "hcloud.idp.user.${userId}.notifications",
|
|
@@ -132,8 +133,9 @@ interface NatsMessage {
|
|
|
132
133
|
object: NatsObject;
|
|
133
134
|
objectType: NatsObjectType;
|
|
134
135
|
}
|
|
135
|
-
interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, NatsSecretObject, NatsExecTargetObject, High5ExecuteOnAgentRequest, High5ExecutionCancelRequest, CapturedRequest, NatsLicenseObject, NatsCustomNodeObject, NatsAssetObject, NatsIdNoUnderscoreObject, NatsTargetObject, NatsAgentConnectionObject, NatsCosmoStatusObject {
|
|
136
|
+
interface NatsObject extends NatsNameObject, NatsIdObject, NatsUserInformObject, NatsMemberObject, NatsSecretObject, NatsExecTargetObject, High5ExecuteOnAgentRequest, High5ExecutionCancelRequest, CapturedRequest, NatsLicenseObject, NatsCustomNodeObject, NatsAssetObject, NatsIdNoUnderscoreObject, NatsTargetObject, NatsAgentConnectionObject, NatsCosmoStatusObject {
|
|
136
137
|
[NatsSubject.IDP_USER_GENERAL]: NatsIdObject;
|
|
138
|
+
[NatsSubject.IDP_USER]: NatsUserInformObject;
|
|
137
139
|
[NatsSubject.IDP_USER_PROFILE]: NatsIdObject;
|
|
138
140
|
[NatsSubject.IDP_USER_SECURITY_PATS]: NatsIdObject;
|
|
139
141
|
[NatsSubject.IDP_USER_SECURITY_GENERAL]: unknown;
|
|
@@ -193,6 +195,9 @@ interface NatsIdObject {
|
|
|
193
195
|
interface NatsIdNoUnderscoreObject {
|
|
194
196
|
id: string;
|
|
195
197
|
}
|
|
198
|
+
interface NatsUserInformObject extends NatsIdObject {
|
|
199
|
+
msg: string;
|
|
200
|
+
}
|
|
196
201
|
interface NatsAssetObject {
|
|
197
202
|
_id: string;
|
|
198
203
|
parent?: {
|
|
@@ -250,6 +255,7 @@ type NatsCallback = (err: Error | null, msg?: NatsMessage, rawMsg?: Msg) => void
|
|
|
250
255
|
declare class NatsSubjects {
|
|
251
256
|
static IDP: {
|
|
252
257
|
new (): {};
|
|
258
|
+
USER: (userId: string, msg: string) => string;
|
|
253
259
|
User: {
|
|
254
260
|
new (): {};
|
|
255
261
|
GENERAL: (userId: string) => string;
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.NatsSubjects = exports.NatsSubject = exports.NatsObjectType = exports.NatsMessageType = void 0;
|
|
9
9
|
var NatsSubject;
|
|
10
10
|
(function (NatsSubject) {
|
|
11
|
+
NatsSubject["IDP_USER"] = "hcloud.idp.user.${userId}";
|
|
11
12
|
NatsSubject["IDP_USER_GENERAL"] = "hcloud.idp.user.${userId}.general";
|
|
12
13
|
NatsSubject["IDP_USER_PROFILE"] = "hcloud.idp.user.${userId}.profile";
|
|
13
14
|
NatsSubject["IDP_USER_NOTIFICATIONS"] = "hcloud.idp.user.${userId}.notifications";
|
|
@@ -141,6 +142,9 @@ exports.NatsSubjects = NatsSubjects;
|
|
|
141
142
|
NatsSubjects.IDP = (_a = class {
|
|
142
143
|
},
|
|
143
144
|
__setFunctionName(_a, "IDP"),
|
|
145
|
+
_a.USER = (userId, msg) => {
|
|
146
|
+
return NatsSubjects.replace(NatsSubject.IDP_USER, { userId, msg });
|
|
147
|
+
},
|
|
144
148
|
_a.User = (_b = class {
|
|
145
149
|
},
|
|
146
150
|
__setFunctionName(_b, "User"),
|
|
@@ -504,6 +508,7 @@ NatsSubjects.replace = (subject, replacements) => {
|
|
|
504
508
|
subject = subject.replace("${base64watchFolderName}", replacements.watchFolderName ? (replacements.watchFolderName === "*" ? "*" : base64Encode(replacements.watchFolderName)) : "null");
|
|
505
509
|
subject = subject.replace("${watchFolderId}", replacements.watchFolderId || "null");
|
|
506
510
|
subject = subject.replace("${agentUuid}", replacements.agentUuid || "null");
|
|
511
|
+
subject = subject.replace("${msg}", replacements.msg || "null");
|
|
507
512
|
return subject;
|
|
508
513
|
};
|
|
509
514
|
const base64Encode = (str) => {
|
|
@@ -131,7 +131,9 @@ class S3 extends Base_1.default {
|
|
|
131
131
|
getChangelog(catalogUrl, raw) {
|
|
132
132
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
133
|
const resp = yield axios_1.default
|
|
134
|
-
.get(catalogUrl + "changelog.json", {
|
|
134
|
+
.get(catalogUrl + "changelog.json", {
|
|
135
|
+
headers: Object.assign(Object.assign({}, axios_2.disableCacheHeaders), { "x-hcloud-user-agent": sdkVersion, Authorization: undefined }),
|
|
136
|
+
})
|
|
135
137
|
.catch(err => {
|
|
136
138
|
throw new Error(`Node documentation not found: ${err}`);
|
|
137
139
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hcloud-sdk",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.28.0",
|
|
4
4
|
"description": "hcloud platform sdk",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -30,22 +30,22 @@
|
|
|
30
30
|
"@amanda-mitchell/semantic-release-npm-multiple": "^3.17.0",
|
|
31
31
|
"@commitlint/cli": "^19.8.1",
|
|
32
32
|
"@commitlint/config-conventional": "^19.8.1",
|
|
33
|
-
"@eslint/compat": "^1.
|
|
34
|
-
"@eslint/eslintrc": "^3.3.
|
|
35
|
-
"@eslint/js": "^
|
|
33
|
+
"@eslint/compat": "^2.1.0",
|
|
34
|
+
"@eslint/eslintrc": "^3.3.6",
|
|
35
|
+
"@eslint/js": "^10.0.1",
|
|
36
36
|
"@semantic-release/changelog": "^7.0.0",
|
|
37
37
|
"@semantic-release/exec": "^7.1.0",
|
|
38
38
|
"@semantic-release/git": "^11.0.1",
|
|
39
39
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
40
40
|
"@types/node": "^22.15.19",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
42
|
-
"@typescript-eslint/parser": "^8.
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^8.68.0",
|
|
42
|
+
"@typescript-eslint/parser": "^8.68.0",
|
|
43
43
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
44
|
-
"eslint": "^9.
|
|
45
|
-
"eslint-config-prettier": "^10.1.
|
|
46
|
-
"eslint-plugin-import": "^2.
|
|
47
|
-
"globals": "^
|
|
48
|
-
"prettier": "^3.
|
|
44
|
+
"eslint": "^10.9.1",
|
|
45
|
+
"eslint-config-prettier": "^10.1.8",
|
|
46
|
+
"eslint-plugin-import": "^2.32.0",
|
|
47
|
+
"globals": "^17.11.0",
|
|
48
|
+
"prettier": "^3.9.6",
|
|
49
49
|
"semantic-release": "^25.0.9",
|
|
50
50
|
"semantic-release-telegram": "^1.6.2",
|
|
51
51
|
"ts-node": "^10.9.2",
|