@opentap/runner-client 2.7.0 → 2.7.1-alpha.1.1

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,14 @@ 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('DownloadTapSettingsRequest', tapSettingsRequest).then(this.success()).catch(this.error());
603
+ };
596
604
  /**
597
605
  * Load a component settings TapPackage by referencing a package in a package repository
598
606
  * @param {RepositoryPackageReference} packageReference
package/lib/DTOs.d.ts CHANGED
@@ -822,6 +822,13 @@ export declare class TestStepType extends TestStep implements ITestStepType {
822
822
  export interface ITestStepType extends ITestStep {
823
823
  availableChildrenTypes?: string[] | undefined;
824
824
  }
825
+ export declare class TestStepCopy extends TestStep implements ITestStepCopy {
826
+ constructor(data?: ITestStepCopy);
827
+ init(_data?: any): void;
828
+ static fromJS(data: any): TestStepCopy;
829
+ toJSON(data?: any): any;
830
+ }
831
+ export declare type ITestStepCopy = ITestStep;
825
832
  export declare class TestStepValidationError implements ITestStepValidationError {
826
833
  stepId?: string | undefined;
827
834
  validationErrors?: ValidationError[] | undefined;
package/lib/DTOs.js CHANGED
@@ -2376,6 +2376,30 @@ var TestStepType = /** @class */ (function (_super) {
2376
2376
  return TestStepType;
2377
2377
  }(TestStep));
2378
2378
  export { TestStepType };
2379
+ var TestStepCopy = /** @class */ (function (_super) {
2380
+ __extends(TestStepCopy, _super);
2381
+ function TestStepCopy(data) {
2382
+ var _this = _super.call(this, data) || this;
2383
+ _this._discriminator = 'TestStepCopy';
2384
+ return _this;
2385
+ }
2386
+ TestStepCopy.prototype.init = function (_data) {
2387
+ _super.prototype.init.call(this, _data);
2388
+ };
2389
+ TestStepCopy.fromJS = function (data) {
2390
+ data = typeof data === 'object' ? data : {};
2391
+ var result = new TestStepCopy();
2392
+ result.init(data);
2393
+ return result;
2394
+ };
2395
+ TestStepCopy.prototype.toJSON = function (data) {
2396
+ data = typeof data === 'object' ? data : {};
2397
+ _super.prototype.toJSON.call(this, data);
2398
+ return data;
2399
+ };
2400
+ return TestStepCopy;
2401
+ }(TestStep));
2402
+ export { TestStepCopy };
2379
2403
  var TestStepValidationError = /** @class */ (function () {
2380
2404
  function TestStepValidationError(data) {
2381
2405
  if (data) {
@@ -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.0",
3
+ "version": "2.7.1-alpha.1.1",
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",