@opentap/runner-client 2.7.1 → 2.8.0-alpha.1.2

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,3 +1,4 @@
1
+ import { DownloadTapSettingsRequest } from './requestDTOs';
1
2
  import { ComponentSettingsBase, ComponentSettingsIdentifier, ComponentSettingsListItem, DataGridControl, ErrorResponse, FileParameter, FileResponse, ListItemType, ProfileGroup, RepositoryPackageReference, RepositorySettingsPackageDefinition, SettingsTapPackage } from './DTOs';
2
3
  import { ConnectionOptions, NatsError, Subscription, SubscriptionOptions, PublishOptions } from 'nats.ws';
3
4
  interface BaseClientRequestOptions {
@@ -200,6 +201,12 @@ export declare class BaseClient {
200
201
  * @returns {Promise<void>}
201
202
  */
202
203
  uploadComponentSettings(file: FileParameter): Promise<string[]>;
204
+ /**
205
+ * Downloads a .TapSettings file containing the settings for a given component settings group
206
+ * @param {DownloadTapSettingsRequest} tapSettingsRequest The download request specifying the component settings group to download
207
+ * @returns {Promise<Uint8Array>} A byte array containing the downloaded .TapSettings file
208
+ */
209
+ downloadComponentSettings(tapSettingsRequest: DownloadTapSettingsRequest): Promise<Uint8Array>;
203
210
  /**
204
211
  * Load a component settings TapPackage by referencing a package in a package repository
205
212
  * @param {RepositoryPackageReference} packageReference
package/lib/BaseClient.js CHANGED
@@ -593,6 +593,16 @@ var BaseClient = /** @class */ (function () {
593
593
  ? this.request('UploadComponentSettings', file).then(this.success()).catch(this.error())
594
594
  : Promise.reject('file must be defined');
595
595
  };
596
+ /**
597
+ * Downloads a .TapSettings file containing the settings for a given component settings group
598
+ * @param {DownloadTapSettingsRequest} tapSettingsRequest The download request specifying the component settings group to download
599
+ * @returns {Promise<Uint8Array>} A byte array containing the downloaded .TapSettings file
600
+ */
601
+ BaseClient.prototype.downloadComponentSettings = function (tapSettingsRequest) {
602
+ return this.request('DownloadComponentSettings', tapSettingsRequest, { rawResponse: true })
603
+ .then(this.success())
604
+ .catch(this.error());
605
+ };
596
606
  /**
597
607
  * Load a component settings TapPackage by referencing a package in a package repository
598
608
  * @param {RepositoryPackageReference} packageReference
@@ -66,3 +66,6 @@ export interface AddComponentSettingDataGridItemTypeRequest extends GetComponent
66
66
  export interface AddComponentSettingsListItemRequest extends GetComponentSettingsRequest {
67
67
  typeName: string | undefined;
68
68
  }
69
+ export interface DownloadTapSettingsRequest {
70
+ groupName: string | undefined;
71
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentap/runner-client",
3
- "version": "2.7.1",
3
+ "version": "2.8.0-alpha.1.2",
4
4
  "description": "This is the web client for the OpenTAP Runner.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",