@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.mjs
CHANGED
|
@@ -2672,6 +2672,22 @@ var CalimeroClient = class _CalimeroClient {
|
|
|
2672
2672
|
async transferApp(app, to, passkey) {
|
|
2673
2673
|
await this.postConfirmed(`apps/${seg(app)}/transfer`, { to }, passkey);
|
|
2674
2674
|
}
|
|
2675
|
+
/**
|
|
2676
|
+
* Move an app instance to another organization (`toOrg`), its data where it
|
|
2677
|
+
* is (core `POST /apps/{app}/move`), approved with `passkey`. Whoever
|
|
2678
|
+
* manages the app now (its owner while a member of its organization, an
|
|
2679
|
+
* admin there, or a personal app's owner) moves it, as an admin or the
|
|
2680
|
+
* owner of `toOrg`. Its files, runs and quotas go to the target; `org` or
|
|
2681
|
+
* app-team access becomes the target's app team of its package.
|
|
2682
|
+
* `bringMembers` adds the people of its organization who reach it to the
|
|
2683
|
+
* target (capped at `member`). A node from before the route answers `404`
|
|
2684
|
+
* ({@link NotFound}): the feature is not there yet.
|
|
2685
|
+
*/
|
|
2686
|
+
moveApp(app, toOrg, options = {}, passkey) {
|
|
2687
|
+
const path = `apps/${seg(app)}/move`;
|
|
2688
|
+
const body = { toOrg, bringMembers: options.bringMembers ?? false };
|
|
2689
|
+
return passkey ? this.postConfirmed(path, body, passkey) : this.post(path, body);
|
|
2690
|
+
}
|
|
2675
2691
|
/**
|
|
2676
2692
|
* Move an app to another release of its package (`{ version }`), another
|
|
2677
2693
|
* package, or a bundle hash, running its migration. Answers the upgrade's
|