1 | import * as messages from "./messages.js";
|
2 | export const getStates = (connection) => connection.sendMessagePromise(messages.states());
|
3 | export const getServices = (connection) => connection.sendMessagePromise(messages.services());
|
4 | export const getConfig = (connection) => connection.sendMessagePromise(messages.config());
|
5 | export const getUser = (connection) => connection.sendMessagePromise(messages.user());
|
6 | export const callService = (connection, domain, service, serviceData) => connection.sendMessagePromise(messages.callService(domain, service, serviceData));
|