Files
KArtSell.Aegis/docs/Design/kbx-foundation-v60-status-canonical-contract-hardening/apps/web/src/runtime/runtimeApi.ts
T
kjh2064 3f293d8aa8
deploy / deploy (push) Successful in 1m52s
deploy / notify (push) Successful in 1s
V13-FE-006: consolidate approved UI and contract hardening
2026-08-13 02:41:00 +09:00

18 lines
668 B
TypeScript

import type { KbxOperationRun, KbxRuntimeNotice, KbxUserNotification } from '@kbx/contracts'
import { kbxApi } from '../http/generated/kbxApiClient'
export const runtimeApi = {
getNotice() {
return kbxApi.request<KbxRuntimeNotice | null>('common.runtime.notice')
},
getOperations() {
return kbxApi.request<KbxOperationRun[]>('common.runtime.operations', { query: { limit: 20 } })
},
getNotifications() {
return kbxApi.request<KbxUserNotification[]>('common.runtime.notifications', { query: { limit: 30 } })
},
markNotificationRead(id: string) {
return kbxApi.request<void>('common.runtime.notificationRead', { path: { Id: id } })
},
}