hcloud-sdk 22.33.1 → 22.35.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.33.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.33.0...v22.33.1) (2026-09-16)
1
+ ## [22.35.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.34.0...v22.35.0) (2026-09-17)
2
2
 
3
- ### Bug Fixes
3
+ ### Features
4
4
 
5
- * storage types ([88b274c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/88b274c9fe02d51752bef20f5302dcaf1b60e895))
5
+ * **high5:** add WatchFolder file reset ([ad567a8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ad567a888862debe5934f9b8fd3a58bfe7c94eef))
@@ -726,6 +726,14 @@ export declare const ErrorCodes: readonly [{
726
726
  readonly code: "002.059.0002";
727
727
  readonly error: "watchFolder.name.in.use";
728
728
  readonly message: "The provided watch folder name is already in use in this space";
729
+ }, {
730
+ readonly code: "002.059.0003";
731
+ readonly error: "watchFolder.file.not.found";
732
+ readonly message: "No watch folder file matching the given execution was found";
733
+ }, {
734
+ readonly code: "002.059.0004";
735
+ readonly error: "watchFolder.file.reset.limit.exceeded";
736
+ readonly message: "This file has already reached the maximum number of allowed resets";
729
737
  }, {
730
738
  readonly code: "003.000.0002";
731
739
  readonly error: "internal.server.error";
@@ -913,6 +913,16 @@ exports.ErrorCodes = [
913
913
  error: "watchFolder.name.in.use",
914
914
  message: "The provided watch folder name is already in use in this space"
915
915
  },
916
+ {
917
+ code: "002.059.0003",
918
+ error: "watchFolder.file.not.found",
919
+ message: "No watch folder file matching the given execution was found"
920
+ },
921
+ {
922
+ code: "002.059.0004",
923
+ error: "watchFolder.file.reset.limit.exceeded",
924
+ message: "This file has already reached the maximum number of allowed resets"
925
+ },
916
926
  {
917
927
  code: "003.000.0002",
918
928
  error: "internal.server.error",
@@ -29,6 +29,7 @@ export interface WatchFolder {
29
29
  interval: number;
30
30
  eventName: string;
31
31
  credentials: WatchFolderCredentials;
32
+ maxFileResetAttempts: number;
32
33
  }
33
34
  export interface CreateWatchFolder {
34
35
  name: string;
@@ -38,6 +39,7 @@ export interface CreateWatchFolder {
38
39
  interval: number;
39
40
  eventName: string;
40
41
  credentials: WatchFolderCredentials;
42
+ maxFileResetAttempts?: number;
41
43
  }
42
44
  export interface PatchWatchFolder {
43
45
  name?: string;
@@ -47,6 +49,7 @@ export interface PatchWatchFolder {
47
49
  interval?: number;
48
50
  eventName?: string;
49
51
  credentials?: WatchFolderCredentials;
52
+ maxFileResetAttempts?: number;
50
53
  }
51
54
  export declare enum WatchFolderFileStatus {
52
55
  NEW = "NEW",
@@ -66,6 +69,12 @@ export interface WatchFolderFile {
66
69
  status: WatchFolderFileStatus;
67
70
  lastSeen: number;
68
71
  createDate: number;
72
+ lastResetReason?: string;
73
+ lastResetAt?: number;
74
+ resetCount?: number;
75
+ }
76
+ export interface WatchFolderFileReset {
77
+ reason?: string;
69
78
  }
70
79
  export interface WatchFolderScanReport {
71
80
  files: {
@@ -60,7 +60,8 @@ export type LicenseQuota = {
60
60
  quota: number;
61
61
  };
62
62
  };
63
- jobs: {
63
+ /** Formerly under `fuse.spaces.jobs`. Absent on older licenses that still carry it under `fuse`. */
64
+ jobs?: {
64
65
  quota: number;
65
66
  logs: {
66
67
  quota: number;
@@ -76,9 +77,11 @@ export type LicenseQuota = {
76
77
  executionLogMaxLimit: {
77
78
  quota: number;
78
79
  };
79
- secondBaseExecutions: boolean;
80
+ /** Formerly under `fuse.secondBaseExecutions`. Absent on older licenses that still carry it under `fuse`. */
81
+ secondBaseExecutions?: boolean;
80
82
  };
81
- fuse: {
83
+ /** Legacy quota for what is now the cronjob-related part of High5. Absent on licenses issued after the Fuse-to-High5 merge. */
84
+ fuse?: {
82
85
  spaces: {
83
86
  quota: number;
84
87
  jobs: {
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from "axios";
2
2
  import Base, { MaybeRaw, Options } from "../../../../Base";
3
- import { CreateWatchFolder, PatchWatchFolder, WatchFolder, WatchFolderFile, WatchFolderScanConfig, WatchFolderScanReport } from "../../../../interfaces/high5/space/watchfolder";
3
+ import { CreateWatchFolder, PatchWatchFolder, WatchFolder, WatchFolderFile, WatchFolderFileReset, WatchFolderScanConfig, WatchFolderScanReport } from "../../../../interfaces/high5/space/watchfolder";
4
4
  export declare class High5WatchFolder extends Base {
5
5
  constructor(options: Options, axios: AxiosInstance);
6
6
  /**
@@ -85,5 +85,19 @@ export declare class High5WatchFolder extends Base {
85
85
  getWatchFolderFiles<R extends boolean = false>(orgName: string, spaceName: string, watchFolderId: string, raw?: {
86
86
  raw: R;
87
87
  }): Promise<MaybeRaw<R, WatchFolderFile[]>>;
88
+ /**
89
+ * Signals that the watch folder file behind the current stream execution is not actually complete yet and
90
+ * should not be marked as processed - it becomes eligible again on a later watch folder scan. Callable from
91
+ * within the stream execution itself (e.g. by a node that performed a vendor-specific completeness check),
92
+ * authenticated purely via the execution's secret, same as High5SpaceExecute.high5ExecutionStatusAndLogResponse.
93
+ * @param orgName the organizations's name
94
+ * @param spaceName the spaces's name
95
+ * @param secret the secret of the stream execution object
96
+ * @param reset optional reason describing why the file is considered incomplete
97
+ * @returns the reset watch folder file
98
+ */
99
+ resetWatchFolderFile<R extends boolean = false>(orgName: string, spaceName: string, secret: string, reset?: WatchFolderFileReset, raw?: {
100
+ raw: R;
101
+ }): Promise<MaybeRaw<R, WatchFolderFile>>;
88
102
  protected getEndpoint(endpoint: string): string;
89
103
  }
@@ -124,6 +124,23 @@ class High5WatchFolder extends Base_1.default {
124
124
  return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
125
125
  });
126
126
  }
127
+ /**
128
+ * Signals that the watch folder file behind the current stream execution is not actually complete yet and
129
+ * should not be marked as processed - it becomes eligible again on a later watch folder scan. Callable from
130
+ * within the stream execution itself (e.g. by a node that performed a vendor-specific completeness check),
131
+ * authenticated purely via the execution's secret, same as High5SpaceExecute.high5ExecutionStatusAndLogResponse.
132
+ * @param orgName the organizations's name
133
+ * @param spaceName the spaces's name
134
+ * @param secret the secret of the stream execution object
135
+ * @param reset optional reason describing why the file is considered incomplete
136
+ * @returns the reset watch folder file
137
+ */
138
+ resetWatchFolderFile(orgName, spaceName, secret, reset, raw) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/${secret}/watchfolder/reset`), reset !== null && reset !== void 0 ? reset : {});
141
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
142
+ });
143
+ }
127
144
  getEndpoint(endpoint) {
128
145
  return `${this.options.server}/api/high5${endpoint}`;
129
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.33.1",
3
+ "version": "22.35.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",