@junobuild/config 0.0.4 → 0.0.5
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/README.md +30 -21
- package/dist/types/dev/juno.dev.config.d.ts +4 -3
- package/dist/types/types/rules.d.ts +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,24 +69,24 @@ Configuration options for [Juno] CLI.
|
|
|
69
69
|
|
|
70
70
|
#### :gear: OrbiterConfig
|
|
71
71
|
|
|
72
|
-
| Property | Type
|
|
73
|
-
| ----------- |
|
|
74
|
-
| `id` | `string`
|
|
75
|
-
| `orbiterId` | `string` | deprecated: `orbiterId` will be removed in the future. Use `id` instead. |
|
|
72
|
+
| Property | Type | Description |
|
|
73
|
+
| ----------- | --------------------- | ------------------------------------------------------------------------ |
|
|
74
|
+
| `id` | `string` | The identifier of the orbiter used in the dApp. |
|
|
75
|
+
| `orbiterId` | `string or undefined` | deprecated: `orbiterId` will be removed in the future. Use `id` instead. |
|
|
76
76
|
|
|
77
77
|
#### :gear: JunoConfig
|
|
78
78
|
|
|
79
|
-
| Property | Type
|
|
80
|
-
| ----------- |
|
|
81
|
-
| `satellite` | `SatelliteConfig`
|
|
82
|
-
| `orbiter` | `OrbiterConfig`
|
|
79
|
+
| Property | Type | Description |
|
|
80
|
+
| ----------- | ---------------------------- | ----------- |
|
|
81
|
+
| `satellite` | `SatelliteConfig` | |
|
|
82
|
+
| `orbiter` | `OrbiterConfig or undefined` | |
|
|
83
83
|
|
|
84
84
|
#### :gear: SatelliteDevCollections
|
|
85
85
|
|
|
86
|
-
| Property | Type
|
|
87
|
-
| --------- |
|
|
88
|
-
| `db` | `
|
|
89
|
-
| `storage` | `
|
|
86
|
+
| Property | Type | Description |
|
|
87
|
+
| --------- | ---------------------------------------------- | ----------- |
|
|
88
|
+
| `db` | `SatelliteDevDbCollection[] or undefined` | |
|
|
89
|
+
| `storage` | `SatelliteDevStorageCollection[] or undefined` | |
|
|
90
90
|
|
|
91
91
|
#### :gear: SatelliteDevController
|
|
92
92
|
|
|
@@ -97,10 +97,10 @@ Configuration options for [Juno] CLI.
|
|
|
97
97
|
|
|
98
98
|
#### :gear: SatelliteDevConfig
|
|
99
99
|
|
|
100
|
-
| Property | Type
|
|
101
|
-
| ------------- |
|
|
102
|
-
| `collections` | `SatelliteDevCollections`
|
|
103
|
-
| `controllers` | `SatelliteDevController[]` | |
|
|
100
|
+
| Property | Type | Description |
|
|
101
|
+
| ------------- | --------------------------------------- | ----------- |
|
|
102
|
+
| `collections` | `SatelliteDevCollections` | |
|
|
103
|
+
| `controllers` | `SatelliteDevController[] or undefined` | |
|
|
104
104
|
|
|
105
105
|
#### :gear: JunoDevConfig
|
|
106
106
|
|
|
@@ -112,7 +112,8 @@ Configuration options for [Juno] CLI.
|
|
|
112
112
|
|
|
113
113
|
- [ENCODING_TYPE](#gear-encoding_type)
|
|
114
114
|
- [JunoConfigMode](#gear-junoconfigmode)
|
|
115
|
-
- [
|
|
115
|
+
- [SatelliteDevDbCollection](#gear-satellitedevdbcollection)
|
|
116
|
+
- [SatelliteDevStorageCollection](#gear-satellitedevstoragecollection)
|
|
116
117
|
- [JunoDevConfigFn](#gear-junodevconfigfn)
|
|
117
118
|
- [JunoDevConfigFnOrObject](#gear-junodevconfigfnorobject)
|
|
118
119
|
|
|
@@ -132,14 +133,22 @@ Configuration options for [Juno] CLI.
|
|
|
132
133
|
|
|
133
134
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/mainnet/juno.env.ts#L1)
|
|
134
135
|
|
|
135
|
-
#### :gear:
|
|
136
|
+
#### :gear: SatelliteDevDbCollection
|
|
136
137
|
|
|
137
|
-
| Type
|
|
138
|
-
|
|
|
139
|
-
| `
|
|
138
|
+
| Type | Type |
|
|
139
|
+
| -------------------------- | ----------------------------------------------------- |
|
|
140
|
+
| `SatelliteDevDbCollection` | `Omit<Rule, 'createdAt' or 'updatedAt' or 'maxSize'>` |
|
|
140
141
|
|
|
141
142
|
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/dev/juno.dev.config.ts#L3)
|
|
142
143
|
|
|
144
|
+
#### :gear: SatelliteDevStorageCollection
|
|
145
|
+
|
|
146
|
+
| Type | Type |
|
|
147
|
+
| ------------------------------- | --------------------------------------------------------- |
|
|
148
|
+
| `SatelliteDevStorageCollection` | `Omit<Rule, 'createdAt' or 'updatedAt' or 'maxCapacity'>` |
|
|
149
|
+
|
|
150
|
+
[:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/dev/juno.dev.config.ts#L5)
|
|
151
|
+
|
|
143
152
|
#### :gear: JunoDevConfigFn
|
|
144
153
|
|
|
145
154
|
| Type | Type |
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Rule } from '../types/rules';
|
|
2
|
-
export type
|
|
2
|
+
export type SatelliteDevDbCollection = Omit<Rule, 'createdAt' | 'updatedAt' | 'maxSize'>;
|
|
3
|
+
export type SatelliteDevStorageCollection = Omit<Rule, 'createdAt' | 'updatedAt' | 'maxCapacity'>;
|
|
3
4
|
export interface SatelliteDevCollections {
|
|
4
|
-
db?:
|
|
5
|
-
storage?:
|
|
5
|
+
db?: SatelliteDevDbCollection[];
|
|
6
|
+
storage?: SatelliteDevStorageCollection[];
|
|
6
7
|
}
|
|
7
8
|
export interface SatelliteDevController {
|
|
8
9
|
id: string;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export type PermissionText = 'public' | 'private' | 'managed' | 'controllers';
|
|
2
|
-
export type MemoryText = '
|
|
2
|
+
export type MemoryText = 'heap' | 'stable';
|
|
3
3
|
export type RulesType = 'db' | 'storage';
|
|
4
4
|
export interface Rule {
|
|
5
5
|
collection: string;
|
|
6
6
|
read: PermissionText;
|
|
7
7
|
write: PermissionText;
|
|
8
8
|
memory: MemoryText;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
createdAt?: bigint;
|
|
10
|
+
updatedAt?: bigint;
|
|
11
|
+
maxSize?: number;
|
|
12
|
+
maxCapacity?: number;
|
|
12
13
|
mutablePermissions: boolean;
|
|
13
14
|
}
|