@perforce-perfecto/scriptless-helpers 1.48.4 → 1.49.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perforce-perfecto/scriptless-helpers",
3
- "version": "1.48.4",
3
+ "version": "1.49.1",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
package/src/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from './lib/exit-execution-helper';
9
9
  export * from './lib/file-transfer-helper';
10
10
  export * from './lib/handset-open-helper';
11
11
  export * from './lib/handset-select-helper';
12
+ export * from './lib/device-type-helper';
12
13
  export * from './lib/handset-variable-helper';
13
14
  export * from './lib/http-request-helper';
14
15
  export * from './lib/integer-helper';
package/src/index.js CHANGED
@@ -12,6 +12,7 @@ tslib_1.__exportStar(require("./lib/exit-execution-helper"), exports);
12
12
  tslib_1.__exportStar(require("./lib/file-transfer-helper"), exports);
13
13
  tslib_1.__exportStar(require("./lib/handset-open-helper"), exports);
14
14
  tslib_1.__exportStar(require("./lib/handset-select-helper"), exports);
15
+ tslib_1.__exportStar(require("./lib/device-type-helper"), exports);
15
16
  tslib_1.__exportStar(require("./lib/handset-variable-helper"), exports);
16
17
  tslib_1.__exportStar(require("./lib/http-request-helper"), exports);
17
18
  tslib_1.__exportStar(require("./lib/integer-helper"), exports);
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/execution-helpers-public/src/index.ts"],"names":[],"mappings":";;;AAAA,wEAA8C;AAC9C,qEAA2C;AAC3C,iEAAuC;AACvC,+DAAqC;AACrC,6DAAmC;AACnC,kEAAwC;AACxC,+DAAqC;AACrC,sEAA4C;AAC5C,qEAA2C;AAC3C,oEAA0C;AAC1C,sEAA4C;AAC5C,wEAA8C;AAC9C,oEAA0C;AAC1C,+DAAqC;AACrC,oEAA0C;AAC1C,+DAAqC;AACrC,iEAAuC;AACvC,+EAAqD;AACrD,kEAAwC;AACxC,8DAAoC;AACpC,mEAAyC;AACzC,wEAA8C;AAC9C,uEAA6C;AAC7C,4DAAkC;AAClC,6DAAmC;AACnC,kEAAwC;AACxC,qFAA2D;AAC3D,yEAA+C;AAE/C,8EAAoD;AACpD,oEAA0C;AAC1C,yDAA+B;AAC/B,6DAAmC;AACnC,yEAA+C;AAC/C,8EAAoD;AACpD,+EAAqD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/execution-helpers-public/src/index.ts"],"names":[],"mappings":";;;AAAA,wEAA8C;AAC9C,qEAA2C;AAC3C,iEAAuC;AACvC,+DAAqC;AACrC,6DAAmC;AACnC,kEAAwC;AACxC,+DAAqC;AACrC,sEAA4C;AAC5C,qEAA2C;AAC3C,oEAA0C;AAC1C,sEAA4C;AAC5C,mEAAyC;AACzC,wEAA8C;AAC9C,oEAA0C;AAC1C,+DAAqC;AACrC,oEAA0C;AAC1C,+DAAqC;AACrC,iEAAuC;AACvC,+EAAqD;AACrD,kEAAwC;AACxC,8DAAoC;AACpC,mEAAyC;AACzC,wEAA8C;AAC9C,uEAA6C;AAC7C,4DAAkC;AAClC,6DAAmC;AACnC,kEAAwC;AACxC,qFAA2D;AAC3D,yEAA+C;AAE/C,8EAAoD;AACpD,oEAA0C;AAC1C,yDAA+B;AAC/B,6DAAmC;AACnC,yEAA+C;AAC/C,8EAAoD;AACpD,+EAAqD"}
@@ -0,0 +1,10 @@
1
+ import { ScriptlessHelper } from '../types/scriptless-helper';
2
+ import type { DesiredDeviceCapability } from '../types/desired-device-capabilities';
3
+ export declare enum DeviceType {
4
+ VIRTUAL_DEVICE = "VIRTUAL_DEVICE",
5
+ REAL_DEVICE = "REAL_DEVICE",
6
+ WEB_DEVICE = "WEB_DEVICE"
7
+ }
8
+ export declare class DeviceTypeHelper extends ScriptlessHelper {
9
+ getDeviceType(capabilities: DesiredDeviceCapability): DeviceType;
10
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceTypeHelper = exports.DeviceType = void 0;
4
+ const scriptless_helper_1 = require("../types/scriptless-helper");
5
+ var DeviceType;
6
+ (function (DeviceType) {
7
+ DeviceType["VIRTUAL_DEVICE"] = "VIRTUAL_DEVICE";
8
+ DeviceType["REAL_DEVICE"] = "REAL_DEVICE";
9
+ DeviceType["WEB_DEVICE"] = "WEB_DEVICE";
10
+ })(DeviceType || (exports.DeviceType = DeviceType = {}));
11
+ class DeviceTypeHelper extends scriptless_helper_1.ScriptlessHelper {
12
+ getDeviceType(capabilities) {
13
+ if ('useVirtualDevice' in capabilities) {
14
+ return DeviceType.VIRTUAL_DEVICE;
15
+ }
16
+ if ('deviceName' in capabilities) {
17
+ return DeviceType.REAL_DEVICE;
18
+ }
19
+ return DeviceType.WEB_DEVICE;
20
+ }
21
+ }
22
+ exports.DeviceTypeHelper = DeviceTypeHelper;
23
+ //# sourceMappingURL=device-type-helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"device-type-helper.js","sourceRoot":"","sources":["../../../../../libs/execution-helpers-public/src/lib/device-type-helper.ts"],"names":[],"mappings":";;;AAAA,kEAA8D;AAO9D,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+CAAiC,CAAA;IACjC,yCAA2B,CAAA;IAC3B,uCAAyB,CAAA;AAC3B,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED,MAAa,gBAAiB,SAAQ,oCAAgB;IACpD,aAAa,CAAC,YAAqC;QACjD,IACE,kBAAkB,IAAK,YAA+C,EACtE,CAAC;YACD,OAAO,UAAU,CAAC,cAAc,CAAC;QACnC,CAAC;QACD,IAAI,YAAY,IAAK,YAA4C,EAAE,CAAC;YAClE,OAAO,UAAU,CAAC,WAAW,CAAC;QAChC,CAAC;QAED,OAAO,UAAU,CAAC,UAAU,CAAC;IAC/B,CAAC;CACF;AAbD,4CAaC"}
@@ -90,7 +90,6 @@ export type PerfectoWebDeviceCapabilityTimeouts = {
90
90
  };
91
91
  export type PerfectoWebDeviceCapability = {
92
92
  acceptInsecureCerts: boolean;
93
- 'appium:automationName': string;
94
93
  browserName: string;
95
94
  browserVersion: string;
96
95
  chrome: PerfectoWebDeviceCapabilityChrome;