@itutoring/itutoring_application_js_api 1.20.8 → 1.20.10

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.
@@ -3,6 +3,8 @@ import React, { useEffect } from 'react';
3
3
  import './../DebugConsole.css';
4
4
  import APIController from '../apiController';
5
5
  import { R_KEYs } from '../objects/Enums';
6
+ import react from 'react';
7
+ import { createRoot } from 'react-dom/client';
6
8
 
7
9
  export const DebugConsole = () =>
8
10
  {
@@ -124,5 +126,5 @@ export const InitializeDebugConsole = () =>
124
126
  {
125
127
  const debugConsoleContainer = document.createElement('div');
126
128
  document.body.appendChild(debugConsoleContainer);
127
- React.render(<DebugConsole />, debugConsoleContainer);
129
+ createRoot(debugConsoleContainer).render(<DebugConsole />);
128
130
  }
@@ -11,6 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
11
11
  require("./../DebugConsole.css");
12
12
  var _apiController = _interopRequireDefault(require("../apiController"));
13
13
  var _Enums = require("../objects/Enums");
14
+ var _client = require("react-dom/client");
14
15
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
16
  var DebugConsole = exports.DebugConsole = function DebugConsole() {
16
17
  var _React$useState = _react["default"].useState(false),
@@ -112,5 +113,5 @@ var DebugConsole = exports.DebugConsole = function DebugConsole() {
112
113
  var InitializeDebugConsole = exports.InitializeDebugConsole = function InitializeDebugConsole() {
113
114
  var debugConsoleContainer = document.createElement('div');
114
115
  document.body.appendChild(debugConsoleContainer);
115
- _react["default"].render(/*#__PURE__*/_react["default"].createElement(DebugConsole, null), debugConsoleContainer);
116
+ (0, _client.createRoot)(debugConsoleContainer).render(/*#__PURE__*/_react["default"].createElement(DebugConsole, null));
116
117
  };
package/index.d.ts CHANGED
@@ -32,6 +32,7 @@ import LessonInventory from "./modules/LessonInventory";
32
32
  import Cart from "./modules/Cart";
33
33
  import Checkout from "./modules/Checkout";
34
34
  import InquiryCheckout from "./modules/InquiryCheckout";
35
+ import DbTags from "./modules/DbTags";
35
36
 
36
37
  import Course from "./objects/Course";
37
38
  import CourseReservation from "./objects/CourseReservation";
@@ -98,6 +99,7 @@ export
98
99
  Cart,
99
100
  Checkout,
100
101
  InquiryCheckout,
102
+ DbTags,
101
103
 
102
104
  Course,
103
105
  CourseReservation,
package/index.js CHANGED
@@ -29,6 +29,7 @@ import LessonInventory from "./modules/LessonInventory";
29
29
  import Cart from "./modules/Cart";
30
30
  import Checkout from "./modules/Checkout";
31
31
  import InquiryCheckout from "./modules/InquiryCheckout";
32
+ import DbTags from "./modules/DbTags";
32
33
 
33
34
  import Course from "./objects/Course";
34
35
  import CourseReservation from "./objects/CourseReservation";
@@ -96,6 +97,7 @@ export
96
97
  Cart,
97
98
  Checkout,
98
99
  InquiryCheckout,
100
+ DbTags,
99
101
 
100
102
  Course,
101
103
  CourseReservation,
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright (C) 2025 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+ *
6
+ */
7
+
8
+ class DbTags
9
+ {
10
+ static #MODULE = "DbTags";
11
+
12
+ static #GET_AVAILABLE_TAGS = "GetAvailableTags";
13
+
14
+ /**
15
+ * @returns Array of available database tags.
16
+ */
17
+ static async getAvailableTags()
18
+ {
19
+ var data = await APIController.Get(this.#MODULE, this.#GET_AVAILABLE_TAGS, {}, true);
20
+ return data;
21
+ }
22
+ }
23
+
24
+ export default DbTags;
@@ -29,6 +29,10 @@ class SubjectManager
29
29
  static #SUBJECTS_CACHE_KEY = "json_subjects_c_k";
30
30
  static #COURSES_CACHE_KEY = "json_courses_c_k";
31
31
 
32
+ /**
33
+ * @deprecated
34
+ * @returns
35
+ */
32
36
  static async getAllAvailableLocations()
33
37
  {
34
38
  var data = await APIController.Get(this.#MODULE, this.#GET_ALL_AVAILABLE_LOCATIONS, {}, true);
@@ -37,7 +41,7 @@ class SubjectManager
37
41
  }
38
42
 
39
43
  /**
40
- *
44
+ * @deprecated
41
45
  * @returns Array (Subject[id]) of all available subjects as array of Subject objects. Key is id of subject.
42
46
  */
43
47
  static async GetAllAvailableSubjects()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.20.8",
3
+ "version": "1.20.10",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",