barsa 8c89109213 Update worktree setup and enhance BFF with SupportModule integration
- Changed worktree setup command from npm to pnpm for improved package management.
- Added SupportModule to app.module.ts and router.config.ts for better support case handling.
- Refactored OrderEventsService to utilize OrderUpdateEventPayload for improved type safety.
- Updated InvoicesList component to use INVOICE_STATUS for status filtering and improved type definitions.
- Enhanced SimActions and SimDetailsCard components to utilize SimStatus for better state management.
- Refactored Subscription components to leverage new utility functions for status handling and billing cycle labels.
- Improved SupportCasesView with better state management and error handling.
- Updated API query keys to include support cases for better data retrieval.
2025-11-18 14:06:27 +09:00

27 lines
706 B
TypeScript

/**
* Order Events - Shared Contracts
*
* Shared event payloads for Server-Sent Events used by both the BFF
* and the frontend. Keeping these definitions in the domain package
* guarantees both layers stay in sync when the payload evolves.
*/
export type OrderUpdateStage = "started" | "in_progress" | "completed" | "failed";
export interface OrderStreamEvent<T extends string = string, P = unknown> {
event: T;
data: P;
}
export interface OrderUpdateEventPayload {
orderId: string;
status?: string;
activationStatus?: string | null;
message?: string;
reason?: string;
stage?: OrderUpdateStage;
source?: string;
timestamp: string;
payload?: Record<string, unknown> | null;
}