@openfn/language-kobotoolbox 4.2.2 → 4.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ast.json CHANGED
@@ -281,7 +281,7 @@
281
281
  "operation"
282
282
  ],
283
283
  "docs": {
284
- "description": "A custom operation that will only execute the function if the condition returns true",
284
+ "description": "Execute a function only when the condition returns true",
285
285
  "tags": [
286
286
  {
287
287
  "title": "public",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-kobotoolbox",
3
3
  "label": "KoboToolbox",
4
- "version": "4.2.2",
4
+ "version": "4.2.4",
5
5
  "description": "OpenFn adaptor for KoboToolbox",
6
6
  "homepage": "https://docs.openfn.org",
7
7
  "repository": {
@@ -18,7 +18,7 @@
18
18
  "configuration-schema.json"
19
19
  ],
20
20
  "dependencies": {
21
- "@openfn/language-common": "3.0.2"
21
+ "@openfn/language-common": "3.1.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "assertion-error": "^1.0.1",
package/types/http.d.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  * @typedef {Object} HTTPRequestOptions
12
12
  * @property {object} query - An object of query parameters to be encoded into the URL
13
13
  * @property {object} headers - An object of all request headers
14
- * @property {object} body - The request body (as JSON)
14
+ * @property {object} data - The request body data (as JSON)
15
15
  * @property {number} maxRedirections - The maximum number of redirects to follow
16
16
  * @property {string} [parseAs='json'] - The response format to parse (e.g., 'json', 'text', or 'stream')
17
17
  */
@@ -19,7 +19,7 @@
19
19
  * Make a HTTP request to any KoboToolbox endpoint
20
20
  * @example <caption>Bulk updating of submissions</caption>
21
21
  * http.request("PATCH", `assets/${$.form_uid}/data/bulk/`, {
22
- * body: {
22
+ * data: {
23
23
  * submission_ids: [$.data.submission_id],
24
24
  * data: {
25
25
  * Transaction_status: "success",
@@ -102,9 +102,9 @@ export type HTTPRequestOptions = {
102
102
  */
103
103
  headers: object;
104
104
  /**
105
- * - The request body (as JSON)
105
+ * - The request body data (as JSON)
106
106
  */
107
- body: object;
107
+ data: object;
108
108
  /**
109
109
  * - The maximum number of redirects to follow
110
110
  */