hcloud-sdk 22.53.0 → 22.53.1
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,6 @@
|
|
|
1
|
-
## [22.53.
|
|
1
|
+
## [22.53.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.53.0...v22.53.1) (2026-10-09)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Performance Improvements
|
|
4
4
|
|
|
5
|
-
* add
|
|
5
|
+
* **high5:** add scan status and error to watch folder ([fd4da0f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fd4da0fd7d8ae14d116894fba65fd9c36d90a634))
|
|
6
|
+
* **watchfolder:** extend scan statuses enum ([d87ae7b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d87ae7baeddf387997722abb28ff94371d52bbf3))
|
|
@@ -16,6 +16,16 @@ interface LocalWatchFolderCredentials {
|
|
|
16
16
|
resourceType: WatchFolderResourceType.LOCAL;
|
|
17
17
|
}
|
|
18
18
|
export type WatchFolderCredentials = S3WatchFolderCredentials | LocalWatchFolderCredentials;
|
|
19
|
+
export declare enum WatchFolderScanStatus {
|
|
20
|
+
SUCCESSFUL = "SUCCESSFUL",
|
|
21
|
+
PATH_NOT_FOUND = "PATH_NOT_FOUND",// The path (or S3 bucket) to scan does not exist
|
|
22
|
+
NO_AGENT_AVAILABLE = "NO_AGENT_AVAILABLE",// No agent assigned to the watch folder's target is connected
|
|
23
|
+
FAILED = "FAILED"
|
|
24
|
+
}
|
|
25
|
+
export interface WatchFolderScanError {
|
|
26
|
+
message: string;
|
|
27
|
+
since: number;
|
|
28
|
+
}
|
|
19
29
|
export interface WatchFolder {
|
|
20
30
|
_id: string;
|
|
21
31
|
name: string;
|
|
@@ -30,6 +40,8 @@ export interface WatchFolder {
|
|
|
30
40
|
eventName: string;
|
|
31
41
|
credentials: WatchFolderCredentials;
|
|
32
42
|
maxFileResetAttempts: number;
|
|
43
|
+
status?: WatchFolderScanStatus;
|
|
44
|
+
error?: WatchFolderScanError;
|
|
33
45
|
}
|
|
34
46
|
export interface CreateWatchFolder {
|
|
35
47
|
name: string;
|
|
@@ -81,6 +93,8 @@ export interface WatchFolderScanReport {
|
|
|
81
93
|
path: string;
|
|
82
94
|
size: number;
|
|
83
95
|
}[];
|
|
96
|
+
errorMessage?: string;
|
|
97
|
+
status?: WatchFolderScanStatus.PATH_NOT_FOUND | WatchFolderScanStatus.FAILED;
|
|
84
98
|
}
|
|
85
99
|
export interface WatchFolderScanConfig {
|
|
86
100
|
path: string;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WatchFolderFileStatus = exports.WatchFolderResourceType = void 0;
|
|
3
|
+
exports.WatchFolderFileStatus = exports.WatchFolderScanStatus = exports.WatchFolderResourceType = void 0;
|
|
4
4
|
var WatchFolderResourceType;
|
|
5
5
|
(function (WatchFolderResourceType) {
|
|
6
6
|
WatchFolderResourceType["S3"] = "S3";
|
|
7
7
|
WatchFolderResourceType["LOCAL"] = "LOCAL";
|
|
8
8
|
})(WatchFolderResourceType || (exports.WatchFolderResourceType = WatchFolderResourceType = {}));
|
|
9
|
+
var WatchFolderScanStatus;
|
|
10
|
+
(function (WatchFolderScanStatus) {
|
|
11
|
+
WatchFolderScanStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
12
|
+
WatchFolderScanStatus["PATH_NOT_FOUND"] = "PATH_NOT_FOUND";
|
|
13
|
+
WatchFolderScanStatus["NO_AGENT_AVAILABLE"] = "NO_AGENT_AVAILABLE";
|
|
14
|
+
WatchFolderScanStatus["FAILED"] = "FAILED";
|
|
15
|
+
})(WatchFolderScanStatus || (exports.WatchFolderScanStatus = WatchFolderScanStatus = {}));
|
|
9
16
|
var WatchFolderFileStatus;
|
|
10
17
|
(function (WatchFolderFileStatus) {
|
|
11
18
|
WatchFolderFileStatus["NEW"] = "NEW";
|