File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
structures-frontend-next/src/services Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ import { Continuum , type IServiceProxy } from '@kinotic/continuum-client'
2+
3+ export interface ISessionUpgradeService {
4+
5+ upgradeSession ( upgradeId : string , sessionId : string ) : Promise < void >
6+
7+ }
8+
9+ export class SessionUpgradeService implements ISessionUpgradeService {
10+
11+ protected serviceProxy : IServiceProxy
12+
13+ constructor ( ) {
14+ this . serviceProxy = Continuum . serviceProxy ( 'continuum.cli.SessionUpgradeService' )
15+ }
16+
17+ public async upgradeSession ( upgradeId : string , sessionId : string ) : Promise < void > {
18+ await this . serviceProxy . invoke ( 'upgradeSession' , [ sessionId ] , upgradeId )
19+ }
20+ }
21+
22+
23+ export const SESSION_UPGRADE_SERVICE : ISessionUpgradeService = new SessionUpgradeService ( )
You can’t perform that action at this time.
0 commit comments