node-ipconfig 1.0.0 → 1.0.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/LICENSE +21 -21
- package/README.md +146 -135
- package/docs/API.md +134 -134
- package/package.json +5 -2
- package/src/command.js +117 -117
- package/src/format.js +119 -119
- package/src/index.cjs +64 -64
- package/src/index.d.cts +92 -92
- package/src/index.d.ts +132 -132
- package/src/index.js +244 -244
- package/src/parser.cjs +3 -3
- package/src/parser.d.cts +6 -6
- package/src/parser.d.ts +2 -2
- package/src/parser.js +182 -182
package/src/index.d.cts
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
declare namespace nodeIpconfig {
|
|
2
|
-
interface QueryOptions {
|
|
3
|
-
all?: boolean;
|
|
4
|
-
timeout?: number;
|
|
5
|
-
signal?: AbortSignal;
|
|
6
|
-
encoding?: BufferEncoding;
|
|
7
|
-
rawResult?: boolean;
|
|
8
|
-
}
|
|
9
|
-
type ConfigFormat = "json" | "xml" | "yaml" | "csv" | "ndjson";
|
|
10
|
-
interface ConfigOptions extends QueryOptions {
|
|
11
|
-
format?: ConfigFormat;
|
|
12
|
-
}
|
|
13
|
-
interface ExecutionOptions {
|
|
14
|
-
timeout?: number;
|
|
15
|
-
signal?: AbortSignal;
|
|
16
|
-
encoding?: BufferEncoding;
|
|
17
|
-
rawResult?: boolean;
|
|
18
|
-
}
|
|
19
|
-
interface Adapter {
|
|
20
|
-
name: string;
|
|
21
|
-
type: string;
|
|
22
|
-
addresses: Array<{
|
|
23
|
-
address: string;
|
|
24
|
-
family: 4 | 6;
|
|
25
|
-
scope?: string;
|
|
26
|
-
prefixLength?: number;
|
|
27
|
-
}>;
|
|
28
|
-
ipv4: string[];
|
|
29
|
-
ipv6: string[];
|
|
30
|
-
dnsServers: string[];
|
|
31
|
-
defaultGateways: string[];
|
|
32
|
-
[field: string]: unknown;
|
|
33
|
-
}
|
|
34
|
-
interface Config {
|
|
35
|
-
hostname?: string;
|
|
36
|
-
adapters: Adapter[];
|
|
37
|
-
}
|
|
38
|
-
interface Result {
|
|
39
|
-
stdout: string;
|
|
40
|
-
stderr: string;
|
|
41
|
-
exitCode: number;
|
|
42
|
-
}
|
|
43
|
-
interface Api {
|
|
44
|
-
execute(
|
|
45
|
-
command: string,
|
|
46
|
-
options?: ExecutionOptions & { adapter?: string; classId?: string },
|
|
47
|
-
): Promise<string | Result>;
|
|
48
|
-
getRawOutput(options?: QueryOptions): Promise<string | Result>;
|
|
49
|
-
getConfig<F extends ConfigFormat = "json">(
|
|
50
|
-
options?: ConfigOptions & { format?: F },
|
|
51
|
-
): Promise<F extends "json" ? Config : string>;
|
|
52
|
-
getAdapters(options?: QueryOptions): Promise<Adapter[]>;
|
|
53
|
-
getAdapter(
|
|
54
|
-
nameOrIndex: string | number,
|
|
55
|
-
options?: QueryOptions,
|
|
56
|
-
): Promise<Adapter>;
|
|
57
|
-
getIPv4(): Promise<string[]>;
|
|
58
|
-
getIPv6(): Promise<string[]>;
|
|
59
|
-
getDefaultGateway(): Promise<Array<{ adapter: string; address: string }>>;
|
|
60
|
-
getDnsServers(): Promise<Array<{ adapter: string; address: string }>>;
|
|
61
|
-
getMacAddresses(): Promise<Array<{ adapter: string; address: string }>>;
|
|
62
|
-
getHostname(): Promise<string>;
|
|
63
|
-
flushDns(options?: ExecutionOptions): Promise<string | Result>;
|
|
64
|
-
displayDns(options?: ExecutionOptions): Promise<string | Result>;
|
|
65
|
-
getDnsCache(options?: ExecutionOptions): Promise<string | Result>;
|
|
66
|
-
registerDns(options?: ExecutionOptions): Promise<string | Result>;
|
|
67
|
-
release(
|
|
68
|
-
options?: ExecutionOptions & { adapter?: string; ipv6?: boolean },
|
|
69
|
-
): Promise<string | Result>;
|
|
70
|
-
renew(
|
|
71
|
-
options?: ExecutionOptions & { adapter?: string; ipv6?: boolean },
|
|
72
|
-
): Promise<string | Result>;
|
|
73
|
-
showClassId(
|
|
74
|
-
options: ExecutionOptions & { adapter: string },
|
|
75
|
-
): Promise<string | Result>;
|
|
76
|
-
setClassId(
|
|
77
|
-
options: ExecutionOptions & { adapter: string; classId?: string },
|
|
78
|
-
): Promise<string | Result>;
|
|
79
|
-
showClassId6(
|
|
80
|
-
options: ExecutionOptions & { adapter: string },
|
|
81
|
-
): Promise<string | Result>;
|
|
82
|
-
setClassId6(
|
|
83
|
-
options: ExecutionOptions & { adapter: string; classId?: string },
|
|
84
|
-
): Promise<string | Result>;
|
|
85
|
-
}
|
|
86
|
-
interface Module extends Api {
|
|
87
|
-
parseIpconfig(output: string): Promise<Config>;
|
|
88
|
-
createIpconfig(options?: { platform?: string; exec?: Function }): Api;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
declare const api: nodeIpconfig.Module;
|
|
92
|
-
export = api;
|
|
1
|
+
declare namespace nodeIpconfig {
|
|
2
|
+
interface QueryOptions {
|
|
3
|
+
all?: boolean;
|
|
4
|
+
timeout?: number;
|
|
5
|
+
signal?: AbortSignal;
|
|
6
|
+
encoding?: BufferEncoding;
|
|
7
|
+
rawResult?: boolean;
|
|
8
|
+
}
|
|
9
|
+
type ConfigFormat = "json" | "xml" | "yaml" | "csv" | "ndjson";
|
|
10
|
+
interface ConfigOptions extends QueryOptions {
|
|
11
|
+
format?: ConfigFormat;
|
|
12
|
+
}
|
|
13
|
+
interface ExecutionOptions {
|
|
14
|
+
timeout?: number;
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
encoding?: BufferEncoding;
|
|
17
|
+
rawResult?: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface Adapter {
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
addresses: Array<{
|
|
23
|
+
address: string;
|
|
24
|
+
family: 4 | 6;
|
|
25
|
+
scope?: string;
|
|
26
|
+
prefixLength?: number;
|
|
27
|
+
}>;
|
|
28
|
+
ipv4: string[];
|
|
29
|
+
ipv6: string[];
|
|
30
|
+
dnsServers: string[];
|
|
31
|
+
defaultGateways: string[];
|
|
32
|
+
[field: string]: unknown;
|
|
33
|
+
}
|
|
34
|
+
interface Config {
|
|
35
|
+
hostname?: string;
|
|
36
|
+
adapters: Adapter[];
|
|
37
|
+
}
|
|
38
|
+
interface Result {
|
|
39
|
+
stdout: string;
|
|
40
|
+
stderr: string;
|
|
41
|
+
exitCode: number;
|
|
42
|
+
}
|
|
43
|
+
interface Api {
|
|
44
|
+
execute(
|
|
45
|
+
command: string,
|
|
46
|
+
options?: ExecutionOptions & { adapter?: string; classId?: string },
|
|
47
|
+
): Promise<string | Result>;
|
|
48
|
+
getRawOutput(options?: QueryOptions): Promise<string | Result>;
|
|
49
|
+
getConfig<F extends ConfigFormat = "json">(
|
|
50
|
+
options?: ConfigOptions & { format?: F },
|
|
51
|
+
): Promise<F extends "json" ? Config : string>;
|
|
52
|
+
getAdapters(options?: QueryOptions): Promise<Adapter[]>;
|
|
53
|
+
getAdapter(
|
|
54
|
+
nameOrIndex: string | number,
|
|
55
|
+
options?: QueryOptions,
|
|
56
|
+
): Promise<Adapter>;
|
|
57
|
+
getIPv4(): Promise<string[]>;
|
|
58
|
+
getIPv6(): Promise<string[]>;
|
|
59
|
+
getDefaultGateway(): Promise<Array<{ adapter: string; address: string }>>;
|
|
60
|
+
getDnsServers(): Promise<Array<{ adapter: string; address: string }>>;
|
|
61
|
+
getMacAddresses(): Promise<Array<{ adapter: string; address: string }>>;
|
|
62
|
+
getHostname(): Promise<string>;
|
|
63
|
+
flushDns(options?: ExecutionOptions): Promise<string | Result>;
|
|
64
|
+
displayDns(options?: ExecutionOptions): Promise<string | Result>;
|
|
65
|
+
getDnsCache(options?: ExecutionOptions): Promise<string | Result>;
|
|
66
|
+
registerDns(options?: ExecutionOptions): Promise<string | Result>;
|
|
67
|
+
release(
|
|
68
|
+
options?: ExecutionOptions & { adapter?: string; ipv6?: boolean },
|
|
69
|
+
): Promise<string | Result>;
|
|
70
|
+
renew(
|
|
71
|
+
options?: ExecutionOptions & { adapter?: string; ipv6?: boolean },
|
|
72
|
+
): Promise<string | Result>;
|
|
73
|
+
showClassId(
|
|
74
|
+
options: ExecutionOptions & { adapter: string },
|
|
75
|
+
): Promise<string | Result>;
|
|
76
|
+
setClassId(
|
|
77
|
+
options: ExecutionOptions & { adapter: string; classId?: string },
|
|
78
|
+
): Promise<string | Result>;
|
|
79
|
+
showClassId6(
|
|
80
|
+
options: ExecutionOptions & { adapter: string },
|
|
81
|
+
): Promise<string | Result>;
|
|
82
|
+
setClassId6(
|
|
83
|
+
options: ExecutionOptions & { adapter: string; classId?: string },
|
|
84
|
+
): Promise<string | Result>;
|
|
85
|
+
}
|
|
86
|
+
interface Module extends Api {
|
|
87
|
+
parseIpconfig(output: string): Promise<Config>;
|
|
88
|
+
createIpconfig(options?: { platform?: string; exec?: Function }): Api;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
declare const api: nodeIpconfig.Module;
|
|
92
|
+
export = api;
|
package/src/index.d.ts
CHANGED
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
export type AddressFamily = 4 | 6;
|
|
2
|
-
export interface IpAddress {
|
|
3
|
-
address: string;
|
|
4
|
-
family: AddressFamily;
|
|
5
|
-
scope?: "link-local";
|
|
6
|
-
prefixLength?: number;
|
|
7
|
-
}
|
|
8
|
-
export interface Adapter {
|
|
9
|
-
name: string;
|
|
10
|
-
type: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
macAddress?: string;
|
|
13
|
-
addresses: IpAddress[];
|
|
14
|
-
ipv4: string[];
|
|
15
|
-
ipv6: string[];
|
|
16
|
-
ipv4Address?: string;
|
|
17
|
-
ipv6Address?: string;
|
|
18
|
-
linkLocalIpv6Address?: string;
|
|
19
|
-
subnetMask?: string;
|
|
20
|
-
ipv4PrefixLength?: number;
|
|
21
|
-
defaultGateways: string[];
|
|
22
|
-
dnsServers: string[];
|
|
23
|
-
dhcpEnabled?: boolean | string;
|
|
24
|
-
autoconfigurationEnabled?: boolean | string;
|
|
25
|
-
dhcpServer?: string;
|
|
26
|
-
leaseObtained?: string;
|
|
27
|
-
leaseExpires?: string;
|
|
28
|
-
connectionSpecificDnsSuffix: string | null;
|
|
29
|
-
mediaState?: string;
|
|
30
|
-
fields?: Record<string, string>;
|
|
31
|
-
[field: string]: unknown;
|
|
32
|
-
}
|
|
33
|
-
export interface Config {
|
|
34
|
-
hostname?: string;
|
|
35
|
-
adapters: Adapter[];
|
|
36
|
-
}
|
|
37
|
-
export type ConfigFormat = "json" | "xml" | "yaml" | "csv" | "ndjson";
|
|
38
|
-
export type FormattedConfig<F extends ConfigFormat> = F extends "json"
|
|
39
|
-
? Config
|
|
40
|
-
: string;
|
|
41
|
-
export interface ExecutionOptions {
|
|
42
|
-
timeout?: number;
|
|
43
|
-
signal?: AbortSignal;
|
|
44
|
-
encoding?: BufferEncoding;
|
|
45
|
-
rawResult?: boolean;
|
|
46
|
-
}
|
|
47
|
-
export interface QueryOptions extends ExecutionOptions {
|
|
48
|
-
all?: boolean;
|
|
49
|
-
}
|
|
50
|
-
export interface ConfigOptions extends QueryOptions {
|
|
51
|
-
format?: ConfigFormat;
|
|
52
|
-
}
|
|
53
|
-
export interface CommandOptions extends ExecutionOptions {
|
|
54
|
-
adapter?: string;
|
|
55
|
-
classId?: string;
|
|
56
|
-
}
|
|
57
|
-
export type IpconfigCommand =
|
|
58
|
-
| "config"
|
|
59
|
-
| "all"
|
|
60
|
-
| "release"
|
|
61
|
-
| "release6"
|
|
62
|
-
| "renew"
|
|
63
|
-
| "renew6"
|
|
64
|
-
| "flushdns"
|
|
65
|
-
| "displaydns"
|
|
66
|
-
| "registerdns"
|
|
67
|
-
| "showclassid"
|
|
68
|
-
| "setclassid"
|
|
69
|
-
| "showclassid6"
|
|
70
|
-
| "setclassid6";
|
|
71
|
-
export interface ExecutionResult {
|
|
72
|
-
stdout: string;
|
|
73
|
-
stderr: string;
|
|
74
|
-
exitCode: number;
|
|
75
|
-
}
|
|
76
|
-
export class IpconfigError extends Error {
|
|
77
|
-
code: string;
|
|
78
|
-
command?: string[];
|
|
79
|
-
stdout: string;
|
|
80
|
-
stderr: string;
|
|
81
|
-
exitCode?: number;
|
|
82
|
-
}
|
|
83
|
-
export function parseIpconfig(output: string): Config;
|
|
84
|
-
export function createIpconfig(options?: {
|
|
85
|
-
platform?: NodeJS.Platform | string;
|
|
86
|
-
exec?: Function;
|
|
87
|
-
}): IpconfigApi;
|
|
88
|
-
export interface IpconfigApi {
|
|
89
|
-
execute(
|
|
90
|
-
command: IpconfigCommand,
|
|
91
|
-
options?: CommandOptions,
|
|
92
|
-
): Promise<string | ExecutionResult>;
|
|
93
|
-
getRawOutput(options?: QueryOptions): Promise<string | ExecutionResult>;
|
|
94
|
-
getConfig<F extends ConfigFormat = "json">(
|
|
95
|
-
options?: ConfigOptions & { format?: F },
|
|
96
|
-
): Promise<FormattedConfig<F>>;
|
|
97
|
-
getAdapters(options?: QueryOptions): Promise<Adapter[]>;
|
|
98
|
-
getAdapter(
|
|
99
|
-
nameOrIndex: string | number,
|
|
100
|
-
options?: QueryOptions,
|
|
101
|
-
): Promise<Adapter>;
|
|
102
|
-
getIPv4(): Promise<string[]>;
|
|
103
|
-
getIPv6(): Promise<string[]>;
|
|
104
|
-
getDefaultGateway(): Promise<Array<{ adapter: string; address: string }>>;
|
|
105
|
-
getDnsServers(): Promise<Array<{ adapter: string; address: string }>>;
|
|
106
|
-
getMacAddresses(): Promise<Array<{ adapter: string; address: string }>>;
|
|
107
|
-
getHostname(): Promise<string>;
|
|
108
|
-
flushDns(options?: ExecutionOptions): Promise<string | ExecutionResult>;
|
|
109
|
-
displayDns(options?: ExecutionOptions): Promise<string | ExecutionResult>;
|
|
110
|
-
getDnsCache(options?: ExecutionOptions): Promise<string | ExecutionResult>;
|
|
111
|
-
registerDns(options?: ExecutionOptions): Promise<string | ExecutionResult>;
|
|
112
|
-
release(
|
|
113
|
-
options?: ExecutionOptions & { adapter?: string; ipv6?: boolean },
|
|
114
|
-
): Promise<string | ExecutionResult>;
|
|
115
|
-
renew(
|
|
116
|
-
options?: ExecutionOptions & { adapter?: string; ipv6?: boolean },
|
|
117
|
-
): Promise<string | ExecutionResult>;
|
|
118
|
-
showClassId(
|
|
119
|
-
options: ExecutionOptions & { adapter: string },
|
|
120
|
-
): Promise<string | ExecutionResult>;
|
|
121
|
-
setClassId(
|
|
122
|
-
options: ExecutionOptions & { adapter: string; classId?: string },
|
|
123
|
-
): Promise<string | ExecutionResult>;
|
|
124
|
-
showClassId6(
|
|
125
|
-
options: ExecutionOptions & { adapter: string },
|
|
126
|
-
): Promise<string | ExecutionResult>;
|
|
127
|
-
setClassId6(
|
|
128
|
-
options: ExecutionOptions & { adapter: string; classId?: string },
|
|
129
|
-
): Promise<string | ExecutionResult>;
|
|
130
|
-
}
|
|
131
|
-
export const ipconfig: IpconfigApi;
|
|
132
|
-
export default ipconfig;
|
|
1
|
+
export type AddressFamily = 4 | 6;
|
|
2
|
+
export interface IpAddress {
|
|
3
|
+
address: string;
|
|
4
|
+
family: AddressFamily;
|
|
5
|
+
scope?: "link-local";
|
|
6
|
+
prefixLength?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface Adapter {
|
|
9
|
+
name: string;
|
|
10
|
+
type: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
macAddress?: string;
|
|
13
|
+
addresses: IpAddress[];
|
|
14
|
+
ipv4: string[];
|
|
15
|
+
ipv6: string[];
|
|
16
|
+
ipv4Address?: string;
|
|
17
|
+
ipv6Address?: string;
|
|
18
|
+
linkLocalIpv6Address?: string;
|
|
19
|
+
subnetMask?: string;
|
|
20
|
+
ipv4PrefixLength?: number;
|
|
21
|
+
defaultGateways: string[];
|
|
22
|
+
dnsServers: string[];
|
|
23
|
+
dhcpEnabled?: boolean | string;
|
|
24
|
+
autoconfigurationEnabled?: boolean | string;
|
|
25
|
+
dhcpServer?: string;
|
|
26
|
+
leaseObtained?: string;
|
|
27
|
+
leaseExpires?: string;
|
|
28
|
+
connectionSpecificDnsSuffix: string | null;
|
|
29
|
+
mediaState?: string;
|
|
30
|
+
fields?: Record<string, string>;
|
|
31
|
+
[field: string]: unknown;
|
|
32
|
+
}
|
|
33
|
+
export interface Config {
|
|
34
|
+
hostname?: string;
|
|
35
|
+
adapters: Adapter[];
|
|
36
|
+
}
|
|
37
|
+
export type ConfigFormat = "json" | "xml" | "yaml" | "csv" | "ndjson";
|
|
38
|
+
export type FormattedConfig<F extends ConfigFormat> = F extends "json"
|
|
39
|
+
? Config
|
|
40
|
+
: string;
|
|
41
|
+
export interface ExecutionOptions {
|
|
42
|
+
timeout?: number;
|
|
43
|
+
signal?: AbortSignal;
|
|
44
|
+
encoding?: BufferEncoding;
|
|
45
|
+
rawResult?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface QueryOptions extends ExecutionOptions {
|
|
48
|
+
all?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface ConfigOptions extends QueryOptions {
|
|
51
|
+
format?: ConfigFormat;
|
|
52
|
+
}
|
|
53
|
+
export interface CommandOptions extends ExecutionOptions {
|
|
54
|
+
adapter?: string;
|
|
55
|
+
classId?: string;
|
|
56
|
+
}
|
|
57
|
+
export type IpconfigCommand =
|
|
58
|
+
| "config"
|
|
59
|
+
| "all"
|
|
60
|
+
| "release"
|
|
61
|
+
| "release6"
|
|
62
|
+
| "renew"
|
|
63
|
+
| "renew6"
|
|
64
|
+
| "flushdns"
|
|
65
|
+
| "displaydns"
|
|
66
|
+
| "registerdns"
|
|
67
|
+
| "showclassid"
|
|
68
|
+
| "setclassid"
|
|
69
|
+
| "showclassid6"
|
|
70
|
+
| "setclassid6";
|
|
71
|
+
export interface ExecutionResult {
|
|
72
|
+
stdout: string;
|
|
73
|
+
stderr: string;
|
|
74
|
+
exitCode: number;
|
|
75
|
+
}
|
|
76
|
+
export class IpconfigError extends Error {
|
|
77
|
+
code: string;
|
|
78
|
+
command?: string[];
|
|
79
|
+
stdout: string;
|
|
80
|
+
stderr: string;
|
|
81
|
+
exitCode?: number;
|
|
82
|
+
}
|
|
83
|
+
export function parseIpconfig(output: string): Config;
|
|
84
|
+
export function createIpconfig(options?: {
|
|
85
|
+
platform?: NodeJS.Platform | string;
|
|
86
|
+
exec?: Function;
|
|
87
|
+
}): IpconfigApi;
|
|
88
|
+
export interface IpconfigApi {
|
|
89
|
+
execute(
|
|
90
|
+
command: IpconfigCommand,
|
|
91
|
+
options?: CommandOptions,
|
|
92
|
+
): Promise<string | ExecutionResult>;
|
|
93
|
+
getRawOutput(options?: QueryOptions): Promise<string | ExecutionResult>;
|
|
94
|
+
getConfig<F extends ConfigFormat = "json">(
|
|
95
|
+
options?: ConfigOptions & { format?: F },
|
|
96
|
+
): Promise<FormattedConfig<F>>;
|
|
97
|
+
getAdapters(options?: QueryOptions): Promise<Adapter[]>;
|
|
98
|
+
getAdapter(
|
|
99
|
+
nameOrIndex: string | number,
|
|
100
|
+
options?: QueryOptions,
|
|
101
|
+
): Promise<Adapter>;
|
|
102
|
+
getIPv4(): Promise<string[]>;
|
|
103
|
+
getIPv6(): Promise<string[]>;
|
|
104
|
+
getDefaultGateway(): Promise<Array<{ adapter: string; address: string }>>;
|
|
105
|
+
getDnsServers(): Promise<Array<{ adapter: string; address: string }>>;
|
|
106
|
+
getMacAddresses(): Promise<Array<{ adapter: string; address: string }>>;
|
|
107
|
+
getHostname(): Promise<string>;
|
|
108
|
+
flushDns(options?: ExecutionOptions): Promise<string | ExecutionResult>;
|
|
109
|
+
displayDns(options?: ExecutionOptions): Promise<string | ExecutionResult>;
|
|
110
|
+
getDnsCache(options?: ExecutionOptions): Promise<string | ExecutionResult>;
|
|
111
|
+
registerDns(options?: ExecutionOptions): Promise<string | ExecutionResult>;
|
|
112
|
+
release(
|
|
113
|
+
options?: ExecutionOptions & { adapter?: string; ipv6?: boolean },
|
|
114
|
+
): Promise<string | ExecutionResult>;
|
|
115
|
+
renew(
|
|
116
|
+
options?: ExecutionOptions & { adapter?: string; ipv6?: boolean },
|
|
117
|
+
): Promise<string | ExecutionResult>;
|
|
118
|
+
showClassId(
|
|
119
|
+
options: ExecutionOptions & { adapter: string },
|
|
120
|
+
): Promise<string | ExecutionResult>;
|
|
121
|
+
setClassId(
|
|
122
|
+
options: ExecutionOptions & { adapter: string; classId?: string },
|
|
123
|
+
): Promise<string | ExecutionResult>;
|
|
124
|
+
showClassId6(
|
|
125
|
+
options: ExecutionOptions & { adapter: string },
|
|
126
|
+
): Promise<string | ExecutionResult>;
|
|
127
|
+
setClassId6(
|
|
128
|
+
options: ExecutionOptions & { adapter: string; classId?: string },
|
|
129
|
+
): Promise<string | ExecutionResult>;
|
|
130
|
+
}
|
|
131
|
+
export const ipconfig: IpconfigApi;
|
|
132
|
+
export default ipconfig;
|