@interopio/desktop 6.2.0 → 6.2.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.
package/changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ 6.2.2
2
+ - feat: notifications - click method now accepts a third optional argument - options
3
+ 6.2.1
4
+ - fix: appManger - myApplication returns undefined in webGroups and workspaces
1
5
  6.2.0
2
6
  - feat: notifications - allow user to change the notification panel and toasts position
3
7
  - feat: windows: add new method - clone
package/desktop.d.ts CHANGED
@@ -6160,7 +6160,7 @@ export declare namespace IOConnectDesktop {
6160
6160
  * Provides additional information about an Intent (e.g., when an Intent is retrieved with the `getIntents()` method).
6161
6161
  */
6162
6162
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
6163
- export interface IntentInfo extends AddIntentListenerRequest {}
6163
+ export interface IntentInfo extends AddIntentListenerRequest { }
6164
6164
 
6165
6165
  /**
6166
6166
  * Specifies the criteria for filtering the available Intent handlers when using the `filterHandlers()` method.
@@ -6478,8 +6478,9 @@ export declare namespace IOConnectDesktop {
6478
6478
  * Clicks programmatically a notification or a notification action.
6479
6479
  * @param id ID of the notification to click.
6480
6480
  * @param action ID of the action to click.
6481
+ * @param options Options for the clicked notification.
6481
6482
  */
6482
- click(id: string, action?: string): Promise<void>;
6483
+ click(id: string, action?: string, options?: ClickOptions): Promise<void>;
6483
6484
 
6484
6485
  /**
6485
6486
  * Sets the state of a notification.
@@ -6629,6 +6630,15 @@ export declare namespace IOConnectDesktop {
6629
6630
  */
6630
6631
  export type State = "Active" | "Acknowledged" | "Closed" | "Stale";
6631
6632
 
6633
+ /**
6634
+ * Options for the clicked notification.
6635
+ */
6636
+ export interface ClickOptions {
6637
+ /**
6638
+ * Flag indicating whether the clicked notification will be closed.
6639
+ */
6640
+ close?: boolean;
6641
+ }
6632
6642
 
6633
6643
  /**
6634
6644
  * Describes a notification.
@@ -13023,7 +13023,7 @@
13023
13023
  };
13024
13024
  this.getMyApplication = () => {
13025
13025
  if (this._agm.instance) {
13026
- return this.application(this._agm.instance.application);
13026
+ return this.application(this._agm.instance.applicationName);
13027
13027
  }
13028
13028
  };
13029
13029
  this.handleSnapshotAppsAdded = (newApps) => {
@@ -18884,7 +18884,7 @@
18884
18884
  };
18885
18885
  }
18886
18886
 
18887
- var version = "6.2.0";
18887
+ var version = "6.2.2";
18888
18888
 
18889
18889
  var prepareConfig = (options) => {
18890
18890
  function getLibConfig(value, defaultMode, trueMode) {
@@ -19218,8 +19218,8 @@
19218
19218
  }
19219
19219
  await this.interop.invoke(this.NotificationsExecuteMethod, { command: "clear", data: { id } });
19220
19220
  }
19221
- async click(id, action) {
19222
- await this.interop.invoke(this.NotificationsExecuteMethod, { command: "click", data: { id, action } });
19221
+ async click(id, action, options) {
19222
+ await this.interop.invoke(this.NotificationsExecuteMethod, { command: "click", data: { id, action, options } });
19223
19223
  }
19224
19224
  async setState(id, state) {
19225
19225
  if (!id) {