@burdenoff/microfe-technospam 2026.1031.8 → 2026.1101.2
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/generated/wspace-types.d.ts +288 -0
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/stories/journeys/Problems.stories.d.ts.map +1 -1
- package/dist/technospam/api/technospamApi.d.ts +15 -0
- package/dist/technospam/api/technospamApi.d.ts.map +1 -1
- package/dist/technospam/api/technospamApi.js +200 -151
- package/dist/technospam/api/technospamApi.js.map +1 -1
- package/dist/technospam/components/ProblemsTable.d.ts +19 -0
- package/dist/technospam/components/ProblemsTable.d.ts.map +1 -0
- package/dist/technospam/components/ProblemsTable.js +117 -0
- package/dist/technospam/components/ProblemsTable.js.map +1 -0
- package/dist/technospam/components/index.d.ts +1 -0
- package/dist/technospam/components/index.d.ts.map +1 -1
- package/dist/technospam/components/index.js +2 -1
- package/dist/technospam/pages/ApplicationsProblemDetailsPagePage.js +38 -38
- package/dist/technospam/pages/ApplicationsProblemDetailsPagePage.js.map +1 -1
- package/dist/technospam/pages/ApplicationsProblemsPagePage.d.ts.map +1 -1
- package/dist/technospam/pages/ApplicationsProblemsPagePage.js +197 -144
- package/dist/technospam/pages/ApplicationsProblemsPagePage.js.map +1 -1
- package/dist/technospam/pages/CoursesCourseDetailsPagePage.js +195 -195
- package/dist/technospam/pages/CoursesCourseDetailsPagePage.js.map +1 -1
- package/dist/technospam/pages/CoursesCoursesPagePage.js +26 -26
- package/dist/technospam/pages/CoursesLessonPlayerPagePage.js +36 -36
- package/dist/technospam/pages/CoursesLessonPlayerPagePage.js.map +1 -1
- package/dist/technospam/utils/problemCatalog.d.ts +27 -0
- package/dist/technospam/utils/problemCatalog.d.ts.map +1 -0
- package/dist/technospam/utils/problemCatalog.js +68 -0
- package/dist/technospam/utils/problemCatalog.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { notify as e } from "../lib/toast.js";
|
|
2
2
|
import { userMessageFromError as t } from "../lib/errorMessage.js";
|
|
3
3
|
import { forTechnospamCourse as n, mapRows as r, toTecCertificate as i, toTecEnrollment as a } from "./canonicalLearning.js";
|
|
4
|
-
import {
|
|
5
|
-
import { gql as
|
|
6
|
-
import { useLazyQuery as
|
|
4
|
+
import { useEffect as o, useMemo as s, useState as c } from "react";
|
|
5
|
+
import { gql as l } from "@apollo/client";
|
|
6
|
+
import { useApolloClient as ee, useLazyQuery as te, useMutation as u, useQuery as d } from "@apollo/client/react";
|
|
7
7
|
//#region src/technospam/api/technospamApi.ts
|
|
8
8
|
function f(e = 50, t) {
|
|
9
9
|
return t ? {
|
|
@@ -11,7 +11,7 @@ function f(e = 50, t) {
|
|
|
11
11
|
cursor: t
|
|
12
12
|
} : { limit: e };
|
|
13
13
|
}
|
|
14
|
-
var p =
|
|
14
|
+
var p = l`
|
|
15
15
|
fragment CourseFields on TecCourse {
|
|
16
16
|
id
|
|
17
17
|
slug
|
|
@@ -30,7 +30,7 @@ var p = c`
|
|
|
30
30
|
createdAt
|
|
31
31
|
updatedAt
|
|
32
32
|
}
|
|
33
|
-
`, m =
|
|
33
|
+
`, m = l`
|
|
34
34
|
fragment LessonFields on TecLesson {
|
|
35
35
|
id
|
|
36
36
|
courseId
|
|
@@ -53,7 +53,7 @@ var p = c`
|
|
|
53
53
|
createdAt
|
|
54
54
|
updatedAt
|
|
55
55
|
}
|
|
56
|
-
`, h =
|
|
56
|
+
`, h = l`
|
|
57
57
|
fragment EnrollmentFields on TecEnrollment {
|
|
58
58
|
id
|
|
59
59
|
courseId
|
|
@@ -67,7 +67,7 @@ var p = c`
|
|
|
67
67
|
createdAt
|
|
68
68
|
updatedAt
|
|
69
69
|
}
|
|
70
|
-
`, g =
|
|
70
|
+
`, g = l`
|
|
71
71
|
fragment ProblemFields on TecProblem {
|
|
72
72
|
id
|
|
73
73
|
slug
|
|
@@ -89,7 +89,7 @@ var p = c`
|
|
|
89
89
|
createdAt
|
|
90
90
|
updatedAt
|
|
91
91
|
}
|
|
92
|
-
`, _ =
|
|
92
|
+
`, _ = l`
|
|
93
93
|
fragment SubmissionFields on TecSubmission {
|
|
94
94
|
id
|
|
95
95
|
problemId
|
|
@@ -117,7 +117,7 @@ var p = c`
|
|
|
117
117
|
createdAt
|
|
118
118
|
updatedAt
|
|
119
119
|
}
|
|
120
|
-
`,
|
|
120
|
+
`, ne = l`
|
|
121
121
|
fragment ProblemTestCaseFields on TecProblemTestCase {
|
|
122
122
|
id
|
|
123
123
|
problemId
|
|
@@ -128,7 +128,7 @@ var p = c`
|
|
|
128
128
|
input
|
|
129
129
|
expectedOutput
|
|
130
130
|
}
|
|
131
|
-
`, v =
|
|
131
|
+
`, v = l`
|
|
132
132
|
fragment MentorFields on TecMentor {
|
|
133
133
|
id
|
|
134
134
|
userId
|
|
@@ -145,7 +145,7 @@ var p = c`
|
|
|
145
145
|
createdAt
|
|
146
146
|
updatedAt
|
|
147
147
|
}
|
|
148
|
-
`, y =
|
|
148
|
+
`, y = l`
|
|
149
149
|
fragment SessionFields on TecMentorSession {
|
|
150
150
|
id
|
|
151
151
|
mentorId
|
|
@@ -166,7 +166,7 @@ var p = c`
|
|
|
166
166
|
createdAt
|
|
167
167
|
updatedAt
|
|
168
168
|
}
|
|
169
|
-
`, b =
|
|
169
|
+
`, b = l`
|
|
170
170
|
fragment HackathonFields on TecHackathon {
|
|
171
171
|
id
|
|
172
172
|
slug
|
|
@@ -184,7 +184,7 @@ var p = c`
|
|
|
184
184
|
createdAt
|
|
185
185
|
updatedAt
|
|
186
186
|
}
|
|
187
|
-
`, x =
|
|
187
|
+
`, x = l`
|
|
188
188
|
fragment TeamFields on TecHackathonTeam {
|
|
189
189
|
id
|
|
190
190
|
hackathonId
|
|
@@ -201,7 +201,7 @@ var p = c`
|
|
|
201
201
|
createdAt
|
|
202
202
|
updatedAt
|
|
203
203
|
}
|
|
204
|
-
`, S =
|
|
204
|
+
`, S = l`
|
|
205
205
|
fragment CertificateFields on TecCertificate {
|
|
206
206
|
id
|
|
207
207
|
courseId
|
|
@@ -214,7 +214,7 @@ var p = c`
|
|
|
214
214
|
revokeReason
|
|
215
215
|
createdAt
|
|
216
216
|
}
|
|
217
|
-
`,
|
|
217
|
+
`, re = l`
|
|
218
218
|
${p}
|
|
219
219
|
query TecListCourses(
|
|
220
220
|
$level: TecCourseLevel
|
|
@@ -231,7 +231,7 @@ var p = c`
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
`,
|
|
234
|
+
`, ie = l`
|
|
235
235
|
${p}
|
|
236
236
|
${m}
|
|
237
237
|
${h}
|
|
@@ -246,7 +246,7 @@ var p = c`
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
`,
|
|
249
|
+
`, ae = l`
|
|
250
250
|
${h}
|
|
251
251
|
${p}
|
|
252
252
|
query TecListEnrollments(
|
|
@@ -275,7 +275,7 @@ var p = c`
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
`,
|
|
278
|
+
`, oe = l`
|
|
279
279
|
${S}
|
|
280
280
|
${p}
|
|
281
281
|
query TecListCertificates($learnerId: ID, $courseId: ID) {
|
|
@@ -286,7 +286,7 @@ var p = c`
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
`,
|
|
289
|
+
`, se = l`
|
|
290
290
|
${p}
|
|
291
291
|
query BuiMyTechnospamEnrollments($courseId: ID, $pagination: PaginationInput) {
|
|
292
292
|
buiMyEnrollments(source: TECHNOSPAM, courseId: $courseId, pagination: $pagination) {
|
|
@@ -317,7 +317,7 @@ var p = c`
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
`,
|
|
320
|
+
`, ce = l`
|
|
321
321
|
${p}
|
|
322
322
|
query BuiMyTechnospamCertificates($courseId: ID, $pagination: PaginationInput) {
|
|
323
323
|
buiMyCertificates(source: TECHNOSPAM, courseId: $courseId, pagination: $pagination) {
|
|
@@ -346,7 +346,7 @@ var p = c`
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
`,
|
|
349
|
+
`, le = l`
|
|
350
350
|
${g}
|
|
351
351
|
query TecListProblems(
|
|
352
352
|
$difficulty: TecProblemDifficulty
|
|
@@ -375,10 +375,10 @@ var p = c`
|
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
`,
|
|
378
|
+
`, ue = l`
|
|
379
379
|
${g}
|
|
380
380
|
${_}
|
|
381
|
-
${
|
|
381
|
+
${ne}
|
|
382
382
|
query TecProblem($id: ID!) {
|
|
383
383
|
tecProblem(id: $id) {
|
|
384
384
|
...ProblemFields
|
|
@@ -390,14 +390,14 @@ var p = c`
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
`,
|
|
393
|
+
`, C = l`
|
|
394
394
|
${_}
|
|
395
395
|
mutation TecRegradeSubmission($id: ID!) {
|
|
396
396
|
tecRegradeSubmission(id: $id) {
|
|
397
397
|
...SubmissionFields
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
`,
|
|
400
|
+
`, w = l`
|
|
401
401
|
${_}
|
|
402
402
|
${g}
|
|
403
403
|
query TecListSubmissions(
|
|
@@ -426,7 +426,7 @@ var p = c`
|
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
`,
|
|
429
|
+
`, T = l`
|
|
430
430
|
${v}
|
|
431
431
|
query TecListMentors($status: TecMentorStatus, $pagination: PaginationInput) {
|
|
432
432
|
tecListMentors(status: $status, pagination: $pagination) {
|
|
@@ -439,7 +439,7 @@ var p = c`
|
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
`,
|
|
442
|
+
`, E = l`
|
|
443
443
|
${v}
|
|
444
444
|
${y}
|
|
445
445
|
query TecMentor($id: ID!) {
|
|
@@ -450,7 +450,7 @@ var p = c`
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
`,
|
|
453
|
+
`, D = l`
|
|
454
454
|
${y}
|
|
455
455
|
${v}
|
|
456
456
|
query TecListSessions(
|
|
@@ -477,7 +477,7 @@ var p = c`
|
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
`,
|
|
480
|
+
`, O = l`
|
|
481
481
|
query TecCalculateSessionCost($mentorId: ID!, $durationMinutes: Int) {
|
|
482
482
|
tecCalculateSessionCost(mentorId: $mentorId, durationMinutes: $durationMinutes) {
|
|
483
483
|
mentorId
|
|
@@ -491,8 +491,8 @@ var p = c`
|
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
`;
|
|
494
|
-
|
|
495
|
-
${
|
|
494
|
+
l`
|
|
495
|
+
${l`
|
|
496
496
|
fragment PayoutFields on TecMentorPayout {
|
|
497
497
|
id
|
|
498
498
|
mentorId
|
|
@@ -518,7 +518,7 @@ c`
|
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
`;
|
|
521
|
-
var
|
|
521
|
+
var k = l`
|
|
522
522
|
${b}
|
|
523
523
|
query TecListHackathons($status: TecHackathonStatus, $pagination: PaginationInput) {
|
|
524
524
|
tecListHackathons(status: $status, pagination: $pagination) {
|
|
@@ -531,7 +531,7 @@ var D = c`
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
`,
|
|
534
|
+
`, A = l`
|
|
535
535
|
${b}
|
|
536
536
|
${x}
|
|
537
537
|
query TecHackathon($id: ID!) {
|
|
@@ -542,7 +542,7 @@ var D = c`
|
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
|
-
`,
|
|
545
|
+
`, j = l`
|
|
546
546
|
${x}
|
|
547
547
|
query TecListTeams($hackathonId: ID!, $pagination: PaginationInput) {
|
|
548
548
|
tecListTeams(hackathonId: $hackathonId, pagination: $pagination) {
|
|
@@ -555,7 +555,7 @@ var D = c`
|
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
`,
|
|
558
|
+
`, M = l`
|
|
559
559
|
${m}
|
|
560
560
|
query TecListLessons($courseId: ID!, $pagination: PaginationInput) {
|
|
561
561
|
tecListLessons(courseId: $courseId, pagination: $pagination) {
|
|
@@ -568,111 +568,160 @@ var D = c`
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
`,
|
|
571
|
+
`, N = (e) => d(re, {
|
|
572
572
|
variables: {
|
|
573
573
|
pagination: f(50),
|
|
574
574
|
...e
|
|
575
575
|
},
|
|
576
576
|
fetchPolicy: "cache-and-network"
|
|
577
|
-
}),
|
|
577
|
+
}), P = (e) => d(ie, {
|
|
578
578
|
variables: { id: e },
|
|
579
579
|
skip: !e,
|
|
580
580
|
fetchPolicy: "cache-and-network"
|
|
581
|
-
}),
|
|
581
|
+
}), F = (e) => d(ae, {
|
|
582
582
|
variables: {
|
|
583
583
|
pagination: f(50),
|
|
584
584
|
...e
|
|
585
585
|
},
|
|
586
586
|
fetchPolicy: "cache-and-network"
|
|
587
|
-
}),
|
|
587
|
+
}), I = (e) => d(oe, {
|
|
588
588
|
variables: e,
|
|
589
589
|
fetchPolicy: "cache-and-network"
|
|
590
590
|
});
|
|
591
|
-
function
|
|
592
|
-
let t = d(
|
|
591
|
+
function L(e = {}) {
|
|
592
|
+
let t = d(se, {
|
|
593
593
|
variables: {
|
|
594
594
|
...e.buiCourseId ? { courseId: e.buiCourseId } : {},
|
|
595
595
|
pagination: f(e.limit ?? 100)
|
|
596
596
|
},
|
|
597
597
|
skip: e.skip,
|
|
598
598
|
fetchPolicy: "cache-and-network"
|
|
599
|
-
}), i = t.data?.buiMyEnrollments?.items,
|
|
599
|
+
}), i = t.data?.buiMyEnrollments?.items, o = s(() => n(r(i, a), e.technospamCourseId), [i, e.technospamCourseId]);
|
|
600
600
|
return {
|
|
601
601
|
...t,
|
|
602
|
-
enrollments:
|
|
602
|
+
enrollments: o
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
let t = d(
|
|
605
|
+
function R(e = {}) {
|
|
606
|
+
let t = d(ce, {
|
|
607
607
|
variables: {
|
|
608
608
|
...e.buiCourseId ? { courseId: e.buiCourseId } : {},
|
|
609
609
|
pagination: f(e.limit ?? 100)
|
|
610
610
|
},
|
|
611
611
|
skip: e.skip,
|
|
612
612
|
fetchPolicy: "cache-and-network"
|
|
613
|
-
}), a = t.data?.buiMyCertificates?.items,
|
|
613
|
+
}), a = t.data?.buiMyCertificates?.items, o = s(() => n(r(a, i), e.technospamCourseId), [a, e.technospamCourseId]);
|
|
614
614
|
return {
|
|
615
615
|
...t,
|
|
616
|
-
certificates:
|
|
616
|
+
certificates: o
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
var
|
|
619
|
+
var z = (e) => d(le, {
|
|
620
620
|
variables: {
|
|
621
621
|
pagination: f(50),
|
|
622
622
|
...e
|
|
623
623
|
},
|
|
624
624
|
fetchPolicy: "cache-and-network"
|
|
625
|
-
}),
|
|
625
|
+
}), B = (e) => d(ue, {
|
|
626
626
|
variables: { id: e },
|
|
627
627
|
skip: !e,
|
|
628
628
|
fetchPolicy: "cache-and-network"
|
|
629
|
-
}),
|
|
629
|
+
}), V = (e) => d(w, {
|
|
630
630
|
variables: {
|
|
631
631
|
pagination: f(50),
|
|
632
632
|
...e
|
|
633
633
|
},
|
|
634
634
|
fetchPolicy: "cache-and-network"
|
|
635
|
-
}),
|
|
635
|
+
}), H = l`
|
|
636
|
+
query TecListSolvedSubmissions($learnerId: ID!, $pagination: PaginationInput) {
|
|
637
|
+
tecListSubmissions(learnerId: $learnerId, pagination: $pagination) {
|
|
638
|
+
items {
|
|
639
|
+
id
|
|
640
|
+
problemId
|
|
641
|
+
verdict
|
|
642
|
+
}
|
|
643
|
+
pageInfo {
|
|
644
|
+
cursor
|
|
645
|
+
hasMore
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
`, U = /* @__PURE__ */ new Set();
|
|
650
|
+
function de(e) {
|
|
651
|
+
let t = ee(), [n, r] = c(null);
|
|
652
|
+
return o(() => {
|
|
653
|
+
if (!e) return;
|
|
654
|
+
let n = !1, i = /* @__PURE__ */ new Set();
|
|
655
|
+
return (async () => {
|
|
656
|
+
let a;
|
|
657
|
+
for (let o = 0; o < 20; o += 1) {
|
|
658
|
+
let o;
|
|
659
|
+
try {
|
|
660
|
+
o = (await t.query({
|
|
661
|
+
query: H,
|
|
662
|
+
variables: {
|
|
663
|
+
learnerId: e,
|
|
664
|
+
pagination: f(100, a)
|
|
665
|
+
},
|
|
666
|
+
fetchPolicy: "network-only"
|
|
667
|
+
})).data?.tecListSubmissions;
|
|
668
|
+
} catch {
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
if (n || !o) return;
|
|
672
|
+
for (let e of o.items) e.verdict === "ACCEPTED" && i.add(e.problemId);
|
|
673
|
+
if (r({
|
|
674
|
+
learnerId: e,
|
|
675
|
+
ids: new Set(i)
|
|
676
|
+
}), !o.pageInfo.hasMore || !o.pageInfo.cursor) return;
|
|
677
|
+
a = o.pageInfo.cursor;
|
|
678
|
+
}
|
|
679
|
+
})(), () => {
|
|
680
|
+
n = !0;
|
|
681
|
+
};
|
|
682
|
+
}, [t, e]), e && n?.learnerId === e ? n.ids : U;
|
|
683
|
+
}
|
|
684
|
+
var fe = (e) => d(T, {
|
|
636
685
|
variables: {
|
|
637
686
|
pagination: f(50),
|
|
638
687
|
...e
|
|
639
688
|
},
|
|
640
689
|
fetchPolicy: "cache-and-network"
|
|
641
|
-
}),
|
|
690
|
+
}), pe = (e) => d(E, {
|
|
642
691
|
variables: { id: e },
|
|
643
692
|
skip: !e,
|
|
644
693
|
fetchPolicy: "cache-and-network"
|
|
645
|
-
}),
|
|
694
|
+
}), me = (e) => d(D, {
|
|
646
695
|
variables: {
|
|
647
696
|
pagination: f(50),
|
|
648
697
|
...e
|
|
649
698
|
},
|
|
650
699
|
fetchPolicy: "cache-and-network"
|
|
651
|
-
}),
|
|
700
|
+
}), he = (e, t) => d(O, {
|
|
652
701
|
variables: {
|
|
653
702
|
mentorId: e,
|
|
654
703
|
durationMinutes: t
|
|
655
704
|
},
|
|
656
705
|
skip: !e || !Number.isFinite(t) || t <= 0,
|
|
657
706
|
fetchPolicy: "cache-and-network"
|
|
658
|
-
}),
|
|
707
|
+
}), ge = (e) => d(k, {
|
|
659
708
|
variables: {
|
|
660
709
|
pagination: f(50),
|
|
661
710
|
...e
|
|
662
711
|
},
|
|
663
712
|
fetchPolicy: "cache-and-network"
|
|
664
|
-
}),
|
|
713
|
+
}), _e = (e) => d(A, {
|
|
665
714
|
variables: { id: e },
|
|
666
715
|
skip: !e,
|
|
667
716
|
fetchPolicy: "cache-and-network"
|
|
668
|
-
}),
|
|
717
|
+
}), ve = (e, t) => d(j, {
|
|
669
718
|
variables: {
|
|
670
719
|
hackathonId: e,
|
|
671
720
|
pagination: t ?? f(50)
|
|
672
721
|
},
|
|
673
722
|
skip: !e,
|
|
674
723
|
fetchPolicy: "cache-and-network"
|
|
675
|
-
}),
|
|
724
|
+
}), ye = (e, t) => d(M, {
|
|
676
725
|
variables: {
|
|
677
726
|
courseId: e,
|
|
678
727
|
pagination: t ?? f(50)
|
|
@@ -691,151 +740,151 @@ var L = (e) => d(se, {
|
|
|
691
740
|
mentors: "TecListMentors",
|
|
692
741
|
sessions: "TecListSessions",
|
|
693
742
|
hackathons: "TecListHackathons"
|
|
694
|
-
},
|
|
743
|
+
}, be = l`
|
|
695
744
|
${h}
|
|
696
745
|
mutation TecEnroll($input: TecEnrollInput!) {
|
|
697
746
|
tecEnroll(input: $input) {
|
|
698
747
|
...EnrollmentFields
|
|
699
748
|
}
|
|
700
749
|
}
|
|
701
|
-
`,
|
|
750
|
+
`, xe = l`
|
|
702
751
|
${_}
|
|
703
752
|
mutation TecSubmitSolution($input: TecSubmitSolutionInput!) {
|
|
704
753
|
tecSubmitSolution(input: $input) {
|
|
705
754
|
...SubmissionFields
|
|
706
755
|
}
|
|
707
756
|
}
|
|
708
|
-
`,
|
|
757
|
+
`, Se = l`
|
|
709
758
|
${y}
|
|
710
759
|
mutation TecBookSession($input: TecBookSessionInput!) {
|
|
711
760
|
tecBookSession(input: $input) {
|
|
712
761
|
...SessionFields
|
|
713
762
|
}
|
|
714
763
|
}
|
|
715
|
-
`,
|
|
764
|
+
`, Ce = l`
|
|
716
765
|
${y}
|
|
717
766
|
mutation TecCancelSession($id: ID!) {
|
|
718
767
|
tecCancelSession(id: $id) {
|
|
719
768
|
...SessionFields
|
|
720
769
|
}
|
|
721
770
|
}
|
|
722
|
-
`,
|
|
771
|
+
`, we = l`
|
|
723
772
|
${v}
|
|
724
773
|
mutation TecBecomeMentor($input: TecCreateMentorInput!) {
|
|
725
774
|
tecBecomeMentor(input: $input) {
|
|
726
775
|
...MentorFields
|
|
727
776
|
}
|
|
728
777
|
}
|
|
729
|
-
`,
|
|
778
|
+
`, Te = l`
|
|
730
779
|
${x}
|
|
731
780
|
mutation TecRegisterTeam($input: TecRegisterTeamInput!) {
|
|
732
781
|
tecRegisterTeam(input: $input) {
|
|
733
782
|
...TeamFields
|
|
734
783
|
}
|
|
735
784
|
}
|
|
736
|
-
`,
|
|
785
|
+
`, Ee = l`
|
|
737
786
|
${x}
|
|
738
787
|
mutation TecSubmitProject($input: TecSubmitProjectInput!) {
|
|
739
788
|
tecSubmitProject(input: $input) {
|
|
740
789
|
...TeamFields
|
|
741
790
|
}
|
|
742
791
|
}
|
|
743
|
-
`,
|
|
792
|
+
`, De = l`
|
|
744
793
|
${p}
|
|
745
794
|
mutation TecCreateCourse($input: TecCreateCourseInput!) {
|
|
746
795
|
tecCreateCourse(input: $input) {
|
|
747
796
|
...CourseFields
|
|
748
797
|
}
|
|
749
798
|
}
|
|
750
|
-
`,
|
|
799
|
+
`, Oe = l`
|
|
751
800
|
${p}
|
|
752
801
|
mutation TecPublishCourse($id: ID!) {
|
|
753
802
|
tecPublishCourse(id: $id) {
|
|
754
803
|
...CourseFields
|
|
755
804
|
}
|
|
756
805
|
}
|
|
757
|
-
`,
|
|
806
|
+
`, ke = l`
|
|
758
807
|
mutation TecArchiveCourse($id: ID!) {
|
|
759
808
|
tecArchiveCourse(id: $id)
|
|
760
809
|
}
|
|
761
|
-
`,
|
|
810
|
+
`, Ae = l`
|
|
762
811
|
${m}
|
|
763
812
|
mutation TecCreateLesson($input: TecCreateLessonInput!) {
|
|
764
813
|
tecCreateLesson(input: $input) {
|
|
765
814
|
...LessonFields
|
|
766
815
|
}
|
|
767
816
|
}
|
|
768
|
-
`,
|
|
817
|
+
`, je = l`
|
|
769
818
|
${m}
|
|
770
819
|
mutation TecUpdateLesson($id: ID!, $input: TecUpdateLessonInput!) {
|
|
771
820
|
tecUpdateLesson(id: $id, input: $input) {
|
|
772
821
|
...LessonFields
|
|
773
822
|
}
|
|
774
823
|
}
|
|
775
|
-
`,
|
|
824
|
+
`, Me = l`
|
|
776
825
|
${g}
|
|
777
826
|
mutation TecCreateProblem($input: TecCreateProblemInput!) {
|
|
778
827
|
tecCreateProblem(input: $input) {
|
|
779
828
|
...ProblemFields
|
|
780
829
|
}
|
|
781
830
|
}
|
|
782
|
-
`,
|
|
831
|
+
`, Ne = l`
|
|
783
832
|
${g}
|
|
784
833
|
mutation TecPublishProblem($id: ID!) {
|
|
785
834
|
tecPublishProblem(id: $id) {
|
|
786
835
|
...ProblemFields
|
|
787
836
|
}
|
|
788
837
|
}
|
|
789
|
-
`,
|
|
838
|
+
`, Pe = l`
|
|
790
839
|
${b}
|
|
791
840
|
mutation TecCreateHackathon($input: TecCreateHackathonInput!) {
|
|
792
841
|
tecCreateHackathon(input: $input) {
|
|
793
842
|
...HackathonFields
|
|
794
843
|
}
|
|
795
844
|
}
|
|
796
|
-
`,
|
|
845
|
+
`, Fe = l`
|
|
797
846
|
${b}
|
|
798
847
|
mutation TecOpenRegistration($id: ID!) {
|
|
799
848
|
tecOpenRegistration(id: $id) {
|
|
800
849
|
...HackathonFields
|
|
801
850
|
}
|
|
802
851
|
}
|
|
803
|
-
`,
|
|
852
|
+
`, Ie = l`
|
|
804
853
|
${v}
|
|
805
854
|
mutation TecApproveMentor($id: ID!) {
|
|
806
855
|
tecApproveMentor(id: $id) {
|
|
807
856
|
...MentorFields
|
|
808
857
|
}
|
|
809
858
|
}
|
|
810
|
-
`,
|
|
859
|
+
`, Le = l`
|
|
811
860
|
${x}
|
|
812
861
|
mutation TecScoreTeam($id: ID!, $score: Int!, $winner: Boolean) {
|
|
813
862
|
tecScoreTeam(id: $id, score: $score, winner: $winner) {
|
|
814
863
|
...TeamFields
|
|
815
864
|
}
|
|
816
865
|
}
|
|
817
|
-
`,
|
|
866
|
+
`, Re = l`
|
|
818
867
|
${y}
|
|
819
868
|
mutation TecConfirmSession($id: ID!, $meetingUrl: String) {
|
|
820
869
|
tecConfirmSession(id: $id, meetingUrl: $meetingUrl) {
|
|
821
870
|
...SessionFields
|
|
822
871
|
}
|
|
823
872
|
}
|
|
824
|
-
`,
|
|
873
|
+
`, ze = l`
|
|
825
874
|
${y}
|
|
826
875
|
mutation TecCompleteSession($id: ID!, $rating: Int, $feedback: String) {
|
|
827
876
|
tecCompleteSession(id: $id, rating: $rating, feedback: $feedback) {
|
|
828
877
|
...SessionFields
|
|
829
878
|
}
|
|
830
879
|
}
|
|
831
|
-
`,
|
|
880
|
+
`, Be = l`
|
|
832
881
|
${_}
|
|
833
882
|
mutation TecGradeSubmission($id: ID!, $verdict: TecSubmissionVerdict!, $runtimeMs: Int) {
|
|
834
883
|
tecGradeSubmission(id: $id, verdict: $verdict, runtimeMs: $runtimeMs) {
|
|
835
884
|
...SubmissionFields
|
|
836
885
|
}
|
|
837
886
|
}
|
|
838
|
-
`,
|
|
887
|
+
`, Ve = l`
|
|
839
888
|
${S}
|
|
840
889
|
mutation TecIssueCertificate($courseId: ID!, $learnerId: ID!, $score: Int!) {
|
|
841
890
|
tecIssueCertificate(courseId: $courseId, learnerId: $learnerId, score: $score) {
|
|
@@ -843,7 +892,7 @@ var L = (e) => d(se, {
|
|
|
843
892
|
}
|
|
844
893
|
}
|
|
845
894
|
`;
|
|
846
|
-
|
|
895
|
+
l`
|
|
847
896
|
${S}
|
|
848
897
|
mutation TecRevokeCertificate($id: ID!, $reason: String) {
|
|
849
898
|
tecRevokeCertificate(id: $id, reason: $reason) {
|
|
@@ -851,95 +900,95 @@ c`
|
|
|
851
900
|
}
|
|
852
901
|
}
|
|
853
902
|
`;
|
|
854
|
-
var
|
|
903
|
+
var He = l`
|
|
855
904
|
${b}
|
|
856
905
|
mutation TecStartHackathon($id: ID!) {
|
|
857
906
|
tecStartHackathon(id: $id) {
|
|
858
907
|
...HackathonFields
|
|
859
908
|
}
|
|
860
909
|
}
|
|
861
|
-
`,
|
|
910
|
+
`, Ue = l`
|
|
862
911
|
${b}
|
|
863
912
|
mutation TecStartJudging($id: ID!) {
|
|
864
913
|
tecStartJudging(id: $id) {
|
|
865
914
|
...HackathonFields
|
|
866
915
|
}
|
|
867
916
|
}
|
|
868
|
-
`,
|
|
917
|
+
`, We = l`
|
|
869
918
|
${b}
|
|
870
919
|
mutation TecCompleteHackathon($id: ID!) {
|
|
871
920
|
tecCompleteHackathon(id: $id) {
|
|
872
921
|
...HackathonFields
|
|
873
922
|
}
|
|
874
923
|
}
|
|
875
|
-
`,
|
|
924
|
+
`, Ge = () => u(be, {
|
|
876
925
|
onError: W,
|
|
877
926
|
refetchQueries: [
|
|
878
927
|
G.enrollments,
|
|
879
928
|
G.myEnrollments,
|
|
880
929
|
G.courses
|
|
881
930
|
]
|
|
882
|
-
}),
|
|
931
|
+
}), Ke = () => u(xe, {
|
|
883
932
|
onError: W,
|
|
884
933
|
refetchQueries: [G.submissions]
|
|
885
|
-
}),
|
|
934
|
+
}), qe = () => u(C, {
|
|
886
935
|
onError: W,
|
|
887
936
|
refetchQueries: [G.submissions]
|
|
888
|
-
}),
|
|
937
|
+
}), Je = () => u(Se, {
|
|
889
938
|
onError: W,
|
|
890
939
|
refetchQueries: [G.sessions, G.mentors]
|
|
891
|
-
}),
|
|
940
|
+
}), Ye = () => u(Ce, {
|
|
892
941
|
onError: W,
|
|
893
942
|
refetchQueries: [G.sessions]
|
|
894
|
-
}),
|
|
943
|
+
}), Xe = () => u(we, {
|
|
895
944
|
onError: W,
|
|
896
945
|
refetchQueries: [G.mentors]
|
|
897
|
-
}),
|
|
946
|
+
}), Ze = () => u(Te, {
|
|
898
947
|
onError: W,
|
|
899
948
|
refetchQueries: [G.hackathons]
|
|
900
|
-
}),
|
|
949
|
+
}), Qe = () => u(Ee, { onError: W }), $e = () => u(De, {
|
|
901
950
|
onError: W,
|
|
902
951
|
refetchQueries: [G.courses]
|
|
903
|
-
}),
|
|
952
|
+
}), et = () => u(Oe, {
|
|
904
953
|
onError: W,
|
|
905
954
|
refetchQueries: [G.courses]
|
|
906
|
-
}),
|
|
955
|
+
}), tt = () => u(ke, {
|
|
907
956
|
onError: W,
|
|
908
957
|
refetchQueries: [G.courses]
|
|
909
|
-
}),
|
|
958
|
+
}), nt = () => u(Ae, { onError: W }), rt = () => u(je, { onError: W }), it = () => u(Me, {
|
|
910
959
|
onError: W,
|
|
911
960
|
refetchQueries: [G.problems]
|
|
912
|
-
}),
|
|
961
|
+
}), at = () => u(Ne, {
|
|
913
962
|
onError: W,
|
|
914
963
|
refetchQueries: [G.problems]
|
|
915
|
-
}),
|
|
964
|
+
}), ot = () => u(Pe, {
|
|
916
965
|
onError: W,
|
|
917
966
|
refetchQueries: [G.hackathons]
|
|
918
|
-
}),
|
|
967
|
+
}), st = () => u(Fe, {
|
|
919
968
|
onError: W,
|
|
920
969
|
refetchQueries: [G.hackathons]
|
|
921
|
-
}),
|
|
970
|
+
}), ct = () => u(Ie, {
|
|
922
971
|
onError: W,
|
|
923
972
|
refetchQueries: [G.mentors]
|
|
924
|
-
}),
|
|
973
|
+
}), lt = () => u(Le, { onError: W }), ut = () => u(Re, {
|
|
925
974
|
onError: W,
|
|
926
975
|
refetchQueries: [G.sessions]
|
|
927
|
-
}),
|
|
976
|
+
}), dt = () => u(ze, {
|
|
928
977
|
onError: W,
|
|
929
978
|
refetchQueries: [G.sessions]
|
|
930
|
-
}),
|
|
979
|
+
}), ft = () => u(Be, {
|
|
931
980
|
onError: W,
|
|
932
981
|
refetchQueries: [G.submissions]
|
|
933
|
-
}),
|
|
982
|
+
}), pt = () => u(Ve, { onError: W }), mt = () => u(He, {
|
|
934
983
|
onError: W,
|
|
935
984
|
refetchQueries: [G.hackathons]
|
|
936
|
-
}),
|
|
985
|
+
}), ht = () => u(Ue, {
|
|
937
986
|
onError: W,
|
|
938
987
|
refetchQueries: [G.hackathons]
|
|
939
|
-
}),
|
|
988
|
+
}), gt = () => u(We, {
|
|
940
989
|
onError: W,
|
|
941
990
|
refetchQueries: [G.hackathons]
|
|
942
|
-
}), K =
|
|
991
|
+
}), K = l`
|
|
943
992
|
fragment StudyPlanStepFields on TecStudyPlanStep {
|
|
944
993
|
id
|
|
945
994
|
order
|
|
@@ -952,7 +1001,7 @@ var Le = c`
|
|
|
952
1001
|
estimatedMinutes
|
|
953
1002
|
completedAt
|
|
954
1003
|
}
|
|
955
|
-
`, q =
|
|
1004
|
+
`, q = l`
|
|
956
1005
|
${K}
|
|
957
1006
|
fragment StudyPlanFields on TecStudyPlan {
|
|
958
1007
|
id
|
|
@@ -969,7 +1018,7 @@ var Le = c`
|
|
|
969
1018
|
...StudyPlanStepFields
|
|
970
1019
|
}
|
|
971
1020
|
}
|
|
972
|
-
`,
|
|
1021
|
+
`, _t = l`
|
|
973
1022
|
${q}
|
|
974
1023
|
query TecMyStudyPlans {
|
|
975
1024
|
tecMyStudyPlans {
|
|
@@ -982,34 +1031,34 @@ var Le = c`
|
|
|
982
1031
|
}
|
|
983
1032
|
}
|
|
984
1033
|
}
|
|
985
|
-
`,
|
|
1034
|
+
`, vt = l`
|
|
986
1035
|
${q}
|
|
987
1036
|
mutation TecGenerateStudyPlan($input: TecGenerateStudyPlanInput!) {
|
|
988
1037
|
tecGenerateStudyPlan(input: $input) {
|
|
989
1038
|
...StudyPlanFields
|
|
990
1039
|
}
|
|
991
1040
|
}
|
|
992
|
-
`,
|
|
1041
|
+
`, yt = l`
|
|
993
1042
|
${K}
|
|
994
1043
|
mutation TecUpdateStudyPlanStepStatus($input: TecUpdateStudyPlanStepStatusInput!) {
|
|
995
1044
|
tecUpdateStudyPlanStepStatus(input: $input) {
|
|
996
1045
|
...StudyPlanStepFields
|
|
997
1046
|
}
|
|
998
1047
|
}
|
|
999
|
-
`,
|
|
1048
|
+
`, bt = l`
|
|
1000
1049
|
mutation TecArchiveStudyPlan($id: ID!) {
|
|
1001
1050
|
tecArchiveStudyPlan(id: $id)
|
|
1002
1051
|
}
|
|
1003
|
-
`,
|
|
1052
|
+
`, xt = () => d(_t, { fetchPolicy: "cache-and-network" }), St = () => u(vt, {
|
|
1004
1053
|
onError: W,
|
|
1005
1054
|
refetchQueries: ["TecMyStudyPlans"]
|
|
1006
|
-
}),
|
|
1055
|
+
}), Ct = () => u(yt, {
|
|
1007
1056
|
onError: W,
|
|
1008
1057
|
refetchQueries: ["TecMyStudyPlans"]
|
|
1009
|
-
}),
|
|
1058
|
+
}), wt = () => u(bt, {
|
|
1010
1059
|
onError: W,
|
|
1011
1060
|
refetchQueries: ["TecMyStudyPlans"]
|
|
1012
|
-
}), J =
|
|
1061
|
+
}), J = l`
|
|
1013
1062
|
fragment PortfolioItemFields on TecPortfolioItem {
|
|
1014
1063
|
id
|
|
1015
1064
|
kind
|
|
@@ -1020,7 +1069,7 @@ var Le = c`
|
|
|
1020
1069
|
completionDate
|
|
1021
1070
|
order
|
|
1022
1071
|
}
|
|
1023
|
-
`, Y =
|
|
1072
|
+
`, Y = l`
|
|
1024
1073
|
${J}
|
|
1025
1074
|
fragment PortfolioFields on TecPortfolio {
|
|
1026
1075
|
id
|
|
@@ -1031,14 +1080,14 @@ var Le = c`
|
|
|
1031
1080
|
...PortfolioItemFields
|
|
1032
1081
|
}
|
|
1033
1082
|
}
|
|
1034
|
-
`,
|
|
1083
|
+
`, Tt = l`
|
|
1035
1084
|
${Y}
|
|
1036
1085
|
query TecMyPortfolio {
|
|
1037
1086
|
tecMyPortfolio {
|
|
1038
1087
|
...PortfolioFields
|
|
1039
1088
|
}
|
|
1040
1089
|
}
|
|
1041
|
-
`,
|
|
1090
|
+
`, Et = l`
|
|
1042
1091
|
${J}
|
|
1043
1092
|
mutation TecAddPortfolioItem($input: TecAddPortfolioItemInput!) {
|
|
1044
1093
|
tecAddPortfolioItem(input: $input) {
|
|
@@ -1046,7 +1095,7 @@ var Le = c`
|
|
|
1046
1095
|
}
|
|
1047
1096
|
}
|
|
1048
1097
|
`;
|
|
1049
|
-
|
|
1098
|
+
l`
|
|
1050
1099
|
${Y}
|
|
1051
1100
|
mutation TecReorderPortfolioItems($input: TecReorderPortfolioItemsInput!) {
|
|
1052
1101
|
tecReorderPortfolioItems(input: $input) {
|
|
@@ -1054,37 +1103,37 @@ c`
|
|
|
1054
1103
|
}
|
|
1055
1104
|
}
|
|
1056
1105
|
`;
|
|
1057
|
-
var
|
|
1106
|
+
var Dt = l`
|
|
1058
1107
|
mutation TecRemovePortfolioItem($id: ID!) {
|
|
1059
1108
|
tecRemovePortfolioItem(id: $id)
|
|
1060
1109
|
}
|
|
1061
|
-
`,
|
|
1110
|
+
`, Ot = l`
|
|
1062
1111
|
${Y}
|
|
1063
1112
|
mutation TecPublishPortfolio {
|
|
1064
1113
|
tecPublishPortfolio {
|
|
1065
1114
|
...PortfolioFields
|
|
1066
1115
|
}
|
|
1067
1116
|
}
|
|
1068
|
-
`,
|
|
1117
|
+
`, kt = l`
|
|
1069
1118
|
${Y}
|
|
1070
1119
|
mutation TecUnpublishPortfolio {
|
|
1071
1120
|
tecUnpublishPortfolio {
|
|
1072
1121
|
...PortfolioFields
|
|
1073
1122
|
}
|
|
1074
1123
|
}
|
|
1075
|
-
`,
|
|
1124
|
+
`, At = () => d(Tt, { fetchPolicy: "cache-and-network" }), X = ["TecMyPortfolio"], jt = () => u(Et, {
|
|
1076
1125
|
onError: W,
|
|
1077
1126
|
refetchQueries: X
|
|
1078
|
-
}),
|
|
1127
|
+
}), Mt = () => u(Dt, {
|
|
1079
1128
|
onError: W,
|
|
1080
1129
|
refetchQueries: X
|
|
1081
|
-
}),
|
|
1130
|
+
}), Nt = () => u(Ot, {
|
|
1082
1131
|
onError: W,
|
|
1083
1132
|
refetchQueries: X
|
|
1084
|
-
}),
|
|
1133
|
+
}), Pt = () => u(kt, {
|
|
1085
1134
|
onError: W,
|
|
1086
1135
|
refetchQueries: X
|
|
1087
|
-
}), Z =
|
|
1136
|
+
}), Z = l`
|
|
1088
1137
|
fragment SubmissionReviewFields on TecSubmissionReview {
|
|
1089
1138
|
id
|
|
1090
1139
|
submissionId
|
|
@@ -1103,36 +1152,36 @@ var St = c`
|
|
|
1103
1152
|
model
|
|
1104
1153
|
createdAt
|
|
1105
1154
|
}
|
|
1106
|
-
`,
|
|
1155
|
+
`, Ft = l`
|
|
1107
1156
|
${Z}
|
|
1108
1157
|
query TecMySubmissionReview($submissionId: ID!) {
|
|
1109
1158
|
tecMySubmissionReview(submissionId: $submissionId) {
|
|
1110
1159
|
...SubmissionReviewFields
|
|
1111
1160
|
}
|
|
1112
1161
|
}
|
|
1113
|
-
`,
|
|
1162
|
+
`, It = l`
|
|
1114
1163
|
${Z}
|
|
1115
1164
|
mutation TecReviewSubmission($submissionId: ID!) {
|
|
1116
1165
|
tecReviewSubmission(submissionId: $submissionId) {
|
|
1117
1166
|
...SubmissionReviewFields
|
|
1118
1167
|
}
|
|
1119
1168
|
}
|
|
1120
|
-
`,
|
|
1169
|
+
`, Lt = (e) => d(Ft, {
|
|
1121
1170
|
variables: { submissionId: e ?? "" },
|
|
1122
1171
|
skip: !e,
|
|
1123
1172
|
fetchPolicy: "cache-and-network"
|
|
1124
|
-
}),
|
|
1173
|
+
}), Rt = () => u(It, {
|
|
1125
1174
|
onError: W,
|
|
1126
1175
|
refetchQueries: ["TecMySubmissionReview"]
|
|
1127
1176
|
});
|
|
1128
|
-
function
|
|
1129
|
-
let [n, r] =
|
|
1177
|
+
function zt(e = 24, t = 24) {
|
|
1178
|
+
let [n, r] = c(t);
|
|
1130
1179
|
return {
|
|
1131
1180
|
limit: n,
|
|
1132
1181
|
more: () => r((t) => t + e)
|
|
1133
1182
|
};
|
|
1134
1183
|
}
|
|
1135
|
-
var
|
|
1184
|
+
var Bt = l`
|
|
1136
1185
|
${m}
|
|
1137
1186
|
${p}
|
|
1138
1187
|
query TecLessonPlayer($lessonId: ID!, $courseId: ID!) {
|
|
@@ -1160,7 +1209,7 @@ var Q = c`
|
|
|
1160
1209
|
}
|
|
1161
1210
|
}
|
|
1162
1211
|
}
|
|
1163
|
-
`,
|
|
1212
|
+
`, Vt = l`
|
|
1164
1213
|
query TecLessonQuizKey($lessonId: ID!) {
|
|
1165
1214
|
tecLessonQuizKey(lessonId: $lessonId) {
|
|
1166
1215
|
prompt
|
|
@@ -1169,7 +1218,7 @@ var Q = c`
|
|
|
1169
1218
|
explanation
|
|
1170
1219
|
}
|
|
1171
1220
|
}
|
|
1172
|
-
`,
|
|
1221
|
+
`, Ht = l`
|
|
1173
1222
|
${h}
|
|
1174
1223
|
mutation TecCompleteLesson($lessonId: ID!) {
|
|
1175
1224
|
tecCompleteLesson(lessonId: $lessonId) {
|
|
@@ -1177,7 +1226,7 @@ var Q = c`
|
|
|
1177
1226
|
nextLessonId
|
|
1178
1227
|
}
|
|
1179
1228
|
}
|
|
1180
|
-
`,
|
|
1229
|
+
`, Ut = l`
|
|
1181
1230
|
${h}
|
|
1182
1231
|
mutation TecSubmitLessonQuiz($lessonId: ID!, $answers: [Int!]!) {
|
|
1183
1232
|
tecSubmitLessonQuiz(lessonId: $lessonId, answers: $answers) {
|
|
@@ -1200,7 +1249,7 @@ var Q = c`
|
|
|
1200
1249
|
}
|
|
1201
1250
|
}
|
|
1202
1251
|
}
|
|
1203
|
-
`,
|
|
1252
|
+
`, Wt = l`
|
|
1204
1253
|
${h}
|
|
1205
1254
|
mutation TecRunLessonCode($input: TecRunLessonCodeInput!) {
|
|
1206
1255
|
tecRunLessonCode(input: $input) {
|
|
@@ -1222,29 +1271,29 @@ var Q = c`
|
|
|
1222
1271
|
}
|
|
1223
1272
|
}
|
|
1224
1273
|
}
|
|
1225
|
-
`,
|
|
1274
|
+
`, Gt = (e, t) => d(Bt, {
|
|
1226
1275
|
variables: {
|
|
1227
1276
|
courseId: e,
|
|
1228
1277
|
lessonId: t
|
|
1229
1278
|
},
|
|
1230
1279
|
skip: !e || !t,
|
|
1231
1280
|
fetchPolicy: "cache-and-network"
|
|
1232
|
-
}),
|
|
1281
|
+
}), Kt = (e, t = !1) => d(Vt, {
|
|
1233
1282
|
variables: { lessonId: e },
|
|
1234
1283
|
skip: t || !e,
|
|
1235
1284
|
fetchPolicy: "network-only"
|
|
1236
|
-
}),
|
|
1285
|
+
}), Q = [
|
|
1237
1286
|
"TecLessonPlayer",
|
|
1238
1287
|
"TecCourse",
|
|
1239
1288
|
G.myEnrollments,
|
|
1240
1289
|
G.enrollments
|
|
1241
|
-
],
|
|
1290
|
+
], $ = () => u(Ht, {
|
|
1242
1291
|
onError: W,
|
|
1243
|
-
refetchQueries:
|
|
1244
|
-
}),
|
|
1292
|
+
refetchQueries: Q
|
|
1293
|
+
}), qt = () => u(Ut, {
|
|
1245
1294
|
onError: W,
|
|
1246
|
-
refetchQueries:
|
|
1247
|
-
}),
|
|
1295
|
+
refetchQueries: Q
|
|
1296
|
+
}), Jt = () => u(Wt, { onError: W }), Yt = l`
|
|
1248
1297
|
query TecVerifyCertificates($serials: [String!]!) {
|
|
1249
1298
|
tecVerifyCertificates(serials: $serials) {
|
|
1250
1299
|
serial
|
|
@@ -1259,7 +1308,7 @@ var Q = c`
|
|
|
1259
1308
|
verifiedAt
|
|
1260
1309
|
}
|
|
1261
1310
|
}
|
|
1262
|
-
`,
|
|
1311
|
+
`, Xt = l`
|
|
1263
1312
|
query TecExportXapiStatements($courseId: ID, $since: DateTime, $until: DateTime, $limit: Int) {
|
|
1264
1313
|
tecExportXapiStatements(courseId: $courseId, since: $since, until: $until, limit: $limit) {
|
|
1265
1314
|
statements
|
|
@@ -1269,13 +1318,13 @@ var Q = c`
|
|
|
1269
1318
|
version
|
|
1270
1319
|
}
|
|
1271
1320
|
}
|
|
1272
|
-
`,
|
|
1321
|
+
`, Zt = (e) => d(Yt, {
|
|
1273
1322
|
variables: { serials: e },
|
|
1274
1323
|
skip: e.length === 0,
|
|
1275
1324
|
fetchPolicy: "network-only"
|
|
1276
1325
|
});
|
|
1277
|
-
function
|
|
1278
|
-
let [n, r] =
|
|
1326
|
+
function Qt() {
|
|
1327
|
+
let [n, r] = c(!1), [i, a] = c(null), [o] = te(Xt, { fetchPolicy: "network-only" });
|
|
1279
1328
|
return {
|
|
1280
1329
|
run: async (n, i = 5e3) => {
|
|
1281
1330
|
r(!0), a(null);
|
|
@@ -1313,6 +1362,6 @@ function qt() {
|
|
|
1313
1362
|
};
|
|
1314
1363
|
}
|
|
1315
1364
|
//#endregion
|
|
1316
|
-
export { f as pageArg,
|
|
1365
|
+
export { f as pageArg, jt as useAddPortfolioItem, ct as useApproveMentor, tt as useArchiveCourse, wt as useArchiveStudyPlan, Xe as useBecomeMentor, Je as useBookSession, Ye as useCancelSession, I as useCertificatesQuery, gt as useCompleteHackathon, $ as useCompleteLesson, dt as useCompleteSession, ut as useConfirmSession, P as useCourseQuery, N as useCoursesQuery, $e as useCreateCourse, ot as useCreateHackathon, nt as useCreateLesson, it as useCreateProblem, Ge as useEnroll, F as useEnrollmentsQuery, St as useGenerateStudyPlan, ft as useGradeSubmission, _e as useHackathonQuery, ge as useHackathonsQuery, pt as useIssueCertificate, Gt as useLessonPlayerQuery, Kt as useLessonQuizKeyQuery, ye as useLessonsQuery, pe as useMentorQuery, fe as useMentorsQuery, R as useMyCertificatesQuery, L as useMyEnrollmentsQuery, At as useMyPortfolioQuery, xt as useMyStudyPlansQuery, Lt as useMySubmissionReviewQuery, st as useOpenRegistration, zt as usePageLimit, B as useProblemQuery, z as useProblemsQuery, et as usePublishCourse, Nt as usePublishPortfolio, at as usePublishProblem, Ze as useRegisterTeam, qe as useRegradeSubmission, Mt as useRemovePortfolioItem, Rt as useReviewSubmission, Jt as useRunLessonCode, lt as useScoreTeam, he as useSessionCostEstimate, me as useSessionsQuery, de as useSolvedProblemIds, mt as useStartHackathon, ht as useStartJudging, V as useSubmissionsQuery, qt as useSubmitLessonQuiz, Qe as useSubmitProject, Ke as useSubmitSolution, ve as useTeamsQuery, Pt as useUnpublishPortfolio, rt as useUpdateLesson, Ct as useUpdateStudyPlanStepStatus, Zt as useVerifyCertificatesQuery, Qt as useXapiExport };
|
|
1317
1366
|
|
|
1318
1367
|
//# sourceMappingURL=technospamApi.js.map
|