/** * Send an SMS * @example * sendSMS({ * from: 'OpenFn-Test-01', * to: '233538675309', * content: 'hi there, this is OpenFn using the new Hubtel adaptor', * }); * @function * @public * @param {object} data - An object with `from`, `to`, and `content` attributes * @param {RequestOptions} options - Optional hubtel options * @returns {Operation} * @state {HttpState} */ export function sendSMS(data: object, options: RequestOptions): Operation; /** * Make a general HTTP request * @example * request("POST", "patient", { "name": "Bukayo" }); * @function * @public * @param {string} method - HTTP method to use * @param {string} path - Path to resource * @param {object} body - Object which will be attached to the POST body * @param {RequestOptions} options - Optional request options * @returns {Operation} * @state {HttpState} */ export function request(method: string, path: string, body: object, options?: RequestOptions): Operation; /** * State object */ export type HttpState = { /** * - the parsed response body */ data: any; /** * - the response from the HTTP server, including headers, statusCode, body, etc */ response: any; /** * - an array of all previous data objects used in the Job */ references: any; }; /** * Options provided to the HTTP request */ export type RequestOptions = any; export { dataPath, dataValue, dateFns, cursor, each, field, fields, fn, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";