diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-03 01:02:00 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-02-08 21:41:27 +0100 |
commit | 3b7d52abb0e7de00bdf92ee3482a4cae1f6b7d64 (patch) | |
tree | 7122ef45a1fd42c7ab835ab2f2685050de2c45b2 /packages/shared/src/index.ts | |
parent | chore(deps): update electron to version 17.0.0 (diff) | |
download | sophie-3b7d52abb0e7de00bdf92ee3482a4cae1f6b7d64.tar.gz sophie-3b7d52abb0e7de00bdf92ee3482a4cae1f6b7d64.tar.zst sophie-3b7d52abb0e7de00bdf92ee3482a4cae1f6b7d64.zip |
feat: Add Profile and Service stores
In the main process, it is optional to specify the ID of a Profile or a
Service. The missing ID will be filled in with a randomly generated one.
Moreover, services without a profile will get a profile generated with
the same name.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/shared/src/index.ts')
-rw-r--r-- | packages/shared/src/index.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index 6383f63..9f4e9b3 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts | |||
@@ -33,6 +33,20 @@ export type { | |||
33 | export { config } from './stores/Config'; | 33 | export { config } from './stores/Config'; |
34 | 34 | ||
35 | export type { | 35 | export type { |
36 | Profile, | ||
37 | ProfileSnapshotIn, | ||
38 | ProfileSnapshotOut, | ||
39 | } from './stores/Profile'; | ||
40 | export { profile } from './stores/Profile'; | ||
41 | |||
42 | export type { | ||
43 | Service, | ||
44 | ServiceSnapshotIn, | ||
45 | ServiceSnapshotOut, | ||
46 | } from './stores/Service'; | ||
47 | export { service } from './stores/Service'; | ||
48 | |||
49 | export type { | ||
36 | SharedStore, | 50 | SharedStore, |
37 | SharedStoreListener, | 51 | SharedStoreListener, |
38 | SharedStoreSnapshotIn, | 52 | SharedStoreSnapshotIn, |