@itutoring/itutoring_application_js_api 1.6.40 → 1.6.42

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/modules/Models.js CHANGED
@@ -42,6 +42,17 @@ class Models
42
42
  static #GET_ATTENDANCE_FOR_LECTURE = 'GetAttendanceForLecture';
43
43
  static #GET_PLANNED_LECTURE_COUNT = 'GetPlannedLectureCount';
44
44
  static #CREATE_EVENT_FROM_INQUIRY = 'CreateEventFromInquiry';
45
+ static #GET_FIRST_PLANNED_LECTURE = 'GetFirstPlannedLecture';
46
+
47
+ static async getFirstPlannedLecture(eventId, includeToday)
48
+ {
49
+ var data = await APIController.Get(this.#MODULE, this.#GET_FIRST_PLANNED_LECTURE, {
50
+ 'eventId': eventId,
51
+ 'includeToday': includeToday,
52
+ });
53
+
54
+ return data;
55
+ }
45
56
 
46
57
  static async createEventFromInquiry(inquiryId)
47
58
  {
@@ -38,11 +38,12 @@ class TableExplorer
38
38
  static #GET_NUMBER_OF_ENTRIES = "GetNumberOfEntries";
39
39
  static #SET_CUSTOM_LOAD_QUERY = "SetCustomLoadQuery";
40
40
 
41
- static async setCustomLoadQuery(token, query)
41
+ static async setCustomLoadQuery(token, query, variables = {})
42
42
  {
43
43
  await APIController.Post(this.#MODULE, this.#SET_CUSTOM_LOAD_QUERY, {
44
44
  'token': token,
45
45
  'filter': query,
46
+ 'filterVariables': variables,
46
47
  });
47
48
  }
48
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.6.40",
3
+ "version": "1.6.42",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",