hcloud-sdk 22.2.0 → 22.2.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,5 @@
|
|
|
1
|
-
## [22.2.
|
|
1
|
+
## [22.2.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.2.0...v22.2.1) (2026-07-15)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Performance Improvements
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* **high5:** support timestamp-based event job creation ([72217fa](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/72217fa0363b22e4333e97e4e967659ee9760717))
|
|
@@ -77,6 +77,8 @@ export interface Job {
|
|
|
77
77
|
lastTriggered?: number;
|
|
78
78
|
time?: CronjobType;
|
|
79
79
|
}
|
|
80
|
-
export type JobCreate = Pick<Job, "name" | "
|
|
80
|
+
export type JobCreate = Pick<Job, "name" | "timezone" | "payload" | "enabled" | "description" | "target" | "lastStatus" | "lastTriggered" | "time"> & {
|
|
81
|
+
expression?: string;
|
|
82
|
+
timestamp?: string;
|
|
81
83
|
targetEvent: string;
|
|
82
84
|
};
|
|
@@ -58,7 +58,9 @@ export declare class High5Event extends Base {
|
|
|
58
58
|
* @param spaceName Name of the Space
|
|
59
59
|
* @param eventName Name of the Event
|
|
60
60
|
*/
|
|
61
|
-
deleteEvent<R extends boolean = false>(orgName: string, spaceName: string, eventName: string,
|
|
61
|
+
deleteEvent<R extends boolean = false>(orgName: string, spaceName: string, eventName: string, options?: {
|
|
62
|
+
deleteLinkedJobs: boolean;
|
|
63
|
+
}, raw?: {
|
|
62
64
|
raw: R;
|
|
63
65
|
}): Promise<MaybeRaw<R, void>>;
|
|
64
66
|
protected getEndpoint(endpoint: string): string;
|
|
@@ -92,9 +92,12 @@ class High5Event extends Base_1.default {
|
|
|
92
92
|
* @param spaceName Name of the Space
|
|
93
93
|
* @param eventName Name of the Event
|
|
94
94
|
*/
|
|
95
|
-
deleteEvent(orgName, spaceName, eventName, raw) {
|
|
95
|
+
deleteEvent(orgName, spaceName, eventName, options, raw) {
|
|
96
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
-
const
|
|
97
|
+
const deleteLinkedJobs = (options === null || options === void 0 ? void 0 : options.deleteLinkedJobs) ? true : false;
|
|
98
|
+
const resp = yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}`), {
|
|
99
|
+
params: { deleteLinkedJobs },
|
|
100
|
+
});
|
|
98
101
|
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
|
|
99
102
|
});
|
|
100
103
|
}
|