@appcorp/fusion-storybook 0.3.47 → 0.3.49

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.
@@ -6,6 +6,7 @@
6
6
  * and family member domain models.
7
7
  */
8
8
  import { GENDER, FAMILY_MEMBER_ROLE, STUDENT_STATUS, ATTENDANCE_STATUS, GRADE_TYPE, DAY_OF_WEEK } from "./enums";
9
+ import type { FamilyPushTokenBE, MobileNotificationBE, NotificationPreferenceBE } from "./communication";
9
10
  import type { SchoolBE, CampusBE, UserBE } from "./user-management";
10
11
  import type { FeeStructureBE, StudentFeeBE } from "./finance";
11
12
  /**
@@ -25,6 +26,9 @@ export interface FamilyBE {
25
26
  state: string | null;
26
27
  updatedAt: string;
27
28
  members?: FamilyMemberBE[];
29
+ mobileNotifications?: MobileNotificationBE[];
30
+ notificationPreference?: NotificationPreferenceBE;
31
+ pushTokens?: FamilyPushTokenBE[];
28
32
  school?: SchoolBE;
29
33
  studentFees?: StudentFeeBE[];
30
34
  }
@@ -5,6 +5,7 @@
5
5
  * referrals, push tokens, mobile notifications, and notification preferences.
6
6
  */
7
7
  import { CAMPAIGN_STATUS, CAMPAIGN_CONTACT_STATUS, DEVICE_PLATFORM, NOTIFICATION_TYPE, REFERRAL_CHANNEL, REFERRAL_STATUS } from "./enums";
8
+ import type { FamilyBE } from "./academics";
8
9
  import type { SchoolBE, UserBE } from "./user-management";
9
10
  /**
10
11
  * Individual recipient within a broadcast campaign
@@ -145,9 +146,9 @@ export interface ReferralBE {
145
146
  school?: SchoolBE;
146
147
  }
147
148
  /**
148
- * Expo push token registered by a mobile device for a specific user
149
+ * Expo push token registered by a mobile device for a family
149
150
  */
150
- export interface UserPushTokenBE {
151
+ export interface FamilyPushTokenBE {
151
152
  appVersion: string | null;
152
153
  createdAt: string;
153
154
  deviceId: string | null;
@@ -155,11 +156,11 @@ export interface UserPushTokenBE {
155
156
  platform: DEVICE_PLATFORM;
156
157
  pushToken: string;
157
158
  updatedAt: string;
158
- userId: string;
159
- user?: UserBE;
159
+ familyId: string;
160
+ family?: FamilyBE;
160
161
  }
161
162
  /**
162
- * Push notification delivered to a mobile user
163
+ * Push notification delivered to a mobile device for a family
163
164
  */
164
165
  export interface MobileNotificationBE {
165
166
  archived: boolean;
@@ -171,11 +172,11 @@ export interface MobileNotificationBE {
171
172
  title: string;
172
173
  type: NOTIFICATION_TYPE;
173
174
  updatedAt: string;
174
- userId: string;
175
- user?: UserBE;
175
+ familyId: string;
176
+ family?: FamilyBE;
176
177
  }
177
178
  /**
178
- * Per-user notification category and channel preferences
179
+ * Per-family notification category and channel preferences
179
180
  */
180
181
  export interface NotificationPreferenceBE {
181
182
  alertEnabled: boolean;
@@ -188,6 +189,6 @@ export interface NotificationPreferenceBE {
188
189
  paymentEnabled: boolean;
189
190
  pushEnabled: boolean;
190
191
  updatedAt: string;
191
- userId: string;
192
- user?: UserBE;
192
+ familyId: string;
193
+ family?: FamilyBE;
193
194
  }
@@ -8,7 +8,7 @@ import { USER_ROLE, ACCESS_LEVEL, CURRENCY, BILLING_INTERVAL, PLAN_TYPE } from "
8
8
  import type { AdmissionBE } from "./admission";
9
9
  import type { AttendanceBE, ClassBE, CourseBE, FamilyBE, GradeBE, ScheduleBE, SectionBE, SubjectBE, TeacherBE } from "./academics";
10
10
  import type { ExpenseBE, FeeStructureBE, DiscountCodeBE, StudentFeeBE } from "./finance";
11
- import type { BlogPostBE, BlogCommentBE, BlogPostClapBE, BlogCommentClapBE, MobileNotificationBE, NotificationPreferenceBE, UserPushTokenBE } from "./communication";
11
+ import type { BlogPostBE, BlogCommentBE, BlogPostClapBE, BlogCommentClapBE } from "./communication";
12
12
  /**
13
13
  * Subscription plan defining usage limits and features for workspaces
14
14
  */
@@ -204,9 +204,6 @@ export interface UserBE {
204
204
  blogComments?: BlogCommentBE[];
205
205
  blogPostClaps?: BlogPostClapBE[];
206
206
  blogPosts?: BlogPostBE[];
207
- mobileNotifications?: MobileNotificationBE[];
208
- notificationPreference?: NotificationPreferenceBE;
209
- pushTokens?: UserPushTokenBE[];
210
207
  teacherProfile?: TeacherBE;
211
208
  workspaces?: WorkspaceUserBE[];
212
209
  }