hcloud-sdk 22.34.0 → 22.36.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 +2 -2
- package/lib/interfaces/high5/space/watchfolder/index.d.ts +9 -0
- package/lib/service/cosmo/organization/index.d.ts +3 -3
- package/lib/service/cosmo/organization/index.js +1 -1
- package/lib/service/high5/space/watchfolder/index.d.ts +15 -1
- package/lib/service/high5/space/watchfolder/index.js +17 -0
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
## [22.
|
|
1
|
+
## [22.36.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.35.0...v22.36.0) (2026-09-17)
|
|
2
2
|
|
|
3
3
|
### Features
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* add optional search filter for asset search in CosmoOrganization ([ac15f8e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ac15f8e6e471fcd5e99dbf897b0311b9c1f8b8a5))
|
|
@@ -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 Base, { MaybeRaw } from "../../../Base";
|
|
2
2
|
import { Asset, AssetFilter, AssetSearchContext } from "../../../interfaces/cosmo/asset";
|
|
3
|
-
import { Sorting } from "../../../interfaces/global";
|
|
3
|
+
import { SearchFilter, Sorting } from "../../../interfaces/global";
|
|
4
4
|
/**
|
|
5
5
|
* @class Organization
|
|
6
6
|
* @extends Base
|
|
@@ -56,7 +56,7 @@ export declare class CosmoOrganization extends Base {
|
|
|
56
56
|
* @param namespace Name of Namespace to restrict search
|
|
57
57
|
* @param parentId ID of parent (folder, etc.) to restrict search
|
|
58
58
|
* @param shareId ID of Share to restrict search (mandatory if context is SHARE)
|
|
59
|
-
* @param assetFilter Filter criteria for Assets
|
|
59
|
+
* @param assetFilter Filter criteria for Assets. Accepts the full asset search filter set (e.g. type, size, creator, namespace fields), not just identity fields.
|
|
60
60
|
* @param sorting Sorting criteria for the results
|
|
61
61
|
* @returns List of found Assets
|
|
62
62
|
*/
|
|
@@ -69,7 +69,7 @@ export declare class CosmoOrganization extends Base {
|
|
|
69
69
|
namespace?: string[] | string;
|
|
70
70
|
parentId?: string;
|
|
71
71
|
shareId?: string;
|
|
72
|
-
assetFilter?:
|
|
72
|
+
assetFilter?: SearchFilter[];
|
|
73
73
|
sorting?: Sorting;
|
|
74
74
|
}, raw?: {
|
|
75
75
|
raw: R;
|
|
@@ -75,7 +75,7 @@ class CosmoOrganization extends Base_1.default {
|
|
|
75
75
|
* @param namespace Name of Namespace to restrict search
|
|
76
76
|
* @param parentId ID of parent (folder, etc.) to restrict search
|
|
77
77
|
* @param shareId ID of Share to restrict search (mandatory if context is SHARE)
|
|
78
|
-
* @param assetFilter Filter criteria for Assets
|
|
78
|
+
* @param assetFilter Filter criteria for Assets. Accepts the full asset search filter set (e.g. type, size, creator, namespace fields), not just identity fields.
|
|
79
79
|
* @param sorting Sorting criteria for the results
|
|
80
80
|
* @returns List of found Assets
|
|
81
81
|
*/
|
|
@@ -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
|
}
|