@openfn/language-khanacademy 0.3.0 → 0.3.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/package.json +1 -1
- package/types/Adaptor.d.ts +2 -32
package/package.json
CHANGED
package/types/Adaptor.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** @module Adaptor */
|
|
2
1
|
/**
|
|
3
2
|
* Execute a sequence of operations.
|
|
4
3
|
* Wraps `@openfn/language-common/execute`, and prepends initial state for khanacademy.
|
|
@@ -7,49 +6,20 @@
|
|
|
7
6
|
* create('foo'),
|
|
8
7
|
* delete('bar')
|
|
9
8
|
* )(state)
|
|
10
|
-
* @
|
|
9
|
+
* @function
|
|
11
10
|
* @param {Operations} operations - Operations to be performed.
|
|
12
11
|
* @returns {Operation}
|
|
13
12
|
*/
|
|
14
13
|
export function execute(...operations: Operations): Operation;
|
|
15
|
-
export class execute {
|
|
16
|
-
/** @module Adaptor */
|
|
17
|
-
/**
|
|
18
|
-
* Execute a sequence of operations.
|
|
19
|
-
* Wraps `@openfn/language-common/execute`, and prepends initial state for khanacademy.
|
|
20
|
-
* @example
|
|
21
|
-
* execute(
|
|
22
|
-
* create('foo'),
|
|
23
|
-
* delete('bar')
|
|
24
|
-
* )(state)
|
|
25
|
-
* @constructor
|
|
26
|
-
* @param {Operations} operations - Operations to be performed.
|
|
27
|
-
* @returns {Operation}
|
|
28
|
-
*/
|
|
29
|
-
constructor(...operations: Operations);
|
|
30
|
-
}
|
|
31
14
|
/**
|
|
32
15
|
* Fetch data from the Khan Academy API
|
|
33
16
|
* @example
|
|
34
17
|
* execute(
|
|
35
18
|
* fetch(params)
|
|
36
19
|
* )(state)
|
|
37
|
-
* @
|
|
20
|
+
* @function
|
|
38
21
|
* @param {object} params - data to make the query
|
|
39
22
|
* @returns {Operation}
|
|
40
23
|
*/
|
|
41
24
|
export function fetch(params: object): Operation;
|
|
42
|
-
export class fetch {
|
|
43
|
-
/**
|
|
44
|
-
* Fetch data from the Khan Academy API
|
|
45
|
-
* @example
|
|
46
|
-
* execute(
|
|
47
|
-
* fetch(params)
|
|
48
|
-
* )(state)
|
|
49
|
-
* @constructor
|
|
50
|
-
* @param {object} params - data to make the query
|
|
51
|
-
* @returns {Operation}
|
|
52
|
-
*/
|
|
53
|
-
constructor(params: object);
|
|
54
|
-
}
|
|
55
25
|
export { fn, field, sourceValue, fields, alterState, merge, dataPath, dataValue, lastReferenceValue } from "@openfn/language-common";
|