- Introduced MeStatus module to aggregate customer status, integrating dashboard summary, payment methods, internet eligibility, and residence card verification. - Updated dashboard hooks to utilize MeStatus for improved data fetching and error handling. - Enhanced notification handling across various modules, including cancellation notifications for internet and SIM services, ensuring timely user alerts. - Refactored related schemas and services to support new dashboard tasks and notification types, improving overall user engagement and experience.
33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
import type { z } from "zod";
|
|
import type {
|
|
activityTypeSchema,
|
|
activitySchema,
|
|
dashboardStatsSchema,
|
|
nextInvoiceSchema,
|
|
dashboardSummarySchema,
|
|
dashboardErrorSchema,
|
|
activityFilterSchema,
|
|
activityFilterConfigSchema,
|
|
dashboardSummaryResponseSchema,
|
|
dashboardTaskTypeSchema,
|
|
dashboardTaskToneSchema,
|
|
dashboardTaskSchema,
|
|
paymentMethodsStatusSchema,
|
|
meStatusSchema,
|
|
} from "./schema.js";
|
|
|
|
export type ActivityType = z.infer<typeof activityTypeSchema>;
|
|
export type Activity = z.infer<typeof activitySchema>;
|
|
export type DashboardStats = z.infer<typeof dashboardStatsSchema>;
|
|
export type NextInvoice = z.infer<typeof nextInvoiceSchema>;
|
|
export type DashboardSummary = z.infer<typeof dashboardSummarySchema>;
|
|
export type DashboardError = z.infer<typeof dashboardErrorSchema>;
|
|
export type ActivityFilter = z.infer<typeof activityFilterSchema>;
|
|
export type ActivityFilterConfig = z.infer<typeof activityFilterConfigSchema>;
|
|
export type DashboardSummaryResponse = z.infer<typeof dashboardSummaryResponseSchema>;
|
|
export type DashboardTaskType = z.infer<typeof dashboardTaskTypeSchema>;
|
|
export type DashboardTaskTone = z.infer<typeof dashboardTaskToneSchema>;
|
|
export type DashboardTask = z.infer<typeof dashboardTaskSchema>;
|
|
export type PaymentMethodsStatus = z.infer<typeof paymentMethodsStatusSchema>;
|
|
export type MeStatus = z.infer<typeof meStatusSchema>;
|