@codingfactory/socialkit-vue 0.3.1 → 0.4.0

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.
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Shared realtime payload types for SocialKit-powered frontends.
3
+ */
4
+
5
+ export type ConnectionStatus = 'connecting' | 'connected' | 'disconnected' | 'error'
6
+
7
+ export interface NotificationEvent {
8
+ id: string
9
+ type: string
10
+ data: Record<string, unknown>
11
+ created_at: string
12
+ read_at?: string | null
13
+ }
14
+
15
+ export type PresenceStatus = 'online' | 'idle' | 'dnd' | 'offline'
16
+
17
+ export interface PresenceStatusChangedEvent {
18
+ user_id: string
19
+ tenant_id?: string | null
20
+ tenant_scope: string
21
+ status: PresenceStatus
22
+ last_seen_at?: string | null
23
+ ts: string
24
+ }
25
+
26
+ export interface LiveCircleCountUpdatedEvent {
27
+ circle_id: string
28
+ count: number
29
+ }
30
+
31
+ export interface TutorialCommentAddedEvent {
32
+ tutorial_id: string
33
+ comment: {
34
+ id: string
35
+ author_id: string
36
+ author_name: string
37
+ body: string
38
+ created_at: string
39
+ }
40
+ }
41
+
42
+ export interface TutorialProgressUpdatedEvent {
43
+ tutorial_id: string
44
+ user_id: string
45
+ current_step_id: string
46
+ progress_percent: number
47
+ completed_steps: string[]
48
+ is_completed: boolean
49
+ updated_at: string
50
+ }
51
+
52
+ export interface ProfileStatsUpdatedEvent {
53
+ stats: {
54
+ followers_count: number
55
+ following_count: number
56
+ posts_count?: number
57
+ comments_count?: number
58
+ replies_count?: number
59
+ reactions_given?: number
60
+ reactions_received?: number
61
+ threads_started?: number
62
+ best_answers?: number
63
+ streak_days?: number
64
+ longest_streak?: number
65
+ total_content?: number
66
+ engagement_rate?: number
67
+ is_active?: boolean
68
+ }
69
+ }
70
+
71
+ export interface ProfileActivity {
72
+ id: string
73
+ user_id: string
74
+ activity_type: string
75
+ target_type?: string
76
+ target_id?: string
77
+ metadata: Record<string, unknown>
78
+ is_public: boolean
79
+ created_at: string
80
+ }
81
+
82
+ export interface ProfileActivityCreatedEvent {
83
+ activity: ProfileActivity
84
+ }
85
+
86
+ export interface StoryTrayUpdatedEvent {
87
+ story_id: string
88
+ author_id: string
89
+ author: {
90
+ id: string
91
+ name: string
92
+ handle: string | null
93
+ avatar_url: string | null
94
+ }
95
+ }