@junobuild/admin 0.1.3 → 0.1.5-next-2025-02-21
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 +1 -1
- package/dist/browser/index.js.map +3 -3
- package/dist/declarations/satellite/satellite.did.d.ts +8 -5
- package/dist/declarations/satellite/satellite.factory.did.js +11 -8
- package/dist/declarations/satellite/satellite.factory.did.mjs +11 -8
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +3 -3
- package/dist/types/api/satellite.api.d.ts +3 -3
- package/dist/types/constants/rules.constants.d.ts +3 -3
- package/dist/types/utils/rule.utils.d.ts +3 -3
- package/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import type { AuthenticationConfig, Controller, CustomDomain, DbConfig, MemorySize, Rule,
|
|
2
|
+
import type { AuthenticationConfig, CollectionType, Controller, CustomDomain, DbConfig, MemorySize, Rule, SetControllersArgs, SetRule, StorageConfig } from '../../declarations/satellite/satellite.did';
|
|
3
3
|
import type { SatelliteParameters } from '../types/actor.types';
|
|
4
4
|
export declare const setStorageConfig: ({ config, satellite }: {
|
|
5
5
|
config: StorageConfig;
|
|
@@ -24,10 +24,10 @@ export declare const getAuthConfig: ({ satellite }: {
|
|
|
24
24
|
}) => Promise<[] | [AuthenticationConfig]>;
|
|
25
25
|
export declare const listRules: ({ satellite, type }: {
|
|
26
26
|
satellite: SatelliteParameters;
|
|
27
|
-
type:
|
|
27
|
+
type: CollectionType;
|
|
28
28
|
}) => Promise<[string, Rule][]>;
|
|
29
29
|
export declare const setRule: ({ type, collection, rule, satellite }: {
|
|
30
|
-
type:
|
|
30
|
+
type: CollectionType;
|
|
31
31
|
collection: string;
|
|
32
32
|
rule: SetRule;
|
|
33
33
|
satellite: SatelliteParameters;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Memory, Permission
|
|
2
|
-
export declare const DbRulesType:
|
|
3
|
-
export declare const StorageRulesType:
|
|
1
|
+
import type { CollectionType, Memory, Permission } from '../../declarations/satellite/satellite.did';
|
|
2
|
+
export declare const DbRulesType: CollectionType;
|
|
3
|
+
export declare const StorageRulesType: CollectionType;
|
|
4
4
|
export declare const PermissionPublic: Permission;
|
|
5
5
|
export declare const PermissionPrivate: Permission;
|
|
6
6
|
export declare const PermissionManaged: Permission;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MemoryText, PermissionText, Rule, RulesType } from '@junobuild/config';
|
|
2
|
-
import type { Memory, Permission, Rule as RuleApi,
|
|
3
|
-
export declare const mapRuleType: (type: RulesType) =>
|
|
4
|
-
export declare const mapSetRule: ({ read, write, memory, maxSize, maxCapacity, version, mutablePermissions, maxTokens }: Pick<Rule, "read" | "write" | "maxSize" | "maxCapacity" | "version" | "memory" | "mutablePermissions" | "maxTokens">) => SetRule;
|
|
2
|
+
import type { CollectionType as CollectionTypeApi, Memory, Permission, Rule as RuleApi, SetRule } from '../../declarations/satellite/satellite.did';
|
|
3
|
+
export declare const mapRuleType: (type: RulesType) => CollectionTypeApi;
|
|
4
|
+
export declare const mapSetRule: ({ read, write, memory, maxSize, maxChangesPerUser, maxCapacity, version, mutablePermissions, maxTokens }: Pick<Rule, "read" | "write" | "maxSize" | "maxChangesPerUser" | "maxCapacity" | "version" | "memory" | "mutablePermissions" | "maxTokens">) => SetRule;
|
|
5
5
|
export declare const mapRule: ([collection, rule]: [string, RuleApi]) => Rule;
|
|
6
6
|
export declare const permissionToText: (permission: Permission) => PermissionText;
|
|
7
7
|
export declare const memoryFromText: (text: MemoryText) => Memory;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/admin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5-next-2025-02-21",
|
|
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",
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
],
|
|
51
51
|
"homepage": "https://juno.build",
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@dfinity/agent": "
|
|
54
|
-
"@dfinity/candid": "
|
|
55
|
-
"@dfinity/ic-management": "
|
|
56
|
-
"@dfinity/identity": "
|
|
57
|
-
"@dfinity/principal": "
|
|
58
|
-
"@dfinity/utils": "
|
|
53
|
+
"@dfinity/agent": "*",
|
|
54
|
+
"@dfinity/candid": "*",
|
|
55
|
+
"@dfinity/ic-management": "*",
|
|
56
|
+
"@dfinity/identity": "*",
|
|
57
|
+
"@dfinity/principal": "*",
|
|
58
|
+
"@dfinity/utils": "*",
|
|
59
59
|
"@junobuild/config": "*",
|
|
60
|
-
"semver": "
|
|
60
|
+
"semver": "*"
|
|
61
61
|
}
|
|
62
|
-
}
|
|
62
|
+
}
|