@itutoring/itutoring_application_js_api 1.6.12 → 1.6.14

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/apiController.js CHANGED
@@ -88,7 +88,7 @@ class APIController
88
88
  {
89
89
  window.location.href = json.url;
90
90
  }
91
- if (json.data['conf_request'] !== undefined)
91
+ if ((json.data != null || json.data != undefined) && json.data['conf_request'] !== undefined)
92
92
  {
93
93
  if (APIController.onConfimationReceived !== null && APIController.onConfimationReceived !== undefined)
94
94
  {
package/modules/Models.js CHANGED
@@ -42,7 +42,7 @@ class Models
42
42
  static async setEvent(event)
43
43
  {
44
44
  await APIController.Post(this.#MODULE, this.#SET_EVENT, {
45
- 'event': JSON.stringify(event),
45
+ 'model': JSON.stringify(event),
46
46
  });
47
47
  }
48
48
 
@@ -66,7 +66,7 @@ class Models
66
66
  static async setInquiry(inquiry)
67
67
  {
68
68
  await APIController.Post(this.#MODULE, this.#SET_INQUIRY, {
69
- 'inquiry': JSON.stringify(inquiry),
69
+ 'model': JSON.stringify(inquiry),
70
70
  });
71
71
  }
72
72
 
@@ -90,7 +90,7 @@ class Models
90
90
  static async setOffer(offer)
91
91
  {
92
92
  await APIController.Post(this.#MODULE, this.#SET_OFFER, {
93
- 'offer': JSON.stringify(offer),
93
+ 'model': JSON.stringify(offer),
94
94
  });
95
95
  }
96
96
 
@@ -114,7 +114,7 @@ class Models
114
114
  static async setCustomer(customer)
115
115
  {
116
116
  await APIController.Post(this.#MODULE, this.#SET_CUSTOMER, {
117
- 'customer': JSON.stringify(customer),
117
+ 'model': JSON.stringify(customer),
118
118
  });
119
119
  }
120
120
 
@@ -138,7 +138,7 @@ class Models
138
138
  static async setStudent(student)
139
139
  {
140
140
  await APIController.Post(this.#MODULE, this.#SET_STUDENT, {
141
- 'student': JSON.stringify(student),
141
+ 'model': JSON.stringify(student),
142
142
  });
143
143
  }
144
144
 
@@ -162,7 +162,7 @@ class Models
162
162
  static async setLecture(lecture)
163
163
  {
164
164
  await APIController.Post(this.#MODULE, this.#SET_LECTURE, {
165
- 'lecture': JSON.stringify(lecture),
165
+ 'model': JSON.stringify(lecture),
166
166
  });
167
167
  }
168
168
 
@@ -186,7 +186,7 @@ class Models
186
186
  static async setLectureAttendance(attendance)
187
187
  {
188
188
  await APIController.Post(this.#MODULE, this.#SET_LECTURE_ATTENDANCE, {
189
- 'attendance': JSON.stringify(attendance),
189
+ 'model': JSON.stringify(attendance),
190
190
  });
191
191
  }
192
192
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.6.12",
3
+ "version": "1.6.14",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",