Logo
Explore Help
Sign In
ankhbayar/Assist_Design
1
0
Fork 0
You've already forked Assist_Design
Code Issues Pull Requests Actions 3 Packages Projects Releases Wiki Activity
Assist_Design/packages/domain/sim/helpers.ts

19 lines
489 B
TypeScript
Raw Normal View History

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
import { SIM_STATUS } from "./contract";
import type { SimStatus } from "./schema";
export function canManageActiveSim(status: SimStatus): boolean {
return status === SIM_STATUS.ACTIVE;
}
export function canReissueEsim(status: SimStatus): boolean {
return canManageActiveSim(status);
}
export function canCancelSim(status: SimStatus): boolean {
return canManageActiveSim(status);
}
export function canTopUpSim(status: SimStatus): boolean {
return canManageActiveSim(status);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 37ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API