You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Find courses by optional filters. [See the documentation](https://edme.notion.site/API-integration-v0-2-ef33641eb7f24fa9a6efb969c1f2928f)",
7
+
version: "0.0.1",
8
+
type: "action",
9
+
annotations: {
10
+
destructiveHint: false,
11
+
openWorldHint: true,
12
+
readOnlyHint: true,
13
+
},
14
+
props: {
15
+
educateme,
16
+
learnerEmail: {
17
+
type: "string",
18
+
label: "Learner Email",
19
+
description: "Filter courses by assigned learner email",
20
+
optional: true,
21
+
},
22
+
isFinished: {
23
+
type: "boolean",
24
+
label: "Is Finished",
25
+
description: "If the course is finished",
26
+
optional: true,
27
+
},
28
+
isSuspended: {
29
+
type: "boolean",
30
+
label: "Is Suspended",
31
+
description: "If the course is suspended",
32
+
optional: true,
33
+
},
34
+
},
35
+
asyncrun({ $ }){
36
+
constcourses=awaitthis.educateme.listCourses({
37
+
$,
38
+
params: {
39
+
learnerEmail: this.learnerEmail,
40
+
isFinished: this.isFinished,
41
+
isSuspended: this.isSuspended,
42
+
},
43
+
});
44
+
$.export("$summary",`Successfully found ${courses.length} course${courses.length===1
description: "Get the activities for a course. [See the documentation](https://edme.notion.site/API-integration-v0-2-ef33641eb7f24fa9a6efb969c1f2928f)",
7
+
version: "0.0.1",
8
+
type: "action",
9
+
annotations: {
10
+
destructiveHint: false,
11
+
openWorldHint: true,
12
+
readOnlyHint: true,
13
+
},
14
+
props: {
15
+
educateme,
16
+
courseId: {
17
+
propDefinition: [
18
+
educateme,
19
+
"courseId",
20
+
],
21
+
},
22
+
},
23
+
asyncrun({ $ }){
24
+
const{ result }=awaitthis.educateme.listCourseActivities({
description: "Emit new event when a new activity is created in a course. [See the documentation](https://edme.notion.site/API-integration-v0-2-ef33641eb7f24fa9a6efb969c1f2928f)",
8
+
version: "0.0.1",
9
+
type: "source",
10
+
dedupe: "unique",
11
+
props: {
12
+
...common.props,
13
+
courseId: {
14
+
propDefinition: [
15
+
common.props.educateme,
16
+
"courseId",
17
+
],
18
+
},
19
+
},
20
+
methods: {
21
+
...common.methods,
22
+
asyncgetResources(){
23
+
const{ result }=awaitthis.educateme.listCourseActivities({
description: "Emit new event when a new course is created. [See the documentation](https://edme.notion.site/API-integration-v0-2-ef33641eb7f24fa9a6efb969c1f2928f)",
0 commit comments