@perforce-perfecto/scriptless-helpers 1.56.0 → 1.57.0
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,5 +1,4 @@
|
|
|
1
1
|
import { SecuredVariableHelper } from './secured-variable-helper';
|
|
2
|
-
import { DesiredDeviceCapability } from '../types/desired-device-capabilities';
|
|
3
2
|
import { ProcessedDataTableCell } from '../types/data-table';
|
|
4
3
|
import { UserDefinedVariable } from '../types/user-defined-variables';
|
|
5
4
|
import { ScriptlessHelper } from '../types/scriptless-helper';
|
|
@@ -30,8 +29,8 @@ export declare class ActionArgumentsHelper extends ScriptlessHelper {
|
|
|
30
29
|
constructor(securedVariableHelper: SecuredVariableHelper, logger?: Logger);
|
|
31
30
|
shouldUseActionArgument(): boolean;
|
|
32
31
|
extractAndValidateActionArgumentValue(actionArgument: ActionArgument): string | number | boolean | undefined;
|
|
33
|
-
extractActionArgumentKeyOrValueAsFallback(actionArgument: ActionArgument): string | number | boolean |
|
|
34
|
-
fetchActionArgumentForReporting(actionArgument: ActionArgument): string | number | boolean |
|
|
32
|
+
extractActionArgumentKeyOrValueAsFallback(actionArgument: ActionArgument): string | number | boolean | import("../types/desired-device-capabilities").DesiredWebDeviceCapability | import("../types/desired-device-capabilities").DesiredVirtualDeviceCapability | import("../types/desired-device-capabilities").DesiredRealDeviceCapability | undefined;
|
|
33
|
+
fetchActionArgumentForReporting(actionArgument: ActionArgument): string | number | boolean | import("../types/desired-device-capabilities").DesiredWebDeviceCapability | import("../types/desired-device-capabilities").DesiredVirtualDeviceCapability | import("../types/desired-device-capabilities").DesiredRealDeviceCapability | undefined;
|
|
35
34
|
extractSensitiveCommandParameterAttribute(actionArgument: ActionArgument): CommandParameterAttribute.SENSITIVE | undefined;
|
|
36
35
|
}
|
|
37
36
|
export {};
|
|
@@ -3,7 +3,8 @@ import type { DesiredDeviceCapability } from '../types/desired-device-capabiliti
|
|
|
3
3
|
export declare enum DeviceType {
|
|
4
4
|
VIRTUAL_DEVICE = "VIRTUAL_DEVICE",
|
|
5
5
|
REAL_DEVICE = "REAL_DEVICE",
|
|
6
|
-
WEB_DEVICE = "WEB_DEVICE"
|
|
6
|
+
WEB_DEVICE = "WEB_DEVICE",
|
|
7
|
+
DESKTOP_DEVICE = "DESKTOP_DEVICE"
|
|
7
8
|
}
|
|
8
9
|
export declare class DeviceTypeHelper extends ScriptlessHelper {
|
|
9
10
|
getDeviceType(capabilities: DesiredDeviceCapability): DeviceType;
|
|
@@ -7,16 +7,23 @@ var DeviceType;
|
|
|
7
7
|
DeviceType["VIRTUAL_DEVICE"] = "VIRTUAL_DEVICE";
|
|
8
8
|
DeviceType["REAL_DEVICE"] = "REAL_DEVICE";
|
|
9
9
|
DeviceType["WEB_DEVICE"] = "WEB_DEVICE";
|
|
10
|
+
DeviceType["DESKTOP_DEVICE"] = "DESKTOP_DEVICE";
|
|
10
11
|
})(DeviceType || (exports.DeviceType = DeviceType = {}));
|
|
11
12
|
class DeviceTypeHelper extends scriptless_helper_1.ScriptlessHelper {
|
|
12
13
|
getDeviceType(capabilities) {
|
|
13
14
|
if ('useVirtualDevice' in capabilities) {
|
|
14
15
|
return DeviceType.VIRTUAL_DEVICE;
|
|
15
16
|
}
|
|
16
|
-
if ('
|
|
17
|
+
else if ('deviceType' in capabilities &&
|
|
18
|
+
capabilities.deviceType === 'desktop_app') {
|
|
19
|
+
return DeviceType.DESKTOP_DEVICE;
|
|
20
|
+
}
|
|
21
|
+
else if ('deviceName' in capabilities) {
|
|
17
22
|
return DeviceType.REAL_DEVICE;
|
|
18
23
|
}
|
|
19
|
-
|
|
24
|
+
else {
|
|
25
|
+
return DeviceType.WEB_DEVICE;
|
|
26
|
+
}
|
|
20
27
|
}
|
|
21
28
|
}
|
|
22
29
|
exports.DeviceTypeHelper = DeviceTypeHelper;
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"device-type-helper.js","sourceRoot":"","sources":["../../../../../libs/execution-helpers-public/src/lib/device-type-helper.ts"],"names":[],"mappings":";;;AAAA,kEAA8D;AAG9D,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,+CAAiC,CAAA;IACjC,yCAA2B,CAAA;IAC3B,uCAAyB,CAAA;IACzB,+CAAiC,CAAA;AACnC,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AAED,MAAa,gBAAiB,SAAQ,oCAAgB;IACpD,aAAa,CAAC,YAAqC;QACjD,IAAI,kBAAkB,IAAI,YAAY,EAAE,CAAC;YACvC,OAAO,UAAU,CAAC,cAAc,CAAC;QACnC,CAAC;aAAM,IACL,YAAY,IAAI,YAAY;YAC5B,YAAY,CAAC,UAAU,KAAK,aAAa,EACzC,CAAC;YACD,OAAO,UAAU,CAAC,cAAc,CAAC;QACnC,CAAC;aAAM,IAAI,YAAY,IAAI,YAAY,EAAE,CAAC;YACxC,OAAO,UAAU,CAAC,WAAW,CAAC;QAChC,CAAC;aAAM,CAAC;YACN,OAAO,UAAU,CAAC,UAAU,CAAC;QAC/B,CAAC;IACH,CAAC;CACF;AAfD,4CAeC"}
|
|
@@ -18,8 +18,12 @@ export type DesiredVirtualDeviceCapability = {
|
|
|
18
18
|
model: string;
|
|
19
19
|
useVirtualDevice: boolean;
|
|
20
20
|
} & SharedDesiredDeviceCapability;
|
|
21
|
+
export type DesiredDesktopDeviceCapability = {
|
|
22
|
+
deviceName: string;
|
|
23
|
+
deviceType: 'desktop_app';
|
|
24
|
+
} & SharedDesiredDeviceCapability;
|
|
21
25
|
export type DesiredRealDeviceCapability = {
|
|
22
26
|
deviceName: string;
|
|
23
27
|
} & SharedDesiredDeviceCapability;
|
|
24
|
-
export type DesiredDeviceCapability = DesiredWebDeviceCapability | DesiredVirtualDeviceCapability | DesiredRealDeviceCapability;
|
|
28
|
+
export type DesiredDeviceCapability = DesiredWebDeviceCapability | DesiredVirtualDeviceCapability | DesiredRealDeviceCapability | DesiredDesktopDeviceCapability;
|
|
25
29
|
export {};
|