glitch-javascript-sdk 2.5.3 → 2.5.5
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/cjs/index.js +316 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Education.d.ts +56 -0
- package/dist/esm/api/Newsletters.d.ts +12 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +316 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routes/EducationRoute.d.ts +7 -0
- package/dist/index.d.ts +67 -0
- package/package.json +1 -1
- package/src/api/Education.ts +183 -0
- package/src/api/Newsletters.ts +21 -3
- package/src/api/index.ts +3 -1
- package/src/index.ts +2 -0
- package/src/routes/EducationRoute.ts +143 -0
- package/src/routes/NewslettersRoutes.ts +9 -7
package/dist/cjs/index.js
CHANGED
|
@@ -27012,6 +27012,8 @@ var NewslettersRoutes = /** @class */ (function () {
|
|
|
27012
27012
|
NewslettersRoutes.routes = {
|
|
27013
27013
|
downloadMarketingChecklist: { url: '/newsletters/downloadMarketingChecklist', method: HTTP_METHODS.POST },
|
|
27014
27014
|
joinCourseWaitlist: { url: '/newsletters/joinCourseWaitlist', method: HTTP_METHODS.POST },
|
|
27015
|
+
joinRaffleWaitlist: { url: '/newsletters/joinRaffleWaitlist', method: HTTP_METHODS.POST },
|
|
27016
|
+
joinDiscordMarketplaceWaitlist: { url: '/newsletters/joinDiscordMarketplaceWaitlist', method: HTTP_METHODS.POST },
|
|
27015
27017
|
};
|
|
27016
27018
|
return NewslettersRoutes;
|
|
27017
27019
|
}());
|
|
@@ -27040,6 +27042,22 @@ var Newsletters = /** @class */ (function () {
|
|
|
27040
27042
|
Newsletters.joinCourseWaitlist = function (data, params) {
|
|
27041
27043
|
return Requests.processRoute(NewslettersRoutes.routes.joinCourseWaitlist, data, undefined, params);
|
|
27042
27044
|
};
|
|
27045
|
+
/**
|
|
27046
|
+
* Join the raffle feature waitlist.
|
|
27047
|
+
*
|
|
27048
|
+
* @param data { name, email, game, prizes[], interest_in_playtesters, launch_timeline, target_wishlist_count }
|
|
27049
|
+
*/
|
|
27050
|
+
Newsletters.joinRaffleWaitlist = function (data, params) {
|
|
27051
|
+
return Requests.processRoute(NewslettersRoutes.routes.joinRaffleWaitlist, data, undefined, params);
|
|
27052
|
+
};
|
|
27053
|
+
/**
|
|
27054
|
+
* Join the Discord Marketplace waitlist.
|
|
27055
|
+
*
|
|
27056
|
+
* @param data { name, email, game, categories[] }
|
|
27057
|
+
*/
|
|
27058
|
+
Newsletters.joinDiscordMarketplaceWaitlist = function (data, params) {
|
|
27059
|
+
return Requests.processRoute(NewslettersRoutes.routes.joinDiscordMarketplaceWaitlist, data, undefined, params);
|
|
27060
|
+
};
|
|
27043
27061
|
return Newsletters;
|
|
27044
27062
|
}());
|
|
27045
27063
|
|
|
@@ -29630,6 +29648,303 @@ var DiscordMarketplace = /** @class */ (function () {
|
|
|
29630
29648
|
return DiscordMarketplace;
|
|
29631
29649
|
}());
|
|
29632
29650
|
|
|
29651
|
+
var EducationRoute = /** @class */ (function () {
|
|
29652
|
+
function EducationRoute() {
|
|
29653
|
+
}
|
|
29654
|
+
EducationRoute.routes = {
|
|
29655
|
+
// 1. EducationCategoryController
|
|
29656
|
+
listCategories: { url: '/education/categories', method: HTTP_METHODS.GET },
|
|
29657
|
+
viewCategory: { url: '/education/categories/{uuid}', method: HTTP_METHODS.GET },
|
|
29658
|
+
createCategory: { url: '/education/categories', method: HTTP_METHODS.POST },
|
|
29659
|
+
updateCategory: { url: '/education/categories/{uuid}', method: HTTP_METHODS.PUT },
|
|
29660
|
+
deleteCategory: { url: '/education/categories/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29661
|
+
// 2. EducationTrackController
|
|
29662
|
+
listTracks: { url: '/education/tracks', method: HTTP_METHODS.GET },
|
|
29663
|
+
viewTrack: { url: '/education/tracks/{uuid}', method: HTTP_METHODS.GET },
|
|
29664
|
+
createTrack: { url: '/education/tracks', method: HTTP_METHODS.POST },
|
|
29665
|
+
updateTrack: { url: '/education/tracks/{uuid}', method: HTTP_METHODS.PUT },
|
|
29666
|
+
deleteTrack: { url: '/education/tracks/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29667
|
+
registerTrack: { url: '/education/tracks/{uuid}/register', method: HTTP_METHODS.POST },
|
|
29668
|
+
myTracks: { url: '/education/my-tracks', method: HTTP_METHODS.GET },
|
|
29669
|
+
trackAnalytics: { url: '/education/tracks/{uuid}/analytics', method: HTTP_METHODS.GET },
|
|
29670
|
+
// 3. EducationContentController
|
|
29671
|
+
listContent: { url: '/education/content', method: HTTP_METHODS.GET },
|
|
29672
|
+
viewContent: { url: '/education/content/{uuid}', method: HTTP_METHODS.GET },
|
|
29673
|
+
createContent: { url: '/education/content', method: HTTP_METHODS.POST },
|
|
29674
|
+
updateContent: { url: '/education/content/{uuid}', method: HTTP_METHODS.PUT },
|
|
29675
|
+
deleteContent: { url: '/education/content/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29676
|
+
contentHeartbeat: { url: '/education/content/{uuid}/heartbeat', method: HTTP_METHODS.POST },
|
|
29677
|
+
saveContentModuleState: { url: '/education/content/{uuid}/module-state', method: HTTP_METHODS.POST },
|
|
29678
|
+
getContentModuleState: { url: '/education/content/{uuid}/module-state', method: HTTP_METHODS.GET },
|
|
29679
|
+
getSecureVideo: { url: '/education/content/{uuid}/secure-video', method: HTTP_METHODS.GET },
|
|
29680
|
+
// 4. EducationContentTrackController (Pivot)
|
|
29681
|
+
listTrackContent: { url: '/education/tracks/{track_id}/content', method: HTTP_METHODS.GET },
|
|
29682
|
+
addContentToTrack: { url: '/education/tracks/{track_id}/content', method: HTTP_METHODS.POST },
|
|
29683
|
+
updateContentInTrack: { url: '/education/tracks/{track_id}/content/{content_id}', method: HTTP_METHODS.PUT },
|
|
29684
|
+
removeContentFromTrack: { url: '/education/tracks/{track_id}/content/{content_id}', method: HTTP_METHODS.DELETE },
|
|
29685
|
+
reorderTrackContent: { url: '/education/tracks/{track_id}/reorder', method: HTTP_METHODS.POST },
|
|
29686
|
+
// 5. QuizController
|
|
29687
|
+
listQuizzes: { url: '/education/quizzes', method: HTTP_METHODS.GET },
|
|
29688
|
+
viewQuiz: { url: '/education/quizzes/{uuid}', method: HTTP_METHODS.GET },
|
|
29689
|
+
createQuiz: { url: '/education/quizzes', method: HTTP_METHODS.POST },
|
|
29690
|
+
updateQuiz: { url: '/education/quizzes/{uuid}', method: HTTP_METHODS.PUT },
|
|
29691
|
+
deleteQuiz: { url: '/education/quizzes/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29692
|
+
submitQuiz: { url: '/education/quizzes/{uuid}/submit', method: HTTP_METHODS.POST },
|
|
29693
|
+
myQuizAttempts: { url: '/education/quizzes/{uuid}/attempts', method: HTTP_METHODS.GET },
|
|
29694
|
+
viewQuizAttempt: { url: '/education/quizzes/attempts/{uuid}', method: HTTP_METHODS.GET },
|
|
29695
|
+
// 6. QuizQuestionController
|
|
29696
|
+
listQuizQuestions: { url: '/education/quizzes/{quiz_id}/questions', method: HTTP_METHODS.GET },
|
|
29697
|
+
createQuizQuestion: { url: '/education/quizzes/{quiz_id}/questions', method: HTTP_METHODS.POST },
|
|
29698
|
+
viewQuizQuestion: { url: '/education/questions/{uuid}', method: HTTP_METHODS.GET },
|
|
29699
|
+
updateQuizQuestion: { url: '/education/questions/{uuid}', method: HTTP_METHODS.PUT },
|
|
29700
|
+
deleteQuizQuestion: { url: '/education/questions/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29701
|
+
reorderQuizQuestions: { url: '/education/quizzes/{quiz_id}/questions/reorder', method: HTTP_METHODS.POST },
|
|
29702
|
+
// 7. QuizOptionController
|
|
29703
|
+
listQuizOptions: { url: '/education/questions/{question_id}/options', method: HTTP_METHODS.GET },
|
|
29704
|
+
createQuizOption: { url: '/education/questions/{question_id}/options', method: HTTP_METHODS.POST },
|
|
29705
|
+
viewQuizOption: { url: '/education/options/{uuid}', method: HTTP_METHODS.GET },
|
|
29706
|
+
updateQuizOption: { url: '/education/options/{uuid}', method: HTTP_METHODS.PUT },
|
|
29707
|
+
deleteQuizOption: { url: '/education/options/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29708
|
+
// 8. QuizAttemptController
|
|
29709
|
+
listAllQuizAttempts: { url: '/education/quiz-attempts', method: HTTP_METHODS.GET },
|
|
29710
|
+
viewSpecificQuizAttempt: { url: '/education/quiz-attempts/{uuid}', method: HTTP_METHODS.GET },
|
|
29711
|
+
deleteQuizAttempt: { url: '/education/quiz-attempts/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29712
|
+
listUserQuizAttempts: { url: '/users/{user_id}/quiz-attempts', method: HTTP_METHODS.GET },
|
|
29713
|
+
// 9. QuizAttemptAnswerController
|
|
29714
|
+
listAttemptAnswers: { url: '/education/quiz-attempts/{attempt_id}/answers', method: HTTP_METHODS.GET },
|
|
29715
|
+
viewSpecificAnswer: { url: '/education/quiz-attempt-answers/{uuid}', method: HTTP_METHODS.GET },
|
|
29716
|
+
reportQuestionPerformance: { url: '/education/reports/question-performance', method: HTTP_METHODS.GET },
|
|
29717
|
+
// 10. UserEducationProgressController
|
|
29718
|
+
listAllProgress: { url: '/education/progress', method: HTTP_METHODS.GET },
|
|
29719
|
+
syncProgress: { url: '/education/progress/sync', method: HTTP_METHODS.POST },
|
|
29720
|
+
viewProgress: { url: '/education/progress/{uuid}', method: HTTP_METHODS.GET },
|
|
29721
|
+
deleteProgress: { url: '/education/progress/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29722
|
+
myProgressByContent: { url: '/education/content/{content_id}/my-progress', method: HTTP_METHODS.GET },
|
|
29723
|
+
// 11. UserTrackController
|
|
29724
|
+
listUserTracks: { url: '/education/user-tracks', method: HTTP_METHODS.GET },
|
|
29725
|
+
viewUserTrack: { url: '/education/user-tracks/{uuid}', method: HTTP_METHODS.GET },
|
|
29726
|
+
updateUserTrack: { url: '/education/user-tracks/{uuid}', method: HTTP_METHODS.PUT },
|
|
29727
|
+
deleteUserTrack: { url: '/education/user-tracks/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29728
|
+
refreshUserTrack: { url: '/education/user-tracks/{uuid}/refresh', method: HTTP_METHODS.POST },
|
|
29729
|
+
// 12. UserTrackRegistrationController
|
|
29730
|
+
listRegistrations: { url: '/education/registrations', method: HTTP_METHODS.GET },
|
|
29731
|
+
createRegistration: { url: '/education/registrations', method: HTTP_METHODS.POST },
|
|
29732
|
+
viewRegistration: { url: '/education/registrations/{uuid}', method: HTTP_METHODS.GET },
|
|
29733
|
+
updateRegistration: { url: '/education/registrations/{uuid}', method: HTTP_METHODS.PUT },
|
|
29734
|
+
deleteRegistration: { url: '/education/registrations/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29735
|
+
listTrackRegistrations: { url: '/education/tracks/{track_id}/registrations', method: HTTP_METHODS.GET },
|
|
29736
|
+
// 13. EducationViewController
|
|
29737
|
+
listViews: { url: '/education/views', method: HTTP_METHODS.GET },
|
|
29738
|
+
logView: { url: '/education/views', method: HTTP_METHODS.POST },
|
|
29739
|
+
viewLogDetails: { url: '/education/views/{uuid}', method: HTTP_METHODS.GET },
|
|
29740
|
+
reportConversion: { url: '/education/reports/conversion-impact', method: HTTP_METHODS.GET },
|
|
29741
|
+
reportAdoption: { url: '/education/reports/adoption-metrics', method: HTTP_METHODS.GET },
|
|
29742
|
+
reportRetention: { url: '/education/reports/retention-impact', method: HTTP_METHODS.GET },
|
|
29743
|
+
// 14. EducationModuleDataController
|
|
29744
|
+
listModuleData: { url: '/education/module-data', method: HTTP_METHODS.GET },
|
|
29745
|
+
saveModuleData: { url: '/education/module-data', method: HTTP_METHODS.POST },
|
|
29746
|
+
viewModuleData: { url: '/education/module-data/{uuid}', method: HTTP_METHODS.GET },
|
|
29747
|
+
updateModuleData: { url: '/education/module-data/{uuid}', method: HTTP_METHODS.PUT },
|
|
29748
|
+
deleteModuleData: { url: '/education/module-data/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29749
|
+
// 15. EducationCertificateTemplateController
|
|
29750
|
+
listTemplates: { url: '/education/certificate-templates', method: HTTP_METHODS.GET },
|
|
29751
|
+
createTemplate: { url: '/education/certificate-templates', method: HTTP_METHODS.POST },
|
|
29752
|
+
viewTemplate: { url: '/education/certificate-templates/{uuid}', method: HTTP_METHODS.GET },
|
|
29753
|
+
updateTemplate: { url: '/education/certificate-templates/{uuid}', method: HTTP_METHODS.PUT },
|
|
29754
|
+
deleteTemplate: { url: '/education/certificate-templates/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29755
|
+
uploadTemplateSignature: { url: '/education/certificate-templates/{uuid}/uploadSignature', method: HTTP_METHODS.POST },
|
|
29756
|
+
uploadTemplateBackground: { url: '/education/certificate-templates/{uuid}/uploadBackground', method: HTTP_METHODS.POST },
|
|
29757
|
+
// 16. CertificateController
|
|
29758
|
+
listAllCertificates: { url: '/certificates', method: HTTP_METHODS.GET },
|
|
29759
|
+
myCertificates: { url: '/certificates/mine', method: HTTP_METHODS.GET },
|
|
29760
|
+
viewCertificate: { url: '/certificates/{uuid}', method: HTTP_METHODS.GET },
|
|
29761
|
+
downloadCertificate: { url: '/certificates/{uuid}/download', method: HTTP_METHODS.GET },
|
|
29762
|
+
issueCertificate: { url: '/certificates', method: HTTP_METHODS.POST },
|
|
29763
|
+
revokeCertificate: { url: '/certificates/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29764
|
+
listUserCertificates: { url: '/users/{user_id}/certificates', method: HTTP_METHODS.GET },
|
|
29765
|
+
// 17. BadgeController
|
|
29766
|
+
listAllBadges: { url: '/badges', method: HTTP_METHODS.GET },
|
|
29767
|
+
myBadges: { url: '/badges/mine', method: HTTP_METHODS.GET },
|
|
29768
|
+
viewBadge: { url: '/badges/{uuid}', method: HTTP_METHODS.GET },
|
|
29769
|
+
awardBadge: { url: '/badges', method: HTTP_METHODS.POST },
|
|
29770
|
+
updateBadge: { url: '/badges/{uuid}', method: HTTP_METHODS.PUT },
|
|
29771
|
+
revokeBadge: { url: '/badges/{uuid}', method: HTTP_METHODS.DELETE },
|
|
29772
|
+
listUserBadges: { url: '/users/{user_id}/badges', method: HTTP_METHODS.GET },
|
|
29773
|
+
};
|
|
29774
|
+
return EducationRoute;
|
|
29775
|
+
}());
|
|
29776
|
+
|
|
29777
|
+
var Education = /** @class */ (function () {
|
|
29778
|
+
function Education() {
|
|
29779
|
+
}
|
|
29780
|
+
// --- 1. CATEGORIES ---
|
|
29781
|
+
Education.listCategories = function (params) {
|
|
29782
|
+
return Requests.processRoute(EducationRoute.routes.listCategories, undefined, undefined, params);
|
|
29783
|
+
};
|
|
29784
|
+
Education.viewCategory = function (uuid, params) {
|
|
29785
|
+
return Requests.processRoute(EducationRoute.routes.viewCategory, undefined, { uuid: uuid }, params);
|
|
29786
|
+
};
|
|
29787
|
+
Education.createCategory = function (data) {
|
|
29788
|
+
return Requests.processRoute(EducationRoute.routes.createCategory, data);
|
|
29789
|
+
};
|
|
29790
|
+
Education.updateCategory = function (uuid, data) {
|
|
29791
|
+
return Requests.processRoute(EducationRoute.routes.updateCategory, data, { uuid: uuid });
|
|
29792
|
+
};
|
|
29793
|
+
Education.deleteCategory = function (uuid) {
|
|
29794
|
+
return Requests.processRoute(EducationRoute.routes.deleteCategory, undefined, { uuid: uuid });
|
|
29795
|
+
};
|
|
29796
|
+
// --- 2. TRACKS ---
|
|
29797
|
+
Education.listTracks = function (params) {
|
|
29798
|
+
return Requests.processRoute(EducationRoute.routes.listTracks, undefined, undefined, params);
|
|
29799
|
+
};
|
|
29800
|
+
Education.viewTrack = function (uuid) {
|
|
29801
|
+
return Requests.processRoute(EducationRoute.routes.viewTrack, undefined, { uuid: uuid });
|
|
29802
|
+
};
|
|
29803
|
+
Education.createTrack = function (data) {
|
|
29804
|
+
return Requests.processRoute(EducationRoute.routes.createTrack, data);
|
|
29805
|
+
};
|
|
29806
|
+
Education.updateTrack = function (uuid, data) {
|
|
29807
|
+
return Requests.processRoute(EducationRoute.routes.updateTrack, data, { uuid: uuid });
|
|
29808
|
+
};
|
|
29809
|
+
Education.deleteTrack = function (uuid) {
|
|
29810
|
+
return Requests.processRoute(EducationRoute.routes.deleteTrack, undefined, { uuid: uuid });
|
|
29811
|
+
};
|
|
29812
|
+
Education.registerForTrack = function (uuid) {
|
|
29813
|
+
return Requests.processRoute(EducationRoute.routes.registerTrack, {}, { uuid: uuid });
|
|
29814
|
+
};
|
|
29815
|
+
Education.myTracks = function () {
|
|
29816
|
+
return Requests.processRoute(EducationRoute.routes.myTracks);
|
|
29817
|
+
};
|
|
29818
|
+
Education.getTrackAnalytics = function (uuid) {
|
|
29819
|
+
return Requests.processRoute(EducationRoute.routes.trackAnalytics, undefined, { uuid: uuid });
|
|
29820
|
+
};
|
|
29821
|
+
// --- 3. CONTENT ---
|
|
29822
|
+
Education.listContent = function (params) {
|
|
29823
|
+
return Requests.processRoute(EducationRoute.routes.listContent, undefined, undefined, params);
|
|
29824
|
+
};
|
|
29825
|
+
Education.viewContent = function (uuid, params) {
|
|
29826
|
+
return Requests.processRoute(EducationRoute.routes.viewContent, undefined, { uuid: uuid }, params);
|
|
29827
|
+
};
|
|
29828
|
+
Education.createContent = function (data) {
|
|
29829
|
+
return Requests.processRoute(EducationRoute.routes.createContent, data);
|
|
29830
|
+
};
|
|
29831
|
+
Education.updateContent = function (uuid, data) {
|
|
29832
|
+
return Requests.processRoute(EducationRoute.routes.updateContent, data, { uuid: uuid });
|
|
29833
|
+
};
|
|
29834
|
+
Education.deleteContent = function (uuid) {
|
|
29835
|
+
return Requests.processRoute(EducationRoute.routes.deleteContent, undefined, { uuid: uuid });
|
|
29836
|
+
};
|
|
29837
|
+
Education.heartbeat = function (uuid, data) {
|
|
29838
|
+
return Requests.processRoute(EducationRoute.routes.contentHeartbeat, data, { uuid: uuid });
|
|
29839
|
+
};
|
|
29840
|
+
Education.getSecureVideo = function (uuid) {
|
|
29841
|
+
return Requests.processRoute(EducationRoute.routes.getSecureVideo, undefined, { uuid: uuid });
|
|
29842
|
+
};
|
|
29843
|
+
// --- 4. TRACK CONTENT (PIVOT) ---
|
|
29844
|
+
Education.listTrackContent = function (track_id) {
|
|
29845
|
+
return Requests.processRoute(EducationRoute.routes.listTrackContent, undefined, { track_id: track_id });
|
|
29846
|
+
};
|
|
29847
|
+
Education.addContentToTrack = function (track_id, data) {
|
|
29848
|
+
return Requests.processRoute(EducationRoute.routes.addContentToTrack, data, { track_id: track_id });
|
|
29849
|
+
};
|
|
29850
|
+
Education.removeContentFromTrack = function (track_id, content_id) {
|
|
29851
|
+
return Requests.processRoute(EducationRoute.routes.removeContentFromTrack, undefined, { track_id: track_id, content_id: content_id });
|
|
29852
|
+
};
|
|
29853
|
+
Education.reorderTrackContent = function (track_id, content_ids) {
|
|
29854
|
+
return Requests.processRoute(EducationRoute.routes.reorderTrackContent, { content_ids: content_ids }, { track_id: track_id });
|
|
29855
|
+
};
|
|
29856
|
+
// --- 5. QUIZZES ---
|
|
29857
|
+
Education.listQuizzes = function (params) {
|
|
29858
|
+
return Requests.processRoute(EducationRoute.routes.listQuizzes, undefined, undefined, params);
|
|
29859
|
+
};
|
|
29860
|
+
Education.viewQuiz = function (uuid) {
|
|
29861
|
+
return Requests.processRoute(EducationRoute.routes.viewQuiz, undefined, { uuid: uuid });
|
|
29862
|
+
};
|
|
29863
|
+
Education.submitQuiz = function (uuid, answers) {
|
|
29864
|
+
return Requests.processRoute(EducationRoute.routes.submitQuiz, { answers: answers }, { uuid: uuid });
|
|
29865
|
+
};
|
|
29866
|
+
Education.myQuizAttempts = function (uuid) {
|
|
29867
|
+
return Requests.processRoute(EducationRoute.routes.myQuizAttempts, undefined, { uuid: uuid });
|
|
29868
|
+
};
|
|
29869
|
+
Education.viewQuizAttempt = function (uuid) {
|
|
29870
|
+
return Requests.processRoute(EducationRoute.routes.viewQuizAttempt, undefined, { uuid: uuid });
|
|
29871
|
+
};
|
|
29872
|
+
// --- 6. QUIZ QUESTIONS & OPTIONS ---
|
|
29873
|
+
Education.listQuizQuestions = function (quiz_id) {
|
|
29874
|
+
return Requests.processRoute(EducationRoute.routes.listQuizQuestions, undefined, { quiz_id: quiz_id });
|
|
29875
|
+
};
|
|
29876
|
+
Education.createQuizQuestion = function (quiz_id, data) {
|
|
29877
|
+
return Requests.processRoute(EducationRoute.routes.createQuizQuestion, data, { quiz_id: quiz_id });
|
|
29878
|
+
};
|
|
29879
|
+
Education.reorderQuizQuestions = function (quiz_id, question_ids) {
|
|
29880
|
+
return Requests.processRoute(EducationRoute.routes.reorderQuizQuestions, { question_ids: question_ids }, { quiz_id: quiz_id });
|
|
29881
|
+
};
|
|
29882
|
+
Education.listQuizOptions = function (question_id) {
|
|
29883
|
+
return Requests.processRoute(EducationRoute.routes.listQuizOptions, undefined, { question_id: question_id });
|
|
29884
|
+
};
|
|
29885
|
+
Education.createQuizOption = function (question_id, data) {
|
|
29886
|
+
return Requests.processRoute(EducationRoute.routes.createQuizOption, data, { question_id: question_id });
|
|
29887
|
+
};
|
|
29888
|
+
// --- 7. PROGRESS & REGISTRATIONS ---
|
|
29889
|
+
Education.syncProgress = function (data) {
|
|
29890
|
+
return Requests.processRoute(EducationRoute.routes.syncProgress, data);
|
|
29891
|
+
};
|
|
29892
|
+
Education.getMyProgressByContent = function (content_id) {
|
|
29893
|
+
return Requests.processRoute(EducationRoute.routes.myProgressByContent, undefined, { content_id: content_id });
|
|
29894
|
+
};
|
|
29895
|
+
Education.listRegistrations = function (params) {
|
|
29896
|
+
return Requests.processRoute(EducationRoute.routes.listRegistrations, undefined, undefined, params);
|
|
29897
|
+
};
|
|
29898
|
+
Education.refreshUserTrack = function (uuid) {
|
|
29899
|
+
return Requests.processRoute(EducationRoute.routes.refreshUserTrack, {}, { uuid: uuid });
|
|
29900
|
+
};
|
|
29901
|
+
// --- 8. ANALYTICS & MODULE DATA ---
|
|
29902
|
+
Education.logView = function (data) {
|
|
29903
|
+
return Requests.processRoute(EducationRoute.routes.logView, data);
|
|
29904
|
+
};
|
|
29905
|
+
Education.saveModuleData = function (data) {
|
|
29906
|
+
return Requests.processRoute(EducationRoute.routes.saveModuleData, data);
|
|
29907
|
+
};
|
|
29908
|
+
Education.getModuleData = function (uuid) {
|
|
29909
|
+
return Requests.processRoute(EducationRoute.routes.viewModuleData, undefined, { uuid: uuid });
|
|
29910
|
+
};
|
|
29911
|
+
Education.getConversionReport = function () {
|
|
29912
|
+
return Requests.processRoute(EducationRoute.routes.reportConversion);
|
|
29913
|
+
};
|
|
29914
|
+
Education.getAdoptionReport = function () {
|
|
29915
|
+
return Requests.processRoute(EducationRoute.routes.reportAdoption);
|
|
29916
|
+
};
|
|
29917
|
+
Education.getQuestionPerformanceReport = function (params) {
|
|
29918
|
+
return Requests.processRoute(EducationRoute.routes.reportQuestionPerformance, undefined, undefined, params);
|
|
29919
|
+
};
|
|
29920
|
+
// --- 9. ACHIEVEMENTS (BADGES & CERTIFICATES) ---
|
|
29921
|
+
Education.myBadges = function () {
|
|
29922
|
+
return Requests.processRoute(EducationRoute.routes.myBadges);
|
|
29923
|
+
};
|
|
29924
|
+
Education.awardBadge = function (data) {
|
|
29925
|
+
return Requests.processRoute(EducationRoute.routes.awardBadge, data);
|
|
29926
|
+
};
|
|
29927
|
+
Education.myCertificates = function () {
|
|
29928
|
+
return Requests.processRoute(EducationRoute.routes.myCertificates);
|
|
29929
|
+
};
|
|
29930
|
+
Education.downloadCertificate = function (uuid) {
|
|
29931
|
+
return Requests.processRoute(EducationRoute.routes.downloadCertificate, undefined, { uuid: uuid });
|
|
29932
|
+
};
|
|
29933
|
+
// --- 10. TEMPLATES & UPLOADS ---
|
|
29934
|
+
Education.listTemplates = function () {
|
|
29935
|
+
return Requests.processRoute(EducationRoute.routes.listTemplates);
|
|
29936
|
+
};
|
|
29937
|
+
Education.uploadTemplateSignature = function (uuid, file) {
|
|
29938
|
+
var url = EducationRoute.routes.uploadTemplateSignature.url.replace('{uuid}', uuid);
|
|
29939
|
+
return Requests.uploadFile(url, 'image', file);
|
|
29940
|
+
};
|
|
29941
|
+
Education.uploadTemplateBackground = function (uuid, file) {
|
|
29942
|
+
var url = EducationRoute.routes.uploadTemplateBackground.url.replace('{uuid}', uuid);
|
|
29943
|
+
return Requests.uploadFile(url, 'image', file);
|
|
29944
|
+
};
|
|
29945
|
+
return Education;
|
|
29946
|
+
}());
|
|
29947
|
+
|
|
29633
29948
|
var Parser = /** @class */ (function () {
|
|
29634
29949
|
function Parser() {
|
|
29635
29950
|
}
|
|
@@ -30160,6 +30475,7 @@ var Glitch = /** @class */ (function () {
|
|
|
30160
30475
|
TwitchReporting: TwitchReporting,
|
|
30161
30476
|
Raffles: Raffles,
|
|
30162
30477
|
DiscordMarketplace: DiscordMarketplace,
|
|
30478
|
+
Education: Education,
|
|
30163
30479
|
};
|
|
30164
30480
|
Glitch.util = {
|
|
30165
30481
|
Requests: Requests,
|