@dxfeed/dxlink-console-rpc 0.0.0-stage → 0.10.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/build/index.d.mts +56 -0
- package/build/index.d.ts +56 -0
- package/build/index.js +806 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +775 -0
- package/build/index.mjs.map +1 -0
- package/package.json +84 -3
- package/README.md +0 -3
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as _dxfeed_dxlink_console_core from '@dxfeed/dxlink-console-core';
|
|
2
|
+
import { DescService, DescMethod, Message, FileRegistry } from '@bufbuild/protobuf';
|
|
3
|
+
|
|
4
|
+
interface RpcChannelPluginOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Descriptor-set endpoint the request form starts with.
|
|
7
|
+
*
|
|
8
|
+
* Supplied at composition rather than read from the console profile, which is why neither
|
|
9
|
+
* the channels area nor the profile has to know that descriptor sets exist.
|
|
10
|
+
*/
|
|
11
|
+
descriptorSetUrl?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Pin that endpoint: the field renders read-only, as a locked WebSocket URL does.
|
|
14
|
+
*
|
|
15
|
+
* Belongs here rather than in the profile's `locked` list for the same reason as the URL
|
|
16
|
+
* itself — it is this service's setting, and core has no vocabulary for it.
|
|
17
|
+
*/
|
|
18
|
+
locked?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** The RPC service: call a method from a protobuf descriptor set. */
|
|
21
|
+
declare const rpcChannelPlugin: ({ descriptorSetUrl, locked, }?: RpcChannelPluginOptions) => _dxfeed_dxlink_console_core.ErasedChannelPlugin;
|
|
22
|
+
|
|
23
|
+
/** Config an RPC channel is opened with. */
|
|
24
|
+
interface RpcConfig {
|
|
25
|
+
service: DescService;
|
|
26
|
+
method: DescMethod;
|
|
27
|
+
/**
|
|
28
|
+
* The request to open the channel with, already parsed against `method.input`.
|
|
29
|
+
*
|
|
30
|
+
* Parsing happens in the request form, where a malformed request can still be corrected;
|
|
31
|
+
* by the time a channel is opened the message is known to be valid.
|
|
32
|
+
*/
|
|
33
|
+
request: Message;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* RPC channel-request parameters.
|
|
37
|
+
*
|
|
38
|
+
* The registry is held here rather than re-fetched per dialog open, so a descriptor set is
|
|
39
|
+
* loaded once and several channels can be opened against it.
|
|
40
|
+
*/
|
|
41
|
+
interface RpcRequest {
|
|
42
|
+
/** Descriptor-set endpoint, kept between opens. */
|
|
43
|
+
url: string;
|
|
44
|
+
/** Registry built from the loaded descriptor set; null until one is loaded. */
|
|
45
|
+
registry: FileRegistry | null;
|
|
46
|
+
/** Where the loaded registry came from — a URL or a file name. */
|
|
47
|
+
source: string | null;
|
|
48
|
+
/** Fully qualified name of the selected service. */
|
|
49
|
+
serviceName: string;
|
|
50
|
+
/** ECMAScript name of the selected method, as `DescService.method` keys it. */
|
|
51
|
+
methodName: string;
|
|
52
|
+
/** The request message being edited, as protobuf-JSON. */
|
|
53
|
+
json: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { type RpcChannelPluginOptions, type RpcConfig, type RpcRequest, rpcChannelPlugin };
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as _dxfeed_dxlink_console_core from '@dxfeed/dxlink-console-core';
|
|
2
|
+
import { DescService, DescMethod, Message, FileRegistry } from '@bufbuild/protobuf';
|
|
3
|
+
|
|
4
|
+
interface RpcChannelPluginOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Descriptor-set endpoint the request form starts with.
|
|
7
|
+
*
|
|
8
|
+
* Supplied at composition rather than read from the console profile, which is why neither
|
|
9
|
+
* the channels area nor the profile has to know that descriptor sets exist.
|
|
10
|
+
*/
|
|
11
|
+
descriptorSetUrl?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Pin that endpoint: the field renders read-only, as a locked WebSocket URL does.
|
|
14
|
+
*
|
|
15
|
+
* Belongs here rather than in the profile's `locked` list for the same reason as the URL
|
|
16
|
+
* itself — it is this service's setting, and core has no vocabulary for it.
|
|
17
|
+
*/
|
|
18
|
+
locked?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** The RPC service: call a method from a protobuf descriptor set. */
|
|
21
|
+
declare const rpcChannelPlugin: ({ descriptorSetUrl, locked, }?: RpcChannelPluginOptions) => _dxfeed_dxlink_console_core.ErasedChannelPlugin;
|
|
22
|
+
|
|
23
|
+
/** Config an RPC channel is opened with. */
|
|
24
|
+
interface RpcConfig {
|
|
25
|
+
service: DescService;
|
|
26
|
+
method: DescMethod;
|
|
27
|
+
/**
|
|
28
|
+
* The request to open the channel with, already parsed against `method.input`.
|
|
29
|
+
*
|
|
30
|
+
* Parsing happens in the request form, where a malformed request can still be corrected;
|
|
31
|
+
* by the time a channel is opened the message is known to be valid.
|
|
32
|
+
*/
|
|
33
|
+
request: Message;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* RPC channel-request parameters.
|
|
37
|
+
*
|
|
38
|
+
* The registry is held here rather than re-fetched per dialog open, so a descriptor set is
|
|
39
|
+
* loaded once and several channels can be opened against it.
|
|
40
|
+
*/
|
|
41
|
+
interface RpcRequest {
|
|
42
|
+
/** Descriptor-set endpoint, kept between opens. */
|
|
43
|
+
url: string;
|
|
44
|
+
/** Registry built from the loaded descriptor set; null until one is loaded. */
|
|
45
|
+
registry: FileRegistry | null;
|
|
46
|
+
/** Where the loaded registry came from — a URL or a file name. */
|
|
47
|
+
source: string | null;
|
|
48
|
+
/** Fully qualified name of the selected service. */
|
|
49
|
+
serviceName: string;
|
|
50
|
+
/** ECMAScript name of the selected method, as `DescService.method` keys it. */
|
|
51
|
+
methodName: string;
|
|
52
|
+
/** The request message being edited, as protobuf-JSON. */
|
|
53
|
+
json: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { type RpcChannelPluginOptions, type RpcConfig, type RpcRequest, rpcChannelPlugin };
|