glitch-javascript-sdk 2.5.6 → 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 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);
@@ -29920,6 +29948,13 @@ var Education = /** @class */ (function () {
29920
29948
  Education.getRetentionReport = function () {
29921
29949
  return Requests.processRoute(EducationRoute.routes.reportRetention);
29922
29950
  };
29951
+ /**
29952
+ * List raw engagement logs.
29953
+ * @param params Filter by user_id, content_id, or is_paid
29954
+ */
29955
+ Education.listViews = function (params) {
29956
+ return Requests.processRoute(EducationRoute.routes.listViews, undefined, undefined, params);
29957
+ };
29923
29958
  // --- 9. ACHIEVEMENTS (BADGES & CERTIFICATES) ---
29924
29959
  Education.myBadges = function () {
29925
29960
  return Requests.processRoute(EducationRoute.routes.myBadges);