@opentap/runner-client 1.0.0-alpha.37.12 → 1.0.0-alpha.72

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.
@@ -1,20 +1,11 @@
1
+ import { ConnectionOptions } from 'nats.ws';
1
2
  import { BaseClient } from './BaseClient';
2
- import { ComponentSettingsBase, ComponentSettingsIdentifier, ComponentSettingsListItem, DataGridControl, ErrorResponse, FileParameter, FileResponse, Image, Links, ListItemType, ProfileGroup, RepositoryPackageReference, RepositorySettingsPackageDefinition, Session, SettingsTapPackage } from './DTOs';
3
+ import { Image, Links, Session } from './DTOs';
3
4
  export declare class RunnerClient extends BaseClient {
4
5
  private http;
5
6
  private baseUrl;
6
7
  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;
8
+ constructor(baseSubject: string, options: ConnectionOptions);
18
9
  /**
19
10
  * Get the created image with the specified ID.
20
11
  * @param imageId
@@ -74,112 +65,9 @@ export declare class RunnerClient extends BaseClient {
74
65
  */
75
66
  getLinks(): Promise<Links>;
76
67
  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
68
  /**
176
69
  * Retrieve settings types used in creating a Settings TapPackage
177
70
  */
178
71
  getSettingsTypes(): Promise<string[]>;
179
72
  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
73
  }