hcloud-sdk 21.7.0 → 21.7.2

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
- ## [21.7.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v21.6.0...v21.7.0) (2026-07-07)
1
+ ## [21.7.2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v21.7.1...v21.7.2) (2026-07-08)
2
2
 
3
- ### Features
3
+ ### Bug Fixes
4
4
 
5
- * remove invalidLink from ShareCreate ([b223d76](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b223d76dec06711681263a77d1e31118b0967480))
5
+ * apply regex pattern to email as well ([3461feb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3461feb19345b546932512e2af1e84086aa1eea0))
@@ -145,7 +145,10 @@ const entityCollection = {
145
145
  maxLength: 32,
146
146
  },
147
147
  [Entity.USER_ORGANIZATION_NAME]: {
148
- pattern: /^[\w-+@.]{3,255}$/i,
148
+ // Allows Unicode letters (incl. ß, é, …) so email-style values like staßburg@test.de are accepted, plus combining marks, numbers, underscores, plus, at, dots, and hyphens
149
+ pattern: /^[\p{L}\p{M}0-9_+@.-]{3,255}$/u,
150
+ // Set explicitly because the auto-derivation in sanitize() rebuilds the char class without the /u flag, which breaks the \p{…} Unicode property escapes
151
+ symbols: /[\p{L}\p{M}0-9_+@.-]/u,
149
152
  minLength: 3,
150
153
  maxLength: 255,
151
154
  },
@@ -59,16 +59,24 @@ export declare class CosmoComment extends Base {
59
59
  * @param spaceName Name of the Space
60
60
  * @param namespaceName Name of the Namespace
61
61
  * @param refId ID of the entity the Comments refer to
62
- * @param search Search criteria including optional sorting and filters
62
+ * @param filters Filter criteria for the Comments
63
+ * @param sorting Sorting criteria for the results
63
64
  * @param limit Maximum number of Comments to return (1-100; defaults to 25)
64
65
  * @param page Page number to skip the first (page * limit) results (defaults to 0)
65
66
  * @param annotation Whether to include annotations in the response
66
67
  * @returns The page of matching Comments
67
68
  */
68
- searchComments<R extends boolean = false>(orgName: string, spaceName: string, namespaceName: string, refId: string, search: {
69
- sorting?: Sorting;
69
+ searchComments<R extends boolean = false>({ orgName, spaceName, namespaceName, refId, filters, sorting, limit, page, annotation, }: {
70
+ orgName: string;
71
+ spaceName: string;
72
+ namespaceName: string;
73
+ refId: string;
70
74
  filters?: SearchFilter[];
71
- }, limit?: number, page?: number, annotation?: boolean, raw?: {
75
+ sorting?: Sorting;
76
+ limit?: number;
77
+ page?: number;
78
+ annotation?: boolean;
79
+ }, raw?: {
72
80
  raw: R;
73
81
  }): Promise<MaybeRaw<R, Comment[]>>;
74
82
  /**
@@ -89,17 +89,18 @@ class CosmoComment extends Base_1.default {
89
89
  * @param spaceName Name of the Space
90
90
  * @param namespaceName Name of the Namespace
91
91
  * @param refId ID of the entity the Comments refer to
92
- * @param search Search criteria including optional sorting and filters
92
+ * @param filters Filter criteria for the Comments
93
+ * @param sorting Sorting criteria for the results
93
94
  * @param limit Maximum number of Comments to return (1-100; defaults to 25)
94
95
  * @param page Page number to skip the first (page * limit) results (defaults to 0)
95
96
  * @param annotation Whether to include annotations in the response
96
97
  * @returns The page of matching Comments
97
98
  */
98
- searchComments(orgName_1, spaceName_1, namespaceName_1, refId_1, search_1, limit_1, page_1) {
99
- return __awaiter(this, arguments, void 0, function* (orgName, spaceName, namespaceName, refId, search, limit, page, annotation = false, raw) {
99
+ searchComments(_a, raw_1) {
100
+ return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, namespaceName, refId, filters, sorting, limit, page, annotation = false, }, raw) {
100
101
  limit = limit !== null && limit !== void 0 ? limit : 25;
101
102
  page = page !== null && page !== void 0 ? page : 0;
102
- const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/namespaces/${namespaceName}/comments/search`), search, {
103
+ const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/namespaces/${namespaceName}/comments/search`), Object.assign({ filters: filters !== null && filters !== void 0 ? filters : [] }, (sorting ? { sorting } : {})), {
103
104
  params: {
104
105
  refId,
105
106
  limit,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "21.7.0",
3
+ "version": "21.7.2",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",