66 * json-rpc-codegen generated file: DO NOT EDIT!
77 */
88
9+ export interface SuccessResult {
10+ success : boolean ,
11+ message ?: string ,
12+ }
913export interface Common {
1014 id : string ,
1115 description ?: string ,
@@ -16,7 +20,7 @@ export interface Pack extends Common {
1620 used ?: boolean ,
1721 references ?: string [ ] ,
1822}
19- export interface PacksInfo {
23+ export interface PacksInfo extends SuccessResult {
2024 packs : Pack [ ] ,
2125}
2226export interface Component extends Common {
@@ -73,7 +77,7 @@ export interface CtClass extends CtItem {
7377 activeBundle ?: string ,
7478 bundles : CtBundle [ ] ,
7579}
76- export interface CtRoot {
80+ export interface CtRoot extends SuccessResult {
7781 classes : CtClass [ ] ,
7882}
7983export interface Condition {
@@ -86,19 +90,22 @@ export interface Result {
8690 aggregates ?: string [ ] ,
8791 conditions ?: Condition [ ] ,
8892}
89- export interface Results {
93+ export interface Results extends SuccessResult {
9094 result : string ,
9195 validation ?: Result [ ] ,
9296}
93- export interface UsedItems {
97+ export interface UsedItems extends SuccessResult {
9498 components : ComponentInstance [ ] ,
9599 packs : Pack [ ] ,
96100}
97- export interface LogMessages {
101+ export interface LogMessages extends SuccessResult {
98102 info ?: string [ ] ,
99103 errors ?: string [ ] ,
100104 warnings ?: string [ ] ,
101105}
106+ export interface GetVersionResult extends SuccessResult {
107+ version ?: string ,
108+ }
102109export interface ApplyParams {
103110 context : string ,
104111}
@@ -124,10 +131,6 @@ export interface SelectComponentParams {
124131 count : number ,
125132 options : Options ,
126133}
127- export interface SuccessResult {
128- success : boolean ,
129- message ?: string ,
130- }
131134export interface SelectVariantParams {
132135 context : string ,
133136 id : string ,
@@ -143,8 +146,8 @@ export interface ValidateComponentsParams {
143146}
144147
145148export interface RpcInterface {
146- getVersion ( ) : Promise < string > ;
147- shutdown ( ) : Promise < boolean > ;
149+ getVersion ( ) : Promise < GetVersionResult > ;
150+ shutdown ( ) : Promise < SuccessResult > ;
148151 apply ( args : ApplyParams ) : Promise < SuccessResult > ;
149152 resolve ( args : ResolveParams ) : Promise < SuccessResult > ;
150153 loadPacks ( ) : Promise < SuccessResult > ;
@@ -163,10 +166,10 @@ export abstract class RpcMethods implements RpcInterface {
163166
164167 abstract get < TArgs , TResponse > ( remoteMethod : string , args ?: TArgs ) : Promise < TResponse > ;
165168
166- public async getVersion ( ) : Promise < string > {
169+ public async getVersion ( ) : Promise < GetVersionResult > {
167170 return this . get ( 'GetVersion' ) ;
168171 }
169- public async shutdown ( ) : Promise < boolean > {
172+ public async shutdown ( ) : Promise < SuccessResult > {
170173 return this . get ( 'Shutdown' ) ;
171174 }
172175 public async apply ( args : ApplyParams ) : Promise < SuccessResult > {
0 commit comments