@junobuild/admin 0.0.45-next-2024-02-17.1 → 0.0.45-next-2024-02-18
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/types/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Principal } from '@dfinity/principal';
|
|
2
|
-
import type { SatelliteConfig } from '@junobuild/config';
|
|
2
|
+
import type { Rule, RulesType, SatelliteConfig } from '@junobuild/config';
|
|
3
3
|
import type { Controller, MemorySize, SetControllersArgs } from '../../declarations/satellite/satellite.did';
|
|
4
4
|
import type { SatelliteParameters } from '../types/actor.types';
|
|
5
5
|
import type { BuildType } from '../types/build.types';
|
|
6
6
|
import type { CustomDomain } from '../types/customdomain.types';
|
|
7
|
-
import type { Rule, RulesType } from '../types/rules.types';
|
|
8
7
|
export declare const setConfig: ({ config: { storage: { headers: configHeaders, rewrites: configRewrites, redirects: configRedirects, iframe: configIFrame } }, satellite }: {
|
|
9
8
|
config: Required<Pick<SatelliteConfig, 'storage'>>;
|
|
10
9
|
satellite: SatelliteParameters;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { MemoryText, PermissionText, Rule, RulesType } from '@junobuild/config';
|
|
1
2
|
import type { Memory, Permission, Rule as RuleApi, RulesType as RulesTypeApi, SetRule } from '../../declarations/satellite/satellite.did';
|
|
2
|
-
import type { MemoryText, PermissionText, Rule, RulesType } from '../types/rules.types';
|
|
3
3
|
export declare const mapRuleType: (type: RulesType) => RulesTypeApi;
|
|
4
4
|
export declare const mapSetRule: ({ read, write, memory, max_size, updated_at, mutablePermissions }: Pick<Rule, 'read' | 'write' | 'max_size' | 'updated_at' | 'memory' | 'mutablePermissions'>) => SetRule;
|
|
5
5
|
export declare const mapRule: ([collection, rule]: [string, RuleApi]) => Rule;
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type PermissionText = 'public' | 'private' | 'managed' | 'controllers';
|
|
2
|
-
export type MemoryText = 'Heap' | 'Stable';
|
|
3
|
-
export type RulesType = 'db' | 'storage';
|
|
4
|
-
export interface Rule {
|
|
5
|
-
collection: string;
|
|
6
|
-
read: PermissionText;
|
|
7
|
-
write: PermissionText;
|
|
8
|
-
memory: MemoryText;
|
|
9
|
-
created_at?: bigint;
|
|
10
|
-
updated_at?: bigint;
|
|
11
|
-
max_size?: number;
|
|
12
|
-
mutablePermissions: boolean;
|
|
13
|
-
}
|