hcloud-sdk 22.1.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 +3 -10
- package/lib/interfaces/global/ErrorCodes.d.ts +4 -0
- package/lib/interfaces/global/ErrorCodes.js +5 -0
- package/lib/interfaces/high5/space/job/index.d.ts +3 -1
- package/lib/service/high5/space/event/index.d.ts +3 -1
- package/lib/service/high5/space/event/index.js +5 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
## [22.1
|
|
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
|
-
*
|
|
6
|
-
* add QUERY method to HttpMethod ([d16789e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d16789e31d34e578bc563f5afdc23a75b6f06709))
|
|
7
|
-
* update error codes ([0ee8c90](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0ee8c90a2e852ad7ed19c9bedfc94c97740b9532))
|
|
8
|
-
* update error codes ([6fefe8e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6fefe8e3414d583bd5c0d7a8c9feda4a25ffe621))
|
|
9
|
-
* update error codes ([fc1c39d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fc1c39d74802bb628e4fccb99afdd958a40eb345))
|
|
10
|
-
* update error codes ([7555081](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/75550817c9c545fbbd4218ee57e05ef797e31186))
|
|
11
|
-
* update error codes ([8f88499](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8f88499f331f62dcab3f9a254b21621c36cdf9aa))
|
|
12
|
-
* update error codes ([4f05405](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4f054058abbe7f0bf9b8741a3e28047f651cc666))
|
|
5
|
+
* **high5:** support timestamp-based event job creation ([72217fa](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/72217fa0363b22e4333e97e4e967659ee9760717))
|
|
@@ -618,6 +618,10 @@ export declare const ErrorCodes: readonly [{
|
|
|
618
618
|
readonly code: "002.020.0003";
|
|
619
619
|
readonly error: "cronjob.log.not.found";
|
|
620
620
|
readonly message: "Given cronjob log not found";
|
|
621
|
+
}, {
|
|
622
|
+
readonly code: "002.020.0004";
|
|
623
|
+
readonly error: "cronjob.timestamp.in.past";
|
|
624
|
+
readonly message: "The provided timestamp is in the past - a scheduled event must be created with a future timestamp";
|
|
621
625
|
}, {
|
|
622
626
|
readonly code: "002.023.0001";
|
|
623
627
|
readonly error: "search.invalid.filter";
|
|
@@ -778,6 +778,11 @@ exports.ErrorCodes = [
|
|
|
778
778
|
error: "cronjob.log.not.found",
|
|
779
779
|
message: "Given cronjob log not found"
|
|
780
780
|
},
|
|
781
|
+
{
|
|
782
|
+
code: "002.020.0004",
|
|
783
|
+
error: "cronjob.timestamp.in.past",
|
|
784
|
+
message: "The provided timestamp is in the past - a scheduled event must be created with a future timestamp"
|
|
785
|
+
},
|
|
781
786
|
{
|
|
782
787
|
code: "002.023.0001",
|
|
783
788
|
error: "search.invalid.filter",
|
|
@@ -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
|
}
|