@astrale-domains/shell 0.1.0-beta.8 → 0.1.0-beta.9
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/actions/user/resolve-home.js +1 -1
- package/dist/application.d.ts +9807 -3
- package/dist/mutations/group/membership.js +17 -19
- package/dist/mutations/space/access.js +21 -23
- package/dist/mutations/space/default.js +18 -20
- package/dist/mutations/user/repair.js +76 -78
- package/dist/queries/space/access.js +9 -11
- package/dist/queries/space/admin.js +18 -25
- package/dist/queries/space/member.js +15 -22
- package/dist/queries/user/groups.js +15 -22
- package/dist/queries/user/home.js +19 -26
- package/dist/queries/user/owned-spaces.js +15 -22
- package/dist/queries/user/profile.js +3 -6
- package/dist/queries/user/setup.js +11 -13
- package/dist/runtime.d.ts +7355 -2
- package/dist/schema/domain/index.d.ts +1162 -26408
- package/dist/schema/domain/index.js +4 -5
- package/dist/schema/group/class.d.ts +163 -3128
- package/dist/schema/group/core.d.ts +2 -6
- package/dist/schema/group/index.d.ts +1 -1
- package/dist/schema/group/index.js +1 -1
- package/dist/schema/group/methods.d.ts +13 -2059
- package/dist/schema/group/methods.js +2 -1
- package/dist/schema/group/relationships.d.ts +6 -4303
- package/dist/schema/group/view.d.ts +1 -3291
- package/dist/schema/home/view.d.ts +1 -3
- package/dist/schema/index.d.ts +5 -5
- package/dist/schema/index.js +1 -1
- package/dist/schema/setup/functions.d.ts +28 -47
- package/dist/schema/setup/index.d.ts +1 -1
- package/dist/schema/space/class.d.ts +56 -2289
- package/dist/schema/space/core.d.ts +3 -22515
- package/dist/schema/space/index.d.ts +1 -1
- package/dist/schema/space/index.js +1 -1
- package/dist/schema/space/methods.d.ts +18 -2089
- package/dist/schema/space/methods.js +5 -3
- package/dist/schema/space/relationships.d.ts +24 -23173
- package/dist/schema/space/view.d.ts +1 -2316
- package/dist/schema/user/class.d.ts +128 -865
- package/dist/schema/user/index.d.ts +1 -1
- package/dist/schema/user/methods.d.ts +7 -14
- package/dist/schema/user/view.d.ts +1 -1017
- package/dist/workflows/group/change.js +3 -3
- package/dist/workflows/setup/run.js +3 -3
- package/dist/workflows/space/access.js +3 -3
- package/dist/workflows/space/default.js +3 -3
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@ import { InvocationError } from '@astrale-os/sdk/execution';
|
|
|
3
3
|
import { Path } from '@astrale-os/sdk/graph/path';
|
|
4
4
|
import { observeHome } from '#queries/user';
|
|
5
5
|
export const resolveHomeAction = defineAction()('User.resolveHome', async ({ domain, query, self }) => {
|
|
6
|
-
const observed = await query(observeHome
|
|
6
|
+
const observed = await query(observeHome, Path.id(self).raw);
|
|
7
7
|
if (observed.spaces.length > 1) {
|
|
8
8
|
throw new InvocationError('CONFLICT', 'The Shell User has more than one default Space.', {
|
|
9
9
|
reason: { code: 'MULTIPLE_DEFAULT_SPACES', details: {} },
|