2021-12-31 21:42:24 +00:00
|
|
|
import "./import";
|
2021-12-31 21:38:26 +00:00
|
|
|
|
|
|
|
enum TestEnum {
|
|
|
|
VAL1,
|
|
|
|
VAL2,
|
|
|
|
VAL10 = 10,
|
|
|
|
VAL11,
|
|
|
|
VAL12
|
|
|
|
}
|
|
|
|
|
|
|
|
type Test {
|
|
|
|
atom: TestAtom;
|
|
|
|
array: TestAtom[];
|
|
|
|
enumValue: TestEnum;
|
|
|
|
map: {number, TestAtom};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type AddValueRequest {
|
|
|
|
value1: number;
|
|
|
|
value2: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddValueResponse {
|
|
|
|
value: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
service TestService {
|
2022-01-01 18:47:34 +00:00
|
|
|
@Description("Add two numbers")
|
|
|
|
@Param("request", "Parameter containing the two numbers")
|
2021-12-31 21:38:26 +00:00
|
|
|
AddValuesSingleParam(request: AddValueRequest): AddValueResponse;
|
2022-01-01 18:47:34 +00:00
|
|
|
|
|
|
|
@Description("Add two numbers")
|
|
|
|
@Param("value1", "The first value")
|
|
|
|
@Param("value2", "The second value")
|
2021-12-31 21:38:26 +00:00
|
|
|
AddValuesMultipleParams(value1: number, value2: number): number;
|
2022-01-01 18:47:34 +00:00
|
|
|
|
|
|
|
@Description("Does literaly nothing")
|
|
|
|
@Param("param1", "Some number")
|
2022-01-01 15:03:43 +00:00
|
|
|
ReturningVoid(param1: number): void;
|
2021-12-31 21:38:26 +00:00
|
|
|
|
2022-01-01 18:47:34 +00:00
|
|
|
@Description("Just sends an Event with a String")
|
|
|
|
@Param("param1", "Parameter with some string for event")
|
2021-12-31 21:38:26 +00:00
|
|
|
notification OnEvent(param1: string);
|
2022-01-02 20:51:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
FunctionWithArrayAsParamAndReturn(values1: number[], values2: number[]): number[];
|
2021-12-31 21:38:26 +00:00
|
|
|
}
|