@openfn/language-kobotoolbox 3.0.0 → 3.0.1
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/dist/index.cjs +3 -3
- package/dist/index.js +7 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -175,12 +175,12 @@ function getSubmissions(formId, options = {}) {
|
|
|
175
175
|
query.query = JSON.stringify(resolvedOptions.query);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
const
|
|
178
|
+
const { results } = await request(state, "GET", url, {
|
|
179
179
|
paginate: true,
|
|
180
180
|
query
|
|
181
181
|
});
|
|
182
|
-
console.log("\u2713",
|
|
183
|
-
return
|
|
182
|
+
console.log("\u2713", results.length, "submissions fetched.");
|
|
183
|
+
return (0, import_language_common2.composeNextState)(state, results);
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
function getDeploymentInfo(formId) {
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,10 @@ __export(Adaptor_exports, {
|
|
|
26
26
|
merge: () => merge,
|
|
27
27
|
sourceValue: () => sourceValue
|
|
28
28
|
});
|
|
29
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
execute as commonExecute,
|
|
31
|
+
composeNextState as composeNextState2
|
|
32
|
+
} from "@openfn/language-common";
|
|
30
33
|
import { expandReferences } from "@openfn/language-common/util";
|
|
31
34
|
|
|
32
35
|
// src/Utils.js
|
|
@@ -157,12 +160,12 @@ function getSubmissions(formId, options = {}) {
|
|
|
157
160
|
query.query = JSON.stringify(resolvedOptions.query);
|
|
158
161
|
}
|
|
159
162
|
}
|
|
160
|
-
const
|
|
163
|
+
const { results } = await request(state, "GET", url, {
|
|
161
164
|
paginate: true,
|
|
162
165
|
query
|
|
163
166
|
});
|
|
164
|
-
console.log("\u2713",
|
|
165
|
-
return
|
|
167
|
+
console.log("\u2713", results.length, "submissions fetched.");
|
|
168
|
+
return composeNextState2(state, results);
|
|
166
169
|
};
|
|
167
170
|
}
|
|
168
171
|
function getDeploymentInfo(formId) {
|