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 CHANGED
@@ -1,12 +1,5 @@
1
- ## [22.1.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.0.1...v22.1.0) (2026-07-15)
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
- ### Features
3
+ ### Performance Improvements
4
4
 
5
- * add ErrorCodes (generated) to prettierignore ([3f79a84](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3f79a841534e40271ccdc6c658344348963e11f9))
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" | "expression" | "timezone" | "payload" | "enabled" | "description" | "target" | "lastStatus" | "lastTriggered" | "time"> & {
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, raw?: {
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 resp = yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}`));
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.1.0",
3
+ "version": "22.2.1",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",