hcloud-sdk 22.6.0 → 22.8.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.8.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.7.0...v22.8.0) (2026-07-29)
|
|
2
2
|
|
|
3
3
|
### Features
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* add method to reconnect to nats ([c200268](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c200268fcb6660e5da21cacf1930e055c24940e0))
|
|
@@ -1261,11 +1261,15 @@ export declare const ErrorCodes: readonly [{
|
|
|
1261
1261
|
}, {
|
|
1262
1262
|
readonly code: "009.045.0008";
|
|
1263
1263
|
readonly error: "share.not.available";
|
|
1264
|
-
readonly message: "Share not
|
|
1264
|
+
readonly message: "Share not available yet";
|
|
1265
1265
|
}, {
|
|
1266
1266
|
readonly code: "009.045.0009";
|
|
1267
1267
|
readonly error: "share.inactive";
|
|
1268
1268
|
readonly message: "Share is inactive";
|
|
1269
|
+
}, {
|
|
1270
|
+
readonly code: "009.045.0010";
|
|
1271
|
+
readonly error: "share.link.invalid";
|
|
1272
|
+
readonly message: "Share link is no longer valid because the space was renamed";
|
|
1269
1273
|
}, {
|
|
1270
1274
|
readonly code: "009.047.0001";
|
|
1271
1275
|
readonly error: "tag.max.count.reached";
|
|
@@ -1338,6 +1342,14 @@ export declare const ErrorCodes: readonly [{
|
|
|
1338
1342
|
readonly code: "009.055.0004";
|
|
1339
1343
|
readonly error: "storage.invalid";
|
|
1340
1344
|
readonly message: "Invalid storage configuration. Please run test in idp in order to validate. If still invalid, please recheck the storage configuration and/or contact your cloud storage administrator.";
|
|
1345
|
+
}, {
|
|
1346
|
+
readonly code: "009.057.0001";
|
|
1347
|
+
readonly error: "address-book.not.found";
|
|
1348
|
+
readonly message: "Address book not found";
|
|
1349
|
+
}, {
|
|
1350
|
+
readonly code: "009.057.0002";
|
|
1351
|
+
readonly error: "address-book.name.in.use";
|
|
1352
|
+
readonly message: "An address book with this name already exists in the space";
|
|
1341
1353
|
}, {
|
|
1342
1354
|
readonly code: "010.000.0002";
|
|
1343
1355
|
readonly error: "internal.server.error";
|
|
@@ -1581,13 +1581,18 @@ exports.ErrorCodes = [
|
|
|
1581
1581
|
{
|
|
1582
1582
|
code: "009.045.0008",
|
|
1583
1583
|
error: "share.not.available",
|
|
1584
|
-
message: "Share not
|
|
1584
|
+
message: "Share not available yet"
|
|
1585
1585
|
},
|
|
1586
1586
|
{
|
|
1587
1587
|
code: "009.045.0009",
|
|
1588
1588
|
error: "share.inactive",
|
|
1589
1589
|
message: "Share is inactive"
|
|
1590
1590
|
},
|
|
1591
|
+
{
|
|
1592
|
+
code: "009.045.0010",
|
|
1593
|
+
error: "share.link.invalid",
|
|
1594
|
+
message: "Share link is no longer valid because the space was renamed"
|
|
1595
|
+
},
|
|
1591
1596
|
{
|
|
1592
1597
|
code: "009.047.0001",
|
|
1593
1598
|
error: "tag.max.count.reached",
|
|
@@ -1678,6 +1683,16 @@ exports.ErrorCodes = [
|
|
|
1678
1683
|
error: "storage.invalid",
|
|
1679
1684
|
message: "Invalid storage configuration. Please run test in idp in order to validate. If still invalid, please recheck the storage configuration and/or contact your cloud storage administrator."
|
|
1680
1685
|
},
|
|
1686
|
+
{
|
|
1687
|
+
code: "009.057.0001",
|
|
1688
|
+
error: "address-book.not.found",
|
|
1689
|
+
message: "Address book not found"
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
code: "009.057.0002",
|
|
1693
|
+
error: "address-book.name.in.use",
|
|
1694
|
+
message: "An address book with this name already exists in the space"
|
|
1695
|
+
},
|
|
1681
1696
|
{
|
|
1682
1697
|
code: "010.000.0002",
|
|
1683
1698
|
error: "internal.server.error",
|
|
@@ -45,6 +45,10 @@ declare class Nats extends Base {
|
|
|
45
45
|
requestAndWaitForResponse(subject: string, type: NatsMessageType, objectType: NatsObjectType, object: unknown, options?: RequestOptions): Promise<Msg | undefined>;
|
|
46
46
|
respond(msg: Msg | RawMsg, data: unknown): void;
|
|
47
47
|
protected getEndpoint(endpoint: string): string;
|
|
48
|
+
/**
|
|
49
|
+
* Gracefully reconnect the NATS connection (experimental).
|
|
50
|
+
*/
|
|
51
|
+
reconnect(): Promise<void>;
|
|
48
52
|
/**
|
|
49
53
|
* Gracefully closes the NATS connection.
|
|
50
54
|
* * This method uses 'drain' to ensure that all outgoing messages are sent
|
|
@@ -61,6 +61,7 @@ class Nats extends Base_1.default {
|
|
|
61
61
|
(_b = (_a = entry.sub).callback) === null || _b === void 0 ? void 0 : _b.call(_a, err, msg ? msg : {});
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
+
this.natsConnection.reconnect();
|
|
64
65
|
return this.natsConnection;
|
|
65
66
|
});
|
|
66
67
|
}
|
|
@@ -150,6 +151,16 @@ class Nats extends Base_1.default {
|
|
|
150
151
|
getEndpoint(endpoint) {
|
|
151
152
|
return `${this.options.server}/ws/nats${endpoint}`;
|
|
152
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* Gracefully reconnect the NATS connection (experimental).
|
|
156
|
+
*/
|
|
157
|
+
reconnect() {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
if (this.natsConnection && !this.natsConnection.isClosed()) {
|
|
160
|
+
yield this.natsConnection.reconnect();
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
153
164
|
/**
|
|
154
165
|
* Gracefully closes the NATS connection.
|
|
155
166
|
* * This method uses 'drain' to ensure that all outgoing messages are sent
|