@openfn/language-commcare 1.5.0 → 1.5.2

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Language CommCare [![Build Status](https://travis-ci.org/OpenFn/language-commcare.svg?branch=master)](https://travis-ci.org/OpenFn/language-commcare)
1
+ # Language CommCare
2
2
 
3
3
  Language Pack for interacting with the CommCare API.
4
4
 
@@ -83,6 +83,7 @@ complex body target:
83
83
  ## Submitting data to CommCare HQ
84
84
 
85
85
  ### Submit an XLS file
86
+
86
87
  This function bulk submit a JSON object as xls file to CommCare HQ
87
88
 
88
89
  ```js
@@ -175,7 +176,8 @@ So the JSON emitted by your expression should look like this:
175
176
 
176
177
  ## Development
177
178
 
178
- Clone the [adaptors monorepo](https://github.com/OpenFn/adaptors). Follow the `Getting Started` guide inside to get set up.
179
+ Clone the [adaptors monorepo](https://github.com/OpenFn/adaptors). Follow the
180
+ `Getting Started` guide inside to get set up.
179
181
 
180
182
  Run tests using `pnpm run test` or `pnpm run test:watch`
181
183
 
package/dist/index.cjs CHANGED
@@ -25,8 +25,24 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
25
25
  // src/index.js
26
26
  var src_exports = {};
27
27
  __export(src_exports, {
28
- Adaptor: () => Adaptor_exports,
29
- default: () => src_default
28
+ alterState: () => import_language_common2.alterState,
29
+ arrayToString: () => import_language_common2.arrayToString,
30
+ combine: () => import_language_common2.combine,
31
+ dataPath: () => import_language_common2.dataPath,
32
+ dataValue: () => import_language_common2.dataValue,
33
+ default: () => src_default,
34
+ each: () => import_language_common2.each,
35
+ execute: () => execute,
36
+ fetchReportData: () => fetchReportData,
37
+ field: () => import_language_common2.field,
38
+ fields: () => import_language_common2.fields,
39
+ fn: () => import_language_common2.fn,
40
+ http: () => import_language_common2.http,
41
+ lastReferenceValue: () => import_language_common2.lastReferenceValue,
42
+ merge: () => import_language_common2.merge,
43
+ sourceValue: () => import_language_common2.sourceValue,
44
+ submit: () => submit,
45
+ submitXls: () => submitXls
30
46
  });
31
47
  module.exports = __toCommonJS(src_exports);
32
48
 
@@ -180,5 +196,21 @@ function fetchReportData(reportId, params, postUrl) {
180
196
  var src_default = Adaptor_exports;
181
197
  // Annotate the CommonJS export names for ESM import in node:
182
198
  0 && (module.exports = {
183
- Adaptor
199
+ alterState,
200
+ arrayToString,
201
+ combine,
202
+ dataPath,
203
+ dataValue,
204
+ each,
205
+ execute,
206
+ fetchReportData,
207
+ field,
208
+ fields,
209
+ fn,
210
+ http,
211
+ lastReferenceValue,
212
+ merge,
213
+ sourceValue,
214
+ submit,
215
+ submitXls
184
216
  });
package/dist/index.js CHANGED
@@ -171,6 +171,22 @@ function fetchReportData(reportId, params, postUrl) {
171
171
  // src/index.js
172
172
  var src_default = Adaptor_exports;
173
173
  export {
174
- Adaptor_exports as Adaptor,
175
- src_default as default
174
+ alterState,
175
+ arrayToString,
176
+ combine,
177
+ dataPath,
178
+ dataValue,
179
+ src_default as default,
180
+ each,
181
+ execute,
182
+ fetchReportData,
183
+ field,
184
+ fields,
185
+ fn,
186
+ http2 as http,
187
+ lastReferenceValue,
188
+ merge,
189
+ sourceValue,
190
+ submit,
191
+ submitXls
176
192
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-commcare",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Commcare Language Pack for OpenFn",
5
5
  "homepage": "https://docs.openfn.org",
6
6
  "repository": {
@@ -17,8 +17,8 @@
17
17
  "configuration-schema.json"
18
18
  ],
19
19
  "dependencies": {
20
- "@openfn/language-common": "1.7.4",
21
- "@openfn/language-http": "^4.2.2",
20
+ "@openfn/language-common": "1.7.5",
21
+ "@openfn/language-http": "^4.2.3",
22
22
  "JSONPath": "^0.10.0",
23
23
  "form-data": "^4.0.0",
24
24
  "js2xmlparser": "^1.0.0",
@@ -41,8 +41,11 @@
41
41
  "type": "module",
42
42
  "types": "types/index.d.ts",
43
43
  "exports": {
44
- "import": "./dist/index.js",
45
- "require": "./dist/index.cjs"
44
+ ".": {
45
+ "import": "./dist/index.js",
46
+ "require": "./dist/index.cjs"
47
+ },
48
+ "./package.json": "./package.json"
46
49
  },
47
50
  "scripts": {
48
51
  "build": "pnpm clean && build-adaptor commcare",
package/types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { Adaptor };
2
1
  export default Adaptor;
2
+ export * from "./Adaptor";
3
3
  import * as Adaptor from "./Adaptor";