@calimero-network/mero-js 29.12.0 → 29.13.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/README.md +1 -1
- package/dist/cloud-v2/client.d.ts +30 -0
- package/dist/cloud-v2/client.js +16 -0
- package/dist/cloud-v2/index.d.ts +1 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.browser.mjs.map +3 -3
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2805,6 +2805,22 @@ var CalimeroClient = class _CalimeroClient {
|
|
|
2805
2805
|
async transferApp(app, to, passkey) {
|
|
2806
2806
|
await this.postConfirmed(`apps/${seg(app)}/transfer`, { to }, passkey);
|
|
2807
2807
|
}
|
|
2808
|
+
/**
|
|
2809
|
+
* Move an app instance to another organization (`toOrg`), its data where it
|
|
2810
|
+
* is (core `POST /apps/{app}/move`), approved with `passkey`. Whoever
|
|
2811
|
+
* manages the app now (its owner while a member of its organization, an
|
|
2812
|
+
* admin there, or a personal app's owner) moves it, as an admin or the
|
|
2813
|
+
* owner of `toOrg`. Its files, runs and quotas go to the target; `org` or
|
|
2814
|
+
* app-team access becomes the target's app team of its package.
|
|
2815
|
+
* `bringMembers` adds the people of its organization who reach it to the
|
|
2816
|
+
* target (capped at `member`). A node from before the route answers `404`
|
|
2817
|
+
* ({@link NotFound}): the feature is not there yet.
|
|
2818
|
+
*/
|
|
2819
|
+
moveApp(app, toOrg, options = {}, passkey) {
|
|
2820
|
+
const path = `apps/${seg(app)}/move`;
|
|
2821
|
+
const body = { toOrg, bringMembers: options.bringMembers ?? false };
|
|
2822
|
+
return passkey ? this.postConfirmed(path, body, passkey) : this.post(path, body);
|
|
2823
|
+
}
|
|
2808
2824
|
/**
|
|
2809
2825
|
* Move an app to another release of its package (`{ version }`), another
|
|
2810
2826
|
* package, or a bundle hash, running its migration. Answers the upgrade's
|