@junobuild/admin 0.0.44 → 0.0.45

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.
Files changed (29) hide show
  1. package/declarations/ic/ic.did.d.ts +32 -20
  2. package/declarations/mission_control/mission_control.did.d.ts +9 -7
  3. package/declarations/mission_control/mission_control.factory.did.js +2 -2
  4. package/declarations/orbiter/orbiter.did.d.ts +42 -0
  5. package/declarations/orbiter/orbiter.factory.did.js +48 -0
  6. package/declarations/orbiter/orbiter.factory.did.mjs +192 -0
  7. package/declarations/satellite/satellite.did.d.ts +5 -0
  8. package/declarations/satellite/satellite.factory.did.js +27 -20
  9. package/declarations/satellite/satellite.factory.did.mjs +27 -20
  10. package/dist/browser/index.js +7 -7
  11. package/dist/browser/index.js.map +4 -4
  12. package/dist/declarations/ic/ic.did.d.ts +32 -20
  13. package/dist/declarations/mission_control/mission_control.did.d.ts +9 -7
  14. package/dist/declarations/mission_control/mission_control.factory.did.js +2 -2
  15. package/dist/declarations/orbiter/orbiter.did.d.ts +42 -0
  16. package/dist/declarations/orbiter/orbiter.factory.did.js +48 -0
  17. package/dist/declarations/orbiter/orbiter.factory.did.mjs +192 -0
  18. package/dist/declarations/satellite/satellite.did.d.ts +5 -0
  19. package/dist/declarations/satellite/satellite.factory.did.js +27 -20
  20. package/dist/declarations/satellite/satellite.factory.did.mjs +27 -20
  21. package/dist/node/index.mjs +7 -7
  22. package/dist/node/index.mjs.map +4 -4
  23. package/dist/types/api/ic.api.d.ts +5 -0
  24. package/dist/types/api/satellite.api.d.ts +3 -0
  25. package/dist/types/index.d.ts +8 -7
  26. package/dist/types/services/satellite.services.d.ts +7 -0
  27. package/dist/types/types/build.types.d.ts +1 -0
  28. package/dist/types/utils/actor.utils.d.ts +3 -1
  29. package/package.json +1 -1
@@ -1,6 +1,11 @@
1
+ import { CanisterStatus } from '@dfinity/agent';
1
2
  import type { ActorParameters } from '../types/actor.types';
2
3
  import type { InstallCodeParams } from '../types/ic.types';
3
4
  export declare const upgradeCode: ({ actor, code }: {
4
5
  actor: ActorParameters;
5
6
  code: Omit<InstallCodeParams, 'sender_canister_version'>;
6
7
  }) => Promise<void>;
8
+ export declare const canisterMetadata: ({ canisterId, path, ...rest }: ActorParameters & {
9
+ canisterId: string | undefined;
10
+ path: string;
11
+ }) => Promise<CanisterStatus.Status | undefined>;
@@ -18,6 +18,9 @@ export declare const setRule: ({ type, collection, rule, satellite }: {
18
18
  export declare const version: ({ satellite }: {
19
19
  satellite: SatelliteParameters;
20
20
  }) => Promise<string>;
21
+ export declare const buildVersion: ({ satellite }: {
22
+ satellite: SatelliteParameters;
23
+ }) => Promise<string>;
21
24
  export declare const listDeprecatedControllers: ({ satellite }: {
22
25
  satellite: SatelliteParameters;
23
26
  }) => Promise<Principal[]>;
@@ -2,10 +2,11 @@ export * from './services/mission-control.services';
2
2
  export * from './services/orbiter.services';
3
3
  export * from './services/releases.services';
4
4
  export * from './services/satellite.services';
5
- export * from './types/actor.types';
6
- export * from './types/config.types';
7
- export * from './types/controllers.types';
8
- export * from './types/customdomain.types';
9
- export * from './types/ic.types';
10
- export * from './types/releases.types';
11
- export * from './types/rules.types';
5
+ export type * from './types/actor.types';
6
+ export type * from './types/build.types';
7
+ export type * from './types/config.types';
8
+ export type * from './types/controllers.types';
9
+ export type * from './types/customdomain.types';
10
+ export type * from './types/ic.types';
11
+ export type * from './types/releases.types';
12
+ export type * from './types/rules.types';
@@ -1,6 +1,7 @@
1
1
  import { Principal } from '@dfinity/principal';
2
2
  import type { Controller, MemorySize, SetControllersArgs } from '../../declarations/satellite/satellite.did';
3
3
  import type { SatelliteParameters } from '../types/actor.types';
4
+ import type { BuildType } from '../types/build.types';
4
5
  import type { Config } from '../types/config.types';
5
6
  import type { CustomDomain } from '../types/customdomain.types';
6
7
  import type { Rule, RulesType } from '../types/rules.types';
@@ -20,6 +21,12 @@ export declare const setRule: ({ rule: { collection, ...rest }, type, satellite
20
21
  export declare const satelliteVersion: (params: {
21
22
  satellite: SatelliteParameters;
22
23
  }) => Promise<string>;
24
+ export declare const satelliteBuildVersion: (params: {
25
+ satellite: SatelliteParameters;
26
+ }) => Promise<string>;
27
+ export declare const satelliteBuildType: ({ satellite: { satelliteId, ...rest } }: {
28
+ satellite: SatelliteParameters;
29
+ }) => Promise<BuildType | undefined>;
23
30
  export declare const upgradeSatellite: ({ satellite, wasm_module, deprecated, deprecatedNoScope, reset }: {
24
31
  satellite: SatelliteParameters;
25
32
  wasm_module: Uint8Array;
@@ -0,0 +1 @@
1
+ export type BuildType = 'stock' | 'extended';
@@ -1,8 +1,10 @@
1
1
  import type { ActorConfig, ActorMethod, ActorSubclass } from '@dfinity/agent';
2
+ import { HttpAgent } from '@dfinity/agent';
2
3
  import type { IDL } from '@dfinity/candid';
3
4
  import type { ActorParameters } from '../types/actor.types';
4
- export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ canisterId, idlFactory, identity, fetch, container, config }: {
5
+ export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ canisterId, idlFactory, config, ...rest }: {
5
6
  idlFactory: IDL.InterfaceFactory;
6
7
  canisterId: string;
7
8
  config?: Pick<ActorConfig, "callTransform" | "queryTransform"> | undefined;
8
9
  } & ActorParameters) => Promise<ActorSubclass<T>>;
10
+ export declare const initAgent: ({ identity, fetch, container }: ActorParameters) => Promise<HttpAgent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/admin",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
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",