@opentap/runner-client 2.7.1-alpha.1.2 → 2.8.0-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.
- package/lib/BaseClient.d.ts +7 -0
- package/lib/BaseClient.js +8 -0
- package/lib/requestDTOs.d.ts +3 -0
- package/package.json +1 -1
package/lib/BaseClient.d.ts
CHANGED
|
@@ -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('DownloadComponentSettings', 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/requestDTOs.d.ts
CHANGED
|
@@ -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
|
+
}
|