- 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.
59 lines
1.3 KiB
TypeScript
59 lines
1.3 KiB
TypeScript
/**
|
|
* Catalog Domain
|
|
*
|
|
* Exports all catalog-related contracts, schemas, and provider mappers.
|
|
*
|
|
* Types are derived from Zod schemas (Schema-First Approach)
|
|
*/
|
|
|
|
// Provider-specific types
|
|
export {
|
|
type SalesforceProductFieldMap,
|
|
type PricingTier,
|
|
type CatalogFilter,
|
|
type CatalogPriceInfo,
|
|
} from "./contract.js";
|
|
|
|
// Schemas (includes derived types)
|
|
export * from "./schema.js";
|
|
|
|
// Re-export types for convenience
|
|
export type {
|
|
CatalogProductBase,
|
|
CatalogPricebookEntry,
|
|
// Internet products
|
|
InternetCatalogProduct,
|
|
InternetPlanTemplate,
|
|
InternetPlanCatalogItem,
|
|
InternetInstallationCatalogItem,
|
|
InternetAddonCatalogItem,
|
|
InternetEligibilityStatus,
|
|
InternetEligibilityDetails,
|
|
// SIM products
|
|
SimCatalogProduct,
|
|
SimActivationFeeCatalogItem,
|
|
// VPN products
|
|
VpnCatalogProduct,
|
|
// Union type
|
|
CatalogProduct,
|
|
} from "./schema.js";
|
|
|
|
// Provider adapters
|
|
export * as Providers from "./providers/index.js";
|
|
|
|
// Re-export provider raw types for convenience
|
|
export * from "./providers/salesforce/raw.types.js";
|
|
|
|
// Re-export WHMCS provider types
|
|
export type {
|
|
WhmcsCatalogProduct,
|
|
WhmcsCatalogProductListResponse,
|
|
} from "./providers/whmcs/raw.types.js";
|
|
export type {
|
|
WhmcsCatalogProductNormalized,
|
|
WhmcsCatalogPricing,
|
|
} from "./providers/whmcs/mapper.js";
|
|
|
|
// Utilities
|
|
export * from "./utils.js";
|