hcloud-sdk 22.34.0 → 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.34.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.33.1...v22.34.0) (2026-09-17)
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
3
  ### Features
4
4
 
5
- * update error codes ([a6b77a8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/a6b77a8a981e3b215829152fea190ec53ff617ea))
5
+ * **high5:** add WatchFolder file reset ([ad567a8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ad567a888862debe5934f9b8fd3a58bfe7c94eef))
@@ -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: {
@@ -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.34.0",
3
+ "version": "22.35.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",