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

Commit

Permalink
update inline doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhassane committed May 14, 2021
1 parent bda347e commit f6f58f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
10 changes: 4 additions & 6 deletions lib/Adaptor.js
Expand Up @@ -86,8 +86,6 @@ var _superagent = _interopRequireDefault(require("superagent"));

var _formData = _interopRequireDefault(require("form-data"));

var _url = require("url");

var _js2xmlparser = _interopRequireDefault(require("js2xmlparser"));

var _languageHttp = _interopRequireDefault(require("language-http"));
Expand All @@ -106,7 +104,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
* create('foo'),
* delete('bar')
* )(state)
* @function
* @constructor
* @param {Operations} operations - Operations to be performed.
* @returns {Operation}
*/
Expand All @@ -127,7 +125,7 @@ function execute(...operations) {
* Performs a post request
* @example
* clientPost(formData)
* @function
* @constructor
* @param {Object} formData - Form Data with auth params and body
* @returns {State}
*/
Expand Down Expand Up @@ -285,11 +283,11 @@ function submit(formData) {
};
}
/**
* Make a GET request to CommCare's Reports Api
* Make a GET request to CommCare's Reports API
* and POST the response to somewhere else.
* @public
* @example
* fetchReportData(reportId, params, postUrl)
* fetchReportData(reportId, params, postUrl)
* @constructor
* @param {String} reportId - API name of the report.
* @param {Object} params - Query params, incl: limit, offset, and custom report filters.
Expand Down
9 changes: 4 additions & 5 deletions src/Adaptor.js
Expand Up @@ -7,7 +7,6 @@ import {
} from '@openfn/language-common';
import request from 'superagent';
import FormData from 'form-data';
import { resolve as resolveUrl } from 'url';
import js2xmlparser from 'js2xmlparser';
import Adaptor from 'language-http';
import xlsx from 'xlsx';
Expand All @@ -20,7 +19,7 @@ import xlsx from 'xlsx';
* create('foo'),
* delete('bar')
* )(state)
* @function
* @constructor
* @param {Operations} operations - Operations to be performed.
* @returns {Operation}
*/
Expand All @@ -43,7 +42,7 @@ export function execute(...operations) {
* Performs a post request
* @example
* clientPost(formData)
* @function
* @constructor
* @param {Object} formData - Form Data with auth params and body
* @returns {State}
*/
Expand Down Expand Up @@ -194,11 +193,11 @@ export function submit(formData) {
}

/**
* Make a GET request to CommCare's Reports Api
* Make a GET request to CommCare's Reports API
* and POST the response to somewhere else.
* @public
* @example
* fetchReportData(reportId, params, postUrl)
* fetchReportData(reportId, params, postUrl)
* @constructor
* @param {String} reportId - API name of the report.
* @param {Object} params - Query params, incl: limit, offset, and custom report filters.
Expand Down

0 comments on commit f6f58f3

Please sign in to comment.