@ekhein/lamda-node-sdk 1.0.3 → 2.0.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/dist/src/constants/activity.flag.d.ts +22 -0
- package/dist/src/constants/activity.flag.js +22 -0
- package/dist/src/constants/android.intent.d.ts +56 -0
- package/dist/src/constants/android.intent.js +56 -0
- package/dist/src/constants/android.permission.d.ts +30 -0
- package/dist/src/constants/android.permission.js +30 -0
- package/dist/src/constants/index.d.ts +3 -0
- package/dist/src/constants/index.js +3 -0
- package/dist/src/decorators/inject.decorator.d.ts +2 -0
- package/dist/src/decorators/inject.decorator.js +15 -0
- package/dist/src/exceptions/remoteCall.exception.d.ts +7 -0
- package/dist/src/exceptions/remoteCall.exception.js +12 -0
- package/dist/src/exceptions/timeout.exception.d.ts +4 -0
- package/dist/src/exceptions/timeout.exception.js +6 -0
- package/dist/src/interceptor/remoteException.Interceptor.d.ts +2 -0
- package/dist/src/interceptor/remoteException.Interceptor.js +13 -0
- package/dist/{main.d.ts → src/main.d.ts} +9 -21
- package/dist/src/main.js +135 -0
- package/dist/src/rpc/application.d.ts +136 -0
- package/dist/src/rpc/application.js +1537 -0
- package/dist/src/rpc/debug.d.ts +19 -0
- package/dist/src/rpc/debug.js +56 -0
- package/dist/{rpc → src/rpc}/file.d.ts +11 -13
- package/dist/src/rpc/file.js +373 -0
- package/dist/src/rpc/google/protobuf/any.d.ts +20 -0
- package/dist/src/rpc/google/protobuf/any.js +98 -0
- package/dist/src/rpc/google/protobuf/empty.d.ts +18 -0
- package/dist/src/rpc/google/protobuf/empty.js +39 -0
- package/dist/{rpc → src/rpc}/google/protobuf/struct.d.ts +19 -21
- package/dist/src/rpc/google/protobuf/struct.js +438 -0
- package/dist/src/rpc/policy.d.ts +22 -0
- package/dist/src/rpc/policy.js +103 -0
- package/dist/src/rpc/proxy.d.ts +106 -0
- package/dist/src/rpc/proxy.js +774 -0
- package/dist/{rpc → src/rpc}/services.d.ts +421 -424
- package/dist/src/rpc/services.js +1493 -0
- package/dist/src/rpc/settings.d.ts +29 -0
- package/dist/src/rpc/settings.js +125 -0
- package/dist/src/rpc/shell.d.ts +34 -0
- package/dist/src/rpc/shell.js +294 -0
- package/dist/{rpc → src/rpc}/status.d.ts +17 -19
- package/dist/src/rpc/status.js +896 -0
- package/dist/src/rpc/storage.d.ts +22 -0
- package/dist/src/rpc/storage.js +128 -0
- package/dist/src/rpc/types.d.ts +34 -0
- package/dist/src/rpc/types.js +281 -0
- package/dist/{rpc → src/rpc}/uiautomator.d.ts +87 -89
- package/dist/src/rpc/uiautomator.js +5350 -0
- package/dist/src/rpc/util.d.ts +101 -0
- package/dist/src/rpc/util.js +1158 -0
- package/dist/{rpc → src/rpc}/wifi.d.ts +23 -25
- package/dist/src/rpc/wifi.js +971 -0
- package/package.json +4 -9
- package/dist/chunk-3JBDAA2H.js +0 -439
- package/dist/chunk-4AHM55IO.js +0 -1172
- package/dist/chunk-4NKGYNMS.js +0 -116
- package/dist/chunk-6HD35RPW.js +0 -5370
- package/dist/chunk-76Y3OVVH.js +0 -1602
- package/dist/chunk-7XF22HAW.js +0 -907
- package/dist/chunk-7YGA6EOV.js +0 -109
- package/dist/chunk-ADS4GRIL.js +0 -14
- package/dist/chunk-FSLE4VGI.js +0 -48
- package/dist/chunk-H7Z6XFBF.js +0 -134
- package/dist/chunk-KJKSI2WL.js +0 -62
- package/dist/chunk-O52JGDU7.js +0 -800
- package/dist/chunk-ORXTTWPB.js +0 -379
- package/dist/chunk-OZJH6SR7.js +0 -20
- package/dist/chunk-P53F45YO.js +0 -64
- package/dist/chunk-QXMPY6EE.js +0 -289
- package/dist/chunk-SBFKX3ZY.js +0 -1554
- package/dist/chunk-WFQEBPE6.js +0 -300
- package/dist/chunk-X4LTH2UN.js +0 -983
- package/dist/chunk-XAX5BZL3.js +0 -132
- package/dist/chunk-ZXF5DGTC.js +0 -45
- package/dist/constants/activity.flag.cjs +0 -92
- package/dist/constants/activity.flag.d.cts +0 -24
- package/dist/constants/activity.flag.d.ts +0 -24
- package/dist/constants/activity.flag.js +0 -49
- package/dist/constants/android.intent.cjs +0 -194
- package/dist/constants/android.intent.d.cts +0 -58
- package/dist/constants/android.intent.d.ts +0 -58
- package/dist/constants/android.intent.js +0 -117
- package/dist/constants/android.permission.cjs +0 -116
- package/dist/constants/android.permission.d.cts +0 -32
- package/dist/constants/android.permission.d.ts +0 -32
- package/dist/constants/android.permission.js +0 -65
- package/dist/constants/index.cjs +0 -356
- package/dist/constants/index.d.cts +0 -3
- package/dist/constants/index.d.ts +0 -3
- package/dist/constants/index.js +0 -225
- package/dist/decorators/inject.decorator.cjs +0 -43
- package/dist/decorators/inject.decorator.d.cts +0 -5
- package/dist/decorators/inject.decorator.d.ts +0 -5
- package/dist/decorators/inject.decorator.js +0 -7
- package/dist/main.cjs +0 -11969
- package/dist/main.d.cts +0 -37
- package/dist/main.js +0 -112
- package/dist/rpc/application.cjs +0 -2019
- package/dist/rpc/application.d.cts +0 -138
- package/dist/rpc/application.d.ts +0 -138
- package/dist/rpc/application.js +0 -50
- package/dist/rpc/debug.cjs +0 -86
- package/dist/rpc/debug.d.cts +0 -21
- package/dist/rpc/debug.d.ts +0 -21
- package/dist/rpc/debug.js +0 -9
- package/dist/rpc/file.cjs +0 -405
- package/dist/rpc/file.d.cts +0 -40
- package/dist/rpc/file.js +0 -13
- package/dist/rpc/google/protobuf/any.cjs +0 -126
- package/dist/rpc/google/protobuf/any.d.cts +0 -22
- package/dist/rpc/google/protobuf/any.d.ts +0 -22
- package/dist/rpc/google/protobuf/any.js +0 -103
- package/dist/rpc/google/protobuf/empty.cjs +0 -69
- package/dist/rpc/google/protobuf/empty.d.cts +0 -20
- package/dist/rpc/google/protobuf/empty.d.ts +0 -20
- package/dist/rpc/google/protobuf/empty.js +0 -9
- package/dist/rpc/google/protobuf/struct.cjs +0 -469
- package/dist/rpc/google/protobuf/struct.d.cts +0 -65
- package/dist/rpc/google/protobuf/struct.js +0 -21
- package/dist/rpc/policy.cjs +0 -133
- package/dist/rpc/policy.d.cts +0 -24
- package/dist/rpc/policy.d.ts +0 -24
- package/dist/rpc/policy.js +0 -9
- package/dist/rpc/proxy.cjs +0 -1109
- package/dist/rpc/proxy.d.cts +0 -108
- package/dist/rpc/proxy.d.ts +0 -108
- package/dist/rpc/proxy.js +0 -49
- package/dist/rpc/services.cjs +0 -11898
- package/dist/rpc/services.d.cts +0 -1920
- package/dist/rpc/services.js +0 -48
- package/dist/rpc/settings.cjs +0 -161
- package/dist/rpc/settings.d.cts +0 -31
- package/dist/rpc/settings.d.ts +0 -31
- package/dist/rpc/settings.js +0 -15
- package/dist/rpc/shell.cjs +0 -326
- package/dist/rpc/shell.d.cts +0 -36
- package/dist/rpc/shell.d.ts +0 -36
- package/dist/rpc/shell.js +0 -13
- package/dist/rpc/status.cjs +0 -936
- package/dist/rpc/status.d.cts +0 -76
- package/dist/rpc/status.js +0 -19
- package/dist/rpc/storage.cjs +0 -156
- package/dist/rpc/storage.d.cts +0 -24
- package/dist/rpc/storage.d.ts +0 -24
- package/dist/rpc/storage.js +0 -9
- package/dist/rpc/types.cjs +0 -317
- package/dist/rpc/types.d.cts +0 -36
- package/dist/rpc/types.d.ts +0 -36
- package/dist/rpc/types.js +0 -17
- package/dist/rpc/uiautomator.cjs +0 -5446
- package/dist/rpc/uiautomator.d.cts +0 -618
- package/dist/rpc/uiautomator.js +0 -113
- package/dist/rpc/util.cjs +0 -1212
- package/dist/rpc/util.d.cts +0 -103
- package/dist/rpc/util.d.ts +0 -103
- package/dist/rpc/util.js +0 -41
- package/dist/rpc/wifi.cjs +0 -1015
- package/dist/rpc/wifi.d.cts +0 -84
- package/dist/rpc/wifi.js +0 -25
package/dist/main.d.cts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { UtilClient, UiAutomatorClient, ApplicationClient, DebugClient, FileClient, LockClient, ProxyClient, SelinuxPolicyClient, ShellClient, StatusClient, StorageClient, WifiClient, SettingsClient } from './rpc/services.cjs';
|
|
2
|
-
import './rpc/storage.cjs';
|
|
3
|
-
import '@bufbuild/protobuf/wire';
|
|
4
|
-
import './rpc/file.cjs';
|
|
5
|
-
import './rpc/util.cjs';
|
|
6
|
-
import './rpc/wifi.cjs';
|
|
7
|
-
import './rpc/uiautomator.cjs';
|
|
8
|
-
import './rpc/status.cjs';
|
|
9
|
-
import './rpc/shell.cjs';
|
|
10
|
-
import './rpc/settings.cjs';
|
|
11
|
-
import './rpc/policy.cjs';
|
|
12
|
-
import './rpc/proxy.cjs';
|
|
13
|
-
import './rpc/application.cjs';
|
|
14
|
-
import './rpc/debug.cjs';
|
|
15
|
-
import './rpc/google/protobuf/empty.cjs';
|
|
16
|
-
import './rpc/types.cjs';
|
|
17
|
-
import 'nice-grpc-common';
|
|
18
|
-
|
|
19
|
-
declare class Device {
|
|
20
|
-
readonly Util: UtilClient;
|
|
21
|
-
readonly UiAutomator: UiAutomatorClient;
|
|
22
|
-
readonly Application: ApplicationClient;
|
|
23
|
-
readonly Debug: DebugClient;
|
|
24
|
-
readonly File: FileClient;
|
|
25
|
-
readonly Lock: LockClient;
|
|
26
|
-
readonly Proxy: ProxyClient;
|
|
27
|
-
readonly Selinux: SelinuxPolicyClient;
|
|
28
|
-
readonly Shell: ShellClient;
|
|
29
|
-
readonly Status: StatusClient;
|
|
30
|
-
readonly Storage: StorageClient;
|
|
31
|
-
readonly Wifi: WifiClient;
|
|
32
|
-
readonly Settings: SettingsClient;
|
|
33
|
-
private channel;
|
|
34
|
-
constructor(host?: string, prot?: number);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { Device };
|
package/dist/main.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ApplicationDefinition,
|
|
3
|
-
DebugDefinition,
|
|
4
|
-
FileDefinition,
|
|
5
|
-
LockDefinition,
|
|
6
|
-
ProxyDefinition,
|
|
7
|
-
SelinuxPolicyDefinition,
|
|
8
|
-
SettingsDefinition,
|
|
9
|
-
ShellDefinition,
|
|
10
|
-
StatusDefinition,
|
|
11
|
-
StorageDefinition,
|
|
12
|
-
UiAutomatorDefinition,
|
|
13
|
-
UtilDefinition,
|
|
14
|
-
WifiDefinition
|
|
15
|
-
} from "./chunk-76Y3OVVH.js";
|
|
16
|
-
import "./chunk-QXMPY6EE.js";
|
|
17
|
-
import "./chunk-6HD35RPW.js";
|
|
18
|
-
import "./chunk-4AHM55IO.js";
|
|
19
|
-
import "./chunk-X4LTH2UN.js";
|
|
20
|
-
import "./chunk-ZXF5DGTC.js";
|
|
21
|
-
import "./chunk-ORXTTWPB.js";
|
|
22
|
-
import "./chunk-7YGA6EOV.js";
|
|
23
|
-
import "./chunk-O52JGDU7.js";
|
|
24
|
-
import "./chunk-H7Z6XFBF.js";
|
|
25
|
-
import "./chunk-WFQEBPE6.js";
|
|
26
|
-
import "./chunk-7XF22HAW.js";
|
|
27
|
-
import "./chunk-XAX5BZL3.js";
|
|
28
|
-
import {
|
|
29
|
-
Inject
|
|
30
|
-
} from "./chunk-OZJH6SR7.js";
|
|
31
|
-
import "./chunk-SBFKX3ZY.js";
|
|
32
|
-
import "./chunk-3JBDAA2H.js";
|
|
33
|
-
import "./chunk-KJKSI2WL.js";
|
|
34
|
-
import {
|
|
35
|
-
__decorateClass
|
|
36
|
-
} from "./chunk-ADS4GRIL.js";
|
|
37
|
-
|
|
38
|
-
// src/main.ts
|
|
39
|
-
import { createChannel, ChannelCredentials } from "nice-grpc";
|
|
40
|
-
var Device = class {
|
|
41
|
-
/**
|
|
42
|
-
* save common rpc channel
|
|
43
|
-
*/
|
|
44
|
-
channel;
|
|
45
|
-
constructor(host = "127.0.0.1", prot = 65e3) {
|
|
46
|
-
const address = Array(host, prot).join(":");
|
|
47
|
-
const credentials = ChannelCredentials.createInsecure();
|
|
48
|
-
this.channel = createChannel(address, credentials, {
|
|
49
|
-
["grpc.max_send_message_length"]: 64 * 1024 * 1024,
|
|
50
|
-
["grpc.max_receive_message_length"]: 128 * 1024 * 1024,
|
|
51
|
-
["grpc.keepalive_time_ms"]: 30 * 1e3,
|
|
52
|
-
["grpc.keepalive_timeout_ms"]: 15 * 1e3,
|
|
53
|
-
["grpc.keepalive_permit_without_calls"]: 1,
|
|
54
|
-
["grpc.max_pings_without_data"]: 0,
|
|
55
|
-
["grpc.enable_http_proxy"]: 0,
|
|
56
|
-
["grpc.service_config"]: JSON.stringify({
|
|
57
|
-
["methodConfig"]: [{
|
|
58
|
-
["name"]: [{}]
|
|
59
|
-
}],
|
|
60
|
-
["retryPolicy"]: {
|
|
61
|
-
["maxAttempts"]: 5,
|
|
62
|
-
["retryableStatusCodes"]: ["UNAVAILABLE"],
|
|
63
|
-
["backoffMultiplier"]: 2,
|
|
64
|
-
["initialBackoff"]: "0.5s",
|
|
65
|
-
["maxBackoff"]: "15s"
|
|
66
|
-
}
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
__decorateClass([
|
|
72
|
-
Inject(UtilDefinition)
|
|
73
|
-
], Device.prototype, "Util", 2);
|
|
74
|
-
__decorateClass([
|
|
75
|
-
Inject(UiAutomatorDefinition)
|
|
76
|
-
], Device.prototype, "UiAutomator", 2);
|
|
77
|
-
__decorateClass([
|
|
78
|
-
Inject(ApplicationDefinition)
|
|
79
|
-
], Device.prototype, "Application", 2);
|
|
80
|
-
__decorateClass([
|
|
81
|
-
Inject(DebugDefinition)
|
|
82
|
-
], Device.prototype, "Debug", 2);
|
|
83
|
-
__decorateClass([
|
|
84
|
-
Inject(FileDefinition)
|
|
85
|
-
], Device.prototype, "File", 2);
|
|
86
|
-
__decorateClass([
|
|
87
|
-
Inject(LockDefinition)
|
|
88
|
-
], Device.prototype, "Lock", 2);
|
|
89
|
-
__decorateClass([
|
|
90
|
-
Inject(ProxyDefinition)
|
|
91
|
-
], Device.prototype, "Proxy", 2);
|
|
92
|
-
__decorateClass([
|
|
93
|
-
Inject(SelinuxPolicyDefinition)
|
|
94
|
-
], Device.prototype, "Selinux", 2);
|
|
95
|
-
__decorateClass([
|
|
96
|
-
Inject(ShellDefinition)
|
|
97
|
-
], Device.prototype, "Shell", 2);
|
|
98
|
-
__decorateClass([
|
|
99
|
-
Inject(StatusDefinition)
|
|
100
|
-
], Device.prototype, "Status", 2);
|
|
101
|
-
__decorateClass([
|
|
102
|
-
Inject(StorageDefinition)
|
|
103
|
-
], Device.prototype, "Storage", 2);
|
|
104
|
-
__decorateClass([
|
|
105
|
-
Inject(WifiDefinition)
|
|
106
|
-
], Device.prototype, "Wifi", 2);
|
|
107
|
-
__decorateClass([
|
|
108
|
-
Inject(SettingsDefinition)
|
|
109
|
-
], Device.prototype, "Settings", 2);
|
|
110
|
-
export {
|
|
111
|
-
Device
|
|
112
|
-
};
|