@openfn/language-khanacademy 0.5.8 → 0.5.10

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
@@ -1,5 +1,50 @@
1
1
  {
2
- "operations": [],
2
+ "operations": [
3
+ {
4
+ "name": "fetch",
5
+ "params": [
6
+ "params"
7
+ ],
8
+ "docs": {
9
+ "description": "Fetch data from the Khan Academy API",
10
+ "tags": [
11
+ {
12
+ "title": "example",
13
+ "description": "fetch({ getEndpoint: \"topictree\", queryParams: { subject: \"math\" } });",
14
+ "caption": "Fetch data from the Khan Academy API"
15
+ },
16
+ {
17
+ "title": "public",
18
+ "description": null,
19
+ "type": null
20
+ },
21
+ {
22
+ "title": "function",
23
+ "description": null,
24
+ "name": null
25
+ },
26
+ {
27
+ "title": "param",
28
+ "description": "data to make the query",
29
+ "type": {
30
+ "type": "NameExpression",
31
+ "name": "object"
32
+ },
33
+ "name": "params"
34
+ },
35
+ {
36
+ "title": "returns",
37
+ "description": null,
38
+ "type": {
39
+ "type": "NameExpression",
40
+ "name": "Operation"
41
+ }
42
+ }
43
+ ]
44
+ },
45
+ "valid": true
46
+ }
47
+ ],
3
48
  "exports": [],
4
49
  "common": [
5
50
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-khanacademy",
3
- "version": "0.5.8",
3
+ "version": "0.5.10",
4
4
  "description": "A Khan Academy Language Pack for OpenFn",
5
5
  "main": "dist/index.cjs",
6
6
  "author": "Open Function Group",
@@ -14,10 +14,9 @@
14
14
  "dependencies": {
15
15
  "qs": "^6.11.0",
16
16
  "request": "^2.88.2",
17
- "@openfn/language-common": "2.2.1"
17
+ "@openfn/language-common": "2.3.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@openfn/simple-ast": "0.4.1",
21
20
  "assertion-error": "^2.0.0",
22
21
  "chai": "^4.3.7",
23
22
  "deep-eql": "^4.1.2",
@@ -1,11 +1,6 @@
1
1
  /**
2
2
  * Execute a sequence of operations.
3
3
  * Wraps `@openfn/language-common/execute`, and prepends initial state for khanacademy.
4
- * @example
5
- * execute(
6
- * create('foo'),
7
- * delete('bar')
8
- * )(state)
9
4
  * @private
10
5
  * @param {Operations} operations - Operations to be performed.
11
6
  * @returns {Operation}
@@ -13,10 +8,9 @@
13
8
  export function execute(...operations: Operations): Operation;
14
9
  /**
15
10
  * Fetch data from the Khan Academy API
16
- * @example
17
- * execute(
18
- * fetch(params)
19
- * )(state)
11
+ * @example <caption>Fetch data from the Khan Academy API</caption>
12
+ * fetch({ getEndpoint: "topictree", queryParams: { subject: "math" } });
13
+ * @public
20
14
  * @function
21
15
  * @param {object} params - data to make the query
22
16
  * @returns {Operation}