{"version":3,"sources":["../../../packages/core/rpc/rpc-inbound-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,gBAAgB;IACzB;;;;;;;;;OASG;WACW,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC;IAI7G;;;;;;;;;;OAUG;WACW,WAAW,CAAC,KAAK,EAAE,OAAO,EAChC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC;CAGzC","file":"rpc-inbound-client.d.ts","sourcesContent":["import { Rpc } from './rpc';\r\nimport { RpcChannel } from './rpc-channel';\r\nimport { RpcInbound } from './rpc-inbound';\r\n\r\nexport class RpcInboundClient {\r\n    /**\r\n     * The generic command to make inbound request of RPC.\r\n     * (From module to shell or from child to parent window.)\r\n     *\r\n     * @param rpc the rpc instance.\r\n     * @param command the command name.\r\n     * @param version the version string.\r\n     * @param data the TData object.\r\n     * @return Promise<TResult> the promise object.\r\n     */\r\n    public static call<TData, TResult>(rpc: Rpc, command: string, version: string, data: TData): Promise<TResult> {\r\n        return rpc.rpcManager.rpcChannel.post<TData, TResult>(rpc.rpcManager.rpcInbound, { command, version, data });\r\n    }\r\n\r\n    /**\r\n     * The generic command to make inbound request of inbound instance.\r\n     * (From shell to module or from parent to child window.)\r\n     *\r\n     * @param rpcChannel the rpc channel instance.\r\n     * @param inbound the RPC inbound instance.\r\n     * @param command the command name.\r\n     * @param version the version string.\r\n     * @param data the TData object.\r\n     * @return Promise<TResult> the promise object.\r\n     */\r\n    public static callInbound<TData, TResult>(\r\n            rpcChannel: RpcChannel,\r\n            inbound: RpcInbound,\r\n            command: string,\r\n            version: string,\r\n            data: TData): Promise<TResult> {\r\n        return rpcChannel.post<TData, TResult>(inbound, { command, version, data });\r\n    }\r\n}\r\n"]}