@opentap/runner-client 2.29.2 → 2.29.3-alpha.1.1.13971301220
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/dist/cjs/BaseClient.d.ts +6 -0
- package/dist/cjs/BaseClient.js +12 -0
- package/dist/cjs/DTOs.d.ts +5 -5
- package/dist/cjs/DTOs.js +0 -5
- package/dist/mjs/BaseClient.d.ts +6 -0
- package/dist/mjs/BaseClient.js +10 -0
- package/dist/mjs/DTOs.d.ts +5 -5
- package/dist/mjs/DTOs.js +0 -5
- package/package.json +1 -1
package/dist/cjs/BaseClient.d.ts
CHANGED
|
@@ -249,5 +249,11 @@ export declare class BaseClient {
|
|
|
249
249
|
* @returns {Promise<string[]>}
|
|
250
250
|
*/
|
|
251
251
|
settingsPackageTypes(): Promise<string[]>;
|
|
252
|
+
/**
|
|
253
|
+
* Dispatches a request with the given subject and returns a Promise of type T
|
|
254
|
+
* @param subject The subject to send the request to
|
|
255
|
+
* @returns Promise<T> The response from the request
|
|
256
|
+
*/
|
|
257
|
+
dispatchRequest<T>(subject: string): Promise<T>;
|
|
252
258
|
}
|
|
253
259
|
export {};
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -682,6 +682,18 @@ var BaseClient = /** @class */ (function () {
|
|
|
682
682
|
BaseClient.prototype.settingsPackageTypes = function () {
|
|
683
683
|
return this.request('SettingsPackageTypes').then(this.success()).catch(this.error());
|
|
684
684
|
};
|
|
685
|
+
/**
|
|
686
|
+
* Dispatches a request with the given subject and returns a Promise of type T
|
|
687
|
+
* @param subject The subject to send the request to
|
|
688
|
+
* @returns Promise<T> The response from the request
|
|
689
|
+
*/
|
|
690
|
+
BaseClient.prototype.dispatchRequest = function (subject) {
|
|
691
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
692
|
+
return __generator(this, function (_a) {
|
|
693
|
+
return [2 /*return*/, this.request(subject, undefined, { fullSubject: true })];
|
|
694
|
+
});
|
|
695
|
+
});
|
|
696
|
+
};
|
|
685
697
|
return BaseClient;
|
|
686
698
|
}());
|
|
687
699
|
exports.BaseClient = BaseClient;
|
package/dist/cjs/DTOs.d.ts
CHANGED
|
@@ -251,11 +251,11 @@ export interface IUnitAttribute {
|
|
|
251
251
|
useEngineeringPrefix: boolean | undefined;
|
|
252
252
|
}
|
|
253
253
|
export declare class UnitAttribute implements IUnitAttribute {
|
|
254
|
-
unit: undefined;
|
|
255
|
-
preScaling: undefined;
|
|
256
|
-
stringFormat: undefined;
|
|
257
|
-
useRanges: undefined;
|
|
258
|
-
useEngineeringPrefix: undefined;
|
|
254
|
+
unit: string | undefined;
|
|
255
|
+
preScaling: number | undefined;
|
|
256
|
+
stringFormat: string | undefined;
|
|
257
|
+
useRanges: boolean | undefined;
|
|
258
|
+
useEngineeringPrefix: boolean | undefined;
|
|
259
259
|
constructor(data?: IUnitAttribute);
|
|
260
260
|
init(_data?: any): void;
|
|
261
261
|
static fromJS(data: any): UnitAttribute;
|
package/dist/cjs/DTOs.js
CHANGED
|
@@ -702,11 +702,6 @@ var Icon = /** @class */ (function () {
|
|
|
702
702
|
exports.Icon = Icon;
|
|
703
703
|
var UnitAttribute = /** @class */ (function () {
|
|
704
704
|
function UnitAttribute(data) {
|
|
705
|
-
this.unit = undefined;
|
|
706
|
-
this.preScaling = undefined;
|
|
707
|
-
this.stringFormat = undefined;
|
|
708
|
-
this.useRanges = undefined;
|
|
709
|
-
this.useEngineeringPrefix = undefined;
|
|
710
705
|
if (data) {
|
|
711
706
|
for (var property in data) {
|
|
712
707
|
if (Object.prototype.hasOwnProperty.call(data, property))
|
package/dist/mjs/BaseClient.d.ts
CHANGED
|
@@ -249,5 +249,11 @@ export declare class BaseClient {
|
|
|
249
249
|
* @returns {Promise<string[]>}
|
|
250
250
|
*/
|
|
251
251
|
settingsPackageTypes(): Promise<string[]>;
|
|
252
|
+
/**
|
|
253
|
+
* Dispatches a request with the given subject and returns a Promise of type T
|
|
254
|
+
* @param subject The subject to send the request to
|
|
255
|
+
* @returns Promise<T> The response from the request
|
|
256
|
+
*/
|
|
257
|
+
dispatchRequest<T>(subject: string): Promise<T>;
|
|
252
258
|
}
|
|
253
259
|
export {};
|
package/dist/mjs/BaseClient.js
CHANGED
|
@@ -606,4 +606,14 @@ export class BaseClient {
|
|
|
606
606
|
settingsPackageTypes() {
|
|
607
607
|
return this.request('SettingsPackageTypes').then(this.success()).catch(this.error());
|
|
608
608
|
}
|
|
609
|
+
/**
|
|
610
|
+
* Dispatches a request with the given subject and returns a Promise of type T
|
|
611
|
+
* @param subject The subject to send the request to
|
|
612
|
+
* @returns Promise<T> The response from the request
|
|
613
|
+
*/
|
|
614
|
+
dispatchRequest(subject) {
|
|
615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
616
|
+
return this.request(subject, undefined, { fullSubject: true });
|
|
617
|
+
});
|
|
618
|
+
}
|
|
609
619
|
}
|
package/dist/mjs/DTOs.d.ts
CHANGED
|
@@ -251,11 +251,11 @@ export interface IUnitAttribute {
|
|
|
251
251
|
useEngineeringPrefix: boolean | undefined;
|
|
252
252
|
}
|
|
253
253
|
export declare class UnitAttribute implements IUnitAttribute {
|
|
254
|
-
unit: undefined;
|
|
255
|
-
preScaling: undefined;
|
|
256
|
-
stringFormat: undefined;
|
|
257
|
-
useRanges: undefined;
|
|
258
|
-
useEngineeringPrefix: undefined;
|
|
254
|
+
unit: string | undefined;
|
|
255
|
+
preScaling: number | undefined;
|
|
256
|
+
stringFormat: string | undefined;
|
|
257
|
+
useRanges: boolean | undefined;
|
|
258
|
+
useEngineeringPrefix: boolean | undefined;
|
|
259
259
|
constructor(data?: IUnitAttribute);
|
|
260
260
|
init(_data?: any): void;
|
|
261
261
|
static fromJS(data: any): UnitAttribute;
|
package/dist/mjs/DTOs.js
CHANGED
|
@@ -617,11 +617,6 @@ export class Icon {
|
|
|
617
617
|
}
|
|
618
618
|
export class UnitAttribute {
|
|
619
619
|
constructor(data) {
|
|
620
|
-
this.unit = undefined;
|
|
621
|
-
this.preScaling = undefined;
|
|
622
|
-
this.stringFormat = undefined;
|
|
623
|
-
this.useRanges = undefined;
|
|
624
|
-
this.useEngineeringPrefix = undefined;
|
|
625
620
|
if (data) {
|
|
626
621
|
for (const property in data) {
|
|
627
622
|
if (Object.prototype.hasOwnProperty.call(data, property))
|
package/package.json
CHANGED