hcloud-sdk 21.10.0 → 22.0.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,21 @@
|
|
|
1
|
-
## [
|
|
1
|
+
## [22.0.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v21.7.2...v22.0.0) (2026-07-14)
|
|
2
|
+
|
|
3
|
+
### ⚠ BREAKING CHANGES
|
|
4
|
+
|
|
5
|
+
* trigger new version build
|
|
2
6
|
|
|
3
7
|
### Features
|
|
4
8
|
|
|
5
|
-
*
|
|
9
|
+
* add change storage avatar endpoint ([b393aac](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b393aace86072b7a374b8fa5c98ae5b92bb1d1b7))
|
|
10
|
+
* expose remaining seconds of email cooldown ([f63492c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f63492cc036865e9e369c533f89c7eb9dc3221d7))
|
|
11
|
+
* extend list space endpoint response object by hasMediaAssets property ([530d44d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/530d44db3fc5746ad089677bf9afc5c4cb0f1384))
|
|
12
|
+
* implement dali storage endpoints ([bf7983a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/bf7983ae1c4cbdf9e40a293b54a9d03a011a862f))
|
|
13
|
+
* implements upload url variable in Upload object ([8997a44](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8997a44e31ba3af0a69a8e4ef66f937ed878eb4b))
|
|
14
|
+
* make text optional in EditComment interface ([7c36e39](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7c36e393e4165952f991b4d799bcca06264e7077))
|
|
15
|
+
* trigger new version build ([6ec8a52](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6ec8a52aa2b1a914b6d2e527a25f03c2efb045ea))
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* add/remove assets to/from stack; ci: update node version reset pnpm version ([fcdf270](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fcdf27052471889004c259b487038331de35e67d))
|
|
20
|
+
* set explicit pnpm version for build ([f373bf7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f373bf713683739325e8578a1e918efa1f4e54ee))
|
|
21
|
+
* update the disbanded case for detach assets from stack case ([dd87fc3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/dd87fc3c0402468b8e89e6a3c14ec680b2c60ed5))
|
|
@@ -14,16 +14,16 @@ export declare class CosmoStack extends Base {
|
|
|
14
14
|
raw: R;
|
|
15
15
|
}): Promise<MaybeRaw<R, Stack>>;
|
|
16
16
|
/**
|
|
17
|
-
* Attach
|
|
17
|
+
* Attach Assets to an existing Stack in Cosmo.
|
|
18
18
|
*
|
|
19
19
|
* @param organizationName Name of the Organization
|
|
20
20
|
* @param spaceName Name of the Space
|
|
21
21
|
* @param stackId ID of the Stack
|
|
22
|
-
* @param
|
|
22
|
+
* @param assetIds Array of Asset IDs to attach
|
|
23
23
|
* @param raw (optional) If true, returns the raw Axios response
|
|
24
24
|
* @returns The updated Stack
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
attachAssetsToStack<R extends boolean = false>(organizationName: string, spaceName: string, stackId: string, assetIds: string[], raw?: {
|
|
27
27
|
raw: R;
|
|
28
28
|
}): Promise<MaybeRaw<R, Stack>>;
|
|
29
29
|
/**
|
|
@@ -32,13 +32,13 @@ export declare class CosmoStack extends Base {
|
|
|
32
32
|
* @param organizationName Name of the Organization
|
|
33
33
|
* @param spaceName Name of the Space
|
|
34
34
|
* @param stackId ID of the Stack
|
|
35
|
-
* @param
|
|
35
|
+
* @param assetIds Array of Asset IDs to detach
|
|
36
36
|
* @param raw (optional) If true, returns the raw Axios response
|
|
37
|
-
* @returns The updated Stack
|
|
37
|
+
* @returns The updated Stack, or 204 No Content if the Stack is empty after detachment (disbanded)
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
detachAssetsFromStack<R extends boolean = false>(organizationName: string, spaceName: string, stackId: string, assetIds: string[], raw?: {
|
|
40
40
|
raw: R;
|
|
41
|
-
}): Promise<MaybeRaw<R, Stack>>;
|
|
41
|
+
}): Promise<MaybeRaw<R, Stack | undefined>>;
|
|
42
42
|
/**
|
|
43
43
|
* Reorder the Assets in a Stack in Cosmo.
|
|
44
44
|
*
|
|
@@ -31,18 +31,20 @@ class CosmoStack extends Base_1.default {
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Attach
|
|
34
|
+
* Attach Assets to an existing Stack in Cosmo.
|
|
35
35
|
*
|
|
36
36
|
* @param organizationName Name of the Organization
|
|
37
37
|
* @param spaceName Name of the Space
|
|
38
38
|
* @param stackId ID of the Stack
|
|
39
|
-
* @param
|
|
39
|
+
* @param assetIds Array of Asset IDs to attach
|
|
40
40
|
* @param raw (optional) If true, returns the raw Axios response
|
|
41
41
|
* @returns The updated Stack
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
attachAssetsToStack(organizationName, spaceName, stackId, assetIds, raw) {
|
|
44
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${organizationName}/spaces/${spaceName}/stacks/${stackId}/assets
|
|
45
|
+
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${organizationName}/spaces/${spaceName}/stacks/${stackId}/assets/add`), {
|
|
46
|
+
assetIds: assetIds,
|
|
47
|
+
});
|
|
46
48
|
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
47
49
|
});
|
|
48
50
|
}
|
|
@@ -52,14 +54,16 @@ class CosmoStack extends Base_1.default {
|
|
|
52
54
|
* @param organizationName Name of the Organization
|
|
53
55
|
* @param spaceName Name of the Space
|
|
54
56
|
* @param stackId ID of the Stack
|
|
55
|
-
* @param
|
|
57
|
+
* @param assetIds Array of Asset IDs to detach
|
|
56
58
|
* @param raw (optional) If true, returns the raw Axios response
|
|
57
|
-
* @returns The updated Stack
|
|
59
|
+
* @returns The updated Stack, or 204 No Content if the Stack is empty after detachment (disbanded)
|
|
58
60
|
*/
|
|
59
|
-
|
|
61
|
+
detachAssetsFromStack(organizationName, spaceName, stackId, assetIds, raw) {
|
|
60
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
const resp = yield this.axios.
|
|
62
|
-
|
|
63
|
+
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${organizationName}/spaces/${spaceName}/stacks/${stackId}/assets/remove`), {
|
|
64
|
+
assetIds: assetIds,
|
|
65
|
+
});
|
|
66
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.status === 200 ? resp.data : undefined);
|
|
63
67
|
});
|
|
64
68
|
}
|
|
65
69
|
/**
|