@appcorp/fusion-storybook 0.6.1 → 0.6.2
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/constants.d.ts +0 -3
- package/constants.js +0 -3
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/communication.d.ts +3 -59
- package/types/communication.js +2 -2
- package/types/user-management.d.ts +0 -6
package/types/communication.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TypeScript Types Generated from Prisma Schema - Communication
|
|
3
3
|
*
|
|
4
|
-
* This file contains TypeScript interfaces for campaigns,
|
|
5
|
-
*
|
|
4
|
+
* This file contains TypeScript interfaces for campaigns, referrals,
|
|
5
|
+
* 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
8
|
import type { FamilyBE } from "./academics";
|
|
9
|
-
import type { SchoolBE
|
|
9
|
+
import type { SchoolBE } from "./user-management";
|
|
10
10
|
/**
|
|
11
11
|
* Individual recipient within a broadcast campaign
|
|
12
12
|
*/
|
|
@@ -68,62 +68,6 @@ export interface PushCampaignBE {
|
|
|
68
68
|
audience?: PushCampaignAudienceBE[];
|
|
69
69
|
school?: SchoolBE;
|
|
70
70
|
}
|
|
71
|
-
/**
|
|
72
|
-
* BlogPost metadata and content (MDX/Markdown stored in `content`).
|
|
73
|
-
*/
|
|
74
|
-
export interface BlogPostBE {
|
|
75
|
-
authorId: string | null;
|
|
76
|
-
clapCount: number;
|
|
77
|
-
commentCount: number;
|
|
78
|
-
content: string;
|
|
79
|
-
createdAt: string;
|
|
80
|
-
enabled: boolean;
|
|
81
|
-
excerpt: string | null;
|
|
82
|
-
id: string;
|
|
83
|
-
publishedAt: Date | string | null;
|
|
84
|
-
schoolId: string | null;
|
|
85
|
-
slug: string;
|
|
86
|
-
title: string;
|
|
87
|
-
updatedAt: string;
|
|
88
|
-
author?: UserBE;
|
|
89
|
-
claps?: BlogPostClapBE[];
|
|
90
|
-
comments?: BlogCommentBE[];
|
|
91
|
-
school?: SchoolBE | null;
|
|
92
|
-
}
|
|
93
|
-
export interface BlogCommentBE {
|
|
94
|
-
authorId: string | null;
|
|
95
|
-
clapCount: number;
|
|
96
|
-
content: string;
|
|
97
|
-
createdAt: string;
|
|
98
|
-
enabled: boolean;
|
|
99
|
-
id: string;
|
|
100
|
-
parentId: string | null;
|
|
101
|
-
postId: string;
|
|
102
|
-
updatedAt: string;
|
|
103
|
-
author?: UserBE | null;
|
|
104
|
-
claps?: BlogCommentClapBE[];
|
|
105
|
-
parent?: BlogCommentBE | null;
|
|
106
|
-
post?: BlogPostBE;
|
|
107
|
-
replies?: BlogCommentBE[];
|
|
108
|
-
}
|
|
109
|
-
export interface BlogPostClapBE {
|
|
110
|
-
createdAt: string;
|
|
111
|
-
id: string;
|
|
112
|
-
postId: string;
|
|
113
|
-
sessionId: string | null;
|
|
114
|
-
userId: string | null;
|
|
115
|
-
post?: BlogPostBE;
|
|
116
|
-
user?: UserBE | null;
|
|
117
|
-
}
|
|
118
|
-
export interface BlogCommentClapBE {
|
|
119
|
-
commentId: string;
|
|
120
|
-
createdAt: string;
|
|
121
|
-
id: string;
|
|
122
|
-
sessionId: string | null;
|
|
123
|
-
userId: string | null;
|
|
124
|
-
comment?: BlogCommentBE;
|
|
125
|
-
user?: UserBE | null;
|
|
126
|
-
}
|
|
127
71
|
/**
|
|
128
72
|
* A referral invite sent by a school user to encourage another school to join the platform
|
|
129
73
|
*/
|
package/types/communication.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TypeScript Types Generated from Prisma Schema - Communication
|
|
3
3
|
*
|
|
4
|
-
* This file contains TypeScript interfaces for campaigns,
|
|
5
|
-
*
|
|
4
|
+
* This file contains TypeScript interfaces for campaigns, referrals,
|
|
5
|
+
* push tokens, mobile notifications, and notification preferences.
|
|
6
6
|
*/
|
|
7
7
|
export {};
|
|
@@ -8,7 +8,6 @@ import { USER_ROLE, ACCESS_LEVEL, CURRENCY, BILLING_INTERVAL, PRICING_PLAN_CODE
|
|
|
8
8
|
import type { AdmissionBE } from "./admission";
|
|
9
9
|
import type { AttendanceBE, ClassBE, CourseBE, EnrollmentBE, 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 } from "./communication";
|
|
12
11
|
/**
|
|
13
12
|
* Subscription plan defining usage limits and features for workspaces
|
|
14
13
|
*/
|
|
@@ -162,7 +161,6 @@ export interface SchoolBE {
|
|
|
162
161
|
website: string | null;
|
|
163
162
|
workspaceId: string;
|
|
164
163
|
attendances?: AttendanceBE[];
|
|
165
|
-
blogPosts?: BlogPostBE[];
|
|
166
164
|
classes?: ClassBE[];
|
|
167
165
|
courses?: CourseBE[];
|
|
168
166
|
expenses?: ExpenseBE[];
|
|
@@ -192,10 +190,6 @@ export interface UserBE {
|
|
|
192
190
|
name: string | null;
|
|
193
191
|
phone: string | null;
|
|
194
192
|
updatedAt: string;
|
|
195
|
-
blogCommentClaps?: BlogCommentClapBE[];
|
|
196
|
-
blogComments?: BlogCommentBE[];
|
|
197
|
-
blogPostClaps?: BlogPostClapBE[];
|
|
198
|
-
blogPosts?: BlogPostBE[];
|
|
199
193
|
teacherProfile?: TeacherBE;
|
|
200
194
|
workspaces?: WorkspaceUserBE[];
|
|
201
195
|
}
|