Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Releases: OpenFn/language-kobotoolbox

Lock to @openfn/language-common#1.1.0

25 Jan 07:46
Compare
Choose a tag to compare

Updates on getForm helper function and tests

08 Jan 11:26
Compare
Choose a tag to compare
/**
 * Make a request to get the list of forms
 * @example
 *   getForms(state => {
 *      console.log(state.data);
 *      return state;
 *   });
 * @constructor
 * @param {function} callback - callback to execute after fetching form list.
 * @returns {Operation}
 */

Initial release

06 Jan 07:03
Compare
Choose a tag to compare

Initial working release for getForms and getSubmissions:

/**
 * Make a request to get the list of forms
 * @example
 *   getForms({}, state => {
 *      console.log(state.data);
 *      return state;
 *   });
 * @constructor
 * @param {function} callback - callback to execute after fetching form list.
 * @returns {Operation}
 */

/**
 * Get submissions for a specific form
 * @example
 *   getSubmissions('aXecHjmbATuF6iGFmvBLBX', {}, state => {
 *      console.log(state.data);
 *      return state;
 *   });
 * @constructor
 * @param {string} formId - id of the form
 * @param {object} params - data to make the fetch or filter
 * @returns {Operation}
 */