- Added a new script to check domain imports, promoting better import hygiene across the codebase. - Refactored multiple domain index files to remove unnecessary type re-exports, streamlining the module structure. - Expanded documentation on import patterns and validation processes to provide clearer guidance for developers. - Included an architecture diagram to illustrate the relationships between the Portal, BFF, and Domain packages.
30 lines
740 B
TypeScript
30 lines
740 B
TypeScript
/**
|
|
* SIM Domain
|
|
*
|
|
* Exports all SIM-related contracts, schemas, and provider mappers.
|
|
*
|
|
* Types are derived from Zod schemas (Schema-First Approach)
|
|
*/
|
|
|
|
// Constants
|
|
export { SIM_STATUS, SIM_TYPE, SIM_PLAN_CODES, SIM_PLAN_LABELS } from "./contract.js";
|
|
|
|
// Schemas (includes derived types)
|
|
export * from "./schema.js";
|
|
export * from "./lifecycle.js";
|
|
|
|
// Validation functions
|
|
export * from "./validation.js";
|
|
export {
|
|
canManageActiveSim,
|
|
canReissueEsim,
|
|
canCancelSim,
|
|
canTopUpSim,
|
|
formatSimPlanShort,
|
|
SIM_PLAN_OPTIONS,
|
|
getSimPlanLabel,
|
|
buildSimFeaturesUpdatePayload,
|
|
} from "./helpers.js";
|
|
export type { SimPlanCode } from "./contract.js";
|
|
export type { SimPlanOption, SimFeatureToggleSnapshot } from "./helpers.js";
|