@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.
- package/dist/browser/index.js +16 -16
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/satellite/satellite.did.d.ts +1 -0
- package/dist/declarations/satellite/satellite.factory.did.js +3 -0
- package/dist/declarations/satellite/satellite.factory.did.mjs +1 -0
- package/dist/node/index.mjs +21 -21
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/mission-control.api.d.ts +12 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/services/mission-control.services.d.ts +9 -0
- package/dist/types/services/satellite.services.d.ts +1 -1
- package/dist/types/types/controllers.types.d.ts +4 -0
- package/dist/types/utils/controllers.utils.d.ts +7 -0
- package/package.json +1 -1
|
@@ -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>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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,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
|
+
};
|