@junobuild/admin 0.0.44-next-2024-02-02.1 → 0.0.45-next-2024-02-17
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
|
@@ -4,7 +4,6 @@ export * from './services/releases.services';
|
|
|
4
4
|
export * from './services/satellite.services';
|
|
5
5
|
export type * from './types/actor.types';
|
|
6
6
|
export type * from './types/build.types';
|
|
7
|
-
export type * from './types/config.types';
|
|
8
7
|
export type * from './types/controllers.types';
|
|
9
8
|
export type * from './types/customdomain.types';
|
|
10
9
|
export type * from './types/ic.types';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Principal } from '@dfinity/principal';
|
|
2
|
+
import type { SatelliteConfig } from '@junobuild/config';
|
|
2
3
|
import type { Controller, MemorySize, SetControllersArgs } from '../../declarations/satellite/satellite.did';
|
|
3
4
|
import type { SatelliteParameters } from '../types/actor.types';
|
|
4
5
|
import type { BuildType } from '../types/build.types';
|
|
5
|
-
import type { Config } from '../types/config.types';
|
|
6
6
|
import type { CustomDomain } from '../types/customdomain.types';
|
|
7
7
|
import type { Rule, RulesType } from '../types/rules.types';
|
|
8
8
|
export declare const setConfig: ({ config: { storage: { headers: configHeaders, rewrites: configRewrites, redirects: configRedirects, iframe: configIFrame } }, satellite }: {
|
|
9
|
-
config:
|
|
9
|
+
config: Required<Pick<SatelliteConfig, 'storage'>>;
|
|
10
10
|
satellite: SatelliteParameters;
|
|
11
11
|
}) => Promise<void>;
|
|
12
12
|
export declare const listRules: ({ type, satellite }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/admin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.45-next-2024-02-17",
|
|
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",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@dfinity/agent": "*",
|
|
55
55
|
"@dfinity/identity": "*",
|
|
56
56
|
"@dfinity/principal": "*",
|
|
57
|
+
"@junobuild/config": "*",
|
|
57
58
|
"@junobuild/utils": "*",
|
|
58
59
|
"semver": "*"
|
|
59
60
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export type StorageConfigSourceGlob = string;
|
|
2
|
-
export interface StorageConfigHeader {
|
|
3
|
-
source: StorageConfigSourceGlob;
|
|
4
|
-
headers: [string, string][];
|
|
5
|
-
}
|
|
6
|
-
export interface StorageConfigRewrite {
|
|
7
|
-
source: StorageConfigSourceGlob;
|
|
8
|
-
destination: string;
|
|
9
|
-
}
|
|
10
|
-
export interface StorageConfigRedirect {
|
|
11
|
-
source: StorageConfigSourceGlob;
|
|
12
|
-
location: string;
|
|
13
|
-
code: 301 | 302;
|
|
14
|
-
}
|
|
15
|
-
export interface StorageConfig {
|
|
16
|
-
headers?: StorageConfigHeader[];
|
|
17
|
-
rewrites?: StorageConfigRewrite[];
|
|
18
|
-
redirects?: StorageConfigRedirect[];
|
|
19
|
-
iframe?: 'deny' | 'same-origin' | 'allow-any';
|
|
20
|
-
}
|
|
21
|
-
export interface Config {
|
|
22
|
-
storage: StorageConfig;
|
|
23
|
-
}
|