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