/** * Execute a sequence of operations. * Wraps `language-common/execute`, and prepends initial state for http. * @example * execute( * create('foo'), * delete('bar') * )(state) * @private * @param {Operations} operations - Operations to be performed. * @returns {Operation} */ export function execute(...operations: Operations): Operation; /** * Get a source repository in OCL * @public * @example * getMappings( * "MSFOCG", * "lime-demo", * { page: 1, exact_match: "off", verbose: false }, * (state) => { * // Add state oclMappings * const oclMappings = state.data; * return { ...state, data: {}, references: [], response: {}, oclMappings }; * } * ); * @function * @param {string} ownerId - An OCL user or organization * @param {string} repositoryId - An OCL collection id or source id * @param {{ownerType: string,repository: string,version: string, page: string }} [options] - Optional. `options` which can be passed to See more {@link https://api.openconceptlab.org/swagger/ on OCL swagger docs} * @param {function} callback - (Optional) callback function * @returns {Operation} */ export function getMappings(ownerId: string, repositoryId: string, options?: { ownerType: string; repository: string; version: string; page: string; }, callback?: Function): Operation; /** * Get a resource in OCL * @public * @example * get( * "orgs/MSFOCG/collections/lime-demo/HEAD/mappings", * { * page: 1, * exact_match: "off", * limit: 200, * verbose: false, * sortDesc: "_score", * }, * (state) => { * // Add state oclMappings * const oclMappings = state.data; * return { ...state, data: {}, references: [], response: {}, oclMappings }; * } * ); * @function * @param {string} path - Path to resource * @param {object} query - A query object that will limit what resources are retrieved when converted into request params. * @param {function} callback - (Optional) callback function * @returns {Operation} */ export function get(path: string, query: object, callback?: Function): Operation; export { combine, fn, fnIf, alterState, dataPath, dataValue, each, field, fields, lastReferenceValue, log, merge, sourceValue } from "@openfn/language-common";