@junobuild/admin 0.6.8-next-2025-08-02.1 → 0.6.8-next-2025-08-02.3

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.
@@ -26,4 +26,4 @@ export declare const setRule: ({ rule: { collection, ...rest }, type, satellite
26
26
  rule: Rule;
27
27
  type: RulesType;
28
28
  satellite: SatelliteParameters;
29
- }) => Promise<void>;
29
+ }) => Promise<Rule>;
@@ -1,10 +1,10 @@
1
1
  import type { MemoryText, PermissionText, Rule, RulesType } from '@junobuild/config';
2
2
  import type { CollectionType as CollectionTypeApi, ListRulesParams as ListRulesParamsApi, Memory, Permission, Rule as RuleApi, SetRule } from '../../declarations/satellite/satellite.did';
3
3
  import type { ListRulesMatcher } from '../types/list';
4
- export declare const mapRuleType: (type: RulesType) => CollectionTypeApi;
5
- export declare const mapRulesFilter: (filter?: ListRulesMatcher) => ListRulesParamsApi;
6
- 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;
7
- export declare const mapRule: ([collection, rule]: [string, RuleApi]) => Rule;
4
+ export declare const fromRuleType: (type: RulesType) => CollectionTypeApi;
5
+ export declare const fromRulesFilter: (filter?: ListRulesMatcher) => ListRulesParamsApi;
6
+ export declare const fromRule: ({ read, write, memory, maxSize, maxChangesPerUser, maxCapacity, version, mutablePermissions, maxTokens }: Pick<Rule, "read" | "write" | "maxSize" | "maxChangesPerUser" | "maxCapacity" | "version" | "memory" | "mutablePermissions" | "maxTokens">) => SetRule;
7
+ export declare const toRule: ([collection, rule]: [string, RuleApi]) => Rule;
8
8
  export declare const permissionToText: (permission: Permission) => PermissionText;
9
9
  export declare const memoryFromText: (text: MemoryText) => Memory;
10
10
  export declare const memoryToText: (memory: Memory) => MemoryText;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/admin",
3
- "version": "0.6.8-next-2025-08-02.1",
3
+ "version": "0.6.8-next-2025-08-02.3",
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",