@junobuild/admin 0.0.58-next-2024-11-26.2 → 0.0.58-next-2024-11-27.1

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,2 +1,4 @@
1
1
  import { UpgradeCodeParams } from '../types/upgrade.types';
2
- export declare const upgrade: ({ wasmModule, canisterId, actor, onProgress, ...rest }: UpgradeCodeParams) => Promise<void>;
2
+ export declare const upgrade: ({ wasmModule, canisterId, actor, onProgress, ...rest }: UpgradeCodeParams & {
3
+ reset?: boolean;
4
+ }) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { UpgradeCodeParams } from '../types/upgrade.types';
2
+ export declare const upgradeSingleChunkCode: ({ actor, ...rest }: UpgradeCodeParams) => Promise<void>;
@@ -1,12 +1,17 @@
1
1
  import type { canister_install_mode } from '@dfinity/ic-management';
2
2
  import { Principal } from '@dfinity/principal';
3
3
  import { ActorParameters } from './actor.types';
4
- export declare enum UpgradeCodeProgress {
4
+ export declare enum UpgradeCodeProgressStep {
5
5
  AssertingExistingCode = 0,
6
6
  StoppingCanister = 1,
7
7
  UpgradingCode = 2,
8
8
  RestartingCanister = 3
9
9
  }
10
+ export type UpgradeCodeProgressState = 'in_progress' | 'success' | 'error';
11
+ export interface UpgradeCodeProgress {
12
+ step: UpgradeCodeProgressStep;
13
+ state: UpgradeCodeProgressState;
14
+ }
10
15
  export interface UpgradeCodeParams {
11
16
  actor: ActorParameters;
12
17
  canisterId: Principal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/admin",
3
- "version": "0.0.58-next-2024-11-26.2",
3
+ "version": "0.0.58-next-2024-11-27.1",
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",