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