hcloud-sdk 22.45.0 → 22.46.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,6 +1,5 @@
|
|
|
1
|
-
## [22.
|
|
1
|
+
## [22.46.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.45.1...v22.46.0) (2026-10-05)
|
|
2
2
|
|
|
3
3
|
### Features
|
|
4
4
|
|
|
5
|
-
* add
|
|
6
|
-
* back off NATS reconnects on authorization errors and allow aborting them ([1680eb7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1680eb756f569cf7dc5ce040e46ee44240c308a1))
|
|
5
|
+
* add method to rerun streams ([7f882fc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7f882fca83329f310fafc20b41d796f3f4458c68))
|
|
@@ -107,8 +107,12 @@ export interface ShareCreate extends Omit<Share, "_id" | "createDate" | "creator
|
|
|
107
107
|
deferred?: boolean;
|
|
108
108
|
}
|
|
109
109
|
export type ShareWithUsers = Share & {
|
|
110
|
+
/**
|
|
111
|
+
* `remainingCooldownInSeconds` is set for users whose share email is in cooldown and cannot be resent yet.
|
|
112
|
+
*/
|
|
110
113
|
users: ((ReducedUser | Pick<ReducedUser, "email">) & {
|
|
111
114
|
linkedToShare: boolean;
|
|
115
|
+
remainingCooldownInSeconds?: number;
|
|
112
116
|
})[];
|
|
113
117
|
};
|
|
114
118
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Base, { MaybeRaw } from "../../../Base";
|
|
2
2
|
import { High5QueuePollRequest } from "../../../interfaces/high5/execution";
|
|
3
|
+
import { High5ExecutionResponse } from "../../../interfaces/high5/space/execution";
|
|
3
4
|
import { High5OrganizationExecutionLogs } from "./log/index";
|
|
4
5
|
import { High5OrganizationExecutionStates } from "./status/index";
|
|
5
6
|
export declare class High5OrganizationExecute extends Base {
|
|
@@ -25,5 +26,15 @@ export declare class High5OrganizationExecute extends Base {
|
|
|
25
26
|
cancelExecution<R extends boolean = false>(orgName: string, spaceName: string, high5ExecutionId: string, raw?: {
|
|
26
27
|
raw: R;
|
|
27
28
|
}): Promise<MaybeRaw<R, void>>;
|
|
29
|
+
/**
|
|
30
|
+
* Rerun a stream execution with the same payload
|
|
31
|
+
* @param orgName Name of the Organization
|
|
32
|
+
* @param spaceName Name of the Space
|
|
33
|
+
* @param high5ExecutionId ID of the stream execution
|
|
34
|
+
* @returns 200 High5ExecutionResponse
|
|
35
|
+
*/
|
|
36
|
+
rerunExecution<R extends boolean = false>(orgName: string, spaceName: string, high5ExecutionId: string, raw?: {
|
|
37
|
+
raw: R;
|
|
38
|
+
}): Promise<MaybeRaw<R, High5ExecutionResponse>>;
|
|
28
39
|
protected getEndpoint(endpoint: string): string;
|
|
29
40
|
}
|
|
@@ -53,6 +53,19 @@ class High5OrganizationExecute extends Base_1.default {
|
|
|
53
53
|
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Rerun a stream execution with the same payload
|
|
58
|
+
* @param orgName Name of the Organization
|
|
59
|
+
* @param spaceName Name of the Space
|
|
60
|
+
* @param high5ExecutionId ID of the stream execution
|
|
61
|
+
* @returns 200 High5ExecutionResponse
|
|
62
|
+
*/
|
|
63
|
+
rerunExecution(orgName, spaceName, high5ExecutionId, raw) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/${high5ExecutionId}/rerun`));
|
|
66
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
56
69
|
getEndpoint(endpoint) {
|
|
57
70
|
return `${this.options.server}/api/high5${endpoint}`;
|
|
58
71
|
}
|