ic-mops 1.11.1 → 2.0.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/.DS_Store +0 -0
- package/.eslintrc.json +7 -7
- package/CHANGELOG.md +15 -0
- package/api/actors.ts +41 -37
- package/api/downloadPackageFiles.ts +75 -61
- package/api/getHighestVersion.ts +5 -5
- package/api/index.ts +4 -4
- package/api/network.ts +19 -21
- package/api/resolveVersion.ts +14 -11
- package/bin/mops.js +1 -1
- package/bun.lock +234 -198
- package/bundle/bench/bench-canister.mo +2 -2
- package/bundle/bench/user-bench.mo +0 -4
- package/bundle/bin/mops.js +1 -1
- package/bundle/cli.js +1000 -924
- package/bundle/cli.tgz +0 -0
- package/bundle/declarations/bench/bench.did +3 -3
- package/bundle/declarations/bench/bench.did.d.ts +3 -3
- package/bundle/declarations/bench/index.d.ts +3 -3
- package/bundle/declarations/bench/index.js +1 -1
- package/bundle/declarations/main/index.d.ts +3 -3
- package/bundle/declarations/main/index.js +1 -1
- package/bundle/declarations/main/main.did +78 -121
- package/bundle/declarations/main/main.did.d.ts +48 -98
- package/bundle/declarations/main/main.did.js +53 -107
- package/bundle/declarations/storage/index.d.ts +3 -3
- package/bundle/declarations/storage/index.js +4 -4
- package/bundle/declarations/storage/storage.did.d.ts +3 -3
- package/bundle/package.json +6 -5
- package/bundle/templates/mops-publish.yml +3 -3
- package/bundle/templates/mops-test.yml +3 -3
- package/bundle-package-json.ts +8 -8
- package/cache.ts +80 -65
- package/check-requirements.ts +49 -45
- package/cli.ts +577 -376
- package/commands/add.ts +142 -129
- package/commands/available-updates.ts +55 -28
- package/commands/bench/bench-canister.mo +114 -108
- package/commands/bench/user-bench.mo +6 -6
- package/commands/bench-replica.ts +146 -106
- package/commands/bench.ts +563 -497
- package/commands/build.ts +177 -0
- package/commands/bump.ts +68 -57
- package/commands/check-candid.ts +24 -0
- package/commands/docs-coverage.ts +124 -102
- package/commands/docs.ts +118 -108
- package/commands/format.ts +171 -155
- package/commands/init.ts +301 -275
- package/commands/install/install-all.ts +75 -62
- package/commands/install/install-dep.ts +43 -28
- package/commands/install/install-deps.ts +23 -15
- package/commands/install/install-local-dep.ts +42 -34
- package/commands/install/install-mops-dep.ts +154 -123
- package/commands/install/sync-local-cache.ts +39 -35
- package/commands/maintainer.ts +109 -99
- package/commands/outdated.ts +31 -18
- package/commands/owner.ts +107 -99
- package/commands/publish.ts +534 -443
- package/commands/remove.ts +119 -89
- package/commands/replica.ts +391 -303
- package/commands/search.ts +42 -36
- package/commands/self.ts +63 -56
- package/commands/sources.ts +66 -49
- package/commands/sync.ts +92 -75
- package/commands/template.ts +145 -102
- package/commands/test/mmf1.ts +146 -119
- package/commands/test/reporters/compact-reporter.ts +87 -84
- package/commands/test/reporters/files-reporter.ts +56 -51
- package/commands/test/reporters/reporter.ts +12 -6
- package/commands/test/reporters/silent-reporter.ts +58 -59
- package/commands/test/reporters/verbose-reporter.ts +66 -54
- package/commands/test/test.ts +497 -460
- package/commands/test/utils.ts +85 -6
- package/commands/toolchain/index.ts +363 -322
- package/commands/toolchain/moc.ts +78 -50
- package/commands/toolchain/pocket-ic.ts +41 -34
- package/commands/toolchain/toolchain-utils.ts +92 -72
- package/commands/toolchain/wasmtime.ts +37 -34
- package/commands/update.ts +91 -56
- package/commands/user.ts +90 -81
- package/commands/watch/deployer.ts +188 -152
- package/commands/watch/error-checker.ts +90 -80
- package/commands/watch/formatter.ts +72 -60
- package/commands/watch/generator.ts +116 -96
- package/commands/watch/globMoFiles.ts +13 -13
- package/commands/watch/parseDfxJson.ts +63 -57
- package/commands/watch/tester.ts +83 -65
- package/commands/watch/warning-checker.ts +149 -136
- package/commands/watch/watch.ts +123 -95
- package/declarations/bench/bench.did.d.ts +3 -3
- package/declarations/bench/index.d.ts +3 -3
- package/declarations/bench/index.js +1 -1
- package/declarations/main/index.d.ts +3 -3
- package/declarations/main/index.js +1 -1
- package/declarations/main/main.did.d.ts +3 -3
- package/declarations/storage/index.d.ts +3 -3
- package/declarations/storage/index.js +4 -4
- package/declarations/storage/storage.did.d.ts +3 -3
- package/dist/api/actors.d.ts +4 -4
- package/dist/api/actors.js +8 -8
- package/dist/api/downloadPackageFiles.d.ts +2 -2
- package/dist/api/downloadPackageFiles.js +10 -10
- package/dist/api/getHighestVersion.js +1 -1
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.js +4 -4
- package/dist/api/network.js +9 -9
- package/dist/api/resolveVersion.js +3 -3
- package/dist/bin/mops.js +1 -1
- package/dist/bundle-package-json.js +8 -8
- package/dist/cache.js +22 -17
- package/dist/check-requirements.js +11 -11
- package/dist/cli.js +283 -186
- package/dist/commands/add.d.ts +1 -1
- package/dist/commands/add.js +41 -38
- package/dist/commands/available-updates.d.ts +1 -1
- package/dist/commands/available-updates.js +32 -14
- package/dist/commands/bench/bench-canister.mo +114 -108
- package/dist/commands/bench/user-bench.mo +6 -6
- package/dist/commands/bench-replica.d.ts +6 -5
- package/dist/commands/bench-replica.js +58 -36
- package/dist/commands/bench.d.ts +5 -5
- package/dist/commands/bench.js +134 -118
- package/dist/commands/build.d.ts +7 -0
- package/dist/commands/build.js +121 -0
- package/dist/commands/bump.js +27 -18
- package/dist/commands/check-candid.d.ts +4 -0
- package/dist/commands/check-candid.js +15 -0
- package/dist/commands/docs-coverage.d.ts +1 -1
- package/dist/commands/docs-coverage.js +45 -31
- package/dist/commands/docs.d.ts +1 -1
- package/dist/commands/docs.js +39 -38
- package/dist/commands/format.js +31 -27
- package/dist/commands/init.js +102 -92
- package/dist/commands/install/install-all.d.ts +2 -2
- package/dist/commands/install/install-all.js +23 -21
- package/dist/commands/install/install-dep.d.ts +1 -1
- package/dist/commands/install/install-dep.js +21 -8
- package/dist/commands/install/install-deps.d.ts +1 -1
- package/dist/commands/install/install-deps.js +1 -1
- package/dist/commands/install/install-local-dep.js +11 -9
- package/dist/commands/install/install-mops-dep.d.ts +1 -1
- package/dist/commands/install/install-mops-dep.js +32 -27
- package/dist/commands/install/sync-local-cache.js +10 -10
- package/dist/commands/maintainer.js +21 -21
- package/dist/commands/outdated.js +16 -6
- package/dist/commands/owner.js +21 -21
- package/dist/commands/publish.js +148 -128
- package/dist/commands/remove.d.ts +1 -1
- package/dist/commands/remove.js +42 -30
- package/dist/commands/replica.d.ts +9 -8
- package/dist/commands/replica.js +105 -65
- package/dist/commands/search.js +15 -13
- package/dist/commands/self.js +31 -28
- package/dist/commands/sources.d.ts +5 -1
- package/dist/commands/sources.js +23 -17
- package/dist/commands/sync.d.ts +1 -1
- package/dist/commands/sync.js +38 -25
- package/dist/commands/template.js +66 -56
- package/dist/commands/test/mmf1.d.ts +3 -3
- package/dist/commands/test/mmf1.js +33 -31
- package/dist/commands/test/reporters/compact-reporter.d.ts +3 -3
- package/dist/commands/test/reporters/compact-reporter.js +19 -15
- package/dist/commands/test/reporters/files-reporter.d.ts +3 -3
- package/dist/commands/test/reporters/files-reporter.js +18 -14
- package/dist/commands/test/reporters/reporter.d.ts +2 -2
- package/dist/commands/test/reporters/silent-reporter.d.ts +3 -3
- package/dist/commands/test/reporters/silent-reporter.js +4 -4
- package/dist/commands/test/reporters/verbose-reporter.d.ts +3 -3
- package/dist/commands/test/reporters/verbose-reporter.js +17 -13
- package/dist/commands/test/test.d.ts +4 -4
- package/dist/commands/test/test.js +151 -181
- package/dist/commands/test/utils.d.ts +6 -0
- package/dist/commands/test/utils.js +63 -2
- package/dist/commands/toolchain/index.d.ts +1 -1
- package/dist/commands/toolchain/index.js +81 -69
- package/dist/commands/toolchain/moc.d.ts +1 -1
- package/dist/commands/toolchain/moc.js +48 -24
- package/dist/commands/toolchain/pocket-ic.js +12 -12
- package/dist/commands/toolchain/toolchain-utils.d.ts +2 -0
- package/dist/commands/toolchain/toolchain-utils.js +32 -23
- package/dist/commands/toolchain/wasmtime.js +11 -11
- package/dist/commands/update.d.ts +1 -1
- package/dist/commands/update.js +30 -12
- package/dist/commands/user.js +31 -28
- package/dist/commands/watch/deployer.d.ts +4 -4
- package/dist/commands/watch/deployer.js +45 -36
- package/dist/commands/watch/error-checker.d.ts +2 -2
- package/dist/commands/watch/error-checker.js +27 -27
- package/dist/commands/watch/formatter.d.ts +4 -4
- package/dist/commands/watch/formatter.js +17 -17
- package/dist/commands/watch/generator.d.ts +3 -3
- package/dist/commands/watch/generator.js +28 -23
- package/dist/commands/watch/globMoFiles.js +8 -8
- package/dist/commands/watch/parseDfxJson.d.ts +2 -2
- package/dist/commands/watch/parseDfxJson.js +9 -9
- package/dist/commands/watch/tester.d.ts +4 -4
- package/dist/commands/watch/tester.js +23 -21
- package/dist/commands/watch/warning-checker.d.ts +3 -3
- package/dist/commands/watch/warning-checker.js +36 -36
- package/dist/commands/watch/watch.js +45 -32
- package/dist/declarations/bench/bench.did.d.ts +3 -3
- package/dist/declarations/bench/index.d.ts +3 -3
- package/dist/declarations/bench/index.js +1 -1
- package/dist/declarations/main/index.d.ts +3 -3
- package/dist/declarations/main/index.js +1 -1
- package/dist/declarations/main/main.did.d.ts +3 -3
- package/dist/declarations/storage/index.d.ts +3 -3
- package/dist/declarations/storage/index.js +4 -4
- package/dist/declarations/storage/storage.did.d.ts +3 -3
- package/dist/environments/nodejs/cli.d.ts +1 -0
- package/dist/environments/nodejs/cli.js +4 -0
- package/dist/environments/web/cli.d.ts +1 -0
- package/dist/environments/web/cli.js +4 -0
- package/dist/error.d.ts +1 -0
- package/dist/error.js +5 -0
- package/dist/fix-dist.js +5 -5
- package/dist/helpers/find-changelog-entry.js +8 -5
- package/dist/helpers/get-dep-name.d.ts +1 -0
- package/dist/helpers/get-dep-name.js +4 -1
- package/dist/helpers/get-dfx-version.js +4 -4
- package/dist/helpers/get-moc-path.js +8 -7
- package/dist/helpers/get-moc-version.js +10 -7
- package/dist/helpers/get-package-id.js +2 -2
- package/dist/helpers/is-candid-compatible.d.ts +1 -0
- package/dist/helpers/is-candid-compatible.js +20 -0
- package/dist/integrity.d.ts +1 -1
- package/dist/integrity.js +47 -38
- package/dist/jest.config.d.ts +11 -0
- package/dist/jest.config.js +14 -0
- package/dist/mops.d.ts +6 -6
- package/dist/mops.js +87 -80
- package/dist/notify-installs.js +4 -4
- package/dist/package.json +11 -10
- package/dist/pem.d.ts +3 -3
- package/dist/pem.js +20 -12
- package/dist/release-cli.js +20 -20
- package/dist/resolve-packages.d.ts +1 -1
- package/dist/resolve-packages.js +52 -36
- package/dist/templates/mops-publish.yml +3 -3
- package/dist/templates/mops-test.yml +3 -3
- package/dist/templates/src/lib.mo +13 -13
- package/dist/templates/test/lib.test.mo +2 -2
- package/dist/templates.js +1 -1
- package/dist/tests/cli.test.d.ts +1 -0
- package/dist/tests/cli.test.js +63 -0
- package/dist/types.d.ts +14 -4
- package/dist/vessel.d.ts +2 -2
- package/dist/vessel.js +41 -34
- package/dist/wasm/pkg/bundler/package.json +20 -0
- package/dist/wasm/pkg/bundler/wasm.d.ts +3 -0
- package/dist/wasm/pkg/bundler/wasm.js +5 -0
- package/dist/wasm/pkg/bundler/wasm_bg.js +93 -0
- package/dist/wasm/pkg/bundler/wasm_bg.wasm +0 -0
- package/dist/wasm/pkg/bundler/wasm_bg.wasm.d.ts +8 -0
- package/dist/wasm/pkg/nodejs/package.json +14 -0
- package/dist/wasm/pkg/nodejs/wasm.d.ts +3 -0
- package/dist/wasm/pkg/nodejs/wasm.js +98 -0
- package/dist/wasm/pkg/nodejs/wasm_bg.wasm +0 -0
- package/dist/wasm/pkg/nodejs/wasm_bg.wasm.d.ts +8 -0
- package/dist/wasm/pkg/web/package.json +18 -0
- package/dist/wasm/pkg/web/wasm.d.ts +35 -0
- package/dist/wasm/pkg/web/wasm.js +191 -0
- package/dist/wasm/pkg/web/wasm_bg.wasm +0 -0
- package/dist/wasm/pkg/web/wasm_bg.wasm.d.ts +8 -0
- package/dist/wasm.d.ts +5 -0
- package/dist/wasm.js +10 -0
- package/environments/nodejs/cli.ts +6 -0
- package/environments/web/cli.ts +6 -0
- package/error.ts +6 -0
- package/fix-dist.ts +5 -5
- package/global.d.ts +3 -3
- package/helpers/find-changelog-entry.ts +26 -23
- package/helpers/get-dep-name.ts +7 -3
- package/helpers/get-dfx-version.ts +8 -9
- package/helpers/get-moc-path.ts +25 -26
- package/helpers/get-moc-version.ts +21 -19
- package/helpers/get-package-id.ts +4 -4
- package/helpers/is-candid-compatible.ts +22 -0
- package/integrity.ts +270 -236
- package/jest.config.js +14 -0
- package/mops.ts +238 -215
- package/notify-installs.ts +16 -17
- package/package.json +21 -15
- package/parallel.ts +28 -24
- package/pem.ts +55 -47
- package/release-cli.ts +73 -39
- package/resolve-packages.ts +231 -189
- package/templates/mops-publish.yml +3 -3
- package/templates/mops-test.yml +3 -3
- package/templates/src/lib.mo +13 -13
- package/templates/test/lib.test.mo +2 -2
- package/templates.ts +4 -4
- package/tests/__snapshots__/cli.test.ts.snap +202 -0
- package/tests/build/error/candid/bar.did +3 -0
- package/tests/build/error/dfx.json +12 -0
- package/tests/build/error/mops.toml +9 -0
- package/tests/build/error/src/Bar.mo +5 -0
- package/tests/build/error/src/Foo.mo +5 -0
- package/tests/build/success/.dfx/local/canister_ids.json +17 -0
- package/tests/build/success/.dfx/local/canisters/bar/bar.did +3 -0
- package/tests/build/success/.dfx/local/canisters/bar/bar.most +4 -0
- package/tests/build/success/.dfx/local/canisters/bar/bar.wasm +0 -0
- package/tests/build/success/.dfx/local/canisters/bar/constructor.did +3 -0
- package/tests/build/success/.dfx/local/canisters/bar/index.js +42 -0
- package/tests/build/success/.dfx/local/canisters/bar/init_args.txt +1 -0
- package/tests/build/success/.dfx/local/canisters/bar/service.did +3 -0
- package/tests/build/success/.dfx/local/canisters/bar/service.did.d.ts +7 -0
- package/tests/build/success/.dfx/local/canisters/bar/service.did.js +4 -0
- package/tests/build/success/.dfx/local/canisters/foo/constructor.did +3 -0
- package/tests/build/success/.dfx/local/canisters/foo/foo.did +3 -0
- package/tests/build/success/.dfx/local/canisters/foo/foo.most +4 -0
- package/tests/build/success/.dfx/local/canisters/foo/foo.wasm +0 -0
- package/tests/build/success/.dfx/local/canisters/foo/index.js +42 -0
- package/tests/build/success/.dfx/local/canisters/foo/init_args.txt +1 -0
- package/tests/build/success/.dfx/local/canisters/foo/service.did +3 -0
- package/tests/build/success/.dfx/local/canisters/foo/service.did.d.ts +7 -0
- package/tests/build/success/.dfx/local/canisters/foo/service.did.js +4 -0
- package/tests/build/success/.dfx/local/lsp/ucwa4-rx777-77774-qaada-cai.did +3 -0
- package/tests/build/success/.dfx/local/lsp/ulvla-h7777-77774-qaacq-cai.did +3 -0
- package/tests/build/success/.dfx/local/network-id +4 -0
- package/tests/build/success/candid/bar.did +3 -0
- package/tests/build/success/dfx.json +12 -0
- package/tests/build/success/mops.toml +9 -0
- package/tests/build/success/src/Bar.mo +5 -0
- package/tests/build/success/src/Foo.mo +5 -0
- package/tests/check-candid/a.did +3 -0
- package/tests/check-candid/b.did +5 -0
- package/tests/check-candid/c.did +3 -0
- package/tests/cli.test.ts +82 -0
- package/tsconfig.json +26 -19
- package/types.ts +41 -31
- package/vessel.ts +219 -187
- package/wasm/Cargo.lock +1475 -0
- package/wasm/Cargo.toml +28 -0
- package/wasm/pkg/bundler/package.json +20 -0
- package/wasm/pkg/bundler/wasm.d.ts +3 -0
- package/wasm/pkg/bundler/wasm.js +5 -0
- package/wasm/pkg/bundler/wasm_bg.js +93 -0
- package/wasm/pkg/bundler/wasm_bg.wasm +0 -0
- package/wasm/pkg/bundler/wasm_bg.wasm.d.ts +8 -0
- package/wasm/pkg/nodejs/package.json +14 -0
- package/wasm/pkg/nodejs/wasm.d.ts +3 -0
- package/wasm/pkg/nodejs/wasm.js +98 -0
- package/wasm/pkg/nodejs/wasm_bg.wasm +0 -0
- package/wasm/pkg/nodejs/wasm_bg.wasm.d.ts +8 -0
- package/wasm/pkg/web/package.json +18 -0
- package/wasm/pkg/web/wasm.d.ts +35 -0
- package/wasm/pkg/web/wasm.js +191 -0
- package/wasm/pkg/web/wasm_bg.wasm +0 -0
- package/wasm/pkg/web/wasm_bg.wasm.d.ts +8 -0
- package/wasm/src/lib.rs +17 -0
- package/wasm.ts +16 -0
package/bundle/cli.tgz
CHANGED
|
Binary file
|
|
@@ -3,9 +3,9 @@ type _anon_class_13_1 =
|
|
|
3
3
|
getSchema: () -> (BenchSchema) query;
|
|
4
4
|
getStats: () -> (BenchResult) query;
|
|
5
5
|
init: () -> (BenchSchema);
|
|
6
|
-
runCellQuery: (nat, nat) -> (BenchResult) query;
|
|
7
|
-
runCellUpdate: (nat, nat) -> (BenchResult);
|
|
8
|
-
runCellUpdateAwait: (nat, nat) -> (BenchResult);
|
|
6
|
+
runCellQuery: (rowIndex: nat, colIndex: nat) -> (BenchResult) query;
|
|
7
|
+
runCellUpdate: (rowIndex: nat, colIndex: nat) -> (BenchResult);
|
|
8
|
+
runCellUpdateAwait: (rowIndex: nat, colIndex: nat) -> (BenchResult);
|
|
9
9
|
};
|
|
10
10
|
type BenchSchema =
|
|
11
11
|
record {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Principal } from '@
|
|
2
|
-
import type { ActorMethod } from '@
|
|
3
|
-
import type { IDL } from '@
|
|
1
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
2
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
3
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
4
4
|
|
|
5
5
|
export interface BenchResult {
|
|
6
6
|
'rts_stable_memory_size' : bigint,
|
|
@@ -3,9 +3,9 @@ import type {
|
|
|
3
3
|
HttpAgentOptions,
|
|
4
4
|
ActorConfig,
|
|
5
5
|
Agent,
|
|
6
|
-
} from "@
|
|
7
|
-
import type { Principal } from "@
|
|
8
|
-
import type { IDL } from "@
|
|
6
|
+
} from "@icp-sdk/core/agent";
|
|
7
|
+
import type { Principal } from "@icp-sdk/core/principal";
|
|
8
|
+
import type { IDL } from "@icp-sdk/core/candid";
|
|
9
9
|
|
|
10
10
|
import { _SERVICE } from './bench.did';
|
|
11
11
|
|
|
@@ -3,9 +3,9 @@ import type {
|
|
|
3
3
|
HttpAgentOptions,
|
|
4
4
|
ActorConfig,
|
|
5
5
|
Agent,
|
|
6
|
-
} from "@
|
|
7
|
-
import type { Principal } from "@
|
|
8
|
-
import type { IDL } from "@
|
|
6
|
+
} from "@icp-sdk/core/agent";
|
|
7
|
+
import type { Principal } from "@icp-sdk/core/principal";
|
|
8
|
+
import type { IDL } from "@icp-sdk/core/candid";
|
|
9
9
|
|
|
10
10
|
import { _SERVICE } from './main.did';
|
|
11
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type
|
|
1
|
+
type User =
|
|
2
2
|
record {
|
|
3
3
|
displayName: text;
|
|
4
4
|
email: text;
|
|
@@ -11,18 +11,10 @@ type User__1 =
|
|
|
11
11
|
twitter: text;
|
|
12
12
|
twitterVerified: bool;
|
|
13
13
|
};
|
|
14
|
-
type
|
|
14
|
+
type TransformArg =
|
|
15
15
|
record {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
emailVerified: bool;
|
|
19
|
-
github: text;
|
|
20
|
-
githubVerified: bool;
|
|
21
|
-
id: principal;
|
|
22
|
-
name: text;
|
|
23
|
-
site: text;
|
|
24
|
-
twitter: text;
|
|
25
|
-
twitterVerified: bool;
|
|
16
|
+
context: blob;
|
|
17
|
+
response: HttpRequestResult;
|
|
26
18
|
};
|
|
27
19
|
type Time = int;
|
|
28
20
|
type Text = text;
|
|
@@ -31,11 +23,6 @@ type TestsChanges =
|
|
|
31
23
|
addedNames: vec text;
|
|
32
24
|
removedNames: vec text;
|
|
33
25
|
};
|
|
34
|
-
type TestStats__1 =
|
|
35
|
-
record {
|
|
36
|
-
passed: nat;
|
|
37
|
-
passedNames: vec text;
|
|
38
|
-
};
|
|
39
26
|
type TestStats =
|
|
40
27
|
record {
|
|
41
28
|
passed: nat;
|
|
@@ -90,14 +77,14 @@ type Result_6 =
|
|
|
90
77
|
variant {
|
|
91
78
|
err: Err;
|
|
92
79
|
ok: vec record {
|
|
93
|
-
|
|
94
|
-
|
|
80
|
+
PackageName;
|
|
81
|
+
PackageVersion;
|
|
95
82
|
};
|
|
96
83
|
};
|
|
97
84
|
type Result_5 =
|
|
98
85
|
variant {
|
|
99
86
|
err: Err;
|
|
100
|
-
ok:
|
|
87
|
+
ok: PackageVersion;
|
|
101
88
|
};
|
|
102
89
|
type Result_4 =
|
|
103
90
|
variant {
|
|
@@ -147,41 +134,7 @@ type Request =
|
|
|
147
134
|
};
|
|
148
135
|
type PublishingId = text;
|
|
149
136
|
type PageCount = nat;
|
|
150
|
-
type PackageVersion__1 = text;
|
|
151
137
|
type PackageVersion = text;
|
|
152
|
-
type PackageSummary__1 =
|
|
153
|
-
record {
|
|
154
|
-
config: PackageConfigV3;
|
|
155
|
-
depAlias: text;
|
|
156
|
-
downloadsInLast30Days: nat;
|
|
157
|
-
downloadsInLast7Days: nat;
|
|
158
|
-
downloadsTotal: nat;
|
|
159
|
-
highestVersion: PackageVersion;
|
|
160
|
-
maintainers: vec User;
|
|
161
|
-
owner: principal;
|
|
162
|
-
ownerInfo: User;
|
|
163
|
-
owners: vec User;
|
|
164
|
-
publication: PackagePublication;
|
|
165
|
-
publisher: User;
|
|
166
|
-
quality: PackageQuality;
|
|
167
|
-
};
|
|
168
|
-
type PackageSummaryWithChanges__1 =
|
|
169
|
-
record {
|
|
170
|
-
changes: PackageChanges;
|
|
171
|
-
config: PackageConfigV3;
|
|
172
|
-
depAlias: text;
|
|
173
|
-
downloadsInLast30Days: nat;
|
|
174
|
-
downloadsInLast7Days: nat;
|
|
175
|
-
downloadsTotal: nat;
|
|
176
|
-
highestVersion: PackageVersion;
|
|
177
|
-
maintainers: vec User;
|
|
178
|
-
owner: principal;
|
|
179
|
-
ownerInfo: User;
|
|
180
|
-
owners: vec User;
|
|
181
|
-
publication: PackagePublication;
|
|
182
|
-
publisher: User;
|
|
183
|
-
quality: PackageQuality;
|
|
184
|
-
};
|
|
185
138
|
type PackageSummaryWithChanges =
|
|
186
139
|
record {
|
|
187
140
|
changes: PackageChanges;
|
|
@@ -233,7 +186,6 @@ type PackagePublication =
|
|
|
233
186
|
time: Time;
|
|
234
187
|
user: principal;
|
|
235
188
|
};
|
|
236
|
-
type PackageName__1 = text;
|
|
237
189
|
type PackageName = text;
|
|
238
190
|
type PackageId = text;
|
|
239
191
|
type PackageFileStatsPublic =
|
|
@@ -243,13 +195,14 @@ type PackageFileStatsPublic =
|
|
|
243
195
|
};
|
|
244
196
|
type PackageDetails =
|
|
245
197
|
record {
|
|
246
|
-
benchmarks:
|
|
198
|
+
benchmarks: Benchmarks;
|
|
247
199
|
changes: PackageChanges;
|
|
248
200
|
config: PackageConfigV3;
|
|
249
201
|
depAlias: text;
|
|
250
|
-
dependents: vec
|
|
251
|
-
|
|
252
|
-
|
|
202
|
+
dependents: vec PackageSummary;
|
|
203
|
+
dependentsCount: nat;
|
|
204
|
+
deps: vec PackageSummary;
|
|
205
|
+
devDeps: vec PackageSummary;
|
|
253
206
|
docsCoverage: float64;
|
|
254
207
|
downloadTrend: vec DownloadsSnapshot;
|
|
255
208
|
downloadsInLast30Days: nat;
|
|
@@ -264,8 +217,9 @@ type PackageDetails =
|
|
|
264
217
|
publication: PackagePublication;
|
|
265
218
|
publisher: User;
|
|
266
219
|
quality: PackageQuality;
|
|
267
|
-
testStats:
|
|
268
|
-
versionHistory: vec
|
|
220
|
+
testStats: TestStats;
|
|
221
|
+
versionHistory: vec PackageSummaryWithChanges;
|
|
222
|
+
versions: vec PackageVersion;
|
|
269
223
|
};
|
|
270
224
|
type PackageConfigV3_Publishing =
|
|
271
225
|
record {
|
|
@@ -309,35 +263,36 @@ type PackageConfigV3 =
|
|
|
309
263
|
};
|
|
310
264
|
type PackageChanges =
|
|
311
265
|
record {
|
|
312
|
-
curBenchmarks:
|
|
266
|
+
curBenchmarks: Benchmarks;
|
|
313
267
|
curDocsCoverage: float64;
|
|
314
268
|
deps: vec DepChange;
|
|
315
269
|
devDeps: vec DepChange;
|
|
316
270
|
notes: text;
|
|
317
|
-
prevBenchmarks:
|
|
271
|
+
prevBenchmarks: Benchmarks;
|
|
318
272
|
prevDocsCoverage: float64;
|
|
319
273
|
tests: TestsChanges;
|
|
320
274
|
};
|
|
321
275
|
type Main =
|
|
322
276
|
service {
|
|
323
|
-
addMaintainer: (
|
|
324
|
-
|
|
277
|
+
addMaintainer: (packageName: PackageName, newMaintainer: principal) ->
|
|
278
|
+
(Result_3);
|
|
279
|
+
addOwner: (packageName: PackageName, newOwner: principal) -> (Result_3);
|
|
325
280
|
backup: () -> ();
|
|
326
281
|
computeHashesForExistingFiles: () -> ();
|
|
327
|
-
finishPublish: (PublishingId) -> (Result);
|
|
282
|
+
finishPublish: (publishingId: PublishingId) -> (Result);
|
|
328
283
|
getApiVersion: () -> (Text) query;
|
|
329
284
|
getBackupCanisterId: () -> (principal) query;
|
|
330
|
-
getDefaultPackages: (text) ->
|
|
285
|
+
getDefaultPackages: (dfxVersion: text) ->
|
|
331
286
|
(vec record {
|
|
332
|
-
|
|
333
|
-
|
|
287
|
+
PackageName;
|
|
288
|
+
PackageVersion;
|
|
334
289
|
}) query;
|
|
335
|
-
getDownloadTrendByPackageId: (PackageId) ->
|
|
336
|
-
(vec
|
|
337
|
-
getDownloadTrendByPackageName: (
|
|
338
|
-
(vec
|
|
339
|
-
getFileHashes: (
|
|
340
|
-
getFileHashesByPackageIds: (vec PackageId) ->
|
|
290
|
+
getDownloadTrendByPackageId: (packageId: PackageId) ->
|
|
291
|
+
(vec DownloadsSnapshot) query;
|
|
292
|
+
getDownloadTrendByPackageName: (name: PackageName) ->
|
|
293
|
+
(vec DownloadsSnapshot) query;
|
|
294
|
+
getFileHashes: (name: PackageName, version: PackageVersion) -> (Result_8);
|
|
295
|
+
getFileHashesByPackageIds: (packageIds: vec PackageId) ->
|
|
341
296
|
(vec record {
|
|
342
297
|
PackageId;
|
|
343
298
|
vec record {
|
|
@@ -345,22 +300,28 @@ type Main =
|
|
|
345
300
|
blob;
|
|
346
301
|
};
|
|
347
302
|
});
|
|
348
|
-
getFileHashesQuery: (
|
|
303
|
+
getFileHashesQuery: (name: PackageName, version: PackageVersion) ->
|
|
349
304
|
(Result_8) query;
|
|
350
|
-
getFileIds: (
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
305
|
+
getFileIds: (name: PackageName, version: PackageVersion) ->
|
|
306
|
+
(Result_7) query;
|
|
307
|
+
getHighestSemverBatch: (list:
|
|
308
|
+
vec record {
|
|
309
|
+
PackageName;
|
|
310
|
+
PackageVersion;
|
|
311
|
+
SemverPart;
|
|
312
|
+
}) -> (Result_6) query;
|
|
313
|
+
getHighestVersion: (name: PackageName) -> (Result_5) query;
|
|
358
314
|
getMostDownloadedPackages: () -> (vec PackageSummary) query;
|
|
359
315
|
getMostDownloadedPackagesIn7Days: () -> (vec PackageSummary) query;
|
|
360
316
|
getNewPackages: () -> (vec PackageSummary) query;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
317
|
+
getPackageDependents: (name: PackageName, limit: nat, offset: nat) ->
|
|
318
|
+
(vec PackageSummary, nat) query;
|
|
319
|
+
getPackageDetails: (name: PackageName, version: PackageVersion) ->
|
|
320
|
+
(Result_4) query;
|
|
321
|
+
getPackageMaintainers: (packageName: PackageName) -> (vec principal) query;
|
|
322
|
+
getPackageOwners: (packageName: PackageName) -> (vec principal) query;
|
|
323
|
+
getPackageVersionHistory: (name: PackageName) ->
|
|
324
|
+
(vec PackageSummaryWithChanges) query;
|
|
364
325
|
getPackagesByCategory: () -> (vec record {
|
|
365
326
|
text;
|
|
366
327
|
vec PackageSummary;
|
|
@@ -372,34 +333,37 @@ type Main =
|
|
|
372
333
|
}) query;
|
|
373
334
|
getTotalDownloads: () -> (nat) query;
|
|
374
335
|
getTotalPackages: () -> (nat) query;
|
|
375
|
-
getUser: (principal) -> (opt
|
|
376
|
-
http_request: (Request) -> (Response) query;
|
|
377
|
-
notifyInstall: (
|
|
378
|
-
notifyInstalls: (vec record {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
removeMaintainer: (
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
336
|
+
getUser: (userId: principal) -> (opt User) query;
|
|
337
|
+
http_request: (request: Request) -> (Response) query;
|
|
338
|
+
notifyInstall: (name: PackageName, version: PackageVersion) -> () oneway;
|
|
339
|
+
notifyInstalls: (installs: vec record {
|
|
340
|
+
PackageName;
|
|
341
|
+
PackageVersion;
|
|
342
|
+
}) -> () oneway;
|
|
343
|
+
removeMaintainer: (packageName: PackageName, maintainer: principal) ->
|
|
344
|
+
(Result_3);
|
|
345
|
+
removeOwner: (packageName: PackageName, owner: principal) -> (Result_3);
|
|
346
|
+
restore: (backupId: nat) -> ();
|
|
347
|
+
search: (searchText: Text, limitOpt: opt nat, pageIndexOpt: opt nat) ->
|
|
348
|
+
(vec PackageSummary, PageCount) query;
|
|
386
349
|
setStorageControllers: () -> ();
|
|
387
|
-
setUserProp: (text, text) -> (Result_3);
|
|
388
|
-
startFileUpload: (PublishingId, Text,
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
350
|
+
setUserProp: (prop: text, value: text) -> (Result_3);
|
|
351
|
+
startFileUpload: (publishingId: PublishingId, path: Text, chunkCount:
|
|
352
|
+
nat, firstChunk: blob) -> (Result_2);
|
|
353
|
+
startPublish: (configPub: PackageConfigV3_Publishing) -> (Result_1);
|
|
354
|
+
takeSnapshotsIfNeeded: () -> ();
|
|
355
|
+
transformRequest: (arg: TransformArg) -> (HttpRequestResult) query;
|
|
356
|
+
uploadBenchmarks: (publishingId: PublishingId, benchmarks: Benchmarks) ->
|
|
357
|
+
(Result);
|
|
358
|
+
uploadDocsCoverage: (publishingId: PublishingId, docsCoverage: float64) ->
|
|
359
|
+
(Result);
|
|
360
|
+
uploadFileChunk: (publishingId: PublishingId, fileId: FileId, chunkIndex:
|
|
361
|
+
nat, chunk: blob) -> (Result);
|
|
362
|
+
uploadNotes: (publishingId: PublishingId, notes: text) -> (Result);
|
|
363
|
+
uploadTestStats: (publishingId: PublishingId, testStats: TestStats) ->
|
|
364
|
+
(Result);
|
|
365
|
+
};
|
|
366
|
+
type HttpRequestResult =
|
|
403
367
|
record {
|
|
404
368
|
body: blob;
|
|
405
369
|
headers: vec HttpHeader;
|
|
@@ -417,12 +381,6 @@ type Header =
|
|
|
417
381
|
};
|
|
418
382
|
type FileId = text;
|
|
419
383
|
type Err = text;
|
|
420
|
-
type DownloadsSnapshot__1 =
|
|
421
|
-
record {
|
|
422
|
-
downloads: nat;
|
|
423
|
-
endTime: Time;
|
|
424
|
-
startTime: Time;
|
|
425
|
-
};
|
|
426
384
|
type DownloadsSnapshot =
|
|
427
385
|
record {
|
|
428
386
|
downloads: nat;
|
|
@@ -447,7 +405,6 @@ type DepChange =
|
|
|
447
405
|
newVersion: text;
|
|
448
406
|
oldVersion: text;
|
|
449
407
|
};
|
|
450
|
-
type Benchmarks__1 = vec Benchmark;
|
|
451
408
|
type Benchmarks = vec Benchmark;
|
|
452
409
|
type BenchmarkMetric = text;
|
|
453
410
|
type Benchmark =
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Principal } from '@
|
|
2
|
-
import type { ActorMethod } from '@
|
|
3
|
-
import type { IDL } from '@
|
|
1
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
2
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
3
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
4
4
|
|
|
5
5
|
export interface Benchmark {
|
|
6
6
|
'gc' : string,
|
|
@@ -18,7 +18,6 @@ export interface Benchmark {
|
|
|
18
18
|
}
|
|
19
19
|
export type BenchmarkMetric = string;
|
|
20
20
|
export type Benchmarks = Array<Benchmark>;
|
|
21
|
-
export type Benchmarks__1 = Array<Benchmark>;
|
|
22
21
|
export interface DepChange {
|
|
23
22
|
'oldVersion' : string,
|
|
24
23
|
'name' : string,
|
|
@@ -37,27 +36,18 @@ export interface DownloadsSnapshot {
|
|
|
37
36
|
'endTime' : Time,
|
|
38
37
|
'downloads' : bigint,
|
|
39
38
|
}
|
|
40
|
-
export interface DownloadsSnapshot__1 {
|
|
41
|
-
'startTime' : Time,
|
|
42
|
-
'endTime' : Time,
|
|
43
|
-
'downloads' : bigint,
|
|
44
|
-
}
|
|
45
39
|
export type Err = string;
|
|
46
40
|
export type FileId = string;
|
|
47
41
|
export type Header = [string, string];
|
|
48
42
|
export interface HttpHeader { 'value' : string, 'name' : string }
|
|
49
|
-
export interface
|
|
43
|
+
export interface HttpRequestResult {
|
|
50
44
|
'status' : bigint,
|
|
51
45
|
'body' : Uint8Array | number[],
|
|
52
46
|
'headers' : Array<HttpHeader>,
|
|
53
47
|
}
|
|
54
|
-
export interface HttpTransformArg {
|
|
55
|
-
'context' : Uint8Array | number[],
|
|
56
|
-
'response' : HttpResponse,
|
|
57
|
-
}
|
|
58
48
|
export interface Main {
|
|
59
|
-
'addMaintainer' : ActorMethod<[
|
|
60
|
-
'addOwner' : ActorMethod<[
|
|
49
|
+
'addMaintainer' : ActorMethod<[PackageName, Principal], Result_3>,
|
|
50
|
+
'addOwner' : ActorMethod<[PackageName, Principal], Result_3>,
|
|
61
51
|
'backup' : ActorMethod<[], undefined>,
|
|
62
52
|
'computeHashesForExistingFiles' : ActorMethod<[], undefined>,
|
|
63
53
|
'finishPublish' : ActorMethod<[PublishingId], Result>,
|
|
@@ -65,40 +55,42 @@ export interface Main {
|
|
|
65
55
|
'getBackupCanisterId' : ActorMethod<[], Principal>,
|
|
66
56
|
'getDefaultPackages' : ActorMethod<
|
|
67
57
|
[string],
|
|
68
|
-
Array<[
|
|
58
|
+
Array<[PackageName, PackageVersion]>
|
|
69
59
|
>,
|
|
70
60
|
'getDownloadTrendByPackageId' : ActorMethod<
|
|
71
61
|
[PackageId],
|
|
72
|
-
Array<
|
|
62
|
+
Array<DownloadsSnapshot>
|
|
73
63
|
>,
|
|
74
64
|
'getDownloadTrendByPackageName' : ActorMethod<
|
|
75
|
-
[
|
|
76
|
-
Array<
|
|
65
|
+
[PackageName],
|
|
66
|
+
Array<DownloadsSnapshot>
|
|
77
67
|
>,
|
|
78
|
-
'getFileHashes' : ActorMethod<[
|
|
68
|
+
'getFileHashes' : ActorMethod<[PackageName, PackageVersion], Result_8>,
|
|
79
69
|
'getFileHashesByPackageIds' : ActorMethod<
|
|
80
70
|
[Array<PackageId>],
|
|
81
71
|
Array<[PackageId, Array<[FileId, Uint8Array | number[]]>]>
|
|
82
72
|
>,
|
|
83
|
-
'getFileHashesQuery' : ActorMethod<
|
|
84
|
-
|
|
85
|
-
Result_8
|
|
86
|
-
>,
|
|
87
|
-
'getFileIds' : ActorMethod<[PackageName__1, PackageVersion__1], Result_7>,
|
|
73
|
+
'getFileHashesQuery' : ActorMethod<[PackageName, PackageVersion], Result_8>,
|
|
74
|
+
'getFileIds' : ActorMethod<[PackageName, PackageVersion], Result_7>,
|
|
88
75
|
'getHighestSemverBatch' : ActorMethod<
|
|
89
|
-
[Array<[
|
|
76
|
+
[Array<[PackageName, PackageVersion, SemverPart]>],
|
|
90
77
|
Result_6
|
|
91
78
|
>,
|
|
92
|
-
'getHighestVersion' : ActorMethod<[
|
|
79
|
+
'getHighestVersion' : ActorMethod<[PackageName], Result_5>,
|
|
93
80
|
'getMostDownloadedPackages' : ActorMethod<[], Array<PackageSummary>>,
|
|
94
81
|
'getMostDownloadedPackagesIn7Days' : ActorMethod<[], Array<PackageSummary>>,
|
|
95
82
|
'getNewPackages' : ActorMethod<[], Array<PackageSummary>>,
|
|
96
|
-
'
|
|
97
|
-
[
|
|
98
|
-
|
|
83
|
+
'getPackageDependents' : ActorMethod<
|
|
84
|
+
[PackageName, bigint, bigint],
|
|
85
|
+
[Array<PackageSummary>, bigint]
|
|
86
|
+
>,
|
|
87
|
+
'getPackageDetails' : ActorMethod<[PackageName, PackageVersion], Result_4>,
|
|
88
|
+
'getPackageMaintainers' : ActorMethod<[PackageName], Array<Principal>>,
|
|
89
|
+
'getPackageOwners' : ActorMethod<[PackageName], Array<Principal>>,
|
|
90
|
+
'getPackageVersionHistory' : ActorMethod<
|
|
91
|
+
[PackageName],
|
|
92
|
+
Array<PackageSummaryWithChanges>
|
|
99
93
|
>,
|
|
100
|
-
'getPackageMaintainers' : ActorMethod<[PackageName__1], Array<Principal>>,
|
|
101
|
-
'getPackageOwners' : ActorMethod<[PackageName__1], Array<Principal>>,
|
|
102
94
|
'getPackagesByCategory' : ActorMethod<
|
|
103
95
|
[],
|
|
104
96
|
Array<[string, Array<PackageSummary>]>
|
|
@@ -110,15 +102,15 @@ export interface Main {
|
|
|
110
102
|
'getStoragesStats' : ActorMethod<[], Array<[StorageId, StorageStats]>>,
|
|
111
103
|
'getTotalDownloads' : ActorMethod<[], bigint>,
|
|
112
104
|
'getTotalPackages' : ActorMethod<[], bigint>,
|
|
113
|
-
'getUser' : ActorMethod<[Principal], [] | [
|
|
105
|
+
'getUser' : ActorMethod<[Principal], [] | [User]>,
|
|
114
106
|
'http_request' : ActorMethod<[Request], Response>,
|
|
115
|
-
'notifyInstall' : ActorMethod<[
|
|
107
|
+
'notifyInstall' : ActorMethod<[PackageName, PackageVersion], undefined>,
|
|
116
108
|
'notifyInstalls' : ActorMethod<
|
|
117
|
-
[Array<[
|
|
109
|
+
[Array<[PackageName, PackageVersion]>],
|
|
118
110
|
undefined
|
|
119
111
|
>,
|
|
120
|
-
'removeMaintainer' : ActorMethod<[
|
|
121
|
-
'removeOwner' : ActorMethod<[
|
|
112
|
+
'removeMaintainer' : ActorMethod<[PackageName, Principal], Result_3>,
|
|
113
|
+
'removeOwner' : ActorMethod<[PackageName, Principal], Result_3>,
|
|
122
114
|
'restore' : ActorMethod<[bigint], undefined>,
|
|
123
115
|
'search' : ActorMethod<
|
|
124
116
|
[Text, [] | [bigint], [] | [bigint]],
|
|
@@ -131,7 +123,8 @@ export interface Main {
|
|
|
131
123
|
Result_2
|
|
132
124
|
>,
|
|
133
125
|
'startPublish' : ActorMethod<[PackageConfigV3_Publishing], Result_1>,
|
|
134
|
-
'
|
|
126
|
+
'takeSnapshotsIfNeeded' : ActorMethod<[], undefined>,
|
|
127
|
+
'transformRequest' : ActorMethod<[TransformArg], HttpRequestResult>,
|
|
135
128
|
'uploadBenchmarks' : ActorMethod<[PublishingId, Benchmarks], Result>,
|
|
136
129
|
'uploadDocsCoverage' : ActorMethod<[PublishingId, number], Result>,
|
|
137
130
|
'uploadFileChunk' : ActorMethod<
|
|
@@ -144,9 +137,9 @@ export interface Main {
|
|
|
144
137
|
export interface PackageChanges {
|
|
145
138
|
'tests' : TestsChanges,
|
|
146
139
|
'deps' : Array<DepChange>,
|
|
147
|
-
'curBenchmarks' :
|
|
140
|
+
'curBenchmarks' : Benchmarks,
|
|
148
141
|
'prevDocsCoverage' : number,
|
|
149
|
-
'prevBenchmarks' :
|
|
142
|
+
'prevBenchmarks' : Benchmarks,
|
|
150
143
|
'notes' : string,
|
|
151
144
|
'curDocsCoverage' : number,
|
|
152
145
|
'devDeps' : Array<DepChange>,
|
|
@@ -190,28 +183,30 @@ export interface PackageConfigV3_Publishing {
|
|
|
190
183
|
'readme' : string,
|
|
191
184
|
}
|
|
192
185
|
export interface PackageDetails {
|
|
193
|
-
'benchmarks' :
|
|
186
|
+
'benchmarks' : Benchmarks,
|
|
194
187
|
'ownerInfo' : User,
|
|
195
188
|
'owners' : Array<User>,
|
|
196
189
|
'maintainers' : Array<User>,
|
|
197
190
|
'owner' : Principal,
|
|
198
191
|
'depAlias' : string,
|
|
199
|
-
'deps' : Array<
|
|
192
|
+
'deps' : Array<PackageSummary>,
|
|
200
193
|
'quality' : PackageQuality,
|
|
201
194
|
'publisher' : User,
|
|
202
|
-
'testStats' :
|
|
195
|
+
'testStats' : TestStats,
|
|
203
196
|
'docsCoverage' : number,
|
|
204
197
|
'highestVersion' : PackageVersion,
|
|
205
198
|
'downloadsTotal' : bigint,
|
|
206
199
|
'downloadsInLast30Days' : bigint,
|
|
200
|
+
'dependentsCount' : bigint,
|
|
207
201
|
'downloadTrend' : Array<DownloadsSnapshot>,
|
|
208
202
|
'fileStats' : PackageFileStatsPublic,
|
|
209
|
-
'versionHistory' : Array<
|
|
210
|
-
'dependents' : Array<
|
|
211
|
-
'devDeps' : Array<
|
|
203
|
+
'versionHistory' : Array<PackageSummaryWithChanges>,
|
|
204
|
+
'dependents' : Array<PackageSummary>,
|
|
205
|
+
'devDeps' : Array<PackageSummary>,
|
|
212
206
|
'downloadsInLast7Days' : bigint,
|
|
213
207
|
'config' : PackageConfigV3,
|
|
214
208
|
'changes' : PackageChanges,
|
|
209
|
+
'versions' : Array<PackageVersion>,
|
|
215
210
|
'publication' : PackagePublication,
|
|
216
211
|
}
|
|
217
212
|
export interface PackageFileStatsPublic {
|
|
@@ -220,7 +215,6 @@ export interface PackageFileStatsPublic {
|
|
|
220
215
|
}
|
|
221
216
|
export type PackageId = string;
|
|
222
217
|
export type PackageName = string;
|
|
223
|
-
export type PackageName__1 = string;
|
|
224
218
|
export interface PackagePublication {
|
|
225
219
|
'storage' : Principal,
|
|
226
220
|
'time' : Time,
|
|
@@ -268,39 +262,7 @@ export interface PackageSummaryWithChanges {
|
|
|
268
262
|
'changes' : PackageChanges,
|
|
269
263
|
'publication' : PackagePublication,
|
|
270
264
|
}
|
|
271
|
-
export interface PackageSummaryWithChanges__1 {
|
|
272
|
-
'ownerInfo' : User,
|
|
273
|
-
'owners' : Array<User>,
|
|
274
|
-
'maintainers' : Array<User>,
|
|
275
|
-
'owner' : Principal,
|
|
276
|
-
'depAlias' : string,
|
|
277
|
-
'quality' : PackageQuality,
|
|
278
|
-
'publisher' : User,
|
|
279
|
-
'highestVersion' : PackageVersion,
|
|
280
|
-
'downloadsTotal' : bigint,
|
|
281
|
-
'downloadsInLast30Days' : bigint,
|
|
282
|
-
'downloadsInLast7Days' : bigint,
|
|
283
|
-
'config' : PackageConfigV3,
|
|
284
|
-
'changes' : PackageChanges,
|
|
285
|
-
'publication' : PackagePublication,
|
|
286
|
-
}
|
|
287
|
-
export interface PackageSummary__1 {
|
|
288
|
-
'ownerInfo' : User,
|
|
289
|
-
'owners' : Array<User>,
|
|
290
|
-
'maintainers' : Array<User>,
|
|
291
|
-
'owner' : Principal,
|
|
292
|
-
'depAlias' : string,
|
|
293
|
-
'quality' : PackageQuality,
|
|
294
|
-
'publisher' : User,
|
|
295
|
-
'highestVersion' : PackageVersion,
|
|
296
|
-
'downloadsTotal' : bigint,
|
|
297
|
-
'downloadsInLast30Days' : bigint,
|
|
298
|
-
'downloadsInLast7Days' : bigint,
|
|
299
|
-
'config' : PackageConfigV3,
|
|
300
|
-
'publication' : PackagePublication,
|
|
301
|
-
}
|
|
302
265
|
export type PackageVersion = string;
|
|
303
|
-
export type PackageVersion__1 = string;
|
|
304
266
|
export type PageCount = bigint;
|
|
305
267
|
export type PublishingId = string;
|
|
306
268
|
export interface Request {
|
|
@@ -328,9 +290,9 @@ export type Result_3 = { 'ok' : null } |
|
|
|
328
290
|
{ 'err' : string };
|
|
329
291
|
export type Result_4 = { 'ok' : PackageDetails } |
|
|
330
292
|
{ 'err' : Err };
|
|
331
|
-
export type Result_5 = { 'ok' :
|
|
293
|
+
export type Result_5 = { 'ok' : PackageVersion } |
|
|
332
294
|
{ 'err' : Err };
|
|
333
|
-
export type Result_6 = { 'ok' : Array<[
|
|
295
|
+
export type Result_6 = { 'ok' : Array<[PackageName, PackageVersion]> } |
|
|
334
296
|
{ 'err' : Err };
|
|
335
297
|
export type Result_7 = { 'ok' : Array<FileId> } |
|
|
336
298
|
{ 'err' : Err };
|
|
@@ -359,29 +321,17 @@ export type StreamingStrategy = {
|
|
|
359
321
|
};
|
|
360
322
|
export type StreamingToken = Uint8Array | number[];
|
|
361
323
|
export interface TestStats { 'passedNames' : Array<string>, 'passed' : bigint }
|
|
362
|
-
export interface TestStats__1 {
|
|
363
|
-
'passedNames' : Array<string>,
|
|
364
|
-
'passed' : bigint,
|
|
365
|
-
}
|
|
366
324
|
export interface TestsChanges {
|
|
367
325
|
'addedNames' : Array<string>,
|
|
368
326
|
'removedNames' : Array<string>,
|
|
369
327
|
}
|
|
370
328
|
export type Text = string;
|
|
371
329
|
export type Time = bigint;
|
|
372
|
-
export interface
|
|
373
|
-
'
|
|
374
|
-
'
|
|
375
|
-
'twitter' : string,
|
|
376
|
-
'displayName' : string,
|
|
377
|
-
'name' : string,
|
|
378
|
-
'site' : string,
|
|
379
|
-
'email' : string,
|
|
380
|
-
'twitterVerified' : boolean,
|
|
381
|
-
'githubVerified' : boolean,
|
|
382
|
-
'github' : string,
|
|
330
|
+
export interface TransformArg {
|
|
331
|
+
'context' : Uint8Array | number[],
|
|
332
|
+
'response' : HttpRequestResult,
|
|
383
333
|
}
|
|
384
|
-
export interface
|
|
334
|
+
export interface User {
|
|
385
335
|
'id' : Principal,
|
|
386
336
|
'emailVerified' : boolean,
|
|
387
337
|
'twitter' : string,
|