@junobuild/admin 0.0.9 → 0.0.11

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.
@@ -1,5 +1,5 @@
1
1
  import type { Principal } from '@dfinity/principal';
2
- import type { Controller } from '../../declarations/mission_control/mission_control.did';
2
+ import type { Controller, SetController } from '../../declarations/mission_control/mission_control.did';
3
3
  import type { MissionControlParameters } from '../types/actor.types';
4
4
  export declare const version: ({ missionControl }: {
5
5
  missionControl: MissionControlParameters;
@@ -10,3 +10,14 @@ export declare const getUser: ({ missionControl }: {
10
10
  export declare const listControllers: ({ missionControl }: {
11
11
  missionControl: MissionControlParameters;
12
12
  }) => Promise<[Principal, Controller][]>;
13
+ export declare const setSatellitesController: ({ missionControl, satelliteIds, controllerIds, controller }: {
14
+ missionControl: MissionControlParameters;
15
+ satelliteIds: Principal[];
16
+ controllerIds: Principal[];
17
+ controller: SetController;
18
+ }) => Promise<undefined>;
19
+ export declare const setMissionControlController: ({ missionControl, controllerIds, controller }: {
20
+ missionControl: MissionControlParameters;
21
+ controllerIds: Principal[];
22
+ controller: SetController;
23
+ }) => Promise<undefined>;
@@ -2,5 +2,6 @@ export * from './services/mission-control.services';
2
2
  export * from './services/satellite.services';
3
3
  export * from './types/actor.types';
4
4
  export * from './types/config.types';
5
+ export * from './types/controllers.types';
5
6
  export * from './types/ic.types';
6
7
  export * from './types/rules.types';
@@ -1,4 +1,6 @@
1
+ import { Principal } from '@dfinity/principal';
1
2
  import type { MissionControlParameters } from '../types/actor.types';
3
+ import type { SetControllerParams } from '../types/controllers.types';
2
4
  export declare const missionControlVersion: (params: {
3
5
  missionControl: MissionControlParameters;
4
6
  }) => Promise<string>;
@@ -6,3 +8,10 @@ export declare const upgradeMissionControl: ({ missionControl, wasm_module }: {
6
8
  missionControl: MissionControlParameters;
7
9
  wasm_module: Array<number>;
8
10
  }) => Promise<void>;
11
+ export declare const setSatellitesController: ({ controllerId, profile, ...rest }: {
12
+ missionControl: MissionControlParameters;
13
+ satelliteIds: Principal[];
14
+ } & SetControllerParams) => Promise<undefined>;
15
+ export declare const setMissionControlController: ({ controllerId, profile, ...rest }: {
16
+ missionControl: MissionControlParameters;
17
+ } & SetControllerParams) => Promise<undefined>;
@@ -1,6 +1,6 @@
1
1
  import type { SatelliteParameters } from '../types/actor.types';
2
2
  import type { Config } from '../types/config.types';
3
- import { Rule, RulesType } from '../types/rules.types';
3
+ import type { Rule, RulesType } from '../types/rules.types';
4
4
  export declare const setConfig: ({ config: { storage: { headers: configHeaders } }, satellite }: {
5
5
  config: Config;
6
6
  satellite: SatelliteParameters;
@@ -0,0 +1,4 @@
1
+ export type SetControllerParams = {
2
+ controllerId: string;
3
+ profile: string | null | undefined;
4
+ };
@@ -0,0 +1,7 @@
1
+ import { Principal } from '@dfinity/principal';
2
+ import type { SetController } from '../../declarations/mission_control/mission_control.did';
3
+ import type { SetControllerParams } from '../types/controllers.types';
4
+ export declare const mapSetControllerParams: ({ controllerId, profile }: SetControllerParams) => {
5
+ controllerIds: Principal[];
6
+ controller: SetController;
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/admin",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "A library for interfacing with admin features of Juno",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",