@itutoring/itutoring_application_js_api 1.6.44 → 1.6.46

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
@@ -209,10 +209,11 @@ class Models
209
209
  });
210
210
  }
211
211
 
212
- static async setLecture(lecture)
212
+ static async setLecture(lecture, draft = false)
213
213
  {
214
214
  return await APIController.Post(this.#MODULE, this.#SET_LECTURE, {
215
215
  'model': JSON.stringify(lecture),
216
+ 'draft': draft,
216
217
  });
217
218
  }
218
219
 
@@ -225,11 +226,12 @@ class Models
225
226
  return data;
226
227
  }
227
228
 
228
- static async deleteLecture(id, toTrash = true)
229
+ static async deleteLecture(id, toTrash = true, draft = false)
229
230
  {
230
231
  await APIController.Post(this.#MODULE, this.#DELETE_LECTURE, {
231
232
  'id': id,
232
233
  'toTrash': toTrash,
234
+ 'draft': draft,
233
235
  });
234
236
  }
235
237
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.6.44",
3
+ "version": "1.6.46",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",