recess-cli 3.12.0 → 3.13.0
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/cli.js +17 -0
- package/dist/command-schema.js +1 -0
- package/dist/help.js +4 -1
- package/package.json +1 -1
- package/skill/recess-cli/SKILL.md +2 -0
package/dist/cli.js
CHANGED
|
@@ -2997,6 +2997,9 @@ export async function executeRecessCommand(argv, options = {}) {
|
|
|
2997
2997
|
required: true,
|
|
2998
2998
|
}),
|
|
2999
2999
|
...(tierId ? { tierId } : {}),
|
|
3000
|
+
...(status === "WITHDRAWN" && flagString(parsed, "effective-at")
|
|
3001
|
+
? { effectiveAt: flagString(parsed, "effective-at") }
|
|
3002
|
+
: {}),
|
|
3000
3003
|
};
|
|
3001
3004
|
return writeCommand(parsed, {
|
|
3002
3005
|
action: status === "WITHDRAWN"
|
|
@@ -5865,6 +5868,20 @@ export async function executeRecessCommand(argv, options = {}) {
|
|
|
5865
5868
|
},
|
|
5866
5869
|
}));
|
|
5867
5870
|
}
|
|
5871
|
+
if (verb === "math-academy") {
|
|
5872
|
+
const studentId = flagString(parsed, "student", { required: true });
|
|
5873
|
+
const startDate = flagString(parsed, "from");
|
|
5874
|
+
const endDate = flagString(parsed, "to");
|
|
5875
|
+
return unwrap(await api.client.GET("/tutor/students/{studentId}/math-academy", {
|
|
5876
|
+
params: {
|
|
5877
|
+
path: { studentId },
|
|
5878
|
+
query: {
|
|
5879
|
+
...(startDate ? { startDate } : {}),
|
|
5880
|
+
...(endDate ? { endDate } : {}),
|
|
5881
|
+
},
|
|
5882
|
+
},
|
|
5883
|
+
}));
|
|
5884
|
+
}
|
|
5868
5885
|
if (verb === "issue-email") {
|
|
5869
5886
|
const studentId = flagString(parsed, "student", { required: true });
|
|
5870
5887
|
return writeCommand(parsed, {
|
package/dist/command-schema.js
CHANGED
package/dist/help.js
CHANGED
|
@@ -40,7 +40,7 @@ Usage:
|
|
|
40
40
|
recess [--json] users school complete-action <user-id> <action-id> --note <text> [--confirm]
|
|
41
41
|
recess [--json] users school status <user-id>
|
|
42
42
|
recess [--json] users school history <user-id> [--limit 25] [--cursor <id>]
|
|
43
|
-
recess [--json] users school withdraw <user-id> --note <text> --expected-updated-at <iso> [--confirm]
|
|
43
|
+
recess [--json] users school withdraw <user-id> --note <text> --expected-updated-at <iso> [--effective-at <iso>] [--confirm]
|
|
44
44
|
recess [--json] users school restore <user-id> --tier <tier-id> --note <text> --expected-updated-at <iso> [--confirm]
|
|
45
45
|
recess [--json] users enrollment history <user-id> [--limit 25] [--cursor <id>]
|
|
46
46
|
recess [--json] users enrollment set-partner-school-cc <school-id-or-slug>
|
|
@@ -91,6 +91,8 @@ Usage:
|
|
|
91
91
|
recess [--json] students analysis --todo <todo-id>
|
|
92
92
|
recess [--json] students xp-history --student <kid-id>
|
|
93
93
|
[--range week|month|quarter|year]
|
|
94
|
+
recess [--json] students math-academy --student <kid-id>
|
|
95
|
+
[--from YYYY-MM-DD] [--to YYYY-MM-DD]
|
|
94
96
|
recess [--json] enrollments list --user <user-id>
|
|
95
97
|
recess [--json] subscriptions list --family <family-id> [--kid <kid-id>]
|
|
96
98
|
recess [--json] invoices list --subscription <subscription-id>
|
|
@@ -890,6 +892,7 @@ export const COMMAND_SUMMARIES = {
|
|
|
890
892
|
"students todos": "List a student's todos for a date (or recent), with statuses.",
|
|
891
893
|
"students analysis": "Read the learning analysis for a completed todo.",
|
|
892
894
|
"students xp-history": "Show a kid's XP history over a range.",
|
|
895
|
+
"students math-academy": "Show a linked kid's Math Academy course, league and task activity.",
|
|
893
896
|
"enrollments list": "List a user's enrollments.",
|
|
894
897
|
"subscriptions list": "List a family's Stripe subscriptions.",
|
|
895
898
|
"invoices list": "List a subscription's invoices.",
|
package/package.json
CHANGED
|
@@ -26,6 +26,8 @@ Load the audience skill's `SKILL.md`, then only the reference it routes you to:
|
|
|
26
26
|
recess --json skills guardian get recess-family
|
|
27
27
|
# Research, author, or apply a goal or reusable goal template
|
|
28
28
|
recess --json skills guardian get recess-goal-authoring
|
|
29
|
+
# Guide (guide_students): your students, class ops, Math Academy linking and activity
|
|
30
|
+
recess --json skills guardian get recess-guide
|
|
29
31
|
# Staff operations (full_admin), then the one playbook its table names
|
|
30
32
|
recess --json skills admin get recess-admin
|
|
31
33
|
recess --json skills admin get recess-admin --reference billing
|