@appcorp/fusion-storybook 0.1.95 → 0.1.97

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/type.d.ts CHANGED
@@ -684,6 +684,9 @@ export interface UserBE {
684
684
  blogComments?: BlogCommentBE[];
685
685
  blogPostClaps?: BlogPostClapBE[];
686
686
  blogPosts?: BlogPostBE[];
687
+ mobileNotifications?: MobileNotificationBE[];
688
+ notificationPreference?: NotificationPreferenceBE;
689
+ pushTokens?: UserPushTokenBE[];
687
690
  teacherProfile?: TeacherBE;
688
691
  workspaces?: WorkspaceUserBE[];
689
692
  }
@@ -1085,6 +1088,24 @@ export interface ExpenseBE {
1085
1088
  vendorName: string | null;
1086
1089
  school?: SchoolBE;
1087
1090
  }
1091
+ /**
1092
+ * Platform of the mobile device registering a push token
1093
+ */
1094
+ export declare enum DEVICE_PLATFORM {
1095
+ IOS = "IOS",
1096
+ ANDROID = "ANDROID",
1097
+ WEB = "WEB"
1098
+ }
1099
+ /**
1100
+ * Category of a mobile push notification
1101
+ */
1102
+ export declare enum NOTIFICATION_TYPE {
1103
+ ASSIGNMENT = "ASSIGNMENT",
1104
+ ATTENDANCE = "ATTENDANCE",
1105
+ PAYMENT = "PAYMENT",
1106
+ ALERT = "ALERT",
1107
+ GENERAL = "GENERAL"
1108
+ }
1088
1109
  /**
1089
1110
  * WhatsApp broadcast campaign status
1090
1111
  */
@@ -1174,3 +1195,50 @@ export interface ReferralBE {
1174
1195
  workerJobId: string | null;
1175
1196
  school?: SchoolBE;
1176
1197
  }
1198
+ /**
1199
+ * Expo push token registered by a mobile device for a specific user
1200
+ */
1201
+ export interface UserPushTokenBE {
1202
+ appVersion: string | null;
1203
+ createdAt: string;
1204
+ deviceId: string | null;
1205
+ id: string;
1206
+ platform: DEVICE_PLATFORM;
1207
+ pushToken: string;
1208
+ updatedAt: string;
1209
+ userId: string;
1210
+ user?: UserBE;
1211
+ }
1212
+ /**
1213
+ * Push notification delivered to a mobile user
1214
+ */
1215
+ export interface MobileNotificationBE {
1216
+ archived: boolean;
1217
+ body: string;
1218
+ createdAt: string;
1219
+ data: Record<string, unknown> | null;
1220
+ id: string;
1221
+ read: boolean;
1222
+ title: string;
1223
+ type: NOTIFICATION_TYPE;
1224
+ updatedAt: string;
1225
+ userId: string;
1226
+ user?: UserBE;
1227
+ }
1228
+ /**
1229
+ * Per-user notification category and channel preferences
1230
+ */
1231
+ export interface NotificationPreferenceBE {
1232
+ alertEnabled: boolean;
1233
+ assignmentEnabled: boolean;
1234
+ attendanceEnabled: boolean;
1235
+ createdAt: string;
1236
+ emailEnabled: boolean;
1237
+ generalEnabled: boolean;
1238
+ id: string;
1239
+ paymentEnabled: boolean;
1240
+ pushEnabled: boolean;
1241
+ updatedAt: string;
1242
+ userId: string;
1243
+ user?: UserBE;
1244
+ }
package/type.js CHANGED
@@ -386,6 +386,26 @@ export var FEE_CONVERSATION_INTENT;
386
386
  // ============================================================================
387
387
  // COMMUNICATION
388
388
  // ============================================================================
389
+ /**
390
+ * Platform of the mobile device registering a push token
391
+ */
392
+ export var DEVICE_PLATFORM;
393
+ (function (DEVICE_PLATFORM) {
394
+ DEVICE_PLATFORM["IOS"] = "IOS";
395
+ DEVICE_PLATFORM["ANDROID"] = "ANDROID";
396
+ DEVICE_PLATFORM["WEB"] = "WEB";
397
+ })(DEVICE_PLATFORM || (DEVICE_PLATFORM = {}));
398
+ /**
399
+ * Category of a mobile push notification
400
+ */
401
+ export var NOTIFICATION_TYPE;
402
+ (function (NOTIFICATION_TYPE) {
403
+ NOTIFICATION_TYPE["ASSIGNMENT"] = "ASSIGNMENT";
404
+ NOTIFICATION_TYPE["ATTENDANCE"] = "ATTENDANCE";
405
+ NOTIFICATION_TYPE["PAYMENT"] = "PAYMENT";
406
+ NOTIFICATION_TYPE["ALERT"] = "ALERT";
407
+ NOTIFICATION_TYPE["GENERAL"] = "GENERAL";
408
+ })(NOTIFICATION_TYPE || (NOTIFICATION_TYPE = {}));
389
409
  /**
390
410
  * WhatsApp broadcast campaign status
391
411
  */