Enhance audience management features with new components and API integrations
- Added `AssignCoursesModal`, `AudienceMemberRow`, `AudienceTable`, and related components for improved audience management UI. - Implemented audience invite actions including resend and revoke functionality. - Updated audience API to support importing members and assigning courses. - Refactored audience data handling to include status and invite management. - Improved overall user experience with pagination and selection features in the audience table.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const ZImportAudienceMembers = z.object({
|
||||
recipientCsv: z.string().max(25000),
|
||||
courseIds: z.array(z.string().uuid()).optional(),
|
||||
allCourses: z.boolean().optional().default(false),
|
||||
sendEmail: z.boolean().default(true)
|
||||
});
|
||||
|
||||
export type TImportAudienceMembers = z.infer<typeof ZImportAudienceMembers>;
|
||||
|
||||
export const ZAssignAudienceCourses = z.object({
|
||||
profileIds: z.array(z.uuid()).min(1).max(500),
|
||||
courseIds: z.array(z.uuid()).min(1),
|
||||
sendEmail: z.boolean().default(true)
|
||||
});
|
||||
|
||||
export type TAssignAudienceCourses = z.infer<typeof ZAssignAudienceCourses>;
|
||||
|
||||
export const ZAudienceInviteByEmail = z.object({
|
||||
email: z.email()
|
||||
});
|
||||
|
||||
export type TAudienceInviteByEmail = z.infer<typeof ZAudienceInviteByEmail>;
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from './audience';
|
||||
export * from './organization';
|
||||
export * from './quiz';
|
||||
export * from './exercise';
|
||||
|
||||
Reference in New Issue
Block a user