hcloud-sdk 22.45.1 → 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,5 +1,5 @@
1
- ## [22.45.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.45.0...v22.45.1) (2026-10-02)
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
- ### Bug Fixes
3
+ ### Features
4
4
 
5
- * response of shareWithUsers, which also holds the email cooldown property ([5a4e8ae](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5a4e8ae380c4958f53c075ed04d615191619cbbc))
5
+ * add method to rerun streams ([7f882fc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7f882fca83329f310fafc20b41d796f3f4458c68))
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.45.1",
3
+ "version": "22.46.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",