suitest-js-api 3.2.1 → 3.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/index.d.ts CHANGED
@@ -39,6 +39,7 @@ import {ScreenOrientation} from './typeDefinition/constants/ScreenOrientation';
39
39
  import {CloseAppChain} from './typeDefinition/CloseAppChain';
40
40
  import {SuspendAppChain} from './typeDefinition/SuspendAppChain';
41
41
  import {RelativePosition} from './typeDefinition/RelativePositionChain';
42
+ import {LaunchMode} from './typeDefinition/constants/LaunchMode';
42
43
 
43
44
  // --------------- Suitest Interface ---------------------- //
44
45
 
@@ -151,6 +152,7 @@ declare namespace suitest {
151
152
  TAP_TYPES: TapTypes;
152
153
  DIRECTIONS: Directions;
153
154
  SCREEN_ORIENTATION: ScreenOrientation;
155
+ LAUNCH_MODE: LaunchMode;
154
156
 
155
157
  authContext: AuthContext;
156
158
  appContext: Context;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suitest-js-api",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:SuitestAutomation/suitest-js-api.git",
6
6
  "author": "Suitest <hello@suite.st>",
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  AbstractChain,
3
3
  BaseChain,
4
- LaunchMode
4
+ LaunchModeModifier
5
5
  } from './modifiers';
6
6
 
7
7
  export interface OpenAppChain extends
8
8
  BaseChain<OpenAppChain, OpenAppEvalResult, OpenAppAbandonedChain>,
9
- LaunchMode<OpenAppChain>
9
+ LaunchModeModifier<OpenAppChain>
10
10
  {}
11
11
 
12
12
  interface OpenAppAbandonedChain extends AbstractChain {}
@@ -0,0 +1,6 @@
1
+ export type LaunchMode = {
2
+ RESUME: 'resume',
3
+ RESTART: 'restart',
4
+ }
5
+
6
+ export type LaunchModeValues = LaunchMode[keyof LaunchMode];
@@ -1,3 +1,5 @@
1
+ import {LaunchModeValues} from './constants/LaunchMode';
2
+
1
3
  export interface Thenable <R> {
2
4
  then <U> (onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Thenable<U>;
3
5
  then <U> (onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => void): Thenable<U>;
@@ -38,8 +40,8 @@ export interface Clonable<T> {
38
40
  clone(): T;
39
41
  }
40
42
 
41
- export interface LaunchMode<T> {
42
- launchMode(mode: 'resume' | 'restart'): T;
43
+ export interface LaunchModeModifier<T> {
44
+ launchMode(mode: LaunchModeValues): T;
43
45
  }
44
46
 
45
47
  export interface Abandable<T> {