@opentap/runner-client 2.0.0-alpha.2.5 → 2.0.0-alpha.2.7

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/DTOs.d.ts CHANGED
@@ -151,6 +151,7 @@ export declare class Setting extends AnnotatedObject implements ISetting {
151
151
  valueDescription?: string | undefined;
152
152
  propertyName?: string | undefined;
153
153
  icons?: Icon[] | undefined;
154
+ submit?: boolean | undefined;
154
155
  protected _discriminator: string;
155
156
  constructor(data?: ISetting);
156
157
  init(_data?: any): void;
@@ -164,6 +165,7 @@ export interface ISetting extends IAnnotatedObject {
164
165
  valueDescription?: string | undefined;
165
166
  propertyName?: string | undefined;
166
167
  icons?: Icon[] | undefined;
168
+ submit?: boolean | undefined;
167
169
  }
168
170
  export declare class Layout implements ILayout {
169
171
  mode?: LayoutMode;
@@ -831,6 +833,7 @@ export interface ICommonContext {
831
833
  export declare class Interaction implements IInteraction {
832
834
  timeout?: string | undefined;
833
835
  title?: string | undefined;
836
+ modal?: boolean | undefined;
834
837
  settings?: Setting[] | undefined;
835
838
  id?: string;
836
839
  constructor(data?: IInteraction);
@@ -841,6 +844,7 @@ export declare class Interaction implements IInteraction {
841
844
  export interface IInteraction {
842
845
  timeout?: string | undefined;
843
846
  title?: string | undefined;
847
+ modal?: boolean | undefined;
844
848
  settings?: Setting[] | undefined;
845
849
  id?: string;
846
850
  }
package/lib/DTOs.js CHANGED
@@ -434,6 +434,7 @@ var Setting = /** @class */ (function (_super) {
434
434
  this.columnDisplayName = _data['ColumnDisplayName'] ? ColumnDisplayName.fromJS(_data['ColumnDisplayName']) : undefined;
435
435
  this.valueDescription = _data['ValueDescription'];
436
436
  this.propertyName = _data['PropertyName'];
437
+ this.submit = _data['Submit'];
437
438
  if (Array.isArray(_data['Icons'])) {
438
439
  this.icons = [];
439
440
  for (var _b = 0, _c = _data['Icons']; _b < _c.length; _b++) {
@@ -523,6 +524,7 @@ var Setting = /** @class */ (function (_super) {
523
524
  data['ColumnDisplayName'] = this.columnDisplayName ? this.columnDisplayName.toJSON() : undefined;
524
525
  data['ValueDescription'] = this.valueDescription;
525
526
  data['PropertyName'] = this.propertyName;
527
+ data['Submit'] = this.submit;
526
528
  if (Array.isArray(this.icons)) {
527
529
  data['Icons'] = [];
528
530
  for (var _b = 0, _c = this.icons; _b < _c.length; _b++) {
@@ -2455,6 +2457,7 @@ var Interaction = /** @class */ (function () {
2455
2457
  if (_data) {
2456
2458
  this.timeout = _data['Timeout'];
2457
2459
  this.title = _data['Title'];
2460
+ this.modal = _data['Modal'];
2458
2461
  if (Array.isArray(_data['Settings'])) {
2459
2462
  this.settings = [];
2460
2463
  for (var _i = 0, _a = _data['Settings']; _i < _a.length; _i++) {
@@ -2475,6 +2478,7 @@ var Interaction = /** @class */ (function () {
2475
2478
  data = typeof data === 'object' ? data : {};
2476
2479
  data['Timeout'] = this.timeout;
2477
2480
  data['Title'] = this.title;
2481
+ data['Modal'] = this.modal;
2478
2482
  if (Array.isArray(this.settings)) {
2479
2483
  data['Settings'] = [];
2480
2484
  for (var _i = 0, _a = this.settings; _i < _a.length; _i++) {
@@ -2,8 +2,7 @@ import { BreakPoints, CommonContext, CommonSettings, DataGridControl, Image, Int
2
2
  import { ConnectionOptions, NatsError, Subscription, SubscriptionOptions } from 'nats.ws';
3
3
  import { BaseClient } from './BaseClient';
4
4
  export declare class SessionClient extends BaseClient {
5
- private eventsSubscription;
6
- private eventsWildcardSubscription;
5
+ private subscriptions;
7
6
  constructor(baseSubject: string, options: ConnectionOptions);
8
7
  /**
9
8
  * @param sessionLogsHandler Function to be called when log list or error is received
@@ -30,7 +30,9 @@ import { BaseClient } from './BaseClient';
30
30
  var SessionClient = /** @class */ (function (_super) {
31
31
  __extends(SessionClient, _super);
32
32
  function SessionClient(baseSubject, options) {
33
- return _super.call(this, baseSubject, options) || this;
33
+ var _this = _super.call(this, baseSubject, options) || this;
34
+ _this.subscriptions = [];
35
+ return _this;
34
36
  }
35
37
  /**
36
38
  * @param sessionLogsHandler Function to be called when log list or error is received
@@ -75,8 +77,8 @@ var SessionClient = /** @class */ (function (_super) {
75
77
  eventHandler(undefined, error);
76
78
  }
77
79
  };
78
- this.eventsSubscription = this.subscribe('Events', __assign(__assign({}, options), { callback: callback }));
79
- this.eventsWildcardSubscription = this.subscribe('Events.*', __assign(__assign({}, options), { callback: callback }));
80
+ this.subscriptions.push(this.subscribe('Events', __assign(__assign({}, options), { callback: callback })));
81
+ this.subscriptions.push(this.subscribe('Events.*', __assign(__assign({}, options), { callback: callback })));
80
82
  };
81
83
  /**
82
84
  * @param resultHandler Function to be called when result or error is received
@@ -122,12 +124,8 @@ var SessionClient = /** @class */ (function (_super) {
122
124
  * Unsubscibe from session events
123
125
  */
124
126
  SessionClient.prototype.unsubscribeSessionEvents = function () {
125
- if (this.eventsSubscription) {
126
- this.eventsSubscription.unsubscribe();
127
- }
128
- if (this.eventsWildcardSubscription) {
129
- this.eventsWildcardSubscription.unsubscribe();
130
- }
127
+ var _a;
128
+ (_a = this.subscriptions) === null || _a === void 0 ? void 0 : _a.forEach(function (subscription) { return subscription.unsubscribe(); });
131
129
  };
132
130
  /**
133
131
  * Retrieve session logs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentap/runner-client",
3
- "version": "2.0.0-alpha.2.5",
3
+ "version": "2.0.0-alpha.2.7",
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",