- Imported salesforceIdSchema and nonEmptyStringSchema from the common domain for better consistency. - Simplified the creation of SOQL field name validation schema. - Refactored the InvoiceTable component to utilize useCallback for improved performance. - Streamlined payment method handling in the PaymentMethodCard component by removing unused props. - Enhanced the checkout process by integrating new validation schemas and improving cart handling logic. - Updated various components to ensure better type safety and clarity in data handling.
52 lines
1.1 KiB
TypeScript
52 lines
1.1 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,
|
|
} from "./contract";
|
|
|
|
// Schemas (includes derived types)
|
|
export * from "./schema";
|
|
|
|
// Re-export types for convenience
|
|
export type {
|
|
CatalogProductBase,
|
|
CatalogPricebookEntry,
|
|
// Internet products
|
|
InternetCatalogProduct,
|
|
InternetPlanTemplate,
|
|
InternetPlanCatalogItem,
|
|
InternetInstallationCatalogItem,
|
|
InternetAddonCatalogItem,
|
|
// SIM products
|
|
SimCatalogProduct,
|
|
SimActivationFeeCatalogItem,
|
|
// VPN products
|
|
VpnCatalogProduct,
|
|
// Union type
|
|
CatalogProduct,
|
|
} from './schema';
|
|
|
|
// Provider adapters
|
|
export * as Providers from "./providers/index";
|
|
|
|
// Re-export provider raw types for convenience
|
|
export * from "./providers/salesforce/raw.types";
|
|
|
|
// Re-export WHMCS provider types
|
|
export type {
|
|
WhmcsCatalogProduct,
|
|
WhmcsCatalogProductListResponse,
|
|
} from "./providers/whmcs/raw.types";
|
|
|
|
// Utilities
|
|
export * from "./utils";
|