diff --git a/src/app/app.ts b/src/app/app.ts index 3d679b1c..c41c836a 100644 --- a/src/app/app.ts +++ b/src/app/app.ts @@ -1,4 +1,6 @@ import { Publisher } from './publisher.js'; +import { Context } from '@/enums/context.js'; +import { PermissionLevel } from '@/enums/permissionLevel/permissionLevel.js'; import { DiscriminatedItem } from '@/item/item.js'; import { Account, Member } from '@/member/member.js'; import { UUID } from '@/types.js'; @@ -66,3 +68,19 @@ export type AppSetting = { createdAt: string; updatedAt: string; }; + +export type LocalContext = { + accountId?: UUID; + /** @deprecated use accountId */ + memberId?: UUID; + apiHost: string; + context: 'standalone' | `${Context}`; + dev?: boolean; + itemId: UUID; + lang?: string; + mobile?: boolean; + offline?: boolean; + permission: PermissionLevel; + settings?: unknown; + standalone?: boolean; +};