@orsetra/shared-types 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/common.ts +18 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-types",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Shared TypeScript types for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",
package/types/common.ts CHANGED
@@ -2,7 +2,8 @@
2
2
  export interface User {
3
3
  id: string
4
4
  email: string
5
- name: string
5
+ name?: string
6
+ profile?: Record<string, any>
6
7
  }
7
8
 
8
9
  export interface ApiResponse<T> {
@@ -10,3 +11,19 @@ export interface ApiResponse<T> {
10
11
  error?: string
11
12
  status: number
12
13
  }
14
+
15
+ export interface NavigationItem {
16
+ name: string
17
+ href: string
18
+ icon?: React.ComponentType<{ className?: string }>
19
+ current?: boolean
20
+ children?: NavigationItem[]
21
+ }
22
+
23
+ export interface AuthContext {
24
+ user: User | null
25
+ isAuthenticated: boolean
26
+ isLoading: boolean
27
+ signIn: () => Promise<void>
28
+ signOut: () => Promise<void>
29
+ }