@opentap/runner-client 1.0.0-alpha.37.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/BaseClient.d.ts +44 -0
- package/lib/BaseClient.js +181 -0
- package/lib/DTOs.d.ts +1127 -0
- package/lib/DTOs.js +3292 -0
- package/lib/RunnerClient.d.ts +185 -0
- package/lib/RunnerClient.js +1399 -0
- package/lib/SessionClient.d.ts +543 -0
- package/lib/SessionClient.js +5051 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/requestDTOs.d.ts +72 -0
- package/lib/requestDTOs.js +131 -0
- package/package.json +44 -0
- package/readme.md +67 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { BaseClient } from './BaseClient';
|
|
2
|
+
import { ComponentSettingsBase, ComponentSettingsIdentifier, ComponentSettingsListItem, DataGridControl, ErrorResponse, FileParameter, FileResponse, Image, Links, ListItemType, ProfileGroup, RepositoryPackageReference, RepositorySettingsPackageDefinition, Session, SettingsTapPackage } from './DTOs';
|
|
3
|
+
export declare class RunnerClient extends BaseClient {
|
|
4
|
+
private http;
|
|
5
|
+
private baseUrl;
|
|
6
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
7
|
+
constructor(baseSubject: string, server: string);
|
|
8
|
+
/**
|
|
9
|
+
* Generic error callback function.
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
private error;
|
|
13
|
+
/**
|
|
14
|
+
* Generic success callback function.
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
private success;
|
|
18
|
+
/**
|
|
19
|
+
* Get the created image with the specified ID.
|
|
20
|
+
* @param imageId
|
|
21
|
+
* @returns {{Promise<Image>}}
|
|
22
|
+
*/
|
|
23
|
+
getImage(imageId: string): Promise<Image>;
|
|
24
|
+
/**
|
|
25
|
+
* Get all created images
|
|
26
|
+
* @returns {{Promise<Image[]>}}
|
|
27
|
+
*/
|
|
28
|
+
getImages(): Promise<Image[]>;
|
|
29
|
+
/**
|
|
30
|
+
* Create a OpenTAP package configuration image from a list image inputs consisting of user specified packages and repositories.
|
|
31
|
+
* @param images List of images
|
|
32
|
+
* @returns {{Promise<Image>}}
|
|
33
|
+
*/
|
|
34
|
+
resolveImage(images: Image[]): Promise<Image>;
|
|
35
|
+
/**
|
|
36
|
+
* Shut down a session
|
|
37
|
+
* @param sessionId the ID of the session to shut down
|
|
38
|
+
* @returns {{Promise<void>}}
|
|
39
|
+
*/
|
|
40
|
+
shutdownSession(sessionId: string): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Start a session
|
|
43
|
+
* @returns {{Promise<Session>}}
|
|
44
|
+
*/
|
|
45
|
+
startSession(): Promise<Session>;
|
|
46
|
+
/**
|
|
47
|
+
* Get the session manager image.
|
|
48
|
+
* @returns {{Promise<Image>}}
|
|
49
|
+
*/
|
|
50
|
+
getSessionManagerImage(): Promise<Image>;
|
|
51
|
+
/**
|
|
52
|
+
* Start a session based on an image.
|
|
53
|
+
* @param imageId
|
|
54
|
+
* @returns {{Promise<Session>}}
|
|
55
|
+
*/
|
|
56
|
+
startImageSession(image: Image): Promise<Session>;
|
|
57
|
+
/**
|
|
58
|
+
* Retrives the already running sessions
|
|
59
|
+
*/
|
|
60
|
+
getSessions(): Promise<Session[]>;
|
|
61
|
+
protected processGetSessions(response: Response): Promise<Session[]>;
|
|
62
|
+
/**
|
|
63
|
+
* Register a self-started Session to a SessionManager.
|
|
64
|
+
*/
|
|
65
|
+
registerSession(session: Session): Promise<Session>;
|
|
66
|
+
protected processRegisterSession(response: Response): Promise<Session>;
|
|
67
|
+
/**
|
|
68
|
+
* Shutdown Sessions and SessionManager
|
|
69
|
+
*/
|
|
70
|
+
shutdown(): Promise<void>;
|
|
71
|
+
protected processShutdown(response: Response): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Links to other applications or services
|
|
74
|
+
*/
|
|
75
|
+
getLinks(): Promise<Links>;
|
|
76
|
+
protected processGetLinks(response: Response): Promise<Links>;
|
|
77
|
+
/**
|
|
78
|
+
* Retrieve component settings overview
|
|
79
|
+
*/
|
|
80
|
+
getComponentSettingsOverview(): Promise<ComponentSettingsIdentifier[]>;
|
|
81
|
+
protected processGetComponentSettingsOverview(response: Response): Promise<ComponentSettingsIdentifier[]>;
|
|
82
|
+
/**
|
|
83
|
+
* Change componentsettings
|
|
84
|
+
*/
|
|
85
|
+
setComponentSettings(groupName: string | null, name: string | null, returnedSettings: ComponentSettingsBase): Promise<ComponentSettingsBase>;
|
|
86
|
+
protected processSetComponentSettings(response: Response): Promise<ComponentSettingsBase>;
|
|
87
|
+
/**
|
|
88
|
+
* Retrieve componentsettings
|
|
89
|
+
*/
|
|
90
|
+
getComponentSettings(groupName: string | null, name: string | null): Promise<ComponentSettingsBase>;
|
|
91
|
+
protected processGetComponentSettings(response: Response): Promise<ComponentSettingsBase>;
|
|
92
|
+
/**
|
|
93
|
+
* Retrieve componentsettings list item
|
|
94
|
+
*/
|
|
95
|
+
getComponentSettingsListItem(groupName: string | null, name: string | null, index: number): Promise<ComponentSettingsListItem>;
|
|
96
|
+
protected processGetComponentSettingsListItem(response: Response): Promise<ComponentSettingsListItem>;
|
|
97
|
+
/**
|
|
98
|
+
* Set componentsettings list item settings
|
|
99
|
+
*/
|
|
100
|
+
setComponentSettingsListItem(groupName: string | null, name: string | null, index: number, item: ComponentSettingsListItem): Promise<ComponentSettingsListItem>;
|
|
101
|
+
protected processSetComponentSettingsListItem(response: Response): Promise<ComponentSettingsListItem>;
|
|
102
|
+
/**
|
|
103
|
+
* Get component setting data grid
|
|
104
|
+
* @return Get component setting data grid
|
|
105
|
+
*/
|
|
106
|
+
getComponentSettingDataGrid(groupName: string | null, name: string | null, index: number, propertyName: string | null): Promise<DataGridControl>;
|
|
107
|
+
protected processGetComponentSettingDataGrid(response: Response): Promise<DataGridControl>;
|
|
108
|
+
/**
|
|
109
|
+
* Set component setting data grid
|
|
110
|
+
* @return Set data grid
|
|
111
|
+
*/
|
|
112
|
+
setComponentSettingDataGrid(groupName: string | null, name: string | null, index: number, propertyName: string | null, dataGridControl: DataGridControl): Promise<DataGridControl>;
|
|
113
|
+
protected processSetComponentSettingDataGrid(response: Response): Promise<DataGridControl>;
|
|
114
|
+
/**
|
|
115
|
+
* Add component setting item to data grid
|
|
116
|
+
* @return Add component setting data grid item
|
|
117
|
+
*/
|
|
118
|
+
addComponentSettingDataGridItemType(groupName: string | null, name: string | null, index: number, propertyName: string | null, typeName: string | null): Promise<DataGridControl>;
|
|
119
|
+
protected processAddComponentSettingDataGridItemType(response: Response): Promise<DataGridControl>;
|
|
120
|
+
/**
|
|
121
|
+
* Add component setting item to data grid
|
|
122
|
+
* @return Add component setting data grid item
|
|
123
|
+
*/
|
|
124
|
+
addComponentSettingDataGridItem(groupName: string | null, name: string | null, index: number, propertyName: string | null): Promise<DataGridControl>;
|
|
125
|
+
protected processAddComponentSettingDataGridItem(response: Response): Promise<DataGridControl>;
|
|
126
|
+
/**
|
|
127
|
+
* Get item types available in the component setting data grid
|
|
128
|
+
* @return Get component setting data grid types
|
|
129
|
+
*/
|
|
130
|
+
getComponentSettingDataGridTypes(groupName: string | null, name: string | null, index: number, propertyName: string | null): Promise<ListItemType[]>;
|
|
131
|
+
protected processGetComponentSettingDataGridTypes(response: Response): Promise<ListItemType[]>;
|
|
132
|
+
/**
|
|
133
|
+
* Change componentsettings profiles
|
|
134
|
+
*/
|
|
135
|
+
setComponentSettingsProfiles(returnedSettings: ProfileGroup[]): Promise<ProfileGroup[]>;
|
|
136
|
+
protected processSetComponentSettingsProfiles(response: Response): Promise<ProfileGroup[]>;
|
|
137
|
+
/**
|
|
138
|
+
* Get componentsettings profiles
|
|
139
|
+
*/
|
|
140
|
+
getComponentSettingsProfiles(): Promise<ProfileGroup[]>;
|
|
141
|
+
protected processGetComponentSettingsProfiles(response: Response): Promise<ProfileGroup[]>;
|
|
142
|
+
/**
|
|
143
|
+
* Upload exported OpenTAP Settings files
|
|
144
|
+
* @param file (optional)
|
|
145
|
+
*/
|
|
146
|
+
uploadComponentSettings(file: FileParameter | null | undefined): Promise<void>;
|
|
147
|
+
protected processUploadComponentSettings(response: Response): Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* DEPRECATED: Use /componentsettings/load (LoadComponentSettingsFromRepository) instead
|
|
150
|
+
* @deprecated
|
|
151
|
+
*/
|
|
152
|
+
loadComponentSettingsFromPackageReference(packageReference: RepositoryPackageReference): Promise<ErrorResponse[]>;
|
|
153
|
+
protected processLoadComponentSettingsFromPackageReference(response: Response): Promise<ErrorResponse[]>;
|
|
154
|
+
/**
|
|
155
|
+
* Load a component settings TapPackage by referencing a package in a package repository
|
|
156
|
+
*/
|
|
157
|
+
loadComponentSettingsFromRepository(packageReference: RepositoryPackageReference): Promise<ErrorResponse[]>;
|
|
158
|
+
protected processLoadComponentSettingsFromRepository(response: Response): Promise<ErrorResponse[]>;
|
|
159
|
+
/**
|
|
160
|
+
* Save a TapPackage containing component settings in a package repository
|
|
161
|
+
* @return Settings TapPackage uploaded.
|
|
162
|
+
*/
|
|
163
|
+
saveComponentSettingsToRepository(repositoryPackageDefinition: RepositorySettingsPackageDefinition): Promise<void>;
|
|
164
|
+
protected processSaveComponentSettingsToRepository(response: Response): Promise<void>;
|
|
165
|
+
/**
|
|
166
|
+
* Retrieve types available to be added to specified component settings list
|
|
167
|
+
*/
|
|
168
|
+
getComponentSettingsListAvailableTypes(groupName: string | null, name: string | null): Promise<ListItemType[]>;
|
|
169
|
+
protected processGetComponentSettingsListAvailableTypes(response: Response): Promise<ListItemType[]>;
|
|
170
|
+
/**
|
|
171
|
+
* Adds a new item to a component settings list
|
|
172
|
+
*/
|
|
173
|
+
addComponentSettingsListItem(groupName: string | null, name: string | null, typeName: string | null): Promise<ComponentSettingsBase>;
|
|
174
|
+
protected processAddComponentSettingsListItem(response: Response): Promise<ComponentSettingsBase>;
|
|
175
|
+
/**
|
|
176
|
+
* Retrieve settings types used in creating a Settings TapPackage
|
|
177
|
+
*/
|
|
178
|
+
getSettingsTypes(): Promise<string[]>;
|
|
179
|
+
protected processGetSettingsTypes(response: Response): Promise<string[]>;
|
|
180
|
+
/**
|
|
181
|
+
* Download a TapPackage containing settings files
|
|
182
|
+
*/
|
|
183
|
+
downloadSettingsPackage(settingsTapPackage: SettingsTapPackage): Promise<FileResponse>;
|
|
184
|
+
protected processDownloadSettingsPackage(response: Response): Promise<FileResponse>;
|
|
185
|
+
}
|