hcloud-sdk 22.37.1 → 22.38.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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
## [22.
|
|
1
|
+
## [22.38.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.37.1...v22.38.0) (2026-09-21)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Features
|
|
4
4
|
|
|
5
|
-
* add
|
|
5
|
+
* add recursive parameter to cosmo asset browse endpoint ([745c256](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/745c256cb843eadbce530050048f18f3d0d709d0))
|
|
@@ -60,12 +60,13 @@ export declare class CosmoOrganization extends Base {
|
|
|
60
60
|
* @param sorting Sorting criteria for the results
|
|
61
61
|
* @returns List of found Assets
|
|
62
62
|
*/
|
|
63
|
-
browse<R extends boolean = false>({ orgName, spaceName, context, limit, page, namespace, parentId, shareId, assetFilter, sorting, }: {
|
|
63
|
+
browse<R extends boolean = false>({ orgName, spaceName, context, limit, page, recursive, namespace, parentId, shareId, assetFilter, sorting, }: {
|
|
64
64
|
orgName: string;
|
|
65
65
|
spaceName?: string;
|
|
66
66
|
context: AssetSearchContext;
|
|
67
67
|
limit?: number;
|
|
68
68
|
page?: number;
|
|
69
|
+
recursive?: boolean;
|
|
69
70
|
namespace?: string[] | string;
|
|
70
71
|
parentId?: string;
|
|
71
72
|
shareId?: string;
|
|
@@ -80,7 +80,7 @@ class CosmoOrganization extends Base_1.default {
|
|
|
80
80
|
* @returns List of found Assets
|
|
81
81
|
*/
|
|
82
82
|
browse(_a, raw_1) {
|
|
83
|
-
return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, context, limit, page, namespace, parentId, shareId, assetFilter, sorting, }, raw) {
|
|
83
|
+
return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, context, limit, page, recursive = false, namespace, parentId, shareId, assetFilter, sorting, }, raw) {
|
|
84
84
|
limit = limit !== null && limit !== void 0 ? limit : 100;
|
|
85
85
|
page = page !== null && page !== void 0 ? page : 0;
|
|
86
86
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/assets/browse`), Object.assign({ filters: assetFilter !== null && assetFilter !== void 0 ? assetFilter : [] }, (sorting ? { sorting } : {})), {
|
|
@@ -88,6 +88,7 @@ class CosmoOrganization extends Base_1.default {
|
|
|
88
88
|
context,
|
|
89
89
|
limit,
|
|
90
90
|
page,
|
|
91
|
+
recursive,
|
|
91
92
|
spaceName,
|
|
92
93
|
namespace,
|
|
93
94
|
parentId,
|