recess-cli 3.50.0 → 3.50.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/args.js +0 -1
- package/dist/commands/family.js +5 -2
- package/dist/commands/tuition-plans.js +0 -4
- package/dist/help.js +6 -6
- package/package.json +1 -1
package/dist/args.js
CHANGED
package/dist/commands/family.js
CHANGED
|
@@ -855,6 +855,9 @@ export async function runFamilyCommand({ parsed, api, writeCommand, }) {
|
|
|
855
855
|
const text = flagString(parsed, "text", { required: true }).trim();
|
|
856
856
|
if (!text || text.length > 4000)
|
|
857
857
|
throw new CliError("invalid_arguments", "--text must be 1-4000 characters.");
|
|
858
|
+
const ask = flagString(parsed, "ask")?.trim();
|
|
859
|
+
if (ask !== undefined && (!ask || ask.length > 500))
|
|
860
|
+
throw new CliError("invalid_arguments", "--ask must be 1-500 characters.");
|
|
858
861
|
// Each kid has their own guide: name one unless there's only one.
|
|
859
862
|
const kids = hasFlag(parsed, "student") ? [] : await listFamilyKids(api);
|
|
860
863
|
if (!hasFlag(parsed, "student") && kids.length !== 1)
|
|
@@ -862,13 +865,13 @@ export async function runFamilyCommand({ parsed, api, writeCommand, }) {
|
|
|
862
865
|
const kid = hasFlag(parsed, "student")
|
|
863
866
|
? await resolveFamilyKid(api, parsed)
|
|
864
867
|
: kids[0];
|
|
865
|
-
const body = { text, studentId: kid.id };
|
|
868
|
+
const body = { text, ...(ask ? { ask } : {}), studentId: kid.id };
|
|
866
869
|
return writeCommand(parsed, {
|
|
867
870
|
action: `message ${kidName(kid)}'s guide: "${text.slice(0, 120)}"`,
|
|
868
871
|
target: { family: "@me", ...kidTarget(kid) },
|
|
869
872
|
request: body,
|
|
870
873
|
details: {
|
|
871
|
-
consequence: "The guide gets
|
|
874
|
+
consequence: "The guide gets a support ticket, plus a message on Slack and in your chat with them in the Recess app, and answers there. It can't be unsent.",
|
|
872
875
|
},
|
|
873
876
|
}, async () => unwrap(await api.client.POST("/parent-v2/message-guide/", { body })));
|
|
874
877
|
}
|
|
@@ -237,10 +237,6 @@ export function parseTuitionPlanSpecFlags(parsed, options) {
|
|
|
237
237
|
throw new CliError("invalid_arguments", "--custom-only needs --custom-plan.");
|
|
238
238
|
}
|
|
239
239
|
const subsetQuery = {
|
|
240
|
-
// Florida is refused as a direct enrollment without this.
|
|
241
|
-
...(hasFlag(parsed, "force-direct")
|
|
242
|
-
? { forceDirect: "true" }
|
|
243
|
-
: {}),
|
|
244
240
|
...(esaUnknown ? { esaAwardUnknown: "true" } : {}),
|
|
245
241
|
...(esaScenarios ? { esaScenarios } : {}),
|
|
246
242
|
...(esaAward ? { esaAward: Number(esaAward) } : {}),
|
package/dist/help.js
CHANGED
|
@@ -241,7 +241,7 @@ Usage:
|
|
|
241
241
|
recess [--json] family memory rewrite --in family|me --text TEXT [--confirm]
|
|
242
242
|
recess [--json] family memory forget --in journal|family|me --line TEXT
|
|
243
243
|
[--date YYYY-MM-DD] [--confirm]
|
|
244
|
-
recess [--json] family message-guide --text TEXT [--student <kid>] [--confirm]
|
|
244
|
+
recess [--json] family message-guide --text TEXT [--ask TEXT] [--student <kid>] [--confirm]
|
|
245
245
|
recess [--json] family report-bug --text TEXT [--summary TEXT] [--kind bug|request] [--student <kid>]
|
|
246
246
|
[--todo <todo-id>] [--confirm]
|
|
247
247
|
recess [--json] kid today --student <kid> [--date YYYY-MM-DD]
|
|
@@ -372,7 +372,7 @@ Usage:
|
|
|
372
372
|
recess [--json] channels members remove <channel-id> <user-id...> [--confirm]
|
|
373
373
|
recess [--json] tuition-plans generate --parent TEXT --student TEXT [--dob YYYY-MM-DD]
|
|
374
374
|
--state XX --start YYYY-MM-DD --annual DOLLARS --enrollment direct|partner-school|program
|
|
375
|
-
[--partner-school <slug|id>] [--
|
|
375
|
+
[--partner-school <slug|id>] [--state-funding] [--elective-price DOLLARS]
|
|
376
376
|
[--one-on-one-price DOLLARS] [--one-on-one-sessions N] [--end YYYY-MM-DD]
|
|
377
377
|
[--terms full-year,school-year,custom] [--payments upfront,installments]
|
|
378
378
|
[--note TEXT]... [--bill-date upfront|N=YYYY-MM-DD]... [--due-date upfront|N=YYYY-MM-DD]... [--amount N=DOLLARS]... [--even-installments]
|
|
@@ -387,7 +387,7 @@ Usage:
|
|
|
387
387
|
[--tier complete] [--paywall DOLLARS|--paywall-offline] [--staff-note TEXT]... [--no-email]
|
|
388
388
|
(--no-agreement | --start YYYY-MM-DD [--annual DOLLARS] [--override-aid-price]) [--state-funding] [--end YYYY-MM-DD]
|
|
389
389
|
[--terms full-year,school-year,custom] [--payments upfront,installments] [--note TEXT]...
|
|
390
|
-
[--bill-date upfront|N=YYYY-MM-DD]... [--due-date upfront|N=YYYY-MM-DD]... [--amount N=DOLLARS]... [--even-installments]
|
|
390
|
+
[--bill-date upfront|N=YYYY-MM-DD]... [--due-date upfront|N=YYYY-MM-DD]... [--amount N=DOLLARS]... [--even-installments]
|
|
391
391
|
[--esa-award DOLLARS | --esa-award-unknown [--esa-scenarios DOLLARS,...]] [--custom-plan JSON|@file] [--custom-only]
|
|
392
392
|
[--elective-price DOLLARS]
|
|
393
393
|
[--one-on-one-price DOLLARS] [--one-on-one-sessions N] [--confirm]
|
|
@@ -1086,8 +1086,8 @@ supported states and their year-end dates. --enrollment partner-school
|
|
|
1086
1086
|
(with --partner-school, e.g. wonder-ed) names the partner as the school of record
|
|
1087
1087
|
and says tuition payments go to it, on the tuition page and the signing page. --enrollment program
|
|
1088
1088
|
is the online learning program (main or supplemental): the agreement says Recess is not the
|
|
1089
|
-
school of record and satisfies no attendance or reporting requirement.
|
|
1090
|
-
|
|
1089
|
+
school of record and satisfies no attendance or reporting requirement. Direct enrollment is Arizona-only for now:
|
|
1090
|
+
a direct plan in any other state is refused (use --enrollment program or partner-school). Add-on prices default to
|
|
1091
1091
|
$160/month per extra elective and $400 per 4 tutoring sessions; --elective-price,
|
|
1092
1092
|
--one-on-one-price, and --one-on-one-sessions override them on this sheet.
|
|
1093
1093
|
--end YYYY-MM-DD adds a custom term through that date (priced by school days).
|
|
@@ -1411,7 +1411,7 @@ export const COMMAND_SUMMARIES = {
|
|
|
1411
1411
|
"family memory save": "Save one line to Rocky's family notes, with your name (at once).",
|
|
1412
1412
|
"family memory rewrite": "Replace family.md or your own notes whole, tidied (at once).",
|
|
1413
1413
|
"family memory forget": "Forget one exact line of the family notes (at once).",
|
|
1414
|
-
"family message-guide": "Message your kid's guide (Slack + the app chat); the person for anything.",
|
|
1414
|
+
"family message-guide": "Message your kid's guide (a support ticket, Slack + the app chat); the person for anything. --text is the note for the guide; --ask, your request in your own words, is what the app chat shows.",
|
|
1415
1415
|
"family report-bug": "Report a bug, or a request (--kind request: something missing, or what you think of Rocky), to the Recess team (at once; not a change).",
|
|
1416
1416
|
"family remind": "Have Rocky text you a reminder (applies at once).",
|
|
1417
1417
|
"family reminders": "Your upcoming text-me reminders.",
|