glitch-javascript-sdk 2.5.7 → 2.5.8
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 +28 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Education.d.ts +9 -0
- package/dist/esm/index.js +28 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/package.json +1 -1
- package/src/api/Education.ts +30 -0
- package/src/routes/EducationRoute.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -29869,6 +29869,15 @@ var Education = /** @class */ (function () {
|
|
|
29869
29869
|
Education.viewQuizAttempt = function (uuid) {
|
|
29870
29870
|
return Requests.processRoute(EducationRoute.routes.viewQuizAttempt, undefined, { uuid: uuid });
|
|
29871
29871
|
};
|
|
29872
|
+
Education.createQuiz = function (data) {
|
|
29873
|
+
return Requests.processRoute(EducationRoute.routes.createQuiz, data);
|
|
29874
|
+
};
|
|
29875
|
+
Education.updateQuiz = function (uuid, data) {
|
|
29876
|
+
return Requests.processRoute(EducationRoute.routes.updateQuiz, data, { uuid: uuid });
|
|
29877
|
+
};
|
|
29878
|
+
Education.deleteQuiz = function (uuid) {
|
|
29879
|
+
return Requests.processRoute(EducationRoute.routes.deleteQuiz, undefined, { uuid: uuid });
|
|
29880
|
+
};
|
|
29872
29881
|
// --- 6. QUIZ QUESTIONS & OPTIONS ---
|
|
29873
29882
|
Education.listQuizQuestions = function (quiz_id) {
|
|
29874
29883
|
return Requests.processRoute(EducationRoute.routes.listQuizQuestions, undefined, { quiz_id: quiz_id });
|
|
@@ -29885,6 +29894,25 @@ var Education = /** @class */ (function () {
|
|
|
29885
29894
|
Education.createQuizOption = function (question_id, data) {
|
|
29886
29895
|
return Requests.processRoute(EducationRoute.routes.createQuizOption, data, { question_id: question_id });
|
|
29887
29896
|
};
|
|
29897
|
+
Education.viewQuizQuestion = function (uuid) {
|
|
29898
|
+
return Requests.processRoute(EducationRoute.routes.viewQuizQuestion, undefined, { uuid: uuid });
|
|
29899
|
+
};
|
|
29900
|
+
Education.updateQuizQuestion = function (uuid, data) {
|
|
29901
|
+
return Requests.processRoute(EducationRoute.routes.updateQuizQuestion, data, { uuid: uuid });
|
|
29902
|
+
};
|
|
29903
|
+
Education.deleteQuizQuestion = function (uuid) {
|
|
29904
|
+
return Requests.processRoute(EducationRoute.routes.deleteQuizQuestion, undefined, { uuid: uuid });
|
|
29905
|
+
};
|
|
29906
|
+
// --- QUIZ OPTIONS (CRUD) ---
|
|
29907
|
+
Education.viewQuizOption = function (uuid) {
|
|
29908
|
+
return Requests.processRoute(EducationRoute.routes.viewQuizOption, undefined, { uuid: uuid });
|
|
29909
|
+
};
|
|
29910
|
+
Education.updateQuizOption = function (uuid, data) {
|
|
29911
|
+
return Requests.processRoute(EducationRoute.routes.updateQuizOption, data, { uuid: uuid });
|
|
29912
|
+
};
|
|
29913
|
+
Education.deleteQuizOption = function (uuid) {
|
|
29914
|
+
return Requests.processRoute(EducationRoute.routes.deleteQuizOption, undefined, { uuid: uuid });
|
|
29915
|
+
};
|
|
29888
29916
|
// --- 7. PROGRESS & REGISTRATIONS ---
|
|
29889
29917
|
Education.syncProgress = function (data) {
|
|
29890
29918
|
return Requests.processRoute(EducationRoute.routes.syncProgress, data);
|